import{j as e,a as L,o as E,r as j,u as S,k as H,aK as O,aM as T,aS as P,aT as D}from"./index-CsWJNzvD.js";import{c as F,d as V,e as G}from"./selectors-BzGTQ3YA.js";import{S as Q}from"./plus_icon-CzZh_kTs.js";import{s as W}from"./Toast-CUYmVWT6.js";import{a as U,b as Y,s as Z,p as J,e as K,c as X}from"./skills_icon-DNdLw3P0.js";import{t as ee}from"./timer_icon-BN-Yr58j.js";import{s as R}from"./share_icon-DjRp4IpP.js";import{S as h}from"./Skeleton-A4X_nY0C.js";import{E as te}from"./ErrorTooltip-CyHs5T23.js";import{S as se}from"./SEO-DciWNHuT.js";import"./info_icon-B7D6GJzN.js";const ae="_link_gblad_1",A={link:ae},ne=/^(https?:|mailto:|\/|#)/i,oe=({href:s,children:t})=>{const a=ne.test(s)?s:"#",o=a.startsWith("#"),n=i=>{i.preventDefault();const c=a.slice(1),d=document.getElementById(c);if(!d)return;const C=d.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:C,behavior:"smooth"}),window.history.pushState(null,"",a)};return o?e.jsx("a",{href:a,className:A.link,onClick:n,children:t}):e.jsx("a",{href:a,className:A.link,target:"_blank",rel:"noopener noreferrer",children:t})},ce=({children:s})=>{const t=L();return e.jsx("button",{type:"button",className:A.link,onClick:()=>t(E("auth")),children:s})};function w(s){return typeof s=="string"?s:s.map((t,a)=>typeof t=="string"?t:t.type==="bold"?e.jsx("strong",{children:t.text},a):t.action==="openAuth"?e.jsx(ce,{children:t.text},a):e.jsx(oe,{href:t.href??"#",children:t.text},a))}const ie="_textBlock_qn8bx_1",re="_blockTitle_qn8bx_8",le="_blockContent_qn8bx_13",de="_paragraph_qn8bx_19",b={textBlock:ie,blockTitle:re,blockContent:le,paragraph:de},he=({id:s,title:t,paragraphs:a=[]})=>{const o=a&&a.length>0;return e.jsxs("div",{className:b.textBlock,children:[t&&e.jsx("h2",{id:s,className:`h2 ${b.blockTitle}`,children:t}),o&&e.jsx("div",{className:b.blockContent,children:a.map((n,i)=>e.jsx("p",{className:`body-1 ${b.paragraph}`,children:w(n)},i))})]})},_e="_imageBlock_kk8dm_1",me="_image_kk8dm_1",xe="_caption_kk8dm_18",q={imageBlock:_e,image:me,caption:xe},pe=({id:s,src:t,caption:a})=>e.jsxs("figure",{id:s,className:q.imageBlock,children:[e.jsx("img",{src:t,alt:a||"Article image",className:q.image}),a&&e.jsx("figcaption",{className:`body-3 ${q.caption}`,children:a})]}),ue="_quoteBlock_cwu0w_1",ge="_quoteHeader_cwu0w_12",je="_quoteAvatar_cwu0w_20",Ne="_quoteMeta_cwu0w_27",ye="_quoteAuthor_cwu0w_33",we="_quoteRole_cwu0w_39",fe="_quoteContent_cwu0w_44",$e="_quoteText_cwu0w_49",u={quoteBlock:ue,quoteHeader:ge,quoteAvatar:je,quoteMeta:Ne,quoteAuthor:ye,quoteRole:we,quoteContent:fe,quoteText:$e},ve=({id:s,text:t,author:a,role:o,avatar:n})=>e.jsxs("blockquote",{id:s,className:u.quoteBlock,children:[e.jsxs("header",{className:u.quoteHeader,children:[n&&e.jsx("img",{src:n,alt:a,className:u.quoteAvatar}),e.jsxs("div",{className:u.quoteMeta,children:[e.jsx("cite",{className:`h3 ${u.quoteAuthor}`,children:a}),o&&e.jsx("span",{className:`body-4 ${u.quoteRole}`,children:o})]})]}),e.jsx("div",{className:u.quoteContent,children:e.jsx("p",{className:`body-1 ${u.quoteText}`,children:t})})]}),Ce="_listBlock_1m2h6_1",be="_listTitle_1m2h6_8",ke="_list_1m2h6_1",k={listBlock:Ce,listTitle:be,list:ke},Be=({id:s,title:t,items:a,ordered:o})=>{const n=o?"ol":"ul";return e.jsxs("div",{className:k.listBlock,children:[t&&e.jsx("h3",{id:s,className:`h3 ${k.listTitle}`,children:t}),e.jsx(n,{className:k.list,children:a.map((i,c)=>e.jsx("li",{className:`body-1 ${k.listItem}`,children:w(i)},c))})]})},Te="_faqWrapper_1wyhx_1",qe="_mainTitle_1wyhx_8",Ie="_list_1wyhx_13",Ae="_item_1wyhx_19",We="_questionRow_1wyhx_26",Re="_question_1wyhx_26",Me="_icon_1wyhx_45",Se="_answerWrapper_1wyhx_55",ze="_itemOpen_1wyhx_61",Le="_answerContent_1wyhx_65",Ee="_answer_1wyhx_55",_={faqWrapper:Te,mainTitle:qe,list:Ie,item:Ae,questionRow:We,question:Re,icon:Me,answerWrapper:Se,itemOpen:ze,answerContent:Le,answer:Ee},He=s=>j.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},j.createElement("path",{d:"M13.5833 10.417H17.9167C18.204 10.417 18.4795 10.5311 18.6827 10.7343C18.8859 10.9375 19 11.213 19 11.5003C19 11.7876 18.8859 12.0632 18.6827 12.2664C18.4795 12.4695 18.204 12.5837 17.9167 12.5837H13.5833H11.4167H7.08333C6.79602 12.5837 6.52047 12.4695 6.3173 12.2664C6.11414 12.0632 6 11.7876 6 11.5003C6 11.213 6.11414 10.9375 6.3173 10.7343C6.52047 10.5311 6.79602 10.417 7.08333 10.417H11.4167H13.5833Z",fill:"#31323A"})),Oe=({id:s,items:t})=>{const[a,o]=j.useState([0]),n=i=>{o(c=>c.includes(i)?c.filter(d=>d!==i):[...c,i])};return e.jsxs("div",{id:s,className:_.faqWrapper,children:[e.jsx("h2",{className:`h2 ${_.mainTitle}`,children:"FAQ: Ответы на частые вопросы"}),e.jsx("div",{className:_.list,children:t.map((i,c)=>{const d=a.includes(c);return e.jsxs("div",{className:`${_.item} ${d?_.itemOpen:""}`,children:[e.jsxs("button",{type:"button",className:_.questionRow,onClick:()=>n(c),"aria-expanded":d,children:[e.jsx("span",{className:`body-1 ${_.question}`,children:w(i.question)}),d?e.jsx(He,{className:_.icon}):e.jsx(Q,{className:_.icon})]}),e.jsx("div",{className:_.answerWrapper,children:e.jsx("div",{className:_.answerContent,children:e.jsx("p",{className:`body-1 ${_.answer}`,children:w(i.answer)})})})]},c)})})]})},Pe="_accentContainer_1xbx9_1",De="_title_1xbx9_12",Fe="_textWrapper_1xbx9_17",Ve="_text_1xbx9_17",Ge="_list_1xbx9_28",Qe="_listItem_1xbx9_36",f={accentContainer:Pe,title:De,textWrapper:Fe,text:Ve,list:Ge,listItem:Qe},Ue=({id:s,title:t,paragraphs:a,items:o,ordered:n})=>{const i=n?"ol":"ul";return e.jsxs("div",{id:s,className:f.accentContainer,children:[t&&e.jsx("h3",{className:`h3 ${f.title}`,children:t}),a&&a.length>0&&e.jsx("div",{className:f.textWrapper,children:a.map((c,d)=>e.jsx("p",{className:`body-1 ${f.text}`,children:w(c)},d))}),o&&o.length>0&&e.jsx(i,{className:f.list,children:o.map((c,d)=>e.jsx("li",{className:`body-1 ${f.listItem}`,children:w(c)},d))})]})},Ye="_container_1axuq_1",Ze="_header_1axuq_12",Je="_title_1axuq_18",Ke="_copyBtn_1axuq_24",Xe="_copied_1axuq_45",et="_contentWrapper_1axuq_50",tt="_code_1axuq_54",N={container:Ye,header:Ze,title:Je,copyBtn:Ke,copied:Xe,contentWrapper:et,code:tt},st="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.54688%203.33772V1.63561C3.54697%201.36081%203.6562%201.0973%203.85055%200.903025C4.0449%200.708747%204.30845%200.599609%204.58324%200.599609H13.5631C13.838%200.599609%2014.1016%200.708798%2014.296%200.903155C14.4903%201.09751%2014.5995%201.36112%2014.5995%201.63598V10.6162C14.5994%2010.891%2014.4902%2011.1546%2014.2958%2011.3488C14.1015%2011.5431%2013.8379%2011.6523%2013.5631%2011.6523H11.8426'%20stroke='%239A9CB0'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.6162%203.54688H1.63524C1.36051%203.54707%201.09709%203.65635%200.902894%203.85068C0.708697%204.04502%200.599609%204.30851%200.599609%204.58324V13.5631C0.599609%2013.838%200.708798%2014.1016%200.903155%2014.296C1.09751%2014.4903%201.36112%2014.5995%201.63598%2014.5995H10.6162C10.891%2014.5994%2011.1546%2014.4902%2011.3488%2014.2958C11.5431%2014.1015%2011.6523%2013.8379%2011.6523%2013.5631V4.58361C11.6523%204.44748%2011.6255%204.31268%2011.5735%204.1869C11.5214%204.06112%2011.4451%203.94683%2011.3488%203.85055C11.2526%203.75428%2011.1383%203.6779%2011.0126%203.6258C10.8868%203.57369%2010.7524%203.54687%2010.6162%203.54688Z'%20stroke='%239A9CB0'%20stroke-width='1.2'%20stroke-linejoin='round'/%3e%3c/svg%3e",at=({id:s,title:t,content:a,copyable:o=!0})=>{const[n,i]=j.useState(!1),c=()=>{navigator.clipboard.writeText(a),i(!0),setTimeout(()=>i(!1),2e3)};return e.jsxs("div",{id:s,className:N.container,children:[e.jsxs("div",{className:N.header,children:[e.jsx("span",{className:`body-1 ${N.title}`,children:t}),o&&e.jsx("button",{type:"button",onClick:c,className:`${N.copyBtn} ${n?N.copied:""}`,"aria-label":"Копировать",children:e.jsx("img",{src:st,alt:""})})]}),e.jsx("div",{className:N.contentWrapper,children:e.jsx("pre",{className:N.code,children:a})})]})},nt="_wrapper_za34d_1",ot="_mainTitle_za34d_8",ct="_container_za34d_14",it="_textColumn_za34d_22",rt="_textContent_za34d_30",lt="_title_za34d_36",dt="_paragraph_za34d_41",ht="_imageColumn_za34d_46",_t="_image_za34d_46",mt="_caption_za34d_66",xt="_reverse_za34d_86",m={wrapper:nt,mainTitle:ot,container:ct,textColumn:it,textContent:rt,title:lt,paragraph:dt,imageColumn:ht,image:_t,caption:mt,reverse:xt},pt=({id:s,mainTitle:t,title:a,text:o,imageSrc:n,imageCaption:i,imagePosition:c="right"})=>e.jsxs("div",{id:s,className:m.wrapper,children:[t&&e.jsx("h2",{className:`h2 ${m.mainTitle}`,children:t}),e.jsxs("div",{className:`${m.container} ${c==="left"?m.reverse:""}`,children:[e.jsxs("div",{className:m.textColumn,children:[a&&e.jsx("h3",{className:`h3 ${m.title}`,children:a}),e.jsx("div",{className:m.textContent,children:o.map((d,l)=>e.jsx("p",{className:`body-1 ${m.paragraph}`,children:w(d)},l))})]}),e.jsxs("figure",{className:m.imageColumn,children:[e.jsx("img",{src:n,alt:i||a,className:m.image}),i&&e.jsx("figcaption",{className:`body-4 ${m.caption}`,children:i})]})]})]}),ut="_wrapper_1dwnx_1",gt="_mainTitle_1dwnx_8",jt="_description_1dwnx_13",Nt="_grid_1dwnx_18",yt="_card_1dwnx_32",wt="_itemTitle_1dwnx_39",ft="_itemText_1dwnx_44",$t="_tagsWrapper_1dwnx_49",vt="_tag_1dwnx_49",x={wrapper:ut,mainTitle:gt,description:jt,grid:Nt,card:yt,itemTitle:wt,itemText:ft,tagsWrapper:$t,tag:vt},Ct=({id:s,title:t,description:a,items:o})=>e.jsxs("div",{id:s,className:x.wrapper,children:[t&&e.jsx("h2",{className:`h2 ${x.mainTitle}`,children:t}),a&&e.jsx("p",{className:`body-1 ${x.description}`,children:a}),e.jsx("div",{className:x.grid,children:o.map((n,i)=>e.jsxs("div",{className:x.card,children:[e.jsx("h4",{className:`h3 ${x.itemTitle}`,children:n.title}),e.jsx("p",{className:`body-1 ${x.itemText}`,children:n.text}),n.tags&&n.tags.length>0&&e.jsx("div",{className:x.tagsWrapper,children:n.tags.map(c=>e.jsx("span",{className:`body-2 ${x.tag}`,children:c},c))})]},i))})]}),bt="_container_ugke6_1",kt="_title_ugke6_7",Bt="_list_ugke6_12",Tt="_item_ugke6_20",qt="_itemText_ugke6_24",It="_link_ugke6_28",$={container:bt,title:kt,list:Bt,item:Tt,itemText:qt,link:It},At=({id:s,title:t,items:a})=>e.jsxs("div",{id:s,className:$.container,children:[t&&e.jsx("h2",{className:`h2 ${$.title}`,children:t}),e.jsx("ol",{className:$.list,children:a.map((o,n)=>e.jsxs("li",{id:`${s}-${n+1}`,className:$.item,children:[e.jsx("span",{className:`body-1 ${$.itemText}`,children:o.title}),o.link&&e.jsx("p",{className:`body-1 ${$.link}`,children:o.link})]},n))})]}),Wt="_tableBlock_1lxk2_1",Rt="_tableTitle_1lxk2_9",Mt="_scrollWrapper_1lxk2_15",St="_table_1lxk2_1",zt="_headCell_1lxk2_30",Lt="_cell_1lxk2_31",v={tableBlock:Wt,tableTitle:Rt,scrollWrapper:Mt,table:St,headCell:zt,cell:Lt},Et=({id:s,title:t,columns:a,rows:o})=>e.jsxs("div",{className:v.tableBlock,children:[t&&e.jsx("h3",{id:s,className:`h3 ${v.tableTitle}`,children:t}),e.jsx("div",{className:v.scrollWrapper,children:e.jsxs("table",{className:v.table,children:[e.jsx("thead",{children:e.jsx("tr",{children:a.map((n,i)=>e.jsx("th",{className:`body-3 ${v.headCell}`,children:n},i))})}),e.jsx("tbody",{children:o.map((n,i)=>e.jsx("tr",{children:n.map((c,d)=>e.jsx("td",{className:`body-1 ${v.cell}`,children:c},d))},i))})]})})]}),Ht="_articleBody_1xryy_1",Ot={articleBody:Ht},Pt=({blocks:s})=>s!=null&&s.length?e.jsx("div",{className:Ot.articleBody,children:s.map(t=>{switch(t.type){case"text":return e.jsx(he,{...t},t.id);case"image":return e.jsx(pe,{...t},t.id);case"quote":return e.jsx(ve,{...t},t.id);case"list":return e.jsx(Be,{...t},t.id);case"faq":return e.jsx(Oe,{...t},t.id);case"accent":return e.jsx(Ue,{...t},t.id);case"code":return e.jsx(at,{...t},t.id);case"textWithImage":return e.jsx(pt,{...t},t.id);case"cardGrid":return e.jsx(Ct,{...t},t.id);case"references":return e.jsx(At,{...t},t.id);case"table":return e.jsx(Et,{...t},t.id);default:return null}})}):null,Dt="_tocWrapper_z75mj_1",Ft="_header_z75mj_11",Vt="_title_z75mj_17",Gt="_toggleBtn_z75mj_23",Qt="_list_z75mj_37",Ut="_item_z75mj_46",Yt="_link_z75mj_51",Zt="_subListWrapper_z75mj_61",g={tocWrapper:Dt,header:Ft,title:Vt,toggleBtn:Gt,list:Qt,item:Ut,link:Yt,subListWrapper:Zt},Jt=({blocks:s,manualToc:t})=>{const[a,o]=j.useState(!0),n=j.useMemo(()=>{if(t&&t.length>0)return t;const d=[];return s.forEach(l=>{l.type==="text"&&l.title&&d.push({id:l.id,title:l.title}),l.type==="list"&&l.title&&d.push({id:l.id,title:l.title}),l.type==="faq"&&d.push({id:l.id,title:"FAQ: Ответы на частые вопросы"})}),d},[s,t]);if(n.length===0)return null;const i=(d,l)=>{d.preventDefault();const p=document.getElementById(l);if(p){const z=p.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:z,behavior:"smooth"}),window.history.pushState(null,"",`#${l}`)}else console.warn(`Element with id "${l}" not found in DOM`)},c=d=>e.jsx("ul",{className:g.list,children:d.map(l=>e.jsxs("li",{className:g.item,children:[e.jsx("a",{href:`#${l.id}`,onClick:p=>i(p,l.id),className:`body-1 ${g.link}`,children:l.title}),l.items&&l.items.length>0&&e.jsx("div",{className:g.subListWrapper,children:c(l.items)})]},l.id))});return e.jsxs("nav",{className:g.tocWrapper,children:[e.jsxs("div",{className:g.header,children:[e.jsx("h3",{className:`h2 ${g.title}`,children:"Содержание"}),e.jsxs("button",{className:`body-4 ${g.toggleBtn}`,onClick:()=>o(!a),type:"button",children:["[ ",a?"Скрыть":"Показать"," ]"]})]}),a&&c(n)]})},Kt="_container_1gct8_1",Xt="_header_1gct8_10",es="_meta_1gct8_17",ts="_mainMeta_1gct8_27",ss="_categoryName_1gct8_34",as="_categoryIcon_1gct8_41",ns="_dot_1gct8_50",os="_readTime_1gct8_55",cs="_timeIcon_1gct8_65",is="_title_1gct8_70",rs="_description_1gct8_80",ls="_coverImage_1gct8_85",ds="_authorBlock_1gct8_94",hs="_avatar_1gct8_100",_s="_authorInfo_1gct8_107",ms="_authorName_1gct8_114",xs="_authorRole_1gct8_119",ps="_body_1gct8_124",us="_footer_1gct8_132",gs="_tags_1gct8_139",js="_tag_1gct8_139",Ns="_shareBtn_1gct8_149",ys="_footerContainer_1gct8_162",r={container:Kt,header:Xt,meta:es,mainMeta:ts,categoryName:ss,categoryIcon:as,dot:ns,readTime:os,timeIcon:cs,title:is,description:rs,coverImage:ls,authorBlock:ds,avatar:hs,authorInfo:_s,authorName:ms,authorRole:xs,body:ps,footer:us,tags:gs,tag:js,shareBtn:Ns,footerContainer:ys},M={career:{label:"Карьера и работа",icon:X},training:{label:"Обучение и траектории",icon:K},hiring:{label:"Найм и команды",icon:J},research:{label:"Исследования",icon:Z},skills:{label:"Навыки и развитие",icon:Y},all:{label:"Блог",icon:U}},ws=({article:s})=>{const t=j.useMemo(()=>M[s.category]||M.all,[s.category]),a=async o=>{o.preventDefault(),o.stopPropagation();const n=`${window.location.origin}/blog/${s.id}`;if(window.matchMedia("(max-width: 768px)").matches&&navigator.share)try{await navigator.share({title:s.title,text:s.description,url:n})}catch(c){c.name!=="AbortError"&&console.log(c)}else try{await navigator.clipboard.writeText(n),W({children:"Ссылка скопирована в буфер обмена"})}catch{W({children:"Не удалось скопировать ссылку"})}};return e.jsxs("article",{className:r.container,children:[e.jsxs("header",{className:r.header,children:[e.jsxs("div",{className:`body-3 ${r.meta}`,children:[e.jsxs("div",{className:r.mainMeta,children:[e.jsxs("span",{className:r.categoryName,children:[e.jsx("img",{src:t.icon,alt:t.label,className:r.categoryIcon}),t.label]}),e.jsx("span",{className:r.dot,children:"•"}),e.jsx("span",{children:s.createdAt})]}),e.jsx("button",{className:r.shareBtn,onClick:a,"aria-label":"Поделиться статьей",children:e.jsx("img",{src:R,alt:"Share"})})]}),e.jsx("h1",{className:r.title,children:s.title}),e.jsx("p",{className:`body-3 ${r.description}`,children:s.description}),e.jsx("img",{src:s.coverUrl,alt:"Cover",className:r.coverImage}),e.jsxs("div",{className:r.authorBlock,children:[e.jsx("img",{src:s.author.avatar,alt:s.author.name,className:r.avatar}),e.jsxs("div",{className:r.authorInfo,children:[e.jsx("h3",{className:`h3 ${r.authorName}`,children:s.author.name}),e.jsx("p",{className:`body-4 ${r.authorRole}`,children:s.author.role})]}),e.jsxs("span",{className:r.readTime,children:[e.jsx("img",{src:ee,alt:s.readTime,className:r.timeIcon}),s.readTime]})]})]}),e.jsxs("div",{className:r.body,children:[e.jsx(Jt,{blocks:s.blocks,manualToc:s.toc}),e.jsx(Pt,{blocks:s.blocks})]}),e.jsxs("footer",{className:r.footer,children:[e.jsxs("div",{className:r.authorBlock,children:[e.jsx("img",{src:s.author.avatar,alt:s.author.name,className:r.avatar}),e.jsxs("div",{className:r.authorInfo,children:[e.jsx("h3",{className:`h3 ${r.authorName}`,children:s.author.name}),e.jsx("p",{className:`body-4 ${r.authorRole}`,children:s.author.role})]})]}),e.jsxs("div",{className:r.footerContainer,children:[e.jsx("div",{className:r.tags,children:s.tags.map(o=>e.jsx("span",{className:`body-3 ${r.tag}`,children:o},o))}),e.jsx("button",{className:r.shareBtn,onClick:a,"aria-label":"Поделиться статьей",children:e.jsx("img",{src:R,alt:"Share"})})]})]})]})},fs="_container_fe7g4_1",$s="_header_fe7g4_8",vs="_meta_fe7g4_14",Cs="_title_fe7g4_19",bs="_description_fe7g4_25",ks="_author_fe7g4_29",Bs="_body_fe7g4_36",y={container:fs,header:$s,meta:vs,title:Cs,description:bs,author:ks,body:Bs},Ts=()=>(S(),e.jsxs("div",{className:y.container,children:[e.jsxs("div",{className:y.header,children:[e.jsxs("div",{className:y.meta,children:[e.jsx(h,{width:120,height:20}),e.jsx(h,{width:80,height:20}),e.jsx(h,{width:60,height:20})]}),e.jsxs("div",{className:y.title,children:[e.jsx(h,{height:40,width:"80%"}),e.jsx(h,{height:40,width:"60%"})]}),e.jsx("div",{className:y.description,children:e.jsx(h,{lines:2,height:20})}),e.jsx(h,{height:300,width:"100%",style:{borderRadius:"20px"}}),e.jsxs("div",{className:y.author,children:[e.jsx(h,{variant:"circle",width:48,height:48}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[e.jsx(h,{width:120,height:16}),e.jsx(h,{width:80,height:14})]})]})]}),e.jsxs("div",{className:y.body,children:[e.jsx(h,{lines:4,height:16,lineGap:10}),e.jsx(h,{height:200,width:"100%",style:{borderRadius:"12px"}}),e.jsx(h,{lines:6,height:16,lineGap:10})]})]})),qs="_contentLayout_ui60d_1",I={contentLayout:qs},Ps=()=>{var l,p,C,B;S();const{id:s}=H(),t=O(),a=T(F),o=T(V),n=T(G);if(j.useEffect(()=>(s&&t(P(s)),()=>{t(D())}),[t,s]),o)return e.jsx("div",{className:I.contentLayout,children:e.jsx(Ts,{})});if(n||!a)return e.jsx("div",{className:I.center,children:e.jsx(te,{title:"Статья не найдена",message:"Возможно, она была удалена или ссылка некорректна."})});const i=`Статья - ${((l=a.seo)==null?void 0:l.title)||a.title}`,c=((p=a.seo)==null?void 0:p.description)||a.description,d={"@context":"https://schema.org","@type":"BlogPosting",headline:a.title,image:[a.coverUrl],datePublished:a.createdAt,author:{"@type":"Person",name:a.author.name},description:a.description};return e.jsxs(e.Fragment,{children:[e.jsx(se,{title:i,description:c,ogImage:a.coverUrl,keywords:(C=a.seo)==null?void 0:C.keywords,type:"article",jsonLd:d,noindex:(B=a.seo)==null?void 0:B.noindex}),e.jsx("div",{className:I.contentLayout,children:e.jsx(ws,{article:a})})]})};export{Ps as ArticlePage};