PageSourceSearch

https://visityaroslavia.ru/_next/static/chunks/pages/news/[id]-4b3b4a34d2684796.js

js visityaroslavia.ru collected 2026-10-02 04:10:59 UTC 6,634 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2232],{83578:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/news/[id]",function(){return s(6493)}])},53735:function(e,r,s){"use strict";s.d(r,{P:function(){return I}});var n=s(67168),a=s(18381),t=s(64382),i=s(10655),l=s(57136),o=s.n(l),c=s(81894),d=s(81650),_=s(90620),u=s(89559),m=s(79134),h=s(26635),g=s(99482),x=s.n(g),p=s(38676),v=s(33333),j=s.n(v),w=s(6005),N=s(22845),f=s(47568),b=s(94658),k=s(84503),y=s.n(k);let B=e=>{var r,s;let{item:a}=e,{locale:t}=(0,i.useRouter)();return(0,n.jsxs)("div",{className:y().heroWrapper,children:[(0,n.jsx)("div",{className:y().hero,children:(0,n.jsxs)("div",{className:y().hero__in,children:[(0,n.jsxs)("div",{className:y().breadcrumbsAndCategory,children:[(0,n.jsx)("div",{className:y().breadcrumbs,children:(0,n.jsx)(w.O,{label:a.name,theme:"dark"})}),(null==a?void 0:null===(r=a.category)||void 0===r?void 0:r.name)&&(0,n.jsx)("div",{className:y().wrapperCategory,children:(0,n.jsx)(b.V,{children:a.category.name})})]}),(0,n.jsx)("h1",{className:j()(y().title,{[y().hasCategory]:!!(null==a?void 0:null===(s=a.category)||void 0===s?void 0:s.name)}),children:a.name}),(0,n.jsx)("div",{className:y().date,children:(0,p.default)(a.editDate,"dd MMMM yyyy, HH:mm",{locale:N.n[t]})})]})}),(0,n.jsx)("div",{className:y().gallery,children:(0,n.jsx)(f.r,{gallery:[a.image]})})]})};var C=s(93183),S=s(5625),A=s(44118),H=s(72755),P=s(57484),E=s(77793),R=s.n(E);let M=e=>{let{items:r}=e,{t:s}=(0,t.Z)("news"),i=(0,A.kC)(),[l,o]=a.useState(3),c=a.useRef(),d=a.useRef(null),_=a.useRef(null),[u,m]=a.useState(0),[h,g]=a.useState([]);a.useEffect(()=>{setTimeout(()=>{(null==c?void 0:c.current)&&c.current.swiper.update()},100)},[]),a.useEffect(()=>{i===A.Zj.desktop?o(3):o(1)},[i]);let x=a.useMemo(()=>{let e=[];for(let s=0;s<r.length;s+=l){let n=r.slice(s,s+l);e.push(n)}return e},[r,l]);return(0,n.jsxs)("div",{className:R().wrapper,children:[(0,n.jsx)("h3",{className:R().title,children:s("otherNews")}),(0,n.jsxs)("div",{className:R().slider,children:[(0,n.jsx)("div",{className:R().arrows,children:x.length>1&&(0,n.jsx)(H.R,{current:u+1,total:h.length,onPrevClick:()=>{var e;return null==c?void 0:null===(e=c.current)||void 0===e?void 0:e.swiper.slidePrev()},onNextClick:()=>{var e;return null==c?void 0:null===(e=c.current)||void 0===e?void 0:e.swiper.slideNext()},prevDisabled:0===u,nextDisabled:u===h.length-1})}),(0,n.jsx)(C.tq,{modules:[S.W_,S.tl],navigation:{prevEl:d.current,nextEl:_.current},pagination:{dynamicBullets:!0,dynamicMainBullets:5},spaceBetween:20,slidesPerView:"auto",className:R().swiper,onBeforeInit:e=>{c.current={swiper:e}},onPaginationUpdate:e=>{let r=Array.from(e.pagination.bullets);g(r),m(r.findIndex(e=>e.classList.contains("swiper-pagination-bullet-active")))},children:x.map((e,r)=>(0,n.jsx)(C.o5,{className:R().slide,children:Array.from(Array(l).keys()).map((r,s)=>(0,n.jsx)(P.e,{item:e[s]},s))},"locales-".concat(r,"-1")))})]})]})},I=e=>{let{item:r}=e,[s,l]=a.useState([]),[g,p]=a.useState(!1),{t:v}=(0,t.Z)(),{locale:j}=(0,i.useRouter)(),w=j&&h._[j];return a.useEffect(()=>{p(!0),_.x1.get(u.j.api.articles.get,{params:{limit:m.vJ,types:"article",excludeIds:r._id,sort:"-updateDate",lang:w}}).then(e=>l(e.data.articles)).finally(()=>{p(!1)})},[r._id,j]),(0,n.jsxs)("div",{children:[(0,n.jsx)(B,{item:r}),(0,n.jsxs)("div",{className:x().main,children:[(0,n.jsx)("div",{className:x().content,children:(0,n.jsx)(c.b,{content:r.content})}),r.tags.length>0&&(0,n.jsx)("div",{className:x().tags,children:r.tags.map((e,s)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{className:x().tag,href:"/news?tags=".concat(e._id),children:e.name},e._id),s===r.tags.length-1?"":", "]}))}),g&&(0,n.jsx)("div",{className:x().recommendationsLoader,children:v("common:loadingMessage")}),s.length>0&&!g&&(0,n.jsx)("div",{className:x().recommendations,children:(0,n.jsx)(M,{items:s},r._id)})]}),(0,n.jsx)(d.C,{})]})}},72755:function(e,r,s){"use strict";s.d(r,{R:function(){return c}});var n=s(67168);s(18381);var a=s(33333),t=s.n(a),i=s(30807),l=s(19046),o=s.n(l);let c=e=>{let{current:r,total:s,onPrevClick:a,onNextClick:l,prevDisabled:c,nextDisabled:d}=e;return(0,n.jsxs)("div",{className:o().wrapper,children:[(0,n.jsxs)("div",{className:o().count,children:[(0,n.jsx)("span",{children:r})," / ",(0,n.jsx)("span",{children:s})]}),(0,n.jsxs)("div",{className:o().actions,children:[(0,n.jsx)("button",{role:"button",className:o().arrow,onClick:a,disabled:c,
1children:(0,n.jsx)(i.SliderArrowIcon,{})}),(0,n.jsx)("button",{role:"button",className:t()(o().arrow,o().arrowNext),onClick:l,disabled:d,children:(0,n.jsx)(i.SliderArrowIcon,{})})]})]})}},6493:function(e,r,s){"use strict";s.r(r),s.d(r,{__N_SSP:function(){return c},default:function(){return d}});var n=s(67168);s(18381);var a=s(78389),t=s.n(a),i=s(53735),l=s(82882),o=s(20881),c=!0;function d(e){let{item:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.H,{}),(0,n.jsx)(t(),{children:(0,n.jsx)("title",{children:r.name})}),(0,n.jsx)(i.P,{item:r})]})}d.getLayout=function(e){return(0,n.jsx)(l.A,{whiteHeader:!0,children:e})}},99482:function(e){e.exports={main:"SingleNewsPage_main__yFJXH",content:"SingleNewsPage_content__JBKrp",tags:"SingleNewsPage_tags__0kWAl",tag:"SingleNewsPage_tag__efyWS",recommendations:"SingleNewsPage_recommendations__wtj_y",recommendationsLoader:"SingleNewsPage_recommendationsLoader__Iv2Ii"}},84503:function(e){e.exports={heroWrapper:"HeroBlock_heroWrapper__7hIMJ",hero:"HeroBlock_hero__GblHn",hero__in:"HeroBlock_hero__in__DUghF",breadcrumbsAndCategory:"HeroBlock_breadcrumbsAndCategory__HuuiJ",breadcrumbs:"HeroBlock_breadcrumbs___CEjM",wrapperCategory:"HeroBlock_wrapperCategory__UGCgO",title:"HeroBlock_title__6RrA6",hasCategory:"HeroBlock_hasCategory__gXOCC",date:"HeroBlock_date__P7zH8",gallery:"HeroBlock_gallery__g_GGi"}},77793:function(e){e.exports={title:"Recommendations_title__Ozbf6",slider:"Recommendations_slider__3K939",arrows:"Recommendations_arrows__34cVx",swiper:"Recommendations_swiper__1vgm0",slide:"Recommendations_slide__oUdUh"}},18155:function(e){e.exports={breadcrumbs:"Breadcrumbs_breadcrumbs__xTS6a",light:"Breadcrumbs_light__mdk4E",link:"Breadcrumbs_link__fkvs3",divider:"Breadcrumbs_divider__hiCuT",active:"Breadcrumbs_active__6mEQo"}},19046:function(e){e.exports={wrapper:"SliderArrowsBlock_wrapper__pbizp",count:"SliderArrowsBlock_count__EACnz",actions:"SliderArrowsBlock_actions__NWKz5",arrow:"SliderArrowsBlock_arrow__CVgj5",arrowNext:"SliderArrowsBlock_arrowNext__S2uAb"}}},function(e){e.O(0,[4577,8114,3183,6469,9911,4073,4037,990,2888,9774,179],function(){return e(e.s=83578)}),_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.