PageSourceSearch

https://cre.ru/_nuxt/DIL6opx6.js

js cre.ru collected 2026-09-24 08:34:40 UTC 2,704 bytes, 2 lines download raw bytes

1import{d as C,I as N,c as g,r as u,z as M,C as I,E as h,B as S,R as n,f as d,ae as V,S as l,af as D,g as a,w as k,$ as L,o as r,a0 as R,a1 as z,e as p,ag as O,Q as P}from"./Rn1tUdXN.js";import{S as T,N as q,a as A}from"./MvlYEKqV.js";import{g as b}from"./YKv6yp5j.js";import F from"./RY9lrebI.js";import Q from"./DvooxyWg.js";const j=C({__name:"EventDetailMaterials",props:{relatedNews:{}},setup(E){const $=E,{$viewport:v}=N(),B=g(()=>v.isLessOrEquals("mobile")),w=g(()=>{const e=$.relatedNews.length;let s;switch(v.breakpoint.value){case"desktop":case"tabletBig":s=3;break;case"tablet":case"mobileBig":s=2;break;default:s=1;break}return e>s}),_=u(null),f=u({prevEl:null,nextEl:null}),i=u(null),c=u(null);return M(()=>{i.value&&c.value&&(f.value={prevEl:i.value,nextEl:c.value}),I(()=>w.value,e=>{var o,t;const s=(o=_.value)==null?void 0:o.swiper;s&&(e?O(()=>{i.value&&c.value&&s.navigation&&(s.navigation.destroy(),s.navigation.init(),s.navigation.update())}):(t=s.navigation)==null||t.destroy())})}),(e,s)=>{const o=L;return e.relatedNews.length?(r(),h("div",{key:0,class:l(e.$style.section)},[n("div",{class:l(e.$style.header)},[n("h3",{class:l(e.$style.title)},"Материалы по мероприятию",2),V(n("div",{class:l(e.$style.controls)},[n("div",{ref_key:"prevEl",ref:i,class:l(e.$style.controlBtn)},[d(o,{class:l(e.$style.controlIcon),name:"my-icon:i-arrow-left"},null,8,["class"])],2),n("div",{ref_key:"nextEl",ref:c,class:l(e.$style.controlBtn)},[d(o,{class:l(e.$style.controlIcon),name:"my-icon:i-arrow-right"},null,8,["class"])],2)],2),[[D,a(w)]])],2),d(a(A),{ref_key:"swiperRef",ref:_,observer:!0,"observe-parents":!0,class:l(e.$style.swiperContainer),modules:[a(q)],"grab-cursor":!0,loop:e.relatedNews.length>3,navigation:a(f),"slides-per-view":1,"slides-per-group":1,breakpoints:{600:{slidesPerView:2},1024:{slidesPerView:3}}},{default:k(()=>[(r(!0),h(R,null,z(e.relatedNews,t=>(r(),p(a(T),{key:t.id,class:l(e.$style.slide)},{default:k(()=>{var y,m;return[(m=(y=t.image)==null?void 0:y.photo)!=null&&m.file_url&&!a(B)?(r(),p(F,{key:0,image:t.image.photo.file_url,title:t.title,link:a(b)(t)},null,8,["image","title","link"])):(r(),p(Q,{key:1,title:t.title,link:a(b)(t)},null,8,["title","link"]))]}),_:2},1032,["class"]))),128))]),_:1},8,["class","modules","loop","navigation"])],2)):S("",!0)}}}),G="_section_rhewy_1",H="_header_rhewy_6",J="_title_rhewy_14",K="_controls_rhewy_23",U="_controlBtn_rhewy_30",W="_controlIcon_rhewy_44",X="_swiperContainer_rhewy_49",Y="_slide_rhewy_54",Z={section:G,header:H,title:J,controls:K,controlBtn:U,controlIcon:W,swiperContainer:X,slide:Y},x={$style:Z},oe=P(j,[["__cssModules",x]]);export{oe as default};
2//# sourceMappingURL=DIL6opx6.js.map

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.