1import{_ as k}from"./DS8XpQG0.js";import{_ as g}from"./cD8LFehN.js";import{j as V,a,y as B,a4 as x,G as n,J as s,H as u,O as P,z as d,I as p,F,a3 as E,a1 as M,L as N,u as m,a5 as T,a6 as j,a7 as C,a8 as D}from"./RAqWWVVn.js";import"./DkpovBrm.js";import"./Ca2eL4Js.js";import"./OXJXYgxy.js";import"./Coodlc8r.js";import"./CEA26BjM.js";const z={class:"mb-4 mt-2 w-100"},I={class:"flex w-full rounded-l-2xl rounded-r-2xl overflow-hidden"},L={class:"w-full object-cover flex-none text-center"},Q=V({__name:"Swiper",props:{info:{},posts_count:{},configuration:{},moduleType:{}},setup(f){const o=f,i=a(null),_=a(null),c=a(!1);let l;async function v(){var e;if(o.configuration==="youtube"){if(!((e=o.info.channel_id)!=null&&e.trim()))return;l="https://www.youtube.com/feeds/videos.xml?channel_id="+o.info.channel_id}if(o.configuration==="vimeo"){const t=(o.info.link??"").replace(/^https:\/\/vimeo\.com\//,"").trim();if(!t)return;l="https://vimeo.com/"+t+"/videos/rss"}try{const t=await $fetch("/api/videos",{method:"POST",body:{url:l,posts_count:o.posts_count}});i.value=t.videos,c.value=!0}catch{_.value="Error fetching videos"}}return B(()=>{v()}),(e,t)=>{const w=k,h=g,b=C,y=D,S=x("track-click");return n(),s("div",z,[c.value&&!(i.value&&i.value.length)?(n(),u(w,{key:0,platform:e.configuration==="vimeo"?"vimeo":"youtube"},null,8,["platform"])):P("",!0),d(y,{modules:["SwiperFreeMode"in e?e.SwiperFreeMode:m(T),"SwiperScrollbar"in e?e.SwiperScrollbar:m(j)],loop:!1,scrollbar:{hide:!0},breakpoints:{200:{slidesPerView:1.1,spaceBetween:8},768:{slidesPerView:1.2,spaceBetween:8},1024:{slidesPerView:1.4,spaceBetween:16}}},{default:p(()=>[(n(!0),s(F,null,E(i.value,r=>(n(),u(b,{key:r.link},{default:p(()=>[M((n(),s("div",I,[N("div",L,[d(h,{url:r.link,thumbnail:r.thumbnail,title:r.title,"wrapper-class":"w-full aspect-video","thumbnail-class":"w-full h-full rounded-md border-gray-800/30 object-cover","play-icon-class":"size-24 p-2 rounded-md transition-all duration-300 hover:text-main"},null,8,["url","thumbnail","title"])])])),[[S,{moduleType:e.moduleType,moduleName:r.title}]])]),_:2},1024))),128))]),_:1},8,["modules"])])}}});export{Q 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.