PageSourceSearch

https://kapster.kz/_nuxt/swiper-cards.vue.95712066.js

js kapster.kz collected 2026-10-08 12:11:49 UTC 1,998 bytes, 1 lines download raw bytes

1import{h as C,m as H,f as u,A as M,r as i,o as s,c as a,b as c,F as $,l as D,p as F,i as d,k as g,n as z}from"./entry.5b3977f8.js";import{l as A,a as G,b as L}from"./swiper.46c01faf.js";const O={class:"swiper-cards__top"},T={class:"swiper-wrapper"},j={key:0,class:"swiper-pagination-wrapper"},J=C({__name:"swiper-cards",props:{slidesPerView:{default:4},items:{},pagination:{type:Boolean},navigation:{type:Boolean},autoHeight:{type:Boolean},shadows:{type:Boolean}},setup(N,{expose:P}){const e=N,w=H(),o=u(()=>w.isMobile?2:e.slidesPerView),b=u(()=>({[`--per-view-${o.value}`]:!0,"--auto-height":e.autoHeight,"--shadows":e.shadows})),n=u(()=>e.pagination),r=u(()=>e.navigation&&w.isDesktopOrTablet);M(()=>{x()});const _=i(),m=i(),h=i(),k=i(),y=i(),x=async()=>{const t=_.value,B=m.value,l=h.value,p=k.value;if(!t)return;const[E,S,V]=await Promise.all([A(),G(),L()]),v=[];n.value&&v.push(V),r.value&&v.push(S);let f={modules:v,spaceBetween:o.value===4?30:24,slidesPerView:o.value,slidesPerGroup:o.value,centeredSlides:!1,loop:!1,autoHeight:e.autoHeight,pagination:n.value?{el:p,clickable:!0}:!1,navigation:r.value?{prevEl:B,nextEl:l}:!1};w.isMobile&&(f={...f,spaceBetween:10,pagination:n.value?{el:p,clickable:!0,dynamicBullets:!0,dynamicMainBullets:1}:!1}),y.value=new E(t,f)};return P({swiper:y}),(t,B)=>(s(),a("div",{class:z(["swiper-cards",d(b)])},[c("div",O,[c("div",{ref_key:"swiperNode",ref:_,class:"swiper"},[c("div",T,[(s(!0),a($,null,D(t.items,(l,p)=>(s(),a("div",{key:l.id,class:"swiper-slide"},[F(t.$slots,"slide",{item:l,index:p})]))),128))])],512),d(r)?(s(),a("div",{key:0,ref_key:"swiperButtonPrevNode",ref:m,class:"swiper-button-prev shadow-4 swiper-button-lock"},null,512)):g("",!0),d(r)?(s(),a("div",{key:1,ref_key:"swiperButtonNextNode",ref:h,class:"swiper-button-next shadow-4 swiper-button-lock"},null,512)):g("",!0)]),d(n)?(s(),a("div",j,[c("div",{ref_key:"swiperPaginationNode",ref:k,class:"swiper-pagination swiper-pagination-lock"},null,512)])):g("",!0)],2))}});export{J 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.