PageSourceSearch

https://markethacker.ru/assets/reviews-analysis-C6xsjZT_.js

js markethacker.ru collected 2026-10-02 02:07:25 UTC 80,722 bytes, 14 lines download raw bytes

1import{k,h as i,m as e,q as F,Y as X,w as te,X as w,D as M,K as ce}from"./index-BhuuQD9y.js";import{S as q}from"./star-By9Bx_5C.js";import{M as I}from"./message-square-BASd6dNi.js";import{I as re}from"./image-BuQU88l3.js";import{C as N}from"./check-DVd4CU5_.js";import{P as V}from"./package-oNVqdsaN.js";import{C as R,B as ae,U as xe}from"./users-BZHtkdmC.js";import{Z as L}from"./zap-Dah-fsUc.js";import{A as $}from"./arrow-right-DfMwkIJk.js";import{W as A}from"./wand-sparkles-DN63WJyN.js";import{P as H}from"./play-D2Qj2RI3.js";import{P as W}from"./plus-BeoQ3l_S.js";import{C as de}from"./clock-BZP87GYR.js";import{L as Z}from"./loader-circle-CVxTpzp4.js";import{U as B}from"./upload-D5WT3qaW.js";const me=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],D=k("file-search",me);const pe=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Q=k("file-text",pe);const ue=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],le=k("history",ue);const be=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],G=k("list-plus",be);const he=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ge=k("pencil",he);const fe=[["rect",{width:"12",height:"20",x:"6",y:"2",rx:"2",key:"1oxtiu"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],je=k("ratio",fe);const Ne=[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}],["path",{d:"M17 14V2",key:"8ymqnk"}]],ne=k("thumbs-down",Ne);const ye=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],K=k("thumbs-up",ye),ve=[{stars:5,pct:78},{stars:4,pct:12},{stars:3,pct:6},{stars:2,pct:3},{stars:1,pct:1}],we=[{label:"С фото",value:23.9,color:"var(--lime)"},{label:"С видео",value:12.2,color:"var(--matrix)"},{label:"С текстом",value:9.2,color:"var(--pulse)"}],ke=[{title:"Посадка по фигуре",note:"Сидит как влитая, подчёркивает силуэт",pct:65,count:118},{title:"Соответствие росту",note:"На рост 170 длина идеальная",pct:78,count:105},{title:"Эластичность (стрейч)",note:"Тянется, не сковывает движения",pct:71,count:92},{title:"Комфорт пояса",note:"Пояс не давит, не скручивается",pct:61,count:74},{title:"Качество ткани",note:"Плотная, не просвечивает",pct:59,count:68},{title:"Размер соответствует заявленному",note:"Брать свой размер",pct:76,count:61},{title:"Цвет как на фото",note:"Оттенок совпал с карточкой",pct:54,count:47}],Ce=[{title:"Плохое качество пошива",note:"Кривые швы, торчащие нитки",pct:46,count:71},{title:"Ткань слишком тонкая",note:"Просвечивает на светлом",pct:41,count:64},{title:"Запах после стирки",note:"Химический запах не выветривается",pct:33,count:52},{title:"Катышки после стирки",note:"Появл
1яются на 2–3 стирке",pct:31,count:44},{title:"Размер маломерит",note:"Пришлось брать на размер больше",pct:28,count:39},{title:"Долгая доставка / брак упаковки",note:"Пришло мятым, без пакета",pct:19,count:26}],Se=[{title:"Подбор размера по росту и параметрам",pct:30,count:45,sample:"Мне 168 см, 60 кг — какой размер брать?"},{title:"Длина внутреннего шва",pct:25,count:38,sample:"Какая длина по внутреннему шву на 46 размере?"},{title:"Просвечивает ли ткань",pct:20,count:30,sample:"Не просвечивает при наклоне?"},{title:"Ширина пояса и резинка",pct:15,count:22,sample:"Пояс высокий? Не скатывается?"},{title:"Состав ткани",pct:12,count:18,sample:"Сколько процентов хлопка?"},{title:"Наличие карманов",pct:8,count:12,sample:"Карманы есть, они функциональные?"}],Fe=[{title:"Размер и посадка",items:["Таблица размеров с ростом и обхватами","Реальные замеры модели","Фото «до/после» на разных типах фигуры"]},{title:"Ростовка",items:["Кадр модели с указанием роста","Длина по внутреннему шву","Инфографика «на рост 160/170/180»"]},{title:"Ткань и уход",items:["Макросъёмка плотности","Тест на просвет","Иконки ухода: стирка 30°, без отбеливателя"]},{title:"Особенности модели",items:["Высокий пояс","Плоские швы","Незаметность под одеждой"]},{title:"Цвет и палитра",items:["Показать все цвета в одном кадре","Съёмка при дневном свете","Чёрный — отдельный кадр"]},{title:"Топ возражений",items:["Ответ на «просвечивает»","Ответ на «катышки»","Ответ на «маломерит»"]}],Ae=[{group:"Производство",rows:[{text:"Усилить контроль качества пошива — кривые швы в 46% негатива",pct:46,count:71},{text:"Заменить нить/оверлок, добавить контроль на выходе партии",pct:41,count:64},{text:"Проверить плотность полотна, поднять на 10–15 г/м²",pct:33,count:52}]},{group:"Упаковка",rows:[{text:"Индивидуальный пакет с зип-замком вместо общей упаковки",pct:19,count:26},{text:"Вкладыш с инструкцией по уходу и таблицей размеров",pct:11,count:15}]},{group:"Логистика",rows:[{text:"Устранить химический запах: доп. проветривание партии на складе",pct:33,count:52},{text:"Контроль влажности при хранении",pct:9,count:12}]}],De=["Отличная посадка по фигуре","Соответствие заявленному размеру","Эластичность и комфорт пояса","Цвет совпадает с фото","Хорошее соотношение цена/качество"],Te=["Нестабильное качество пошива","Тонкая ткань на светлых цветах","Катышки после 2–3 стирок","Химический запах у новой партии","Мало ответов на вопросы в карточке"],_e=["Точная таблица размеров с ростом","Плотная непросвечивающая ткань","Пояс, который не скатывается","Комплект из 2 шт по акции"],Pe=["Добавить видео-обзор на модели 170 см","Ответить на топ-6 вопросов прямо в описании","Расширить размерную сетку до 56","Комплектные предложения (2 шт со скидкой)"];function gs(){const[l,r]=i.useState("general");return e.jsx("div",{className:"min-h-screen bg-background text-foreground",children:e.jsxs("main",{className:"mx-auto max-w-[1240px] space-y-3 px-4 py-6",children:[e.jsx("div",{className:"flex flex-wrap items-start justify-between gap-3",children:e.jsxs("div",{children:[e.jsx("div",{className:"text-[11px] uppercase tracking-[0.18em] text-muted-foreground",children:"ИИ-анализ отзывов и вопросов"}),e.jsxs("h1",{className:"mt-1 flex items-center gap-2 text-2xl font-bold",children:[e.jsx(F,{className:"h-5 w-5 text-primary",style:{filter:"drop-shadow(0 0 6px #CCFF00)"}}),"Анализ лонгслив женский",e.jsx(ge,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-md border border-border bg-card px-2 py-1 text-foreground",children:["Артик
1ул WB: ",e.jsx("b",{className:"font-mono text-primary",children:"84"})]}),e.jsxs("span",{children:["Отзывов: ",e.jsx("b",{className:"text-foreground",children:"123"})]}),e.jsxs("span",{children:["Вопросов: ",e.jsx("b",{className:"text-foreground",children:"22"})]})]})]})}),e.jsx("div",{className:"sticky top-0 z-30 flex flex-wrap gap-1 rounded-xl border border-border bg-card p-1 text-sm shadow-[0_6px_20px_-12px_rgba(0,0,0,.6)]",children:[["general","Общий анализ"],["step","Пошаговый анализ"],["actions","Действия с карточкой"]].map(([t,d])=>e.jsx("button",{onClick:()=>r(t),className:`rounded-lg px-4 py-2 font-medium transition ${l===t?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"}`,children:d},t))}),l==="actions"?e.jsx(Me,{onOpenReport:()=>r("general")}):l==="step"?e.jsx(P,{children:e.jsx("div",{className:"p-6 text-sm text-muted-foreground",children:"Пошаговый анализ: разбор по каждому отзыву и вопросу с цитатами и присвоенным тегом. Раздел в разработке."})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-3 lg:grid-cols-[minmax(0,340px)_minmax(0,1fr)]",children:[e.jsx("div",{className:"space-y-3",children:e.jsx(P,{children:e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-end justify-between",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:"Рейтинг"}),e.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[e.jsx(q,{className:"h-7 w-7 fill-primary text-primary",style:{filter:"drop-shadow(0 0 8px #CCFF00)"}}),e.jsx("span",{className:"text-4xl font-bold leading-none",children:"4,6"})]}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:"Средний за период"})]}),e.jsx("div",{className:"w-[150px] space-y-1",children:ve.map(t=>e.jsxs("div",{className:"flex items-center gap-1.5 text-[11px]",children:[e.jsxs("span",{className:"flex w-6 items-center gap-0.5 text-muted-foreground",children:[t.stars,e.jsx(q,{className:"h-2.5 w-2.5 fill-primary text-primary"})]}),e.jsx(_,{pct:t.pct,color:t.stars>=4?"var(--lime)":t.stars===3?"var(--matrix)":"var(--pulse)"}),e.jsxs("span",{className:"w-8 text-right tabular-nums text-muted-foreground",children:[t.pct,"%"]})]},t.stars))})]}),e.jsxs("div",{className:"mt-4 space-y-3 border-t border-border pt-4",children:[e.jsx(J,{label:"На все отзывы",positive:86,neutral:0,negative:14}),e.jsx(J,{label:"На все отзывы с текстом",positive:69,neutral:10,negative:21})]}),e.jsxs("div",{className:"mt-4 border-t border-border pt-3",children:[e.jsx("div",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:"Распределение по полу"}),e.jsxs("div",{className:"mt-2 flex flex-wrap gap-2",children:[e.jsx(U,{color:"var(--lime)",children:"68 % женщины"}),e.jsx(U,{color:"var(--pulse)",children:"22 % мужчины"}),e.jsx(U,{color:"var(--slate-tech)",children:"10 % не определено"})]})]})]})})}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"rounded-xl border border-primary/40 bg-card",style:{boxShadow:"0 0 0 1px color-mix(in oklab, var(--lime) 12%, transparent) inset"},children:[e.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[e.jsx(F,{className:"h-4 w-4 text-primary",style:{filter:"drop-shadow(0 0 6px #CCFF00)"}}),e.jsx("span",{className:"text-sm font-semibold",children:"Общие рекомендации"}),e.jsx("span",{className:"ml-auto rounded-md bg-[color:var(--lime-soft)] px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider text-primary",children:"приоритет"})]}),e.jsx("ol",{className:"p-4 sm:grid sm:grid-cols-2 sm:gap-x-4 sm:gap-y-3 sm:space-y-0 space-y-3",children:["Товар имеет высокий потенциал: 78% пятизвёздочных отзывов, ключевые драйверы — посадка и эластичность. Основная зона роста — стабильность качества пошива.","Переработайте инфографику: закройте топ-6 вопросов (размер, длина шва, просвет, пояс, состав, карманы) прямо в карточке.","Сформулируйте размерную сетку с ростовкой — 30% вопросов именно про подбор размера.","Проверьте партию на химический запах и катышки — это 33% и 31% негатива соответственно."].map((t,d)=>e.jsxs("li",{className:"flex gap-2.5 text-sm text-muted-foreground",children:[e.jsx("span",{className:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-md bg-[color:var(--lime-soft)] text-[11px] font-bold text-primary",children:d+1}),e.jsx("span",{children:t})]},t))})]}),e.jsx(P,{children:e.jsxs("div",{className:"p-4",children:[e.jsx("div",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:"Структура отзывов"}),e.jsx("div",{className:"mt-3 grid gap-x-6 gap-y-2.5 sm:grid-cols-2",children:we.map(t=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between text-xs",children:[e.jsx("span",{className:"text-muted-foreground",children:t.label}),e.jsxs("span",{className:"font-semibold tabular-nums",children:[t.value,"%"]})]}),e.jsx("div",{className:"mt-1",children:e.jsx(_,{pct:t.value,color:t.color})})]},t.label))})]})})]})]}),e.jsx(v,{icon:I,title:"Анализ отзывов",defaultOpen:!0,children:e.jsxs("div",{className:"grid gap-3 p-4 pt-0 md:grid-cols-2",children:[e.jsx(Y,{title:"Позитив",icon:K,tone:"pos",rows:ke}
1),e.jsx(Y,{title:"Негатив",icon:ne,tone:"neg",rows:Ce})]})}),e.jsx(v,{icon:X,title:"Анализ вопросов",children:e.jsx("div",{className:"space-y-1.5 p-4 pt-0",children:Se.map(t=>e.jsxs("div",{className:"grid items-center gap-3 rounded-lg border border-border bg-secondary/40 px-3 py-2.5 text-sm md:grid-cols-[minmax(0,1fr)_180px_minmax(0,1.2fr)]",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(X,{className:"h-4 w-4 shrink-0 text-[color:var(--pulse)]"}),e.jsx("span",{children:t.title})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"w-10 text-xs tabular-nums text-muted-foreground",children:[t.pct,"%"]}),e.jsx(_,{pct:t.pct,color:"var(--pulse)"}),e.jsx("span",{className:"w-8 text-right text-xs tabular-nums text-muted-foreground",children:t.count})]}),e.jsxs("div",{className:"truncate text-xs italic text-muted-foreground",children:["«",t.sample,"»"]})]},t.title))})}),e.jsx(v,{icon:re,title:"Рекомендации для инфографики и rich-контента",children:e.jsx("div",{className:"grid gap-3 p-4 pt-0 md:grid-cols-3",children:Fe.map(t=>e.jsxs("div",{className:"rounded-lg border border-border bg-secondary/40 p-3",children:[e.jsx("div",{className:"text-sm font-semibold",children:t.title}),e.jsx("ul",{className:"mt-2 space-y-1.5 text-xs text-muted-foreground",children:t.items.map(d=>e.jsxs("li",{className:"flex gap-2",children:[e.jsx(N,{className:"mt-0.5 h-3 w-3 shrink-0 text-primary"}),d]},d))})]},t.title))})}),e.jsx(v,{icon:V,title:"Рекомендации по товару и упаковке",children:e.jsx("div",{className:"space-y-4 p-4 pt-0",children:Ae.map(t=>e.jsxs("div",{children:[e.jsx("div",{className:"mb-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:t.group}),e.jsx("div",{className:"space-y-1.5",children:t.rows.map(d=>e.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-secondary/40 px-3 py-2 text-sm",children:[e.jsx("span",{className:"min-w-0 flex-1",children:d.text}),e.jsxs("span",{className:"w-10 text-right text-xs tabular-nums text-muted-foreground",children:[d.pct,"%"]}),e.jsx("div",{className:"w-32",children:e.jsx(_,{pct:d.pct,color:"var(--pulse)"})}),e.jsx("span",{className:"w-8 text-right text-xs tabular-nums text-muted-foreground",children:d.count})]},d.text))})]},t.group))})}),e.jsx(v,{icon:R,title:"Итоговое резюме по товару",defaultOpen:!0,children:e.jsxs("div",{className:"grid gap-3 p-4 pt-0 md:grid-cols-2",children:[e.jsx(E,{title:"Сильные стороны",items:De,tone:"pos"}),e.jsx(E,{title:"Слабые стороны",items:Te,tone:"neg"}),e.jsx(E,{title:"Основные ожидания покупателей",items:_e,tone:"neutral"}),e.jsx(E,{title:"Потенциальные направления доработки",items:Pe,tone:"accent"})]})})]})]})})}function Me({onOpenReport:l}){const[r,t]=i.useState(!1),[d,n]=i.useState(!1),[s,m]=i.useState(!1),[x,u]=i.useState(!1),b=z-oe;return e.jsxs("div",{className:"grid gap-3 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx(Re,{}),e.jsx(P,{children:e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(F,{className:"h-4 w-4 text-primary",style:{filter:"drop-shadow(0 0 6px #CCFF00)"}}),e.jsx("span",{className:"text-sm font-bold",children:"Действия ИИ"}),e.jsxs("button",{type:"button",onClick:()=>m(!0),className:"ml-auto flex items-center gap-1.5 rounded-full border border-border px-2.5 py-1 text-[11px] font-semibold text-muted-foreground transition hover:border-primary/50 hover:text-foreground",children:[e.jsx(le,{className:"h-3 w-3"}),"История действий"]}),e.jsxs("span",{className:"flex items-center gap-1.5 rounded-full border border-primary/40 bg-primary/10 px-2.5 py-1 text-[11px] font-semibold text-primary",children:[e.jsx(L,{className:"h-3 w-3"}),b," из ",z," генераций"]})]}),e.jsxs("div",{className:"mt-3 space-y-2",children:[e.jsxs("div",{className:"rounded-xl border border-border bg-secondary/40 px-4 py-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(I,{className:"h-4 w-4 shrink-0 text-primary"}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-sm font-semibold",children:"ИИ-анализ отзывов и вопросов"}),e.jsx("span",{className:"block text-[11px] text-muted-foreground",children:"Тональность, темы, боли и вопросы покупателей"})]})]}),e.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[e.jsxs("button",{type:"button",onClick:l,className:"flex items-center gap-1.5 rounded-lg bg-primary px-3 py-1.5 text-[11px] font-bold text-primary-foreground transition hover:brightness-110",children:[e.jsx(L,{className:"h-3 w-3"}),"Разобрать сейчас"]}),e.jsxs("button",{type:"button",onClick:()=>u(!0),disabled:x,className:"flex items-center gap-1.5 rounded-lg border border-border px-3 py-1.5 text-[11px] font-semibold text-muted-foreground transition hover:border-primary/50 hover:text-foreground disabled:opacity-60",children:[x?e.jsx(N,{className:"h-3 w-3 text-primary"}):e.jsx(G,{className:"h-3 w-3"}),x?"Добавлено в группу":"В группу"]}),e.jsx("span",{className:"self-center text-[10px] text-muted-foreground",children:x?"разбор запустится в очереди · результат в истории":"отложенный разбор пакетом"})]})]}),e.jsxs("button",{type:"button",onClick:()=>n(!0),className:"flex w-full items-center gap-3 rounded-xl border border-border bg-secondary/40 px-4 py-3 text-left transition hover:border-primary/50",children:[e.jsx(D,{className:"h-4 w-4 shrink-0 text-primary"}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-sm font-semibold",children:"ИИ-аудит карточки товара"}),e.jsx("span",{className:"block text-[11px] text-muted-foreground",children:"Свой артикул + до 5 конкурентов — отчёт с рекомендациями и промтом"})]}),e.jsx($,{className:"ml-auto h-4 w-4 shrink-0 text-muted-foreground"})]}),e.jsxs("button",{type:"button",onClick:()=>t(!0),className:"flex w-full items-center gap-3 rounded-xl border border-primary/50 bg-primary/10 px-4 py-3 text-left transition hover:brightness-110",children:[e.jsx(A,{className:"h-4 w-4 shrink-0 text-primary"}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-sm font-semibold",children:"Сгенерировать карточку товара"}),e.jsx("span",{className:"block text-[11px] text-muted-foreground",children:"Фото товара, соотношение сторон, качество — до 5 изображений"})]}),e.jsx($,{className:"ml-auto h-4 w-4 shrink-0 text-muted-foreground"})]})]})]})})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(v,{icon:F,title:"Кнопка на карточке товара WB",children:e.jsx("div",{className:"p-4 pt-0",children:e.jsx(Oe,{})})}),e.jsx(v,{icon:G,title:"Окно в плагине — «ИИ-анализ отзывов и вопросов»",children:e.jsx("div",{className:"p-4 pt-0",children:e.jsx(Ye,{})})}),e.jsx(v,{icon:ae,title:"Статус над виджетом чата",children:e.jsx("div",{className:"p-4 pt-0",children:e.jsx(es,{})})})]}),r&&e.jsx(He,{onClose:()=>t(!1)}),d&&e.jsx(ze,{onClose:()=>n(!1)}),s&&e.jsx(Ee,{onClose:()=>m(!1)})]})}const Ie=[{kind:"ИИ-анализ отзывов и вопросов",icon:I,sku:"177846451",date:"13.08.2026, 13:42",status:"ready",detail
1:"482 отзыва · 96 вопросов"},{kind:"Генерация карточки товара",icon:A,sku:"177846451",date:"13.08.2026, 12:10",status:"ready",detail:"4 изображения · 3:4 · 2K"},{kind:"ИИ-аудит карточки товара",icon:D,sku:"177846451",date:"12.08.2026, 18:55",status:"ready",detail:"с 3 конкурентами · отчёт + промт"},{kind:"ИИ-анализ отзывов и вопросов",icon:I,sku:"204118736",date:"12.08.2026, 10:03",status:"queued",detail:"в группе · ожидает очереди"},{kind:"Выгрузка данных карточки",icon:M,sku:"198004512",date:"11.08.2026, 09:21",status:"ready",detail:"ZIP · 6 типов данных"},{kind:"ИИ-аудит карточки товара",icon:D,sku:"165993024",date:"10.08.2026, 16:47",status:"error",detail:"недостаточно данных по конкурентам"}],$e={ready:{label:"Готово",cls:"border-primary/40 bg-primary/10 text-primary"},queued:{label:"В очереди",cls:"border-border bg-secondary/60 text-muted-foreground"},error:{label:"Ошибка",cls:"border-destructive/40 bg-destructive/10 text-destructive"}};function Ee({onClose:l}){return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-[#0D0F12]/80 p-4 backdrop-blur-sm",onClick:l,children:e.jsxs("div",{className:"max-h-[88vh] w-full max-w-[720px] overflow-y-auto rounded-2xl border border-primary/25 bg-card shadow-2xl",onClick:r=>r.stopPropagation(),children:[e.jsxs("div",{className:"sticky top-0 flex items-center gap-2 border-b border-border bg-card px-5 py-4",children:[e.jsx(le,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm font-bold",children:"История действий"}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"результаты хранятся 90 дней"}),e.jsx("button",{onClick:l,className:"ml-auto text-muted-foreground transition hover:text-foreground",children:e.jsx(w,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"divide-y divide-border",children:Ie.map((r,t)=>{const d=$e[r.status];return e.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-5 py-3",children:[e.jsx(r.icon,{className:"h-4 w-4 shrink-0 text-primary"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-xs font-semibold",children:r.kind}),e.jsx("span",{className:"rounded border border-border bg-secondary/50 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:r.sku})]}),e.jsxs("div",{className:"mt-0.5 text-[11px] text-muted-foreground",children:[r.detail," · ",r.date]})]}),e.jsx("span",{className:`rounded-full border px-2 py-0.5 text-[10px] font-semibold ${d.cls}`,children:d.label}),e.jsxs("button",{type:"button",disabled:r.status!=="ready",className:"flex items-center gap-1.5 rounded-lg border border-border px-2.5 py-1.5 text-[11px] font-semibold text-muted-foreground transition hover:border-primary/50 hover:text-foreground disabled:opacity-30",children:[e.jsx(M,{className:"h-3 w-3"}),"Открыть"]})]},t)})})]})})}function P({children:l}){return e.jsx("div",{className:"rounded-xl border border-border bg-card",children:l})}function _({pct:l,color:r}){return e.jsx("div",{className:"h-2 min-w-0 flex-1 overflow-hidden rounded-full bg-secondary",children:e.jsx("div",{className:"h-full rounded-full",style:{width:`${Math.min(100,l)}%`,background:r}})})}function U({children:l,color:r}){return e.jsx("span",{className:"rounded-full px-2.5 py-1 text-xs font-medium",style:{color:r,background:`color-mix(in oklab, ${r} 15%, transparent)`},children:l})}function J({label:l,positive:r,neutral:t,negative:d}){return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1 flex flex-wrap items-center gap-3 text-xs text-muted-foreground",children:[e.jsx("span",{children:l}),e.jsxs("span",{className:"text-[color:var(--lime)]",children:["Позитив ",r,"%"]}),t>0&&e.jsxs("span",{children:["Нейтрально ",t,"%"]}),e.jsxs("span",{className:"text-[color:var(--pulse)]",children:["Негатив ",d,"%"]})]}),e.jsxs("div",{className:"flex h-2.5 overflow-hidden rounded-full bg-secondary",children:[e.jsx("div",{style:{width:`${r}%`,background:"var(--lime)"}}),e.jsx("div",{style:{width:`${t}%`,background:"var(--slate-tech)"}}),e.jsx("div",{style:{width:`${d}%`,background:"var(--pulse)"}})]})]})}function Y({title:l,icon:r,tone:t,rows:d}){const n=t==="pos"?"var(--lime)":"var(--pulse)";return e.jsxs("div",{className:"rounded-lg border border-border bg-secondary/30",children:[e.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-2 text-sm font-semibold",style:{color:n},children:[e.jsx(r,{className:"h-4 w-4"}),l]}),e.jsx("div",{className:"divide-y divide-border",children:d.map(s=>e.jsxs("div",{className:"flex items-center gap-3 px-3 py-2",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate text-sm",children:s.title}),e.jsx("div",{className:"truncate text-xs text-muted-foreground",children:s.note})]}),e.jsxs("span",{className:"w-9 text-right text-xs tabular-nums",style:{color:n},children:[s.pct,"%"]}),e.jsx("div",{className:"w-24",children:e.jsx(_,{pct:s.pct,color:n})}),e.jsx("span",{className:"w-8 text-right text-xs tabular-nums text-muted-foreground",children:s.count})]},s.title))})]})}function E({title:l,items:r,tone:t}){const d=t==="pos"?"var(--lime)":t==="neg"?"var(--pulse)":t==="accent"?"var(--matrix)":"var(--slate-tech)",n=t==="pos"?N:t==="neg"?w:$;return e.jsxs("div",{className:"rounded-lg border border-border bg-secondary/30 p-3",children:[e.jsx("div",{className:"text-sm font-semibold",style:{color:d},children:l}),e.jsx("ul",{className:"mt-2 space-y-1.5 text-xs text-muted-foreground",children:r.map(s=>e.jsxs("li",{className:"flex gap-2",children:[e.jsx(n,{className:"mt-0.5 h-3 w-3 shrink-0",style:{color:d}}),s]},s))})]})}function v({icon:l,title:r,children:t,defaultOpen:d}){const[n,s]=i.useState(!!d);return e.jsxs(P,{children:[e.jsxs("button",{onClick:()=>s(!n),className:"flex w-full items-center gap-2 px-4 py-3 text-left",children:[e.jsx(l,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm font-bold",children:r}),e.jsx(te,{className:`ml-auto h-4 w-4 text-muted-foreground transition ${n?"rotate-180":""}`})]}),n&&t]})}function Oe(){return e.jsxs("div",{className:"rounded-xl border border-border bg-secondary/30 p-4",children:[e.jsx("div",{className:"mb-3 text-[11px] uppercase tracking-wider text-muted-foreground",children:"Как это выглядит на WB"}),e.jsxs("div",{className:"rounded-lg bg-white p-4 text-[#1f1f1f]",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm font-semibold",children:[e.jsxs("span",{children:["Отзывы ",e.jsx("span",{className:"text-[#8a8a8a]",children:"123"})]}),e.jsx("span",{className:"text-[#8a8a8a]",children:"Вопросы 22"})]}),e.jsxs("div",{className:"mt-3 rounded-xl border border-[#CCFF00] bg-[#0D0F12] p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"grid h-9 w-9 place-items-center rounded-lg bg-[#CCFF00]",children:e.jsx(F,{className:"h-5 w-5 text-[#0D0F12]"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-sm font-bold text-white",children:"ИИ-анализ отзывов и вопросов"}),e.jsx("div",{className:"text-xs text-[#8E9AAF]",children:"123 отзыва и 22 вопроса · артикул 177846451"})]})]}),e.jsxs("div",{className:"mt-3 grid gap-2 sm:grid-cols-2",children:[e.jsxs("span",{className:"flex items-center justify-center gap-2 rounded-lg bg-[#CCFF00] px-3 py-2 text-xs font-bold text-[#0D0F12]",children:[e.jsx(H,{className:"h-3.5 w-3.5"}),"Разобрать сейчас · ~40 сек"]}),e.jsxs("span",{className:"flex items-center justify-center gap-2 rounded-lg border border-[#CCFF00]/50 px-3 py-2 text-xs font-bold text-[#CCFF00]",children:[e.jsx(W,{className:"h-3.5 w-3.5"}),"В группу отложенного анализа"]})]}),e.jsxs("div",{className:"mt-2 flex items-center gap-2 text-[11px] text-[#8E9AAF]",children:[e.jsx(de,{className:"h-3 w-3"}),"В очереди уже 7 артикулов · запуск пачкой из окна плагина"]})]})]})]})}function Re(){return e.jsx(Ue,{})}function ee({title:l,items:r,selected:t,onToggle:d,onAll:n,prefix:s}){const m=t.length===r.length;return e.jsxs("div",{className:"mt-2 rounded-md border border-[#0D0F12]/12 bg-white p-2.5",children:[e.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-[#5c6270]",children:l}),e.jsx("button",{type:"button",onClick:n,className:"text-[10px] font-semibold text-[#0D0F12] underline decoration-[#CCFF00] decoration-2 underline-offset-2",children:m?"Снять все":"Выбрать все"})]}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.map(x=>{const u=t.includes(x);return e.jsxs("button",{type:"button",onClick:()=>d(x),className:`flex items-center gap-1.5 rounded-md border px-2 py-1 text-[10px] font-semibold transition ${u?"border-[#0D0F12] bg-[#0D0F12] text-[#CCFF00]":"border-[#0D0F12]/12 bg-[#f6f7f8] text-[#1f1f1f] hover:border-[#0D0F12]/35"}`,children:[e.jsx("span",{className:`flex h-3 w-3 items-center justify-center rounded-[2px] border ${u?"border-[#CCFF00] bg-[#CCFF00]":"border-[#0D0F12]/30"}`,children:u&&e.jsx(N,{className:"h-2 w-2 text-[#0D0F12]"})}),s," ",x]},x)})}),e.jsxs("div",{className:"mt-1.5 text-[10px] text-[#9aa0ad]",children:["Выбрано ",t.length," из ",r.length]})]})}function Ue(){const l=[{id:"questions",label:"Вопросы",note:"22 · XLSX"},{id:"reviews",label:"Отзывы",note:"123 · XLSX"}
1,{id:"photo",label:"Фото",note:"14 · JPG"},{id:"video",label:"Видео",note:"2 · MP4"},{id:"specs",label:"Описание и характеристики",note:"XLSX"},{id:"rich",label:"Rich-контент",note:"HTML + медиа"}],[r,t]=i.useState(["reviews","questions"]),d=c=>t(o=>o.includes(c)?o.filter(g=>g!==c):[...o,c]),n=Array.from({length:14},(c,o)=>o+1),s=[1,2],[m,x]=i.useState(n),[u,b]=i.useState(s),C=c=>x(o=>o.includes(c)?o.filter(g=>g!==c):[...o,c]),h=c=>b(o=>o.includes(c)?o.filter(g=>g!==c):[...o,c]);return e.jsxs("div",{className:"rounded-xl border border-border bg-secondary/30 p-4",children:[e.jsx("div",{className:"mb-3 text-[11px] uppercase tracking-wider text-muted-foreground",children:"Скачать всё с карточки WB"}),e.jsxs("div",{className:"rounded-lg bg-white p-4 text-[#1f1f1f]",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm font-semibold",children:[e.jsx("span",{children:"Все данные карточки"}),e.jsx("span",{className:"text-[#8a8a8a]",children:"6 типов данных"})]}),e.jsxs("div",{className:"mt-3 rounded-lg border border-[#0D0F12]/10 bg-[#f6f7f8] p-3",children:[e.jsxs("div",{className:"mb-2 flex items-center gap-2 text-[11px] font-bold uppercase tracking-wider text-[#5c6270]",children:[e.jsx(M,{className:"h-3.5 w-3.5"}),"Скачать · выберите данные"]}),e.jsx("div",{className:"grid gap-1.5 sm:grid-cols-2",children:l.map(c=>{const o=r.includes(c.id);return e.jsxs("button",{type:"button",onClick:()=>d(c.id),className:`flex items-center justify-between gap-2 rounded-md border px-2.5 py-2 text-left text-[11px] font-semibold transition ${o?"border-[#0D0F12] bg-[#0D0F12] text-[#CCFF00]":"border-[#0D0F12]/12 bg-white text-[#1f1f1f] hover:border-[#0D0F12]/35"}`,children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`flex h-3.5 w-3.5 items-center justify-center rounded-[3px] border ${o?"border-[#CCFF00] bg-[#CCFF00]":"border-[#0D0F12]/30"}`,children:o&&e.jsx(N,{className:"h-2.5 w-2.5 text-[#0D0F12]"})}),c.label]}),e.jsx("span",{className:o?"text-[#8E9AAF]":"text-[#9aa0ad]",children:c.note})]},c.id)})}),r.includes("photo")&&e.jsx(ee,{title:"Фото — выберите какие скачать",items:n,selected:m,onToggle:C,onAll:()=>x(m.length===n.length?[]:n),prefix:"Фото"}),r.includes("video")&&e.jsx(ee,{title:"Видео — выберите какие скачать",items:s,selected:u,onToggle:h,onAll:()=>b(u.length===s.length?[]:s),prefix:"Видео"}),e.jsxs("button",{type:"button",disabled:r.length===0,className:"mt-2.5 flex w-full items-center justify-center gap-2 rounded-lg bg-[#CCFF00] px-3 py-2 text-xs font-bold text-[#0D0F12] transition hover:brightness-105 disabled:cursor-not-allowed disabled:bg-[#0D0F12]/10 disabled:text-[#0D0F12]/40",children:[e.jsx(M,{className:"h-3.5 w-3.5"}),"Скачать",r.length?` · ${r.length}`:""," · ZIP"]})]})]})]})}const Le=[{id:"3:4",label:"3:4",note:"WB, OZON, ЯМ, Lamoda"},{id:"4:3",label:"4:3",note:"Avito"},{id:"1:1",label:"1:1",note:"Квадратное"},{id:"9:16",label:"9:16",note:"Вертикальное / Stories"},{id:"16:9",label:"16:9",note:"Горизонтальное"}],z=50,oe=38;function He({onClose:l}){const[r,t]=i.useState(""),[d,n]=i.useState(""),[s,m]=i.useState(!1),[x,u]=i.useState(0),[b,C]=i.useState("3:4"),[h,c]=i.useState(1),[o,g]=i.useState("2K"),S=z-oe,T=s&&h>0&&h<=S;return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-[#0D0F12]/80 p-4 backdrop-blur-sm",onClick:l,children:e.jsxs("div",{className:"max-h-[88vh] w-full max-w-[620px] overflow-y-auto rounded-2xl border border-primary/25 bg-card shadow-2xl",onClick:a=>a.stopPropagation(),children:[e.jsxs("div",{className:"sticky top-0 flex items-center gap-2 border-b border-border bg-card px-5 py-4",children:[e.jsx(A,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm font-bold",children:"Генерация карточки товара"}),e.jsxs("span",{className:"ml-auto flex items-center gap-1.5 rounded-full border border-primary/40 bg-primary/10 px-2.5 py-1 text-[11px] font-semibold text-primary",children:[e.jsx(L,{className:"h-3 w-3"}),"Доступно генераций: ",S," из ",z]}),e.jsx("button",{onClick:l,className:"text-muted-foreground transition hover:text-foreground",children:e.jsx(w,{className:"h-4 w-4"})})]}),e.jsxs("div",{className:"space-y-4 p-5",children:[e.jsx(f,{label:"Фото вашего товара",required:!0,children:e.jsxs("button",{type:"button",onClick:()=>m(a=>!a),className:`flex w-full items-center gap-3 rounded-xl border border-dashed px-4 py-4 text-left text-xs transition ${s?"border-primary/60 bg-primary/5 text-foreground":"border-border bg-secondary/40 text-muted-foreground hover:border-primary/40"}`,children:[s?e.jsx(N,{className:"h-4 w-4 text-primary"}):e.jsx(B,{className:"h-4 w-4"}),s?"product-main.jpg · загружено":"Загрузите фото товара (JPG/PNG, до 10 МБ)"]})}),e.jsx(f,{label:"Соотношение сторон",required:!0,icon:je,children:e.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3",children:Le.map(a=>e.jsxs("button",{type:"button",onClick:()=>C(a.id),className:`rounded-xl border px-3 py-2 text-left transition ${b===a.id?"border-primary bg-primary/10":"border-border bg-secondary/30 hover:border-primary/40"}`,children:[e.jsx("div",{className:"text-xs font-bold",children:a.label}),e.jsx("div",{className:"text-[10px] text-muted-foreground",children:a.note})]},a.id))})}),e.jsx(f,{label:"Количество фото",required:!0,children:e.jsxs("div",{className:"flex items-center gap-2",children:[[1,2,3,4,5].map(a=>e.jsx("button",{type:"button",disabled:a>S,onClick:()=>c(a),className:`h-9 w-9 rounded-lg border text-xs font-bold transition disabled:opacity-30 ${h===a?"border-primary bg-primary text-primary-foreground":"border-border bg-secondary/30 hover:border-primary/40"}`,children:a},a)),e.jsxs("span",{className:"ml-2 text-[11px] text-muted-foreground",children:["Спишется ",h," генерац."]})]})}),e.jsx(f,{label:"Качество",required:!0,children:e.jsxs("div",{className:"flex items-center gap-2",children:[["1K","2K","4K"].map(a=>e.jsx("button",{type:"button",onClick:()=>g(a),className:`rounded-lg border px-4 py-2 text-xs font-bold transition ${o===a?"border-primary bg-primary text-primary-foreground":"border-border bg-secondary/30 hover:border-primary/40"}`,children:a},a)),e.jsx("span",{className:"ml-2 text-[11px] text-muted-foreground",children:"Разрешение выходного изображения"})]})}),e.jsx("div",{className:"h-px bg-border"}),e.jsx(f,{label:"Промт (стиль, фон, детали)",hint:"по желанию",children:e.jsx("textarea",{value:r,onChange:a=>t(a.target.value),rows:3,placeholder:"Например: минималистичный бежевый Ñ
1„он, тёплый мягкий свет, тень справа, рядом сухоцвет",className:"w-full rounded-xl border border-border bg-secondary/30 px-3 py-2 text-xs outline-none placeholder:text-muted-foreground focus:border-primary/60"})}),e.jsx(f,{label:"Референс стиля / фона",hint:"до 5 шт, по желанию",children:e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Array.from({length:x}).map((a,p)=>e.jsxs("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg border border-primary/40 bg-primary/5 text-[10px] text-primary",children:["ref ",p+1]},p)),x<5&&e.jsxs("button",{type:"button",onClick:()=>u(a=>a+1),className:"flex h-16 w-16 flex-col items-center justify-center gap-1 rounded-lg border border-dashed border-border bg-secondary/30 text-[10px] text-muted-foreground transition hover:border-primary/40",children:[e.jsx(W,{className:"h-4 w-4"}),"добавить"]})]})}),e.jsx(f,{label:"Описание товара (для инфографики)",hint:"по желанию",children:e.jsx("textarea",{value:d,onChange:a=>n(a.target.value),rows:3,placeholder:"Например: высокая посадка, стрейч 4-way, плотность 280 г/м², не просвечивает",className:"w-full rounded-xl border border-border bg-secondary/30 px-3 py-2 text-xs outline-none placeholder:text-muted-foreground focus:border-primary/60"})})]}),e.jsxs("div",{className:"sticky bottom-0 flex items-center gap-3 border-t border-border bg-card px-5 py-4",children:[e.jsx("button",{onClick:l,className:"rounded-lg border border-border px-4 py-2 text-xs font-semibold text-muted-foreground transition hover:text-foreground",children:"Отмена"}),e.jsxs("button",{disabled:!T,className:"ml-auto flex items-center gap-2 rounded-lg bg-primary px-4 py-2 text-xs font-bold text-primary-foreground transition disabled:opacity-40",style:T?{boxShadow:"0 0 18px rgba(204,255,0,.35)"}:void 0,children:[e.jsx(A,{className:"h-3.5 w-3.5"}),"Сгенерировать (",h,")"]})]})]})})}function f({label:l,children:r,required:t,hint:d,icon:n}){return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[n&&e.jsx(n,{className:"h-3.5 w-3.5 text-muted-foreground"}),e.jsx("span",{className:"text-xs font-semibold",children:l}),t&&e.jsx("span",{className:"rounded bg-primary/15 px-1.5 py-0.5 text-[10px] font-bold text-primary",children:"обязательно"}),d&&e.jsx("span",{className:"text-[10px] text-muted-foreground",children:d})]}),r]})}function ze({onClose:l}){const[r,t]=i.useState("205742546"),[d,n]=i.useState(""),[s,m]=i.useState([]),[x,u]=i.useState(!0),[b,C]=i.useState([]),[h,c]=i.useState(""),[o,g]=i.useState(!1),S=r.trim().length>=4,T=()=>{const a=d.split(/[\s,;]+/).map(p=>p.replace(/\D/g,"")).filter(p=>p.length>=4);a.length&&(m(p=>Array.from(new Set([...p,...a])).slice(0,5)),n(""))};return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-[#0D0F12]/80 p-4 backdrop-blur-sm",onClick:l,children:e.jsxs("div",{className:`max-h-[88vh] w-full overflow-y-auto rounded-2xl border border-primary/25 bg-card shadow-2xl ${o?"max-w-[860px]":"max-w-[620px]"}`,onClick:a=>a.stopPropagation(),children:[e.jsxs("div",{className:"sticky top-0 flex items-center gap-2 border-b border-border bg-card px-5 py-4",children:[e.jsx(D,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm font-bold",children:o?"Результат ИИ-аудита карточки":"ИИ-аудит карточки товара"}),o&&e.jsx("span",{className:"rounded border border-border bg-secondary/50 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:r}),e.jsx("button",{onClick:l,className:"ml-auto text-muted-foreground transition hover:text-foreground",children:e.jsx(w,{className:"h-4 w-4"})})]}),o?e.jsx(Je,{own:r,competitors:s,useReviews:x,onBack:()=>g(!1)}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-4 p-5",children:[e.jsx(f,{label:"Ваш артикул WB",required:!0,icon:V,children:e.jsx("input",{value:r,onChange:a=>t(a.target.value.replace(/\D/g,"")),inputMode:"numeric",placeholder:"205742546",className:"w-full rounded-xl border border-border bg-secondary/30 px-3 py-2 font-mono text-sm outline-none placeholder:text-muted-foreground focus:border-primary/60"})}
1),e.jsxs(f,{label:"Артикулы конкурентов",hint:"до 5 шт, по желанию",icon:xe,children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{value:d,onChange:a=>n(a.target.value),onKeyDown:a=>{(a.key==="Enter"||a.key===",")&&(a.preventDefault(),T())},disabled:s.length>=5,placeholder:"Через запятую: 111222333, 444555666",className:"w-full rounded-xl border border-border bg-secondary/30 px-3 py-2 font-mono text-sm outline-none placeholder:font-sans placeholder:text-muted-foreground focus:border-primary/60 disabled:opacity-40"}),e.jsx("button",{type:"button",onClick:T,disabled:s.length>=5||!d.trim(),className:"shrink-0 rounded-xl border border-border px-3 text-xs font-semibold text-muted-foreground transition hover:border-primary/50 hover:text-foreground disabled:opacity-40",children:e.jsx(W,{className:"h-4 w-4"})})]}),s.length>0&&e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:s.map(a=>e.jsxs("span",{className:"flex items-center gap-1.5 rounded-lg border border-primary/40 bg-primary/5 px-2.5 py-1 font-mono text-[11px] text-primary",children:[a,e.jsx("button",{type:"button",onClick:()=>m(p=>p.filter(y=>y!==a)),children:e.jsx(w,{className:"h-3 w-3"})})]},a))}),e.jsxs("div",{className:"mt-1.5 text-[10px] text-muted-foreground",children:[s.length," из 5"]})]}),e.jsxs("button",{type:"button",onClick:()=>u(a=>!a),className:`flex w-full items-center gap-3 rounded-xl border px-4 py-3 text-left text-xs transition ${x?"border-primary/60 bg-primary/5 text-foreground":"border-border bg-secondary/40 text-muted-foreground hover:border-primary/40"}`,children:[e.jsx("span",{className:`flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] border ${x?"border-primary bg-primary":"border-border"}`,children:x&&e.jsx(N,{className:"h-3 w-3 text-primary-foreground"})}),e.jsx(Q,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),"Использовать анализ отзывов и вопросов в ИИ-аудите"]}),e.jsxs(f,{label:"Доп. файлы для аудита",hint:"любые форматы, по желанию",icon:B,children:[e.jsxs("label",{className:"flex cursor-pointer flex-col items-center gap-1 rounded-xl border border-dashed border-border bg-secondary/20 px-3 py-4 text-center transition hover:border-primary/50",children:[e.jsx(B,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-xs font-semibold",children:"Загрузить файлы"}),e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Например: выгрузка поисковых запросов из Джем, сравнение конверсий с конкурентом, отчёт по рекламе"}),e.jsx("input",{type:"file",multiple:!0,className:"hidden",onChange:a=>{const p=Array.from(a.target.files??[]).map(y=>({name:y.name,size:y.size}));C(y=>[...y,...p].slice(0,10)),a.target.value=""}})]}),b.length>0&&e.jsxs("div",{className:"mt-2 space-y-1.5",children:[b.map((a,p)=>e.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-secondary/30 px-2.5 py-1.5 text-[11px]",children:[e.jsx(Q,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),e.jsx("span",{className:"truncate",children:a.name}),e.jsxs("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground",children:[(a.size/1024).toFixed(0)," КБ"]}),e.jsx("button",{type:"button",onClick:()=>C(y=>y.filter((ss,ie)=>ie!==p)),children:e.jsx(w,{className:"h-3 w-3 text-muted-foreground transition hover:text-foreground"})})]},`${a.name}-${p}`)),e.jsxs("div",{className:"text-[10px] text-muted-foreground",children:[b.length," из 10"]})]}),e.jsx("textarea",{value:h,onChange:a=>c(a.target.value.slice(0,400)),rows:2,placeholder:"Кратко опишите, что за файлы: «выгрузка поисковых запросов из Джем за июль», «сравнение конверсий с конкурентом 111222333»",className:"mt-2 w-full resize-none rounded-xl border border-border bg-secondary/30 px-3 py-2 text-xs outline-none placeholder:text-muted-foreground focus:border-primary/60"}),e.jsxs("div",{className:"mt-1 text-right text-[10px] text-muted-foreground",children:[h.length,"/400"]})]}),e.jsx("div",{className:"rounded-xl border border-border bg-secondary/30 p-3 text-[11px] leading-relaxed text-muted-foreground",children:"На выходе — файл с полным анализом карточки и готовыми рекомендациями, а также промт для генерации контента с учётом советов."})]}),e.jsxs("div",{className:"sticky bottom-0 flex items-center gap-3 border-t border-border bg-card px-5 py-4",children:[e.jsx("button",{onClick:l,className:"rounded-lg border border-border px-4 py-2 text-xs font-semibold text-muted-foreground transition hover:text-foreground",children:"Отмена"}),e.jsxs("button",{disabled:!S,onClick:()=>g(!0),className:"ml-auto flex items-center gap-2 rounded-lg bg-primary px-4 py-2 text-xs font-bold text-primary-foreground transition disabled:opacity-40",style:S?{boxShadow:"0 0 18px rgba(204,255,0,.35)"}:void 0,children:[e.jsx(D,{className:"h-3.5 w-3.5"}),"Запустить аудит"]})]})]})]})})}const O={total:64,headline:"Карточка привлекательная, но создаёт завышенное ожидание по размеру товара",summary:"Главный разрыв — между рекламной картинкой и тем, что покупатель получает в руки. Реальные габариты 18 × 11 × 15 см спрятаны на 7-м слайде, а сцена с ребёнком на обложке делает игрушку визуально крупнее. Сам товар покупателям нравится — негатив во многом создаёт сама карточка.",sample:"1 011 свежих записей по склейке · 155 относятся к артикулу · 100 содержат текст / плюсы / минусы"},We=[{label:"Ребёнку нравится / заинтересовал",n:27,good:!0},{label:"Размер меньше ожиданий",n:14,good:!1},{label:"Слишком тихий звук / плохо слышно",n:8,good:!1},{label:"Поломка / неисправность",n:6,good:!1},{label:"Неприятные отдельные звуки",n:2,good:!1},{label:"0+ на карточке, 3+ на коробке",n:1,good:!1},{label:"Крышка батарейного отсека",n:1,good:!1},{label:"Нет общего выключателя",n:1,good:!1}],Be=[{title:"Маркировка 0+ против 3+",level:"P0",fact:"На главном фото и в характеристиках указано 0+. Свежий 4★ отзыв: «на рекламе написано 0+, а пришла коробка 3+».",action:"Проверить физическую упаковку текущей партии и разрешительный документ. До проверки не усиливать 0+ новым дизайном."},{title:"«ЭКО пластик»",level:"P0",fact:"В данных есть ABS-пластик и флаг наличия документа, но подтверждения именно формулировки «ЭКО пластик» нет.",action:"Убрать с обложки до подтверждения. То же — «гипоаллерÐ
1³ÐµÐ½Ð½Ñ‹Ð¹ пластик» в описании."},{title:"45 музыкальных композиций",level:"P0",fact:"Карточка заявляет 45 композиций, покупатель пишет про «15 мелодий» и что часть контента — звуки животных.",action:"Физически проверить SKU и только после этого оставлять цифру 45."},{title:"«Развитие слухового аппарата»",level:"P1",fact:"Медицинское обещание на слайде о погремушках, фактически не доказано.",action:"Заменить на наблюдаемые действия: крутить • трогать • слушать."}],Ge=[{n:"1",title:"Ребёнок + товар",state:"fix",verdict:"Сильный визуально, слабый по честности масштаба.",notes:["Одновременно четыре сообщения: «Развивающий центр», «Сон и игра», «ЭКО пластик», «Батарейки в подарок» и 0+","Отзывы прямо подтверждают проблему: «на фото большой, на деле с ладошку»","Оффер: «Музыкальный центр для малыша» + факт «5 клавиш + вращающиеся элементы»"]},{n:"2",title:"Подарочная упаковка",state:"move",verdict:"Слайд неплохой, но стоит слишком рано — покупателю продают коробку до понимания товара.",notes:["Перенести примерно на 7–8 место"]},{n:"3",title:"Функции",state:"fix",verdict:"Смысл хороший (мельница, колокольчики, колесо, режим сна, клавиши, музыка), но подача — техническая схема.",notes:["Показать три действия рукой ребёнка: нажимай • крути • слушай","Механика игры вместо перечня деталей"]},{n:"4",title:"Режимы + 45 композиций",state:"fix",verdict:"Потенциально сильный оффер, но есть вопрос доказательности.",notes:["Проверить фактическое число композиций","Видео с реальным звуком сильнее ещё одной инфографики"]},{n:"5",title:"Батарейки",state:"keep",verdict:"Хороший рациональный аргумент: 3 × AA в комплекте.",notes:["Вместо трёх батареек показать отсек и как он открывается","Есть отзыв о невозможности открыть крышку"]},{n:"6",title:"3 погремушки «способствуют развитию»",state:"fix",verdict:"Переделать полностью: дублируется «хватательных движений», обещание про слух не доказано.",notes:["«3 вращающихся элемента» + крутить • трогать • слушать","Без обещаний физиологического развития"]},{n:"7",title:"Размеры",state:"move",verdict:"Один из самых важных слайдов, но стоит слишком поздно. Поднять на №2.",notes:["Одной строки 18 × 11 × 15 см недостаточно","Показать в руке взрослого, на столике для кормления, рядом с ребёнком в честном масштабе"]},{n:"8–9",title:"AI-игрушки, контакты менеджера, просьба об отзыве",state:"cut",verdict:"Убрать оба: не помогают решить, покупать игрушку или нет.",notes:["Слайд 8 рекламирует другие товары и Telegram/email","Поддержке не нужно занимать 22% основной галереи"]}],Ke=[{n:1,task:"CTR",show:"товар + реалистичный lifestyle",text:"Музыкальный центр для малыша"},{n:2,task:"снять главное возражение",show:"товар в руке + размеры",text:"Компактный размер 
118 × 11 × 15 см*"},{n:3,task:"показать механику",show:"ребёнок нажимает / вращает",text:"Нажимай • крути • слушай"},{n:4,task:"функции",show:"5 клавиш + 3 вращающихся блока",text:"Много способов играть"},{n:5,task:"музыка",show:"режимы + реальная демонстрация",text:"Музыка, свет и игра"},{n:6,task:"питание",show:"отсек + батарейки",text:"3 батарейки AA в комплекте"},{n:7,task:"реальный сценарий",show:"ребёнок играет дома / в дороге",text:"Игрушка всегда рядом"},{n:8,task:"упаковка",show:"реальная коробка",text:"Можно сразу дарить"},{n:9,task:"доверие",show:"материал / маркировка / документы",text:"после проверки"},{n:10,task:"FAQ",show:"3–4 главных вопроса",text:"размер / звук / батарейки / режимы"}],Ve=[{t:"0–3 сек",s:"Ребёнок нажимает клавишу → свет + звук"},{t:"3–7 сек",s:"Вращает верхние элементы"},{t:"7–11 сек",s:"Быстро показываем несколько режимов"},{t:"11–14 сек",s:"Игрушка в руке взрослого — честный масштаб"},{t:"14–18 сек",s:"Батарейный отсек и 3 AA"},{t:"18–22 сек",s:"Ребёнок играет"},{t:"22–25 сек",s:"Товар + коробка"}],Xe=["ребёнок заинтересовался","любимая игрушка","ребёнок 4–6 месяцев играет","нравится вращать верхние элементы","приятная музыка","батарейки уже в коробке","яркие детали","удобно нажимать клавиши"],qe=["Проверить конфликт 0+ / 3+ по текущей коробке и документам","Проверить реальные 18 × 11 × 15 см","Переделать главное фото с честным масштабом","Перенести размеры со слайда №7 на №2","Убрать неподтверждённый «ЭКО пластик»","Убрать «развитие слухового аппарата»","Проверить фактические 45 композиций","Проверить повторяемость брака: стойки, верхняя конструкция, клавиши"],Ze=["Убрать слайды 8–9","Переделать функциональные слайды под действия ребёнка","Унифицировать стиль галереи и Rich","Переписать описание: 5 клавиш → вращающиеся элементы → свет и звук → режимы → 3 AA → размер → упаковка","Сделать видео с реальным звуком и масштабом"],Qe=[{title:"Главное фото",a:"текущий малыш + крупная игрушка",b:"тот же оффер, честный масштаб, товар крупнее в кадре",variable:"концепция масштаба товара",watch:"CTR + корзина + заказ"},{title:"Второй слайд",a:"«Подарочная упаковка»",b:"размер + игрушка в руке",variable:"что покупатель видит вторым",watch:"конверсия и последующий негатив"},{title:"Главный оффер",a:"«Развивающий центр»",b:"«Музыкальный центр для малыша»",variable:"смысл первого сообщения",watch:"CTR при одинаковом визуале"}],se={keep:{label:"оставить",cls:"border-primary/40 bg-primary/10 text-primary"},fix:{label:"переделать",cls:"border-border bg-secondary/60 text-foreground"},move:{label:"перенести",cls:"border-border bg-secondary/60 text-muted-foreground"},cut:{label:"убрать",cls:"border-destructive/40 bg-destructive/10 text-destructive"}};function j({icon:l,title:r,children:t}){return e.jsxs("div",{className:"rounded-xl border border-border bg-secondary/20 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-bold",children:[e.jsx(l,{className:"h-3.5 w-3.5 text-primary"}),r]}),e.jsx("div",{className:"mt-3",children:t})]})}function Je({own:l,competitors:r,useReviews:t,onBack:d}){const n=`Сгенерируй фотоворонку для карточки Wildberries (артикул ${l}) — детская музыкальная игрушка 18 × 11 × 15 см.
2Формат 3:4, качество 2K, единый стиль всей серии.
3Кадр 1: товар крупно + ребёнок, честные пропорции игрушки относительно руки ребёнка. Текст: «Музыкальный центр для малыша», мелким — «5 клавиш + вращающиеся элементы». Не более одного смыслового сообщения.
4Кадр 2: товар в руке взрослого + габариты 18 × 11 × 15 см — снимаем главное возражение о размере.
5Кадр 3: механика игры — рука ребёнка нажимает клавишу и вращает элемент. Текст: «Нажимай • крути • слушай».
6Кадр 4: 5 клавиш и 3 вращающихся блока. Текст: «Много способов играть».
7Кадр 5: режимы, свет и звук.
8Кадр 6: батарейный отсек, как он открывается, 3 × AA в комплекте.
9Кадр 7: реальный сценарий — ребёнок играет дома или в дороге.
10Кадр 8: реальная коробка, «можно сразу дарить».
11Запрещено: обещания «ЭКО пластик», «гипоаллерÐ
11³ÐµÐ½Ð½Ñ‹Ð¹Â», «развитие слухового аппарата», маркировка 0+ и цифра 45 композиций — до фактической проверки документов и SKU.
12Стиль: чистый светлый фон, мягкий естественный свет, крупный читаемый в мобильной выдаче текст, без переспама надписей.${t?`
13Учти частые темы отзывов: завышенное ожидание по размеру, тихий звук, крышка батарейного отсека.`:""}${r.length?`
14Ориентир по уровню подачи — карточки конкурентов: ${r.join(", ")}.`:""}`;return e.jsxs("div",{className:"space-y-4 p-5",children:[e.jsxs("div",{className:"rounded-xl border border-primary/30 bg-primary/5 p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[e.jsxs("div",{className:"flex h-16 w-16 shrink-0 flex-col items-center justify-center rounded-full border-2 border-primary text-primary",style:{boxShadow:"0 0 20px rgba(204,255,0,.25)"},children:[e.jsx("span",{className:"text-xl font-bold leading-none",children:O.total}),e.jsx("span",{className:"text-[9px] uppercase tracking-wider",children:"score"})]}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-primary",children:"Главный диагноз"}),e.jsx("div",{className:"text-sm font-bold",children:O.headline}),e.jsx("div",{className:"mt-1 text-[11px] leading-relaxed text-muted-foreground",children:O.summary})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs("button",{className:"flex items-center gap-1.5 rounded-lg bg-primary px-3 py-2 text-[11px] font-bold text-primary-foreground transition hover:brightness-110",children:[e.jsx(M,{className:"h-3 w-3"}),"Скачать отчёт"]}),e.jsx("button",{onClick:d,className:"rounded-lg border border-border px-3 py-2 text-[11px] font-semibold text-muted-foreground transition hover:border-primary/50 hover:text-foreground",children:"Новый аудит"})]})]}),e.jsxs("div",{className:"mt-3 rounded-lg border border-border bg-card px-3 py-2 text-[10.5px] text-muted-foreground",children:["Выборка: ",O.sample,r.length?` · сравнение с ${r.length} конкурентами`:"",t?" · с учётом анализа отзывов и вопросов":""]})]}),e.jsx(j,{icon:I,title:"Сигналы из 100 содержательных отзывов",children:e.jsx("div",{className:"grid gap-1.5 sm:grid-cols-2",children:We.map(s=>e.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-[11px]",children:[e.jsx("span",{className:"min-w-0 flex-1 truncate text-muted-foreground",children:s.label}),e.jsx("span",{className:`font-bold ${s.good?"text-primary":"text-destructive"}`,children:s.n}),s.good?e.jsx(K,{className:"h-3 w-3 shrink-0 text-primary"}):e.jsx(ne,{className:"h-3 w-3 shrink-0 text-destructive"})]},s.label))})}),e.jsx(j,{icon:ce,title:"Потенциально критичные обещания",children:e.jsx("div",{className:"space-y-2",children:Be.map(s=>e.jsxs("div",{className:"rounded-lg border border-border bg-card p-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`rounded-full border px-2 py-0.5 text-[10px] font-bold ${s.level==="P0"?"border-destructive/40 bg-destructive/10 text-destructive":"border-border bg-secondary/60 text-muted-foreground"}`,children:s.level}),e.jsx("span",{className:"text-xs font-bold",children:s.title})]}),e.jsx("div",{className:"mt-2 text-[11px] leading-relaxed text-muted-foreground",children:s.fact}),e.jsxs("div",{className:"mt-1.5 flex gap-2 text-[11px] leading-relaxed",children:[e.jsx($,{className:"mt-0.5 h-3 w-3 shrink-0 text-primary"}),s.action]})]},s.title))})}),e.jsx(j,{icon:re,title:"Разбор текущей фотоворонки",children:e.jsx("div",{className:"space-y-2",children:Ge.map(s=>e.jsxs("details",{className:"group rounded-lg border border-border bg-card",children:[e.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-3 px-3 py-2.5",children:[e.jsx("span",{className:"flex h-6 w-8 shrink-0 items-center justify-center rounded border border-border bg-secondary/50 font-mono text-[10px] text-muted-foreground",children:s.n}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block text-xs font-bold",children:s.title}),e.jsx("span",{className:"block truncate text-[11px] text-muted-foreground",children:s.verdict})]}),e.jsx("span",{className:`rounded-full border px-2 py-0.5 text-[10px] font-bold ${se[s.state].cls}`,children:se[s.state].label}),e.jsx(te,{className:"h-4 w-4 shrink-0 text-muted-foreground transition group-open:rotate-180"})]}),e.jsx("ul",{className:"space-y-1.5 border-t border-border p-3",children:s.notes.map(m=>e.jsxs("li",{className:"flex gap-2 text-[11px] leading-relaxed text-muted-foreground",children:[e.jsx("span",{className:"mt-1.5 h-1 w-1 shrink-0 rounded-full bg-muted-foreground"}),m]},m))})]},s.n))})}),e.jsxs(j,{icon:R,title:"Рекомендуемая фотоворонка",children:[e.jsx("div",{className:"overflow-x-auto rounded-lg border border-border",children:e.jsxs("table",{className:"w-full min-w-[560px] text-[11px]",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-secondary/50 text-[10px] uppercase tracking-wider text-muted-foreground",children:[e.jsx("th",{className:"px-2 py-2 text-left font-semibold",children:"№"}),e.jsx("th",{className:"px-2 py-2 text-left font-semibold",children:"Задача"}),e.jsx("th",{className:"px-2 py-2 text-left font-semibold",children:"Что показать"}),e.jsx("th",{className:"px-2 py-2 text-left font-semibold",children:"Текст"})]})}),e.jsx("tbody",{children:Ke.map(s=>e.jsxs("tr",{className:"border-t border-border bg-card",children:[e.jsx("td",{className:"px-2 py-2 font-mono text-muted-foreground",children:s.n}),e.jsx("td",{className:"px-2 py-2 text-muted-foreground",children:s.task}),e.jsx("td",{className:"px-2 py-2 text-muted-foreground",children:s.show}
14),e.jsx("td",{className:"px-2 py-2 font-semibold",children:s.text})]},s.n))})]})}),e.jsx("div",{className:"mt-2 text-[10px] text-muted-foreground",children:"* После фактической проверки размеров текущей партии."})]}),e.jsxs(j,{icon:H,title:"Сценарий видео 20–25 секунд",children:[e.jsx("div",{className:"space-y-1.5",children:Ve.map(s=>e.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-card px-3 py-2 text-[11px]",children:[e.jsx("span",{className:"shrink-0 rounded border border-border bg-secondary/50 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:s.t}),e.jsx("span",{className:"min-w-0 flex-1",children:s.s})]},s.t))}),e.jsx("div",{className:"mt-2 text-[11px] leading-relaxed text-muted-foreground",children:"Обязательно оставить оригинальный звук игрушки хотя бы в нескольких фрагментах: «тихий звук» для одних покупателей — минус, для других — плюс. Видео даёт человеку услышать громкость вместо рекламного обещания."})]}),e.jsxs(j,{icon:K,title:"Что у товара реально хорошо — не потерять при переделке",children:[e.jsx("div",{className:"flex flex-wrap gap-1.5",children:Xe.map(s=>e.jsx("span",{className:"rounded-lg border border-primary/30 bg-primary/5 px-2.5 py-1 text-[11px] text-foreground",children:s},s))}),e.jsxs("div",{className:"mt-3 rounded-lg border border-border bg-card px-3 py-2 text-[11px] leading-relaxed",children:["Главный тезис: ",e.jsx("span",{className:"font-bold",children:"компактный музыкальный центр — нажимать, вращать, слушать и играть"}),". Это сильнее абстрактного «комплексного развития малыша». Название «Развивающая игрушка музыкальная для детей» радикально менять не нужно."]})]}),e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[e.jsx(j,{icon:L,title:"P0 — сделать сначала",children:e.jsx("ol",{className:"space-y-1.5",children:qe.map((s,m)=>e.jsxs("li",{className:"flex items-start gap-2.5 rounded-lg border border-border bg-card px-3 py-2 text-[11px] leading-relaxed",children:[e.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary text-[10px] font-bold text-primary-foreground",children:m+1}),s]},s))})}),e.jsx(j,{icon:R,title:"P1 — следующим шагом",children:e.jsx("ul",{className:"space-y-1.5",children:Ze.map(s=>e.jsxs("li",{className:"flex items-start gap-2 rounded-lg border border-border bg-card px-3 py-2 text-[11px] leading-relaxed text-muted-foreground",children:[e.jsx($,{className:"mt-0.5 h-3 w-3 shrink-0 text-primary"}),s]},s))})})]}),e.jsx(j,{icon:D,title:"Три A/B-теста, которые стоит поставить первыми",children:e.jsx("div",{className:"grid gap-2 sm:grid-cols-3",children:Qe.map((s,m)=>e.jsxs("div",{className:"rounded-lg border border-border bg-card p-3",children:[e.jsxs("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:["Тест №",m+1]}),e.jsx("div",{className:"text-xs font-bold",children:s.title}),e.jsxs("div",{className:"mt-2 space-y-1 text-[11px] leading-relaxed",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-mono text-muted-foreground",children:"A:"})," ",s.a]}),e.jsxs("div",{children:[e.jsx("span",{className:"font-mono text-primary",children:"B:"})," ",s.b]})]}),e.jsxs("div",{className:"mt-2 border-t border-border pt-2 text-[10.5px] leading-relaxed text-muted-foreground",children:["Переменная: ",s.variable,e.jsx("br",{}),"Смотреть: ",s.watch]})]},s.title))})}),e.jsxs("div",{className:"rounded-xl border border-primary/30 bg-primary/5 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-bold",children:[e.jsx(A,{className:"h-3.5 w-3.5 text-primary"}),"Промт для генерации контента с учётом рекомендаций"]}),e.jsx("pre",{className:"mt-3 max-h-48 overflow-auto whitespace-pre-wrap rounded-lg border border-border bg-card p-3 font-mono text-[10.5px] leading-relaxed text-muted-foreground",children:n}),e.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[e.jsxs("button",{type:"button",onClick:()=>navigator.clipboard?.writeText(n),className:"flex items-center gap-1.5 rounded-lg border border-border px-3 py-1.5 text-[11px] font-semibold text-muted-foreground transition hover:border-primary/50 hover:text-foreground",children:[e.jsx(R,{className:"h-3 w-3"}),"Скопировать промт"]}),e.jsxs("button",{className:"flex items-center gap-1.5 rounded-lg bg-primary px-3 py-1.5 text-[11px] font-bold text-primary-foreground transition hover:brightness-110",children:[e.jsx(A,{className:"h-3 w-3"}),"Сгенерировать карточку по промту"]})]})]})]})}
14function Ye(){const[l,r]=i.useState("now"),t=[{sku:"177846451",name:"Кроссовки беговые",status:"Готов"},{sku:"192043771",name:"Худи оверсайз",status:"В работе"},{sku:"204118932",name:"Куртка зимняя",status:"В очереди"}];return e.jsxs("div",{className:"rounded-xl border border-border bg-secondary/30 p-4",children:[e.jsx("div",{className:"mb-3 text-[11px] uppercase tracking-wider text-muted-foreground",children:"Окно расширения по кнопке «ИИ-анализ отзывов и вопросов»"}),e.jsxs("div",{className:"mx-auto w-full max-w-[560px] overflow-hidden rounded-xl border border-border bg-card shadow-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[e.jsx(F,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm font-bold",children:"ИИ-анализ отзывов и вопросов"}),e.jsx(w,{className:"ml-auto h-4 w-4 text-muted-foreground"})]}),e.jsx("div",{className:"flex gap-1 border-b border-border px-3 pt-2",children:[["now","Разобрать сейчас"],["queue","Группа отложенного анализа"]].map(([d,n])=>e.jsx("button",{onClick:()=>r(d),className:`rounded-t-lg px-3 py-2 text-xs font-semibold transition ${l===d?"bg-secondary text-foreground":"text-muted-foreground hover:text-foreground"}`,children:n},d))}),l==="now"?e.jsxs("div",{className:"space-y-3 p-4",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"Укажите артикулы Wildberries — отчёт появится после обработки"}),e.jsxs("div",{className:"rounded-xl border border-border bg-secondary/40 p-3",children:[e.jsx("label",{className:"text-xs font-semibold",children:"Название"}),e.jsx("div",{className:"mt-1 rounded-lg border border-border bg-card px-3 py-2 text-xs text-muted-foreground",children:"Например: Карточка «Кроссовки»"}),e.jsx("label",{className:"mt-3 block text-xs font-semibold",children:"Артикулы"}),e.jsx("div",{className:"mt-1 h-24 rounded-lg border border-border bg-card px-3 py-2 text-xs text-muted-foreground",children:"177846451 или через запятую: 111, 222, 333"}),e.jsx("div",{className:"mt-2 text-[11px] text-muted-foreground",children:"До 50 артикулов. Разделитель — пробел, запятая или новая строка."})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"flex items-center gap-2 rounded-lg bg-primary px-3 py-2 text-xs font-bold text-primary-foreground",children:[e.jsx(H,{className:"h-3.5 w-3.5"}),"Запустить анализ"]}),e.jsxs("span",{className:"flex items-center gap-2 rounded-lg border border-border px-3 py-2 text-xs font-semibold text-muted-foreground",children:[e.jsx(W,{className:"h-3.5 w-3.5"}),"Добавить в группу"]}),e.jsx("span",{className:"ml-auto text-[11px] text-muted-foreground",children:"~40 сек на артикул"})]})]}):e.jsxs("div",{className:"space-y-3 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(de,{className:"h-3.5 w-3.5"}),"Артикулы копятся в группе — запускаете разбор одной пачкой, когда удобно."]}),e.jsx("div",{className:"divide-y divide-border rounded-lg border border-border",children:t.map(d=>e.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 text-xs",children:[e.jsx(V,{className:"h-3.5 w-3.5 text-muted-foreground"}),e.jsx("span",{className:"tabular-nums",children:d.sku}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-muted-foreground",children:d.name}),e.jsx(U,{color:d.status==="Готов"?"var(--lime)":d.status==="В работе"?"var(--matrix)":"var(--slate-tech)",children:d.status}),e.jsx(w,{className:"h-3.5 w-3.5 text-muted-foreground"})]},d.sku))}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"flex items-center gap-2 rounded-lg bg-primary px-3 py-2 text-xs font-bold text-primary-foreground",children:[e.jsx(H,{className:"h-3.5 w-3.5"}),"Разобрать группу (3)"]}),e.jsxs("span",{className:"flex items-center gap-2 rounded-lg border border-border px-3 py-2 text-xs font-semibold text-muted-foreground",children:[e.jsx(G,{className:"h-3.5 w-3.5"}),"Добавить текущую карточку"]})]})]})]})]})}function es(){return e.jsxs("div",{className:"rounded-xl border border-border bg-secondary/30 p-4",children:[e.jsx("div",{className:"mb-3 text-[11px] uppercase tracking-wider text-muted-foreground",children:"Плашка над чатом, пока формируется отчёт"}),e.jsxs("div",{className:"ml-auto w-full max-w-[360px] space-y-2",children:[e.jsxs("div",{className:"rounded-xl border border-[color:var(--lime)]/40 bg-card p-3 shadow-lg",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Z,{className:"h-4 w-4 animate-spin text-primary"}),e.jsx("span",{className:"text-sm font-semibold",children:"Формируем отчёт по отзывам"}),e.jsx("span",{className:"ml-auto text-xs tabular-nums text-muted-foreground",children:"~40 сек"})]}),e.jsx("div",{className:"mt-2 h-1.5 overflow-hidden rounded-full bg-secondary",children:e.jsx("div",{className:"h-full w-2/3 rounded-full bg-primary"})}),e.jsxs("ul",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:[e.jsxs("li",{className:"flex gap-2",children:[e.jsx(N,{className:"h-3 w-3 text-primary"}),"Собрали 123 отзыва и 22 вопроса"]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx(N,{className:"h-3 w-3 text-primary"}),"Разметили тональность и темы"]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx(Z,{className:"h-3 w-3 animate-spin text-primary"}),"Готовим рекомендации по карточке"]})]}),e.jsx("div",{className:"mt-2 text-[11px] text-muted-foreground",children:"Можно закрыть окно — пришлём уведомление, когда отчёт будет готов."})]}),e.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-border bg-card px-3 py-2",children:[e.jsx(ae,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"Чат с MarketHacker AI"})]})]})]})}export{gs 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.