PageSourceSearch

https://belyours-clinic.ru/assets/AdminPage-Bbf1ytnD.js

js belyours-clinic.ru collected 2026-10-07 18:04:58 UTC 47,467 bytes, 5 lines download raw bytes

1import{j as e,A as X,m as A}from"./vendor-motion-DCR1wvsM.js";import{r as u,f as ge}from"./vendor-react-TsB2LBX3.js";import{e as we,o as k,j as $,R,n as je,i as Z,v as K,w as ee,b as U,L as se,h as ae,x as te,y as ve,z as Ne,S as ke,D as P,J as le,k as ye,K as Se,l as re,C as Ce}from"./vendor-icons-CmwDujpT.js";const Pe=()=>{var _;const[i,m]=u.useState(null),[ie,y]=u.useState(!1),[O,ce]=u.useState(""),[v,w]=u.useState(!1),[j,H]=u.useState({type:"",msg:""}),[l,ne]=u.useState("services"),[N,E]=u.useState(null),[S,T]=u.useState(""),[C,f]=u.useState(!1),[oe,z]=u.useState({}),[M,de]=u.useState([]),[xe,W]=u.useState(!1),q=u.useRef(null),F=async()=>{W(!0);try{const s=await fetch("/api/list-backups.php",{credentials:"include"});if(s.ok){const t=await s.json();de(t.backups||[])}else x("error","Не удалось загрузить список бэкапов")}catch{x("error","Ошибка сети при загрузке списка бэкапов")}W(!1)},pe=async s=>{if(confirm("Вы уверены, что хотите восстановить эту версию? Текущие данные будут перезаписаны. Будет создан автоматический бэкап текущего состояния.")){w(!0);try{const t=await fetch("/api/restore-backup.php",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({filename:s})});if(t.ok)x("success","Резервная копия успешно восстановлена!"),setTimeout(()=>{window.location.reload()},1e3);else{const a=await t.json();x("error",a.error||"Ошибка восстановления резервной копии")}}catch{x("error","Ошибка сети при восстановлении")}w(!1)}},he=async()=>{w(!0);try{const s=await fetch("/api/create-backup.php",{method:"POST",credentials:"include"});if(s.ok)x("success","Резервная копия создана!"),F();else{const t=await s.json();x("error",t.error||"Ошибка создания резервной копии")}}catch{x("error","Ошибка сети при создании резервной копии")}w(!1)};u.useEffect(()=>{l==="backups"&&F()},[l]);const I=e.jsx(X,{children:j.msg&&e.jsxs(A.div,{initial:{opacity:0,y:-50},animate:{opacity:1,y:30},exit:{opacity:0,y:-50},className:`fixed top-0 left-1/2 -translate-x-1/2 z-[100] px-10 py-5 rounded-3xl flex items-center space-x-4 shadow-3xl backdrop-blur-2xl border ${j.type==="success"?"bg-brand-emerald/90 border-brand-lilac/30 text-white":"bg-red-500/90 border-red-400/30 text-white"}`,children:[j.type==="success"?e.jsx(we,{className:"w-6 h-6"}):e.jsx(k,{className:"w-6 h-6"}),e.jsx("span",{className:"text-sm font-bold tracking-tight",children:j.msg})]})});u.useEffect(()=>{fetch("/api/check-auth.php",{credentials:"include"}).then(s=>s.json()).then(s=>{y(!!(s!=null&&s.authenticated))}).catch(s=>{y(!1)})},[]),u.useEffect(()=>{fetch("/data/content.json?nocache="+Date.now()).then(s=>s.json()).then(s=>{s.services=Array.isArray(s.services)?s.services:[],s.promotions=Array.isArray(s.promotions)?s.promotions:[],s.specialists=Array.isArray(s.specialists)?s.specialists:[],s.caseStudies=Array.isArray(s.caseStudies)?s.caseStudies:[],s.faqs=Array.isArray(s.faqs)?s.faqs:[],s.footer=s.footer&&typeof s.footer=="object"?s.footer:{},s.footer.popularLinks=Array.isArray(s.footer.popularLinks)?s.footer.popularLinks:[],s.seo||(s.seo={home:{title:"BELYOURS — Клиника эстетической медицины",description:""},services:{title:"Услуги и цены | BELYOURS",description:""},specialists:{title:"Наши специалисты | BELYOURS",description:""},contacts:{title:"Контакты | BELYOURS",description:""}}),["services","promotions","specialists","caseStudies","faqs"].forEach(t=>{s[t]&&(s[t]=s[t].map((a,c)=>({...a,id:a.id||`${t.slice(0,3)}-${Date.now()}-${c}`,isActive:a.isActive!==void 0?a.isActive:!0})))}),m(s)}).catch(s=>{console.error(s)})},[]);const be=async s=>{s.preventDefault(),w(!0);try{const t=await fetch("/api/login.php",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:O})});if(t.ok)y(!0),x("success","Доступ разрешен");else{let a=null;try{a=await t.json()}catch{a=null}x("error",(a==null?void 0:a.error)||`Ошибка доступа (${t.status})`)}}catch{x("error","Сервер недоступен")}w(!1)},ue=async()=>{await fetch("/api/logout.php",{method:"POST",credentials:"include"}),y(!1)};u.useEffect(()=>{const s=t=>{C&&(t.preventDefault(),t.returnValue="")};return window.addEventListener("beforeunload",s),()=>window.removeEventListener("beforeunload",s)},[C]);const x=(s,t)=>{q.current&&clearTimeout(q.current),H({type:s,msg:t}),q.current=setTimeout(()=>H({type:"",msg:""}),4e3)},me=s=>{const t=(s.name||"").toLowerCase(),a=(s.type||"").toLowerCase();return t.endsWith(".heic")||t.endsWith(".heif")||a==="image/heic"||a==="image/heif"?"iPhone HEIC не поддерживается. Сохраните фото как JPG/PNG (или отправьте себе в Telegram/WhatsApp и скачайте как JPG).":""},B=(s,t,a)=>`${s}:${t}:${a}`,Y=(s,t,a)=>{const c=B(s,t,a);z(o=>{if(!o[c])return o;const h={...o};return delete h[c],h})},G=(s,t,a)=>{const c=B(s,t,a);z(o=>o[c]?o:{...o,[c]:!0})},fe=async()=>{w(!0);try{const s=await fetch("/api/update-content.php",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(s.ok)x("success","Изменения сохранены и опубликованы!"),f(!1);else{const t=await s.json();x("error",`Ошибка: ${t.error}. ${t.debug||""}`)}}catch{x("error","Ошибка сети или сервера. Проверьте соединение.")}w(!1)},D=async(s,t,a,c)=>{if(c.size>5*1024*1024){x("error","Размер файла превышает 5МБ. Сожмите изображение и попробуйте снова.");return}const o=me(c);if(o){x("error",o);return}const h=new FormData;h.append("image",c),h.append("folder",s);try{x("success","Загрузка файла...");const b=await fetch("/api/upload.php",{method:"POST",credentials:"include",body:h});let p=null;try{p=await b.json()}catch{p=null}if(b.ok&&(p!=null&&p.url))d(s,t,a,p.url),Y(s,t,a),x("success","Файл успешно загружен!");else if(b.ok)x("error","Сервер вернул некорректный ответ");
1else{const r=b.status===401?"Сессия админа истекла. Перезайдите в админку и повторите.":b.status>=500?"Ошибка сервера (права/папка). Нужна настройка прав на хостинге.":"",n=p!=null&&p.error?String(p.error):"Неизвестная ошибка";x("error",`Ошибка загрузки (${b.status}): ${n}${r?` — ${r}`:""}`)}}catch{x("error","Ошибка сети при загрузке")}},J=s=>{if(typeof s!="string")return s;const t=s.trim();return t&&(t.startsWith("images/")?`/${t}`:t)},L=s=>{const t=J(s);return typeof t!="string"||!t?"":t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")?t:`/${t}`},d=(s,t,a,c)=>{const o=a==="image"||a==="before"||a==="after"?J(c):c;m(h=>({...h,[s]:h[s].map((b,p)=>p===t?{...b,[a]:o}:b)})),f(!0),(a==="image"||a==="before"||a==="after")&&Y(s,t,a)},Q=(s,t,a)=>{const c=a==="up"?t-1:t+1;c<0||c>=i[s].length||(m(o=>({...o,[s]:o[s].map((h,b,p)=>b===t?p[c]:b===c?p[t]:h)})),f(!0),x("success","Порядок изменен"))},V=i&&Array.isArray(i[l])?i[l].filter(s=>(s.title||s.name||s.q||"").toLowerCase().includes(S.toLowerCase())):[];return ie?i?e.jsxs("div",{className:"min-h-screen bg-[#050505] text-white font-sans selection:bg-brand-lilac/30 flex",children:[I,e.jsxs("div",{className:"fixed top-0 left-0 h-full w-80 bg-brand-emerald/10 border-r border-white/5 p-10 backdrop-blur-3xl z-40 flex flex-col",children:[e.jsx("div",{className:"mb-16",children:e.jsxs("div",{className:"flex items-center space-x-4 mb-3",children:[e.jsx("div",{className:"w-10 h-10 bg-brand-lilac rounded-xl flex items-center justify-center shadow-lg shadow-brand-lilac/20",children:e.jsx("span",{className:"text-brand-emerald font-black text-sm italic",children:"B"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-display text-brand-lilac italic leading-none",children:"BELYOURS"}),e.jsx("span",{className:"text-[9px] text-white/40 uppercase tracking-[0.3em] font-black",children:"Elite CMS v2.0"})]})]})}),e.jsx("nav",{className:"space-y-4 flex-grow",children:[{id:"services",label:"Услуги",icon:e.jsx(je,{className:"w-5 h-5"})},{id:"promotions",label:"Акции",icon:e.jsx(Z,{className:"w-5 h-5"})},{id:"specialists",label:"Команда",icon:e.jsx(K,{className:"w-5 h-5"})},{id:"caseStudies",label:"Результаты",icon:e.jsx(ee,{className:"w-5 h-5"})},{id:"faqs",label:"Вопросы",icon:e.jsx(U,{className:"w-5 h-5"})},{id:"seo",label:"SEO & Мета",icon:e.jsx($,{className:"w-5 h-5"})},{id:"footer",label:"Подвал",icon:e.jsx(se,{className:"w-5 h-5"})},{id:"backups",label:"История & Бэкапы",icon:e.jsx(ae,{className:"w-5 h-5"})}].map(s=>e.jsxs("button",{onClick:()=>{ne(s.id),E(null),T("")},className:`w-full flex items-center space-x-5 px-6 py-5 rounded-[24px] transition-all duration-500 group ${l===s.id?"bg-brand-lilac text-brand-emerald shadow-2xl shadow-brand-lilac/10":"hover:bg-white/5 text-white/40 hover:text-white"}`,children:[e.jsx("div",{className:`transition-transform duration-500 ${l===s.id?"scale-110":"group-hover:scale-110"}`,children:s.icon}),e.jsx("span",{className:"text-[11px] uppercase tracking-[0.2em] font-black",children:s.label})]},s.id))}),e.jsxs("div",{className:"pt-10 border-t border-white/5 space-y-6",children:[e.jsxs("button",{onClick:fe,disabled:v,className:`w-full font-black h-16 rounded-[24px] flex items-center justify-center space-x-3 transition-all active:scale-95 disabled:opacity-50 group shadow-xl ${C?"bg-brand-lilac text-brand-emerald animate-pulse":"bg-white text-brand-emerald hover:bg-brand-lilac"}`,children:[v?e.jsx(R,{className:"w-6 h-6 animate-spin"}):e.jsx(te,{className:"w-6 h-6 group-hover:rotate-12 transition-transform"}),e.jsx("span",{className:"text-[11px] uppercase tracking-[0.2em]",children:C?"Есть правки: Сохранить":"Сохранить всё"})]}),e.jsxs("button",{onClick:ue,className:"w-full flex items-center justify-center space-x-3 text-white/20 hover:text-red-400 transition-all py-2 text-[10px] uppercase font-bold tracking-[0.3em]",children:[e.jsx(ve,{className:"w-4 h-4"}),e.jsx("span",{children:"Выход"})]})]})]}),e.jsxs("div",{className:"flex-1 lg:ml-80 p-6 lg:p-16 w-full max-w-[1400px] mb-40 overflow-x-hidden",children:[e.jsx("div",{className:"grid grid-cols-5 ga
1p-8 mb-20",children:[{label:"Всего услуг",val:i.services.length,icon:e.jsx(Ne,{}),color:"text-brand-lilac"},{label:"Врачи",val:i.specialists.length,icon:e.jsx(K,{}),color:"text-blue-400"},{label:"Акции",val:i.promotions.length,icon:e.jsx(Z,{}),color:"text-yellow-400"},{label:"Вопросы",val:i.faqs.length,icon:e.jsx(U,{}),color:"text-teal-400"},{label:"Кейсы",val:i.caseStudies.length,icon:e.jsx(ae,{}),color:"text-emerald-400"}].map((s,t)=>e.jsxs("div",{className:"bg-white/5 border border-white/5 rounded-[32px] p-8 flex items-center justify-between group hover:border-white/10 transition-colors",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] uppercase tracking-widest font-bold text-white/30 mb-2",children:s.label}),e.jsx("p",{className:"text-3xl font-display italic",children:s.val})]}),e.jsx("div",{className:`w-12 h-12 rounded-2xl bg-white/5 flex items-center justify-center ${s.color}`,children:ge.cloneElement(s.icon,{className:"w-6 h-6"})})]},t))}),e.jsxs("header",{className:"mb-14 flex justify-between items-end",children:[e.jsxs("div",{className:"max-w-xl w-full",children:[e.jsx("div",{className:"flex items-center space-x-3 mb-6",children:e.jsx("div",{className:"w-2 h-2 rounded-full bg-brand-lilac animate-pulse"})}),e.jsx("h1",{className:"text-7xl font-display leading-none italic mb-10 tracking-tighter",children:l==="services"?"Прайс-лист":l==="promotions"?"Акции":l==="specialists"?"Команда":l==="faqs"?"Вопросы и ответы":l==="footer"?"Настройки подвала":l==="seo"?"SEO Настройки":l==="backups"?"История и Бэкапы":"Кейсы"}),l!=="backups"&&l!=="seo"&&l!=="footer"&&e.jsxs("div",{className:"relative group max-w-md",children:[e.jsx(ke,{className:"absolute left-6 top-1/2 -translate-y-1/2 w-5 h-5 text-white/20 group-focus-within:text-brand-lilac transition-colors"}),e.jsx("input",{type:"text",placeholder:`Поиск в разделе ${l==="services"?"услуг":l==="specialists"?"врачей":"контента"}...`,value:S,onChange:s=>T(s.target.value),className:"w-full bg-white/5 border border-white/5 rounded-2xl h-16 pl-16 pr-6 text-sm focus:border-brand-lilac outline-none transition-all placeholder:text-white/20"})]})]}),l==="backups"?e.jsxs("button",{onClick:he,disabled:v,className:"bg-brand-lilac text-brand-emerald h-16 px-10 rounded-[28px] flex items-center space-x-4 hover:bg-white transition-all active:scale-95 shadow-2xl shadow-brand-lilac/10 font-black uppercase text-[11px] tracking-widest disabled:opacity-50",children:[e.jsx(te,{className:"w-6 h-6"}),e.jsx("span",{children:"Создать бэкап"})]}):l==="footer"||l==="seo"?null:e.jsxs("button",{onClick:()=>{if(l==="footer")return;const s=`${l.slice(0,3)}-${Date.now()}`,t=l==="services"?{id:s,title:"Новая услуга",price:"0 ₽",description:"",category:"laser"}:l==="promotions"?{id:s,title:"Новое предложение",desc:"",tag:"0 ₽",date:"",features:[],image:"/images/promotions/default.png"}:l==="specialists"?{id:s,name:"Новый специалист",role:"Специалист",experience:"0 лет",image:"/images/specialists/default.jpg",description:["Новое описание"]}:l==="faqs"?{id:s,q:"Новый вопрос",a:"Ответ на вопрос"}:{id:s,title:"Новый результат",category:"Общее",description:"",before:"/images/results/default.jpg",after:"/images/results/default.jpg",stats:["1 сеанс"],statsLabels:["Показатель","Показатель"]};m({...i,[l]:[t,...i[l]]}),f(!0),T(""),E(s)},className:"bg-brand-lilac text-brand-emerald h-16 px-10 rounded-[28px] flex items-center space-x-4 hover:bg-white transition-all active:scale-95 shadow-2xl shadow-brand-lilac/10 font-black uppercase text-[11px] tracking-widest",children:[e.jsx(P,{className:"w-6 h-6"}),e.jsx("span",{children:"Добавить"})]})]}),l==="backups"?e.jsxs("div",{className:"space-y-12",children:[e.jsxs("div",{className:"bg-white/5 border border-white/5 rounded-[48px] p-12",children:[e.jsx("h2",{className:"text-3xl font-display italic mb-10",children:"История версий (Резервные копии)"}),xe?e.jsxs("div",{className:"py-20 text-center",children:[e.jsx(R,{className:"w-12 h-12 animate-spin text-brand-lilac mx-auto mb-4"}),e.jsx("p",{className:"text-white/30 italic",children:"Загрузка истории..."})]}):M.length===0?e.jsxs("div",{className:"py-20 text-center border-2 border-dashed border-white/10 rounded-[32px]",children:[e.jsx(k,{className:"w-16 h-16 text-white/10 mx-auto mb-6"}),e.jsx("p",{className:"text-white/30 font-display text-xl italic",children:"История бэкапов пуста"})]}):e.jsx("div",{className:"space-y-6",children:M.map((s,t)=>{const a=s.datetime.split("_"),c=a[0],o=a[1]?a[1].replace(/-/g,":"):"",h=s.filename.includes("manual"),b=s.filename.includes("safety");let p="Автосохранение",r="bg-blue-500/20 text-blue-400 border-blue-500/20";return h?(p="Ручной бэкап",r="bg-brand-lilac/20 text-brand-lilac border-brand-lilac/20"):b&&(p="Защитный бэкап",r="bg-yellow-500/20 text-yellow-400 border-yellow-500/20"),e.jsxs("div",{className:"bg-black/20 p-8 rounded-[32px] border border-white/5 hover:border-white/10 transition-colors flex flex-col md:flex-row md:items-center justify-between gap-6",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("span",{className:`text-[9px] px-3 py-1 rounded-full uppercase font-black tracking-widest border ${r}`,children:p}),e.jsxs("span",{className:"text-xs text-white/40",children:["Размер: ",(s.size/1024).toFixed(1)," KB"]}
1)]}),e.jsxs("h3",{className:"text-xl font-display text-white",children:[c," в ",o]}),e.jsxs("div",{className:"flex flex-wrap gap-x-6 gap-y-2 text-[11px] text-white/40 font-mono",children:[e.jsxs("span",{children:["Услуг: ",s.summary.services]}),e.jsxs("span",{children:["Акций: ",s.summary.promotions]}),e.jsxs("span",{children:["Врачей: ",s.summary.specialists]}),e.jsxs("span",{children:["Кейсов: ",s.summary.caseStudies]}),e.jsxs("span",{children:["Вопросов: ",s.summary.faqs]})]})]}),e.jsx("div",{className:"flex items-center gap-4",children:e.jsx("button",{onClick:()=>pe(s.filename),className:"bg-brand-lilac text-brand-emerald h-12 px-6 rounded-xl flex items-center space-x-2 hover:bg-white transition-all font-bold text-xs uppercase tracking-wider active:scale-95",children:e.jsx("span",{children:"Восстановить версию"})})})]},s.filename)})})]}),e.jsx("div",{className:"p-10 bg-brand-emerald/10 border border-brand-lilac/20 rounded-[40px]",children:e.jsxs("div",{className:"flex items-start space-x-6 text-brand-lilac",children:[e.jsx($,{className:"w-10 h-10 shrink-0"}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-xl font-display italic mb-2",children:"Надёжность и безопасность"}),e.jsx("p",{className:"text-sm text-white/60 leading-relaxed max-w-3xl",children:"Каждый раз, когда вы нажимаете кнопку «Сохранить всё» в любом разделе админки, система автоматически делает резервную копию. Перед восстановлением любой старой версии также автоматически создается защитная копия текущего состояния, так что вы защищены от потери свежих правок."})]})]})})]}):l==="seo"?e.jsxs("div",{className:"space-y-12",children:[e.jsxs("div",{className:"bg-white/5 border border-white/5 rounded-[48px] p-12",children:[e.jsx("h2",{className:"text-3xl font-display italic mb-10",children:"Управление мета-тегами"}),e.jsx("div",{className:"grid grid-cols-1 gap-10",children:Object.keys(i.seo||{}).map(s=>e.jsxs("div",{className:"bg-black/20 p-8 rounded-[32px] border border-white/5",children:[e.jsxs("h3",{className:"text-xl font-display italic text-brand-lilac mb-8 uppercase tracking-widest bg-brand-lilac/10 inline-block px-4 py-1 rounded-lg",children:["Страница: ",s==="home"?"Главная":s==="services"?"Услуги":s==="specialists"?"Команда":s]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-widest text-white/40 font-bold block mb-3",children:"SEO Title (до 60 симв.)"}),e.jsx("input",{value:i.seo[s].title,onChange:t=>{const a={...i.seo};a[s].title=t.target.value,m({...i,seo:a}),f(!0)},className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-4 text-sm focus:border-brand-lilac outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-widest text-white/40 font-bold block mb-3",children:"Meta Description (до 160 симв.)"}),e.jsx("textarea",{rows:2,value:i.seo[s].description,onChange:t=>{const a={...i.seo};a[s].description=t.target.value,m({...i,seo:a}),f(!0)},className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-4 text-sm focus:border-brand-lilac outline-none resize-none"})]})]})]},s))})]}),e.jsx("div",{className:"p-10 bg-brand-emerald/10 border border-brand-lilac/20 rounded-[40px]",children:e.jsxs("div",{className:"flex items-start space-x-6 text-brand-lilac",children:[e.jsx(k,{className:"w-10 h-10 shrink-0"}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-xl font-display italic mb-2",children:"Важно для продвижения"}),e.jsx("p",{className:"text-sm text-white/60 leading-relaxed max-w-3xl",children:"Правильные Title и Description напрямую влияют на позицию сайта в Google и Яндекс. Старайтесь использовать ключевые слова (косметология, эпиляция, Москва) в начале предложений."})]})]})})]}):l==="footer"?e.jsxs("div",{className:"space-y-12",children:[e.jsxs("div",{className:"bg-white/5 border border-white/5 rounded-[48px] p-12",children:[e.jsx("h2",{className:"text-3xl font-display italic mb-10",children:"Популярные ссылки в подвале"}),e.jsxs("div",{className:"space-y-6",children:[(Array.isArray((_=i.footer)==null?void 0:_.popularLinks)?i.footer.popularLinks:[]).map((s,t)=>e.jsxs("div",{className:"grid grid-cols-12 gap-6 items-center bg-black/20 p-6 rounded-3xl border border-white/5",children:[e.jsxs("div",{className:"col-span-5",children:[e.jsx("label",{className:"text-[9px] uppercase tracking-widest text-brand-lilac font-bold block mb-2",children:"Название ссылки"}),e.jsx("input",{value:s.label,onChange:a=>{const c=i.footer.popularLinks.map((o,h)=>h===t?{...o,label:a.target.value}:o);m({...i,footer:{...i.footer,popularLinks:c}}),f(!0)},className:"w-full bg-black/40 border border-white/10 rounded-xl px-4 py-3 text-sm focus:border-brand-lilac outline-none"})]}),e.jsxs("div",{className:"col-span-6",children:[e.jsx("label",{className:"text-[9px] uppercase tracking-widest text-brand-lilac font-bold block mb-2",children:"Путь (URL)"}),e.jsx("input",{value:s.url,onChange:a=>{const c=i.footer.popularLinks.map((o,h)=>h===t?{...o,url:a.target.value}:o);m({...i,footer:{...i.footer,popularLinks:c}}),f(!0)},className:"w-full bg-black/40 border border-white/10 rounded-xl px-4 py-3 text-sm focus:border-brand-lilac outline-none"})]}),e.jsx("div",{className:"col-span-1 flex justify-end",children:e.jsx("button",{onClick:()=>{const a=i.footer.popularLinks.filter((c,o)=>o!==t);m({...i,footer:{...i.footer,popularLinks:a}}),f(!0)},className:"p-3 text-white/10 hover:text-red-400 transition-colors",children:e.jsx(le,{className:"w-5 h-5"})})})]},t)),e.jsx("button",{onClick:()=>{const s=[...i.footer.popularLinks,{label:"Новая ссылка",url:"/services"}];m({...i,footer:{...i.footer,popularLinks:s}}),f(!0)},className:"w-full py-6 border-2 border-dashed border-white/5 rounded-3xl text-white/20 hover:text-brand-lilac hover:border-brand-lilac/30 transition-all uppercase tracking-widest font-bold text-[10px]",children:"+ Добавить ссылку в подвал"})]})]}),e.jsx("div",{className:"p-10 bg-brand-lilac/5 border border-brand-lilac/10 rounded-[40px]",children:e.jsxs("div",{className:"flex items-start space-x-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-brand-lilac/20 flex items-center justify-center text-brand-lilac shrink-0",children:e.jsx($,{className:"w-6 h-6"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-display italic text-brand-lilac mb-2",children:"Защита конфигурации"}),e.jsx("p",{className:"text-sm text-white/40 leading-relaxed max-w-2xl",children:"Остальные ссылки (Меню, Локация, Соцсети) в данной версии CMS зафиксированы для сохранения целостности SEO-структуры и дизайна. Если вам нужно изменить адрес клиники или ссылки на Instagram/Telegram — обратитесь к Архитектору."})]})]})})]}):e.jsxs("div",{className:"space-y-6",children:[V.map((s,t)=>{var o,h,b,p;const a=i[l].findIndex(r=>
1r.id===s.id||l==="faqs"&&r.q===s.q),c=s.id||`faq-${t}`;return e.jsxs(A.div,{layout:!0,className:`rounded-[32px] border transition-all duration-700 overflow-hidden ${N===c?"bg-white/10 border-brand-lilac/40 shadow-3xl":"bg-white/5 border-white/5 hover:border-white/15"}`,children:[e.jsxs("div",{onClick:()=>E(N===c?null:c),className:"px-10 py-7 flex items-center justify-between cursor-pointer group",children:[e.jsxs("div",{className:"flex items-center space-x-8",children:[e.jsx("div",{className:"w-16 h-16 rounded-2xl bg-[#0a0a0a] overflow-hidden flex items-center justify-center border border-white/10",children:s.image||s.after?e.jsx("img",{src:L(s.image||s.after),className:"w-full h-full object-cover opacity-80",alt:"",onError:()=>G(l,a,s.image?"image":"after")}):e.jsx(U,{className:"w-6 h-6 text-white/10"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("h3",{className:`text-xl font-medium transition-colors italic tracking-tight ${s.isActive===!1?"text-white/20":"group-hover:text-brand-lilac"}`,children:s.title||s.name||s.q}),s.isActive===!1&&e.jsx("span",{className:"text-[8px] bg-red-500/20 text-red-400 px-3 py-1 rounded-full uppercase font-black tracking-tighter",children:"Скрыто"})]}),e.jsxs("div",{className:"flex items-center space-x-6 mt-2",children:[e.jsx("span",{className:"text-[10px] text-white/30 uppercase tracking-[0.2em] font-black",children:s.price||s.tag||s.role||(s.a?"FAQ":"")}),s.isPromo&&e.jsx("span",{className:"bg-brand-lilac text-brand-emerald text-[8px] px-3 py-1 rounded-full font-black uppercase tracking-tighter shadow-lg shadow-brand-lilac/20",children:"Active Promo"}),s.category&&e.jsx("span",{className:"text-[9px] px-3 py-1 bg-white/5 rounded-lg text-white/40 uppercase font-black",children:s.category})]})]})]}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs("div",{className:"flex items-center space-x-2 mr-6 bg-black/40 p-2 rounded-2xl border border-white/5",children:[e.jsxs("div",{className:`flex flex-col space-y-1 ${S?"opacity-20 pointer-events-none":""}`,children:[e.jsx("button",{onClick:r=>{r.stopPropagation(),Q(l,a,"up")},disabled:a===0,className:"p-2 text-white/20 hover:text-brand-lilac disabled:opacity-0 transition-all rounded-xl hover:bg-white/5",title:"Поднять выше",children:e.jsx(ye,{className:"w-5 h-5"})}),e.jsx("button",{onClick:r=>{r.stopPropagation(),Q(l,a,"down")},disabled:a===i[l].length-1,className:"p-2 text-white/20 hover:text-brand-lilac disabled:opacity-0 transition-all rounded-xl hover:bg-white/5",title:"Опустить ниже",children:e.jsx(Se,{className:"w-5 h-5"})})]}),e.jsx(se,{className:"w-4 h-4 text-white/5 rotate-90"})]}),e.jsx("button",{onClick:r=>{if(r.stopPropagation(),confirm("Удалить этот элемент навсегда?")){const n=[...i[l]];n.splice(a,1),m({...i,[l]:n}),f(!0)}},className:"p-3 text-white/10 hover:text-red-400 transition-all rounded-xl hover:bg-red-500/10 active:scale-95",children:e.jsx(le,{className:"w-5 h-5"})}),e.jsx("div",{className:`p-2 rounded-full transition-all duration-500 ${N===c?"bg-brand-lilac rotate-180":"bg-white/5"}`,children:N===c?e.jsx(re,{className:"w-5 h-5 text-brand-emerald"}):e.jsx(Ce,{className:"w-5 h-5 text-white/20"})}),e.jsx("button",{onClick:r=>{r.stopPropagation(),d(l,a,"isActive",!s.isActive)},className:`ml-4 px-4 py-2 rounded-xl text-[9px] uppercase font-black tracking-widest transition-all ${s.isActive!==!1?"bg-brand-emerald text-brand-lilac hover:bg-white":"bg-white/10 text-white/30 hover:bg-red-500/20 hover:text-red-400"}`,children:s.isActive!==!1?"On":"Off"})]})]}),e.jsx(X,{children:N===c&&e.jsx(A.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"px-10 pb-12 pt-4",children:e.jsxs("div",{className:"grid grid-cols-12 gap-12 border-t border-white/5 pt-12",children:[e.jsxs("div",{className:"col-span-8 space-y-8",children:[l==="faqs"?e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Вопрос"}),e.jsx("input",{value:s.q,onChange:r=>d("faqs",a,"q",r.target.value),className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac outline-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Ответ"}),e.jsx("textarea",{rows:6,value:s.a,onChange:r=>d("faqs",a,"a",r.target.value),className:"w-full bg-black/40 border border-white/10 rounded-3xl px-8 py-7 text-sm focus:border-brand-lilac outline-none leading-relaxed"})]})]}):e.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Название / Заголовок"}),e.jsx("input",{value:s.title||s.name,onChange:r=>d(l,a,s.title!==void 0?"title":"name",r.target.value),className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac focus:bg-black/60 outline-none transition-all placeholder:text-white/10",placeholder:"Напр. Lumecca лицо"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:l==="caseStudies"?"Аппарат / Зона":l==="specialists"?"Специализация (должность)":"Подпись / Цена"}),e.jsx("input",{value:s.price||s.tag||s.role||s.category,onChange:r=>d(l,a,s.price!==void 0?"price":s.tag!==void 0?"tag":s.role!==void 0?"role":"category",r.target.value),className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac focus:bg-black/60 outline-none transition-all",placeholder:l==="specialists"?"Напр. Врач-косметолог":""})]})]}),l==="caseStudies"&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-8 p-6 bg-black/20 rounded-[24px] border border-white/5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Подпись 1 (Левая плашка)"}),e.jsx("input",{value:((o=s.statsLabels)==null?void 0:o[0])||"",onChange:r=>{const n=[...s.statsLabels||[]];n[0]=r.target.value,d("caseStudies",a,"statsLabels",n)},className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac focus:bg-black/60 outline-none transition-all placeholder:text-white/10",placeholder:"Напр. Показатель"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Значение 1 (Левая плашка)"}),e.jsx("input",{value:((h=s.stats)==null?void 0:h[0])||"",onChange:r=>{const n=[...s.stats||[]];n[0]=r.target.value,d("caseStudies",a,"stats",n)},className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac focus:bg-black/60 outline-none transition-all placeholder:text-white/10",placeholder:"Напр. 12 единиц"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-8 p-6 bg-black/20 rounded-[24px] border border-white/5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Подпись 2 (Правая плашка)"}),e.jsx("input",{value:((b=s.statsLabels)==null?void 0:b[1])||"",onChange:r=>{const n=[...s.statsLabels||[]];n[1]=r.target.value,d("caseStudies",a,"statsLabels",n)},className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac focus:bg-black/60 outline-none transition-all placeholder:text-white/10",placeholder:"Напр. Показатель"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Значение 2 (Правая плашка)"}),e.jsx("input",{value:((p=s.stats)==null?void 0:p[1])||"",onChange:r=>{const n=[...s.stats||[]];n[1]=r.target.value,d("caseStudies",a,"stats",n)},className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac focus:bg-black/60 outline-none transition-all placeholder:text-white/10",placeholder:"Напр. Эффект через 7 дней"})]})]})]}),l==="caseStudies"&&e.jsxs("div",{className:"grid grid-cols-2 gap-8 p-6 bg-black/20 rounded-[24px] border border-white/5 mt-8",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Текст кнопки CTA"}),e.jsx("input",{value:s.ctaText||"",onChange:r=>d("caseStudies",a,"ctaText",r.target.value),className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac focus:bg-black/60 outline-none transition-all placeholder:text-white/10",placeholder:"Стать следующим героем"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Ссылка кнопки CTA"}),e.jsx("input",{value:s.ctaLink||"",onChange:r=>d("caseStudies",a,"ctaLink",r.target.value),className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac focus:bg-black/60 outline-none transition-all placeholder:text-white/10",placeholder:"https://n1254698.yclients.ru/..."})]})]}),l==="specialists"&&e.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Стаж работы (Seniority)"}),e.jsx("input",{value:s.experience||"",onChange:r=>d("specialists",a,"experience",r.target.value),className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac focus:bg-black/60 outline-none transition-all",placeholder:"Напр. 12 лет"})]}),e.jsx("div",{className:"flex flex-col justify-end pb-4",children:e.jsx("p",{className:"text-[9px] text-white/20 italic italic italic italic",children:"Это поле отображается в карточке специалиста как «Стаж: ...»"})})]}),l==="services"&&e.jsxs("div",{className:"flex items-center space-x-12 p-8 bg-black/20 rounded-[32px] border border-white/5",children:[e.jsxs("label",{className:"flex items-center space-x-4 cursor-pointer group",children:[e.jsx("input",{type:"checkbox",checked:!!s.isPromo,onChange:r=>d("services",a,"isPromo",r.target.checked),className:"hidden"}),e.jsx("div",{className:`w-14 h-7 rounded-full transition-all relative ${s.isPromo?"bg-brand-lilac":"bg-white/10"}`,children:e.jsx("div",{className:`absolute top-1 w-5 h-5 rounded-full bg-brand-emerald shadow-sm transition-all ${s.isPromo?"left-8":"left-1"}`})}),e.jsx("span",{className:"text-[10px] uppercase font-black tracking-[0.2em] text-white/50 group-hover:text-white transition-colors",children:"Пометить как АКЦИЮ"})]}),s.isPromo&&e.jsxs("div",{className:"flex-grow",children:[e.jsx("label",{className:"text-[9px] uppercase tracking-widest font-black text-brand-lilac block mb-3",children:"Старая цена (для зачеркивания)"}),e.jsx("input",{placeholder:"Напр. 15 000 ₽",value:s.originalPrice||"",onChange:r=>d("services",a,"originalPrice",r.target.value),className:"w-full bg-black/20 border border-white/10 rounded-xl px-5 py-3 text-xs focus:border-brand-lilac outline-none"})]})]}),l==="promotions"&&e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex items-center space-x-12 p-8 bg-black/20 rounded-[32px] border border-white/5",children:[e.jsxs("label",{className:"flex items-center space-x-4 cursor-pointer group",children:[e.jsx("input",{type:"checkbox",checked:!!s.showOnHome,onChange:r=>d("promotions",a,"showOnHome",r.target.checked),className:"hidden"}),e.jsx("div",{className:`w-14 h-7 rounded-full transition-all relative ${s.showOnHome?"bg-brand-lilac":"bg-white/10"}`,children:e.jsx("div",{className:`absolute top-1 w-5 h-5 rounded-full bg-brand-emerald shadow-sm transition-all ${s.showOnHome?"left-8":"left-1"}`})}),e.jsx("span",{className:"text-[10px] uppercase font-black tracking-[0.2em] text-white/50 group-hover:text-white transition-colors",children:"Вывести на главную"})]}),e.jsx("p",{className:"text-[9px] text-white/20 italic",children:"Если включено, акция появится в блоке «Привилегии» на главной странице."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Особенности / Преимущества (через запятую)"}),e.jsx("input",{value:Array.isArray(s.features)?s.features.join(", "):s.features||"",onChange:r=>d("promotions",a,"features",r.target.value.split(",").map(n=>
1n.trim()).filter(Boolean)),className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac outline-none transition-all",placeholder:"Напр. -20% на первую процедуру, Врачебный контроль, Без боли"}),e.jsx("p",{className:"mt-4 text-[9px] text-white/30 italic",children:"Эти пункты отображаются внутри карточки акции при наведении."})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Описание / Контент"}),e.jsx("textarea",{rows:8,value:Array.isArray(s.description)?s.description.join(`
2
3`):s.description||s.desc||"",onChange:r=>{const n=r.target.value;Array.isArray(s.description)?d(l,a,"description",n.split(`
4
5`).filter(g=>g.trim())):d(l,a,s.desc!==void 0?"desc":"description",n)},className:"w-full bg-black/40 border border-white/10 rounded-3xl px-8 py-7 text-sm focus:border-brand-lilac focus:bg-black/60 outline-none transition-all leading-relaxed",placeholder:"Текст для сайта. Для новых абзацев используйте двойной Enter."})]})]}),e.jsxs("div",{className:"col-span-4 space-y-10",children:[l==="caseStudies"?e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Фото ДО"}),e.jsxs("div",{className:"aspect-[4/3] rounded-3xl bg-black overflow-hidden border border-white/10 shadow-inner group/asset relative",children:[s.before?e.jsx("img",{src:L(s.before),className:"w-full h-full object-cover group-hover/asset:scale-105 transition-transform duration-700",alt:""}):e.jsx("div",{className:"h-full flex items-center justify-center text-white/10 italic text-[10px]",children:"Пусто"}),e.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-3 bg-black/80 backdrop-blur-md flex items-center justify-between gap-4",children:[e.jsx("input",{value:s.before||"",onChange:r=>d(l,a,"before",r.target.value),className:"flex-1 bg-transparent text-[9px] outline-none text-white/50 focus:text-white",placeholder:"/images/..."}),e.jsxs("label",{className:"cursor-pointer shrink-0 bg-brand-lilac text-brand-emerald p-1.5 rounded-lg hover:bg-white transition-all transform active:scale-95 shadow-lg",children:[e.jsx(P,{className:"w-4 h-4"}),e.jsx("input",{type:"file",className:"hidden",accept:"image/*",onChange:r=>{var g;const n=(g=r.target.files)==null?void 0:g[0];n&&D(l,a,"before",n)}})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Фото ПОСЛЕ"}),e.jsxs("div",{className:"aspect-[4/3] rounded-3xl bg-black overflow-hidden border border-white/10 shadow-inner group/asset relative",children:[s.after?e.jsx("img",{src:L(s.after),className:"w-full h-full object-cover group-hover/asset:scale-105 transition-transform duration-700",alt:""}):e.jsx("div",{className:"h-full flex items-center justify-center text-white/10 italic text-[10px]",children:"Пусто"}),e.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-3 bg-black/80 backdrop-blur-md flex items-center justify-between gap-4",children:[e.jsx("input",{value:s.after||"",onChange:r=>d(l,a,"after",r.target.value),className:"flex-1 bg-transparent text-[9px] outline-none text-white/50 focus:text-white",placeholder:"/images/..."}),e.jsxs("label",{className:"cursor-pointer shrink-0 bg-brand-lilac text-brand-emerald p-1.5 rounded-lg hover:bg-white transition-all transform active:scale-95 shadow-lg",children:[e.jsx(P,{className:"w-4 h-4"}),e.jsx("input",{type:"file",className:"hidden",accept:"image/*",onChange:r=>{var g;const n=(g=r.target.files)==null?void 0:g[0];n&&D(l,a,"after",n)}})]})]})]})]})]}):e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Изображение (URL)"}),e.jsxs("div",{className:"aspect-[4/5] rounded-[32px] bg-black overflow-hidden border border-white/10 shadow-inner group/asset relative",children:[s.image?oe[B(l,a,"image")]?e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-white/20 text-[10px] gap-3 px-6 text-center",children:[e.jsx(k,{className:"w-6 h-6 text-red-400/80"}),e.jsx("div",{className:"uppercase tracking-widest font-bold text-[9px] text-white/40",children:"Превью не загрузилось"}),e.jsxs("div",{className:"text-white/30 leading-relaxed",children:["Проверьте путь (должен начинаться с ",e.jsx("span",{className:"text-white/60",children:"/images/..."}),") или загрузите файл заново."]})]}):e.jsx("img",{src:L(s.image),className:"w-full h-full object-cover group-hover/asset:scale-105 transition-transform duration-700",alt:"Preview",onError:()=>G(l,a,"image")}):e.jsx("div",{className:"h-full flex flex-col items-center justify-center text-white/10 italic text-[10px]",children:"Пусто"}),e.jsxs("div",{className:"absolute bottom-6 left-6 right-6",children:[e.jsxs("div",{className:"relative group/input flex items-center gap-3",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx("input",{value:s.image||"",onChange:r=>d(l,a,"image",r.target.value),className:"w-full bg-black/60 backdrop-blur-xl border border-white/10 rounded-2xl px-5 py-4 text-[10px] outline-none transition-all focus:border-brand-lilac",placeholder:"/images/..."}),e.jsx(ee,{className:"absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 text-white/20"})]}),e.jsxs("label",{className:"cursor-pointer h-14 w-14 flex items-center justify-center shrink-0 bg-brand-lilac text-brand-emerald rounded-2xl hover:bg-white transition-all transform active:scale-95 shadow-lg",children:[e.jsx(P,{className:"w-6 h-6"}),e.jsx("input",{type:"file",className:"hidden",accept:"image/*",onChange:r=>{var g;const n=(g=r.target.files)==null?void 0:g[0];n&&D(l,a,"image",n)}})]})]}),e.jsx("p",{className:"mt-4 text-[8px] text-white/30 uppercase tracking-[0.2em] text-center font-bold",children:"Нажмите + для загрузки фото"})]})]})]}),l==="services"&&e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] uppercase tracking-[0.3em] font-black text-brand-lilac block mb-4",children:"Категория"}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{value:s.category,onChange:r=>d("services",a,"category",r.target.value),className:"w-full bg-black/40 border border-white/10 rounded-2xl px-6 py-5 text-sm focus:border-brand-lilac outline-none appearance-none cursor-pointer",children:[e.jsx("option",{value:"laser",children:"Эпиляция"}),e.jsx("option",{value:"hardware",children:"Аппараты"}),e.jsx("option",{value:"injection",children:"Инъекции"}),e.jsx("option",{value:"body",children:"Тело"}),e.jsx("option",{value:"aesthetic",children:"Эстетика"})]}),e.jsx(re,{className:"absolute right-6 top-1/2 -translate-y-1/2 w-5 h-5 text-white/20 pointer-events-none"})]})]})]})]})})})]},c)}),V.length===0&&e.jsxs("div",{className:"py-20 text-center border-2 border-dashed border-white/10 rounded-[48px]",children:[e.jsx(k,{className:"w-16 h-16 text-white/10 mx-auto mb-6"}),e.jsxs("p",{className:"text-white/30 font-display text-xl italic",children:["По запросу «",S,"» ничего не найдено"]})]})]})]})]}):e.jsxs("div",{className:"min-h-screen bg-[#050505] flex flex-col items-center justify-center text-white space-y-8",children:[I,e.jsx("div",{className:"w-16 h-16 border-2 border-brand-lilac border-t-transparent roun
5ded-full animate-spin"}),e.jsx("span",{className:"font-display text-2xl animate-pulse italic",children:"Синхронизация с облаком..."})]}):e.jsxs("div",{className:"min-h-screen bg-[#050505] flex items-center justify-center p-6 font-sans",children:[I,e.jsxs(A.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white/5 backdrop-blur-3xl border border-white/10 p-12 rounded-[48px] w-full max-w-md shadow-2xl relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-transparent via-brand-lilac to-transparent"}),e.jsx("div",{className:"w-20 h-20 bg-brand-emerald/20 border border-brand-lilac/30 rounded-3xl flex items-center justify-center mb-10 mx-auto",children:e.jsx($,{className:"text-brand-lilac w-10 h-10"})}),e.jsxs("h1",{className:"text-3xl font-display text-white mb-3 text-center italic tracking-tight",children:["BELYOURS ",e.jsx("span",{className:"text-brand-lilac",children:"Admin"})]}),e.jsx("p",{className:"text-white/30 text-[10px] uppercase tracking-[0.4em] text-center mb-10 font-bold",children:"Secure Content Management System"}),e.jsxs("form",{onSubmit:be,className:"space-y-6",children:[e.jsx("div",{className:"relative group",children:e.jsx("input",{type:"password",placeholder:"Введите ключ доступа",value:O,onChange:s=>ce(s.target.value),className:"w-full bg-white/5 border border-white/10 rounded-2xl px-6 py-5 text-white focus:outline-none focus:border-brand-lilac transition-all placeholder:text-white/20 text-center text-lg tracking-widest"})}),j.type==="error"&&j.msg?e.jsx("div",{className:"text-center text-[11px] text-red-300/90 font-bold tracking-tight",children:j.msg}):null,e.jsxs("button",{disabled:v||O.trim().length===0,className:"w-full bg-brand-lilac text-brand-emerald font-black py-5 rounded-2xl hover:bg-white hover:scale-[1.02] transition-all transform active:scale-95 shadow-xl shadow-brand-lilac/10 disabled:opacity-60 disabled:hover:scale-100 disabled:cursor-not-allowed flex items-center justify-center gap-3",children:[v?e.jsx(R,{className:"w-5 h-5 animate-spin"}):null,e.jsx("span",{children:v?"Проверяем доступ…":"Войти в систему"})]})]})]})]})};export{Pe 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.