1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7ee37c5e-aebd-51a2-b97a-d315a675ae9a")}catch(e){}}(); 3import{a as e}from"./_sentry-release-injection-file-CBSTStyH.js";import{A as t,V as n}from"./chunk-EVOBXE3Y-BFfxcyGi.js";import{t as r}from"./jsx-runtime-D-8bvFsy.js";import{t as i}from"./compiler-runtime-JGV7vN7S.js";import{t as a}from"./apiClient-C19I3aW3.js";import{t as o}from"./useQuery-BeZMFotK.js";import{t as s}from"./classnames-DG4YfVMR.js";import{t as c}from"./Link-CwP-Qy3z.js";import{n as l,t as u}from"./ArticleCard-JNBG30oi.js";import{t as d}from"./Topbar-ZhmGYCAa.js";var f=e(n()),p=i(),m=function(e){return e[e.DISABLED=0]=`DISABLED`,e[e.ACTIVE=1]=`ACTIVE`,e[e.DRAFT=2]=`DRAFT`,e}({}),h=async e=>(await a.get(`/service/articles/api/article`,{params:e,convertSnakeToCamel:!0,serviceName:`logic-articles`})).data.data,g=(e,t)=>{let n=(0,p.c)(7),r,i;n[0]===e?(r=n[1],i=n[2]):(r=[`articles`,e],i=()=>h(e),n[0]=e,n[1]=r,n[2]=i);let a;return n[3]!==t||n[4]!==r||n[5]!==i?(a={queryKey:r,queryFn:i,...t},n[3]=t,n[4]=r,n[5]=i,n[6]=a):a=n[6],o(a)},_=(e,t=`300px`)=>{let n=(0,f.useRef)(null);return{observerRef:(0,f.useCallback)(r=>{if(r){n.current=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(e(),n.current&&n.current.unobserve(t.target))})},{rootMargin:t}),n.current.observe(r);return}n.current&&n.current.disconnect()},[])}},v=e=>{let t=(0,p.c)(6),n;t[0]===e?n=t[1]:(n={status:m.ACTIVE,additionalFor:e},t[0]=e,t[1]=n);let r;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(r={enabled:!1},t[2]=r):r=t[2];let{data:i,refetch:a}=g(n,r),{observerRef:o}=_(a),s;return t[3]!==i||t[4]!==o?(s={moreArticlesRef:o,articles:i},t[3]=i,t[4]=o,t[5]=s):s=t[5],s},y=e(s()),b=`data:image/svg+xml,%3csvg%20width='30'%20height='30'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m20%2016.666-5-5-5%205'%20stroke='%23828E99'%20stroke-width='3.333'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,x={wrapper:`_wrapper_sc925_1`,text:`_text_sc925_16`,img:`_img_sc925_22`},S=r(),C=(0,f.memo)(function(e){let t=(0,p.c)(8),{className:n,children:r}=e,i=w,a;t[0]===n?a=t[1]:(a=(0,y.default)(x.wrapper,n),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=(0,S.jsx)(`p`,{className:x.text,children:r}),t[2]=r,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,S.jsx)(`img`,{className:x.img,src:b,alt:``,draggable:!1}),t[4]=s):s=t[4];let c;return t[5]!==a||t[6]!==o?(c=(0,S.jsxs)(`button`,{className:a,onClick:i,children:[o,s]}),t[5]=a,t[6]=o,t[7]=c):c=t[7],c});function w(){window.scrollTo({top:0,behavior:`smooth`})}var T={text:`_text_eouby_1`},E=(0,f.memo)(function(e){let t=(0,p.c)(8),{className:n,data:r}=e,i=`h${r.level}`,a;t[0]===n?a=t[1]:(a=(0,y.default)(T.text,n),t[0]=n,t[1]=a);let o;t[2]===r.text?o=t[3]:(o={__html:r.text},t[2]=r.text,t[3]=o);let s;return t[4]!==i||t[5]!==a||t[6]!==o?(s=(0,S.jsx)(i,{className:a,dangerouslySetInnerHTML:o}),t[4]=i,t[5]=a,t[6]=o,t[7]=s):s=t[7],s}),D={wrapper:`_wrapper_vqct9_5`,img:`_img_vqct9_13`,caption:`_caption_vqct9_22`},O=(0,f.memo)(function(e){let t=(0,p.c)(11),{className:n,data:r}=e,i;t[0]===n?i=t[1]:(i=(0,y.default)(D.wrapper,n),t[0]=n,t[1]=i);let a;t[2]!==r.caption||t[3]!==r.file.url?(a=(0,S.jsx)(`img`,{className:D.img,src:r.file.url,alt:r.caption}),t[2]=r.caption,t[3]=r.file.url,t[4]=a):a=t[4];let o;t[5]===r.caption?o=t[6]:(o=r.caption?(0,S.jsx)(`figcaption`,{className:D.caption,dangerouslySetInnerHTML:{__html:r.caption}}):null,t[5]=r.caption,t[6]=o);let s;return t[7]!==i||t[8]!==a||t[9]!==o?(s=(0,S.jsxs)(`figure`,{className:i,children:[a,o]}),t[7]=i,t[8]=a,t[9]=o,t[10]=s):s=t[10],s}),k={wrapper:`_wrapper_p9gmu_46`,link:`_link_p9gmu_56`,"small-bounce":`_small-bounce_p9gmu_1`,"small-shake":`_small-shake_p9gmu_1`,bounce:`_bounce_p9gmu_1`},A=(0,f.memo)(function(e){let t=(0,p.c)(8),{className:n,data:r}=e,i;t[0]===n?i=t[1]:(i=(0,y.default)(k.wrapper,n),t[0]=n,t[1]=i);let a;t[2]!==r.link||t[3]!==r.text?(a=(0,S.jsx)(`a`,{className:k.link,href:r.link,target:`_blank`,rel:`noreferrer`,children:r.text}),t[2]=r.link,t[3]=r.text,t[4]=a):a=t[4];let o;return t[5]!==i||t[6]!==a?(o=(0,S.jsx)(`div`,{className:i,children:a}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}),j={wrapper:`_wrapper_1bhh8_6`,item:`_item_1bhh8_14`},M=(0,f.memo)(function(e){let t=(0,p.c)(8),{className:n,data:r}=e,i=r.style===`unordered`?`ul`:`ol`,a;t[0]===n?a=t[1]:(a=(0,y.default)(j.wrapper,n),t[0]=n,t[1]=a);let o;t[2]===r.items?o=t[3]:(o=r.items.map(N),t[2]=r.items,t[3]=o);let s;return t[4]!==i||t[5]!==a||t[6]!==o?(s=(0,S.jsx)(i,{className:a,children:o}),t[4]=i,t[5]=a,t[6]=o,t[7]=s):s=t[7],s});function N(e,t){return(0,S.jsx)(`li`,{className:j.item,dangerouslySetInnerHTML:{__html:e}},t)}var P={text:`_text_1hd26_1`},F=(0,f.memo)(function(e){let t=(0,p.c)(7),{className:n,data:r}=e,i;t[0]===n?i=t[1]:(i=(0,y.default)(P.text,n),t[0]=n,t[1]=i);let a;t[2]===r.text?a=t[3]:(a={__html:r.text},t[2]=r.text,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,S.jsx)(`p`,{className:i,dangerouslySetInnerHTML:a}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}),I={wrapper:`_wrapper_ke92s_5`,border:`_border_ke92s_14`,text:`_text_ke92s_19`},L=(0,f.memo)(function(e){let t=(0,p.c)(8),{className:n,data:r}=e,i;t[0]===n?i=t[1]:(i=(0,y.default)(I.wrapper,n),t[0]=n,t[1]=i);let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,S.jsx)(`div`,{className:I.border}),t[2]=a):a=t[2];let o;t[3]===r.text?o=t[4]:(o=(0,S.jsx)(`blockquote`,{className:I.text,dangerouslySetInnerHTML:{__html:r.text}}),t[3]=r.text,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,S.jsxs)(`div`,{className:i,children:[a,o]}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}),R={},z=e=>{switch(e.type){case`header`:return(0,S.jsx)(E,{data:e.data});case`image`:return(0,S.jsx)(O,{data:e.data});case`list`:return(0,S.jsx)(M,{data:e.data});case`paragraph`:return(0,S.jsx)(F,{data:e.data});case`quote`:return(0,S.jsx)(L,{data:e.data});case`linkButton`:return(0,S.jsx)(A,{data:e.data})}},B=(0,f.memo)(function(e){let t=(0,p.c)(7),{className:n,article:r}=e,i;t[0]===n?i=t[1]:(i=(0,y.default)(R.wrapper,n),t[0]=n,t[1]=i);let a;t[2]===r.body.blocks?a=t[3]:(a=r.body.blocks.map(V),t[2]=r.body.blocks,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,S.jsx)(`div`,{className:i,children:a}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o});function V(e,t){return(0,S.jsx)(f.Fragment,{children:z(e)},t)}var H={wrapper:`_wrapper_lwog3_1`,title:`_title_lwog3_13`,grid:`_grid_lwog3_27`},U=(0,f.memo)(function(e){let t=(0,p.c)(11),{className:n,articles:r,getArticleUrl:i}=e,a;t[0]===n?a=t[1]:(a=(0,y.default)(H.wrapper,n),t[0]=n,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,S.jsx)(`h6`,{className:H.title,children:`ÐÑе по Ñеме`}),t[2]=o):o=t[2];let s;t[3]!==r||t[4]!==i?(s=r==null?void 0:r.map(e=>(0,S.jsx)(u,{article:e,articleUrl:i==null?void 0:i(e)},e.id)),t[3]=r,t[4]=i,t[5]=s):s=t[5];let c;t[6]===s?c=t[7]:(c=(0,S.jsx)(`div`,{className:H.grid,children:s}),t[6]=s,t[7]=c);let l;return t[8]!==a||t[9]!==c?(l=(0,S.jsxs)(`div`,{className:a,children:[o,c]}),t[8]=a,t[9]=c,t[10]=l):l=t[10],l}),W={topbarWrapper:`_topbarWrapper_erqsk_1`,topbar:`_topbar_erqsk_1`,page:`_page_erqsk_15`,main:`_main_erqsk_19`,header:`_header_erqsk_27`,link:`_link_erqsk_46`,title:`_title_erqsk_62`,content:`_content_erqsk_77`,footer:`_footer_erqsk_82`,scrollButton:`_scrollButton_erqsk_93`},G=(0,f.memo)(function(){let e=(0,p.c)(28),{article:n,isPrivate:r}=t(),i=r?`/v3/cabinet/articles`:`/v3/articles`,a;e[0]===r?a=e[1]:(a=e=>l(e,r),e[0]=r,e[1]=a);let o=a,{moreArticlesRef:s,articles:u}=v(n.id),f;e[2]===r?f=e[3]:(f=!r&&(0,S.jsx)(`header`,{className:W.topbarWrapper,children:(0,S.jsx)(d,{className:W.topbar,dar
3k:!0,withoutLocale:!0})}),e[2]=r,e[3]=f);let m;e[4]===i?m=e[5]:(m=(0,S.jsx)(c,{className:W.link,to:i,children:`ÐÑÑгие маÑеÑиалÑ`}),e[4]=i,e[5]=m);let h;e[6]===n.title?h=e[7]:(h=(0,S.jsx)(`h1`,{className:W.title,children:n.title}),e[6]=n.title,e[7]=h);let g;e[8]!==m||e[9]!==h?(g=(0,S.jsxs)(`div`,{className:W.header,children:[m,h]}),e[8]=m,e[9]=h,e[10]=g):g=e[10];let _;e[11]===n?_=e[12]:(_=(0,S.jsx)(B,{className:W.content,article:n}),e[11]=n,e[12]=_);let y;e[13]!==u||e[14]!==o?(y=u!=null&&u.length?(0,S.jsx)(U,{className:W.footer,articles:u,getArticleUrl:o}):null,e[13]=u,e[14]=o,e[15]=y):y=e[15];let b;e[16]!==n.id||e[17]!==s||e[18]!==y?(b=(0,S.jsx)(`div`,{ref:s,children:y},n.id),e[16]=n.id,e[17]=s,e[18]=y,e[19]=b):b=e[19];let x;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,S.jsx)(C,{className:W.scrollButton,children:`РнаÑало`}),e[20]=x):x=e[20];let w;e[21]!==g||e[22]!==_||e[23]!==b?(w=(0,S.jsxs)(`main`,{className:W.main,children:[g,_,b,x]}),e[21]=g,e[22]=_,e[23]=b,e[24]=w):w=e[24];let T;return e[25]!==f||e[26]!==w?(T=(0,S.jsxs)(`div`,{className:W.page,children:[f,w]}),e[25]=f,e[26]=w,e[27]=T):T=e[27],T});export{G as t}; 4//# debugId=7ee37c5e-aebd-51a2-b97a-d315a675ae9a
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.