1import{c as S,r as m,E as M,j as V,A as j,k as N,o as l,a as r,e as i,n as B,b as e,p as h,B as g,s as P,F as E,d as T,f as C,O as H,H as I,y as z}from"./BYZkJJS9.js";import{_ as D}from"./C4J-YwLf.js";import{u as F}from"./BqkzGLWv.js";import{S as G,P as $,N as A,G as O}from"./DPCA_hBq.js";/* empty css */const R={class:"carusel__container center-wrap pt-56"},U={class:"carusel__head flex --align-center --just-space"},W={key:0,class:"carusel__title-wrap --main flex --just-space --align-center col --9 mx-8"},q=["innerHTML"],J=e("h2",{class:"carusel__title-mobilearrow"}," >",-1),K={key:1,class:"carusel__title-wrap flex --just-space --align-center col --9"},Q=["innerHTML"],X={class:"carusel__controls col --3 flex --just-end --align-end"},Y={class:"carusel__btns flex --just-space"},Z={class:"carusel__pager-wrap"},ee={class:"carusel__content mt-32"},se={class:"carusel__list swiper-wrapper mx-8 my-8"},ie={__name:"news",props:{title:String,subtitle:String,otherPages:Boolean,withDecor:Boolean,slug:String,rows:Number},setup(s){const t=s,L=F(),n=S(()=>L.getItems.filter(f=>{var d;const c=t.slug!==void 0?f.slug!==t.slug:!0,u=t.type?((d=f.analytic_type)==null?void 0:d.name)===t.type:!0;return c&&u}));let o;const w=m(null),v=m(null),y=m(null),b=m(null),_=()=>{o&&(o.destroy(!0,!0),o=null)},p=async a=>{await H(),!(!w.value||!n.value.length)&&(_(),o=new G(w.value,{modules:[$,A,O],slidesPerView:1.05,spaceBetween:8,grabCursor:!0,grid:void 0,observer:!0,observeParents:!0,pagination:{el:b.value,type:"fraction"},navigation:{prevEl:v.value,nextEl:y.value},breakpoints:{769:{slidesPerView:2.05,spaceBetween:24,grid:{rows:a?2:1,fill:"row"}},991:{slidesPerView:4.05,spaceBetween:24,grid:{rows:a||1,fill:"row"}}}}))},x=()=>{window.innerWidth<769?_():!o&&n.value.length&&p(t.rows)};return M(()=>n.value.length,a=>{a?p(t.rows):_()},{flush:"post"}),V(()=>{n.value.length&&p(t.rows),window.addEventListener("resize",x)}),j(()=>{window.removeEventListener("resize",x),_()}),(a,f)=>{const c=I,u=z,d=D;return N(n).length?(l(),r("section",{key:0,class:B(["carusel --news",{"--other-pages":s.otherPages}])},[i(c,{name:"decor/decor-a",filled:"",class:B(["carusel-decor",{"is-show":s.withDecor==!0}])},null,8,["class"]),e("div",R,[e("div",U,[s.otherPages?(l(),r("div",K,[s.title?(l(),r("h2",{key:0,class:"carusel__title",innerHTML:s.title},null,8,Q)):g("",!0)])):(l(),r("div",W,[i(u,{to:"news"},{default:h(()=>[s.title?(l(),r("h2",{key:0,class:"carusel__title",innerHTML:s.title,style:{display:"inline"}},null,8,q)):g("",!0),J]),_:1})])),e("div",X,[e("div",Y,[e("div",{class:"swiper-button-prev carusel-slider__button",ref_key:"prev",ref:v},[i(c,{name:"slider/prev",filled:"",class:"carusel-slider__button-thumb"})],512),e("div",Z,[e("div",{class:"carusel__pager",ref_key:"pagination",ref:b},null,512)]),e("div",{class:"swiper-button-next carusel-slider__button",ref_key:"next",ref:y},[i(c,{name:"slider/next",filled:"",class:"carusel-slider__button-thumb"})],512)]),i(u,{to:"/news/",class:"carusel__all btn ml-16 --fill-1"},{default:h(()=>[P("ÐÑе")]),_:1})])]),e("div",ee,[e("div",{class:"carusel__list-wrap swiper",ref_key:"slider",ref:w},[e("div",se,[(l(!0),r(E,null,T(N(n),k=>(l(),C(d,{item:k,class:"carusel__item swiper-slide",key:k.slug},null,8,["item"]))),128))]),i(u,{to:"/news/",class:"carusel__all-bottom btn ml-16"},{default:h(()=>[P("CмоÑÑеÑÑ Ñаздел полноÑÑÑÑ ->")]),_:1})],512)])])],2)):g("",!0)}}};export{ie as _};
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.