1import{r as n,j as e,F as h,cT as a,P as u}from"./index-jOxk7ZTv.js";/* empty css *//* empty css */import{P as g}from"./pagination.B_8iorwl.js";import{N as x}from"./navigation.oZgrMVwX.js";import{A as w}from"./autoplay.jS7zkiOz.js";import{S as j,a as S}from"./swiper-react.H16mpuzB.js";import{u as v}from"./useSwiperSlidePersistence.ute5tiee.js";const N={0:{slidesPerView:1.2,spaceBetween:16},480:{slidesPerView:1.5},720:{slidesPerView:2},1024:{slidesPerView:3},1440:{slidesPerView:3},2200:{slidesPerView:3}},P="home-authors-swiper",b=({banners:o})=>{const[l,i]=n.useState(!0),[d,t]=n.useState(!1),{initialSlide:c,onActiveIndexChange:p}=v(P),m=s=>{i(s.isBeginning),t(s.isEnd)};return e.jsxs("div",{className:"swiper-container",children:[e.jsx(j,{rewind:!0,speed:1500,initialSlide:c,onActiveIndexChange:p,onSlideChange:m,onReachBeginning:()=>i(!0),onReachEnd:()=>t(!0),breakpoints:N,modules:[w,x,g],pagination:{clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},className:"cards-container",children:o.map((s,r)=>e.jsx(S,{virtualIndex:r,children:e.jsxs("div",{className:"banner-container",style:{backgroundColor:s.chex},children:[e.jsx(h,{to:s.nu,className:"banner-link",children:e.jsx("div",{className:"banner-image",children:e.jsxs("picture",{className:"homepage-authors-image",children:[e.jsx("source",{media:"(max-width:650px)",srcSet:a(s.img2),width:174,height:174}),e.jsx("img",{fetchPriority:"low",loading:"lazy",src:a(s.img1),alt:s.bd,width:337,height:337})]})})}),e.jsxs("div",{className:"banner-content",children:[e.jsx("span",{children:s.sub_title}),e.jsx("h3",{children:s.tl}),e.jsx("p",{className:"banner-content",dangerouslySetInnerHTML:{__html:s.bd}})]})]})},r))}),e.jsx("div",{className:`swiper-button-prev ${l?"disabled":""}`}),e.jsx("div",{className:`swiper-button-next ${d?"disabled":""}`})]})};b.propTypes={banners:u.array.isRequired};export{b as default};
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.