1import{_}from"./cD8LFehN.js";import{j as f,y as h,a4 as b,G as l,J as a,z as n,I as i,F as S,a3 as v,H as y,a1 as k,L as B,u as c,a5 as V,a6 as j,a7 as x,a8 as P}from"./RAqWWVVn.js";import"./OXJXYgxy.js";import"./Ca2eL4Js.js";import"./DkpovBrm.js";import"./Coodlc8r.js";import"./CEA26BjM.js";const T={class:"mb-4 mt-2 w-100"},g={class:"flex w-full rounded-l-2xl rounded-r-2xl overflow-hidden"},E={class:"w-full object-cover flex-none text-center"},H=f({__name:"Swiper",props:{items:{},moduleType:{}},setup(u){const s=u;async function d(e){const t=`https://www.youtube.com/oembed?url=${encodeURIComponent(e)}&format=json`;try{const r=await fetch(t);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){return console.error("An error occurred while fetching the video title:",r),null}}return h(()=>{s.items.forEach(async e=>{const t=await d(e.url);t&&(e.title=t.title||e.title,e.thumbnail_url=t.thumbnail_url||e.thumbnail_url)})}),(e,t)=>{const r=_,p=x,m=P,w=b("track-click");return l(),a("div",T,[n(m,{modules:["SwiperFreeMode"in e?e.SwiperFreeMode:c(V),"SwiperScrollbar"in e?e.SwiperScrollbar:c(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:i(()=>[(l(!0),a(S,null,v(s.items,o=>(l(),y(p,{key:o.url},{default:i(()=>[k((l(),a("div",g,[B("div",E,[n(r,{url:o.url,thumbnail:o.thumbnail_url,title:o.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"])])])),[[w,{moduleType:e.moduleType,moduleName:o.title}]])]),_:2},1024))),128))]),_:1},8,["modules"])])}}});export{H 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.