1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="5ed5dd78-65fe-4af4-a95a-4a49e50e73f8",e._sentryDebugIdIdentifier="sentry-dbid-5ed5dd78-65fe-4af4-a95a-4a49e50e73f8")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5831],{17280:(e,s,a)=>{Promise.resolve().then(a.bind(a,22499))},22499:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>f});var l=a(95155),t=a(5772),r=a(12115),d=a(2494),n=a(84286),i=a(45160),c=a(86846),x=a(6695);function o(e){return e.toLocaleString("ru-RU")}let m=({children:e,icon:s})=>(0,l.jsxs)("h3",{className:"text-lg font-semibold flex items-center gap-2 mb-4 text-slate-800 dark:text-slate-100",children:[s&&(0,l.jsx)("span",{children:s}),e]}),h=({children:e,className:s})=>(0,l.jsx)(n.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`bg-white/80 dark:bg-slate-900/50 backdrop-blur-md border border-slate-200 dark:border-slate-800 rounded-2xl shadow-sm ${s}`,children:e}),u=({channel:e})=>{let[s,a]=(0,r.useState)(null),[u,p]=(0,r.useState)(null),[b,g]=(0,r.useState)(!1),[j,f]=(0,r.useState)(null),[N,v]=(0,r.useState)(!0),[w,y]=(0,r.useState)(!0),[k,_]=(0,r.useState)(null),[E,I]=(0,r.useState)(15),{toast:D}=(0,x.d)();(0,r.useEffect)(()=>{let e;return w&&(e=setInterval(()=>{I(e=>e>1?e-1:1)},1e3)),()=>clearInterval(e)},[w]),(0,r.useEffect)(()=>{let s=async()=>{y(!0),p(null),g(!1);try{let s=await d.G.getChannelInsights(e?.channel_id);s.success&&s.data?p(s.data.content??null):"pending"===s.status&&g(!0)}catch(e){g(!1)}finally{y(!1)}};(async()=>{v(!0);try{let s=await d.G.getChannelBasicInfo(e?.channel_id);s.message&&s.data&&f(s.data)}catch(e){_(e instanceof Error?e.message:"An error occurred")}finally{v(!1)}})(),s()},[e?.channel_id]);let S=(0,r.useMemo)(()=>{var e;let s,a,l;return j?(e=j.creation_date,s=new Date,a=new Date(e),(l=new Date(s.getFullYear(),a.getMonth(),a.getDate()))<s&&l.setFullYear(l.getFullYear()+1),Math.ceil(Math.abs(l.getTime()-s.getTime())/864e5)):null},[j]);return k&&!j?(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[50vh] p-8",children:[(0,l.jsx)("div",{className:"text-4xl mb-4",children:"â ï¸"}),(0,l.jsx)("h2",{className:"text-xl font-semibold mb-2",children:"ЧÑо-Ñо поÑло не Ñак"}),(0,l.jsx)("p",{className:"text-slate-500 mb-6",children:k||"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð´Ð°Ð½Ð½Ñе канала"}),(0,l.jsx)("button",{onClick:()=>window.location.reload(),className:"px-6 py-2 bg-blue-600 text-white rounded-full hover:bg-blue-700 transition-colors",children:"ÐопÑобоваÑÑ Ñнова"})]}):(0,l.jsxs)(n.P.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"p-4 md:p-8 max-w-7xl mx-auto bg-slate-50/50 dark:bg-slate-950/50 min-h-screen",children:[(0,l.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-6 mb-10 overflow-hidden",children:[N?(0,l.jsx)(c.E,{className:"w-24 h-24 rounded-full"}):(0,l.jsxs)(n.P.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:260,damping:20},className:"relative group shadow-2xl rounded-full",children:[(0,l.jsx)("div",{className:"absolute -inset-1 bg-gradient-to-r from-blue-600 to-purple-600 rounded-full blur opacity-25 group-hover:opacity-50 transition duration-1000"}),(0,l.jsx)(t.default,{src:j?.photo_url||"",alt:j?.title||"",width:120,height:120,className:"rounded-full border-4 border-white dark:border-slate-900 relative z-10"})]}),(0,l.jsxs)("div",{className:"flex-1 space-y-2",children:[N?(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(c.E,{className:"h-10 w-64"}),(0,l.jsx)(c.E,{className:"h-6 w-32"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,l.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-slate-900 dark:text-white",children:j?.title}),(0,l.jsx)(i.E,{variant:"outline",className:"bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-900/20 dark:text-blue-300 dark:border-blue-800",children:j?.category_name_ru})]}),(0,l.jsxs)("p",{className:"text-xl text-slate-500 dark:text-slate-400 font-medium",children:["@",j?.username]})]}),(0,l.jsx)("div",{className:"flex flex-wrap gap-4 text-sm text-slate-500",children:N?(0,l.jsx)(c.E,{className:"h-4 w-48"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{className:"flex items-center gap-1",children:["\uD83D\uDCC5 Создан: ",j&&new Date(j.creation_date).toLocaleDateString("ru-RU",{year:"numeric",month:"long",day:"numeric"})]}),(0,l.jsxs)("span",{className:"flex items-center gap-1",children:["\uD83C\uDF0D ",j?.country,", ",j?.language.toUpperCase()]})]})})]})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[(0,l.jsxs)("div",{className:"space-y-8",children:[(0,l.jsxs)(h,{className:"p-6",children:[(0,l.jsx)(m,{icon:"\uD83D\uDCCA",children:"ÐлÑÑевÑе меÑÑики"}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,l.jsxs)("div",{className:"p-4 rounded-xl bg-blue-50/50 dark:bg-blue-900/10 border border-blue-100 dark:border-blue-900/20",children:[N?(0,l.jsx)(c.E,{className:"h-8 w-16 mb-1"}):(0,l.jsx)("p",{className:"text-2xl font-bold text-blue-700 dark:text-blue-400",children:o(j?.members_count||0)}),(0,l.jsx)("p",{className:"text-xs text-blue-600/70 dark:text-blue-400/70 uppercase tracking-wider font-semibold",children:"ÐодпиÑÑиков"})]}),(0,l.jsxs)("div",{className:"p-4 rounded-xl bg-purple-50/50 dark:bg-purple-900/10 border border-purple-100 dark:border-purple-900/20",children:[N?(0,l.jsx)(c.E,{className:"h-8 w-16 mb-1"}):(0,l.jsx)("p",{className:"text-2xl font-bold text-purple-700 dark:text-purple-400",children:j&&o(parseInt(j.posts_count))}),(0,l.jsx)("p",{className:"text-xs text-purple-600/70 dark:text-purple-400/70 uppercase tracking-wider font-semibold",children:"ÐÑего поÑÑов"})]})]})]}),(0,l.jsxs)(h,{className:"p-6",children:[(0,l.jsx)(m,{icon:"\uD83C\uDF81",children:"СобÑÑиÑ"}),N?(0,l.jsx)(c.E,{className:"h-16 w-full rounded-xl"}):(0,l.jsxs)("div",{className:"flex items-center justify-between p-4 bg-gradient-to-r from-pink-500 to-orange-400 rounded-xl text-white shadow-lg shadow-orange-500/20",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm font-medium opacity-90 uppercase tracking-wider",children:"ÐÐµÐ½Ñ ÑÐ¾Ð¶Ð´ÐµÐ½Ð¸Ñ ÐºÐ°Ð½Ð°Ð»Ð°"}),(0,l.jsxs)("p",{className:"text-xl font-bold",children:["ЧеÑез ",S," ",1===S?"денÑ":"дней"]})]}),(0,l.jsx)("span",{className:"text-3xl",children:"\uD83C\uDF82"})]})]})]}),(0,l.jsxs)("div",{className:"lg:col-span-2 space-y-8",children:[(0,l.jsxs)(h,{className:"p-0 overflow-hidden",children:[(0,l.jsx)("div",{className:"p-6 border-b border-slate-100 dar
1k:border-slate-800 bg-gradient-to-r from-blue-600/5 to-transparent",children:(0,l.jsx)(m,{icon:"â¨",children:"СÑÑаÑÐµÐ³Ð¸Ñ Ð¿Ð¾Ð·Ð¸ÑиониÑÐ¾Ð²Ð°Ð½Ð¸Ñ (AI)"})}),(0,l.jsx)("div",{className:"p-6",children:w?(0,l.jsxs)("div",{className:"space-y-6 py-8 flex flex-col items-center justify-center text-center",children:[(0,l.jsxs)("div",{className:"relative w-20 h-20",children:[(0,l.jsx)("div",{className:"absolute inset-0 border-4 border-blue-100 dark:border-blue-900/30 rounded-full"}),(0,l.jsx)(n.P.div,{animate:{rotate:360},transition:{duration:2,repeat:1/0,ease:"linear"},className:"absolute inset-0 border-4 border-t-blue-600 rounded-full"}),(0,l.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,l.jsx)("span",{className:"text-xl font-bold text-blue-600",children:1===E&&w?"...":E})})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("p",{className:"text-lg font-semibold text-slate-700 dark:text-slate-200",children:1===E&&w?"ÐоÑÑи гоÑово...":"ÐнализиÑÑем ÑÑÑаÑегиÑ..."}),(0,l.jsx)("p",{className:"text-sm text-slate-500 max-w-xs",children:1===E&&w?"ÐавеÑÑаем глÑбокий анализ конÑенÑа â¨":"ÐÑо Ð¼Ð¾Ð¶ÐµÑ Ð·Ð°Ð½ÑÑÑ Ð¾ÐºÐ¾Ð»Ð¾ 15 ÑекÑнд, Ð½Ð°Ñ ÐРизÑÑÐ°ÐµÑ ÐºÐ¾Ð½ÑÐµÐ½Ñ Ð²Ð°Ñего канала â¨"})]}
1),(0,l.jsxs)("div",{className:"w-full max-w-md space-y-3 mt-4",children:[(0,l.jsx)(c.E,{className:"h-4 w-full"}),(0,l.jsx)(c.E,{className:"h-4 w-[90%]"}),(0,l.jsx)(c.E,{className:"h-4 w-[95%]"})]})]}):b?(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center text-center py-12 space-y-4",children:[(0,l.jsx)("div",{className:"text-4xl",children:"â³"}),(0,l.jsx)("p",{className:"text-lg font-semibold text-slate-700 dark:text-slate-200",children:"AI-инÑÐ°Ð¹Ñ Ð³Ð¾ÑовиÑÑÑ"}),(0,l.jsx)("p",{className:"text-sm text-slate-500 max-w-xs",children:"Ðнализ канала идÑÑ Ð² Ñоне â заглÑниÑе ÑÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ, инÑÐ°Ð¹Ñ Ð¿Ð¾ÑвиÑÑÑ Ð·Ð´ÐµÑÑ â¨"})]}):u?(0,l.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:(0,l.jsx)("p",{className:"whitespace-pre-wrap text-slate-700 dark:text-slate-300 leading-relaxed",children:u})}):s?(0,l.jsxs)("div",{className:"space-y-8",children:[(0,l.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("h4",{className:"text-sm font-bold text-slate-400 uppercase tracking-tight flex items-center gap-1.5",children:[(0,l.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),"ÐкÑÑалÑноÑÑÑ"]}),(0,l.jsx)("p",{className:"text-slate-700 dark:text-slate-300 leading-relaxed italic border-l-2 border-emerald-500/20 pl-4",children:s.summary_relevant})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("h4",{className:"text-sm font-bold text-slate-400 uppercase tracking-tight flex items-center gap-1.5",children:[(0,l.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-500"}),"ÐлавнÑй инÑайÑ"]}),(0,l.jsx)("p",{className:"text-slate-700 dark:text-slate-300 leading-relaxed border-l-2 border-blue-500/20 pl-4",children:s.summary_insight})]})]}),(0,l.jsxs)("div",{className:"p-6 bg-slate-50 dark:bg-slate-800/50 rounded-2xl border border-slate-100 dark:border-slate-700/50",children:[(0,l.jsxs)("h4",{className:"text-sm font-bold text-slate-800 dark:text-slate-200 mb-4 flex items-center gap-2",children:[(0,l.jsx)("span",{className:"p-1 bg-amber-100 dark:bg-amber-900/30 rounded",children:"\uD83C\uDFAF"}),"РекомендаÑии по ÑоÑÑÑ"]}),(0,l.jsx)("div",{className:"grid gap-3",children:s.summary_recommendations.split("\n").map((e,s)=>e.trim()&&(0,l.jsxs)(n.P.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.1*s},className:"flex items-start gap-3 p-3 bg-white dark:bg-slate-900 rounded-xl shadow-sm border border-slate-100 dark:border-slate-800",children:[(0,l.jsx)("span",{className:"mt-1 flex-shrink-0 w-5 h-5 rounded-full bg-blue-50 dark:bg-blue-900/30 text-blue-600 dark:text-blue-400 flex items-center justify-center text-[10px] font-bold",children:s+1}),(0,l.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400",children:e.replace(/^(\d+\.|-)\s*/,"")})]},s))})]})]}):(0,l.jsx)("div",{className:"text-center py-12",children:(0,l.jsx)("p",{className:"text-slate-400",children:"ÐÐµÑ Ð´Ð¾ÑÑÑпнÑÑ
инÑайÑов Ð´Ð»Ñ ÑÑого канала"})})})]}),(0,l.jsxs)(h,{className:"p-6",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,l.jsx)(m,{icon:"\uD83D\uDCF1",children:"ÐÑедпÑоÑмоÑÑ Ð¿ÑоÑилÑ"}),(0,l.jsx)(i.E,{variant:"outline",className:"text-[10px] uppercase font-bold text-slate-400 tracking-widest border-slate-200",children:"Mobile View"})]}),(0,l.jsxs)("div",{className:"relative mx-auto max-w-[320px] bg-[#17212b] rounded-[3rem] p-6 shadow-2xl border-[8px] border-slate-900 min-h-[500px] flex flex-col items-center",children:[(0,l.jsx)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-32 h-6 bg-slate-900 rounded-b-2xl z-20"}),(0,l.jsxs)("div",{className:"w-full h-full text-white flex flex-col items-center pt-8",children:[(0,l.jsx)("div",{className:"w-24 h-24 rounded-full overflow-hidden mb-4 border-2 border-white/10 ring-4 ring-white/5 shadow-xl",children:j?.photo_url&&(0,l.jsx)(t.default,{src:j.photo_url,alt:"TG",width:96,height:96})}),(0,l.jsx)("h5",{className:"text-xl font-bold truncate w-full text-center",children:j?.title||""}),(0,l.jsxs)("p",{className:"text-xs text-sky-400 mb-6 font-medium",children:["@",j?.username||""]}),(0,l.jsx)("div",{className:"w-full space-y-4",children:(0,l.jsxs)("div",{className:"space-y-1",children:[(0,l.jsx)("p",{className:"text-[10px] text-sky-400/80 uppercase font-bold tracking-tight",children:"Info"}),(0,l.jsx)("p",{className:"text-xs whitespace-pre-wrap leading-relaxed text-slate-100 bg-white/5 p-3 rounded-xl border border-white/5",children:j?.description||""})]})}),(0,l.jsx)("div",{className:"mt-auto w-full pt-6",children:j?.username&&(0,l.jsx)("a",{href:`https://t.me/${j.username}`,target:"_blank",rel:"noopener noreferrer",className:"block w-full",children:(0,l.jsx)("button",{className:"w-full py-3 bg-sky-500 hover:bg-sky-600 rounded-xl font-bold text-sm transition-all active:scale-95 shadow-lg shadow-sky-500/20",children:"ÐоÑмоÑÑеÑÑ Ð² Telegram"})})})]})]})]})]})]})]})};var p=a(77576),b=a(2834),g=a(67151);let j={moduleTitle:"Упаковка канала",moduleIcon:"\uD83C\uDFA8",teaserContent:(0,l.jsx)(function(){let{channel:e}=(0,b.d4)(e=>e.auth),{channelStats:s,isLoading:a}=(0,g.K)(),t=(()=>
1{if(!e||!s)return null;let a=!!e.photo_url,l=!!e.description&&e.description.length>10,t=!!e.username,r=s.members_count||0;return{visual:30*!!a+30*!!l+20*!!t+20*(r>100),engagement:Math.min(2*(s.engagement?.reactions_avg||0),100),hasPhoto:a,hasDescription:l,hasUsername:t,membersCount:r}})();return a?(0,l.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:[(0,l.jsxs)("h3",{className:"text-xl font-bold mb-4 flex items-center",children:[(0,l.jsx)("span",{className:"mr-3",children:"\uD83C\uDFA8"}),"ÐнализиÑÑем Ð²Ð°Ñ ÐºÐ°Ð½Ð°Ð»..."]}),(0,l.jsx)("div",{className:"space-y-3",children:[1,2,3].map(e=>(0,l.jsxs)("div",{className:"flex items-center p-3 bg-gray-100 rounded-lg animate-pulse",children:[(0,l.jsx)("div",{className:"w-8 h-8 bg-gray-300 rounded mr-3"}),(0,l.jsx)("div",{className:"h-4 bg-gray-300 rounded flex-1"})]},e))})]}),(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:[(0,l.jsx)("h3",{className:"text-xl font-bold mb-4",children:"ÐагÑÑзка анализа..."}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)("div",{className:"h-3 bg-gray-200 rounded-full animate-pulse"}),(0,l.jsx)("div",{className:"h-3 bg-gray-200 rounded-full animate-pulse"})]})]})]}):t?(0,l.jsx)("div",{className:"grid md:grid-cols-2 gap-6",children:(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:[(0,l.jsxs)("h3",{className:"text-xl font-bold mb-4 flex items-center",children:[(0,l.jsx)("span",{className:"mr-3",children:"\uD83C\uDFA8"}),'Ðнализ канала "',e?.title,'"']}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:`flex items-center p-3 rounded-lg ${t.hasPhoto?"bg-green-100":"bg-red-100"}`,children:[(0,l.jsx)("span",{className:"text-2xl mr-3",children:t.hasPhoto?"â
":"â"}),(0,l.jsx)("span",{className:t.hasPhoto?"text-green-700":"text-red-700",children:t.hasPhoto?"ÐваÑÐ°Ñ ÑÑÑановлен":"ÐÐµÑ Ð°Ð²Ð°ÑаÑа"})]}),(0,l.jsxs)("div",{className:`flex items-center p-3 rounded-lg ${t.hasDescription?"bg-green-100":"bg-orange-100"}`,children:[(0,l.jsx)("span",{className:"text-2xl mr-3",children:t.hasDescription?"â
":"â ï¸"}),(0,l.jsx)("span",{className:t.hasDescription?"text-green-700":"text-orange-700",children:t.hasDescription?"ÐпиÑание заполнено":"ÐпиÑание можно ÑлÑÑÑиÑÑ"})]}),(0,l.jsxs)("div",{className:`flex items-center p-3 rounded-lg ${t.hasUsername?"bg-green-100":"bg-red-100"}`,children:[(0,l.jsx)("span",{className:"text-2xl mr-3",children:t.hasUsername?"â
":"â"}),(0,l.jsx)("span",{className:t.hasUsername?"text-green-700":"text-red-700",children:t.hasUsername?`СÑÑлка: @${e?.username}`:"ÐÐµÑ Ð¿ÑблиÑной ÑÑÑлки"})]})]})]})}):(0,l.jsx)("div",{className:"text-center py-8",children:(0,l.jsx)("div",{className:"text-gray-500",children:"ÐÐµÑ Ð´Ð°Ð½Ð½ÑÑ
Ð´Ð»Ñ Ð°Ð½Ð°Ð»Ð¸Ð·Ð°"})})},{}),premiumFeatures:["ÐÑовеÑка Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð² Ñг каÑалоги","ÐÑовеÑка опиÑÐ°Ð½Ð¸Ñ ÐºÐ°Ð½Ð°Ð»Ð°","AI ÑовеÑÑ"]},f=(0,p.h)(function(){let{channel:e}=(0,b.d4)(e=>e.auth);return(0,l.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,l.jsx)("h1",{className:"text-3xl font-bold mb-8",children:"Упаковка канала \uD83C\uDFA8"}),(0,l.jsx)(r.Suspense,{fallback:(0,l.jsx)("div",{children:"ÐагÑÑзка..."}),children:e&&(0,l.jsx)(u,{channel:e})})]})},j)}},e=>{e.O(0,[9695,8096,7358],()=>e(e.s=17280)),_N_E=e.O()}]);
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.