1import{_ as u}from"./cD8LFehN.js";import{j as d,y as m,a4 as p,G as l,J as n,F as _,a3 as h,a1 as f,L as w,z as b}from"./RAqWWVVn.js";import"./OXJXYgxy.js";import"./Ca2eL4Js.js";import"./DkpovBrm.js";import"./Coodlc8r.js";import"./CEA26BjM.js";const v={class:"mb-4 mt-2 w-100"},y={class:"flex w-full rounded-l-2xl rounded-r-2xl overflow-hidden"},k={class:"w-full object-cover flex-none text-center"},D=d({__name:"List",props:{items:{},moduleType:{}},setup(a){const s=a;async function i(e){const r=`https://www.youtube.com/oembed?url=${encodeURIComponent(e)}&format=json`;try{const t=await fetch(r);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}catch(t){return console.error("An error occurred while fetching the video title:",t),null}}return m(()=>{s.items.forEach(async e=>{const r=await i(e.url);r&&(e.title=r.title||e.title,e.thumbnail_url=r.thumbnail_url||e.thumbnail_url)})}),(e,r)=>{const t=u,c=p("track-click");return l(),n("div",v,[(l(!0),n(_,null,h(s.items,o=>(l(),n("div",{class:"swiper2grid pb-2 lg:pb-4",key:o.url},[f((l(),n("div",y,[w("div",k,[b(t,{url:o.url,thumbnail:o.thumbnail_url,title:o.title,"wrapper-class":"w-full aspect-video","thumbnail-class":"w-full h-full object-cover rounded-md border-gray-800/30","play-icon-class":"size-28 p-2 rounded-md transition-all duration-300 hover:text-main"},null,8,["url","thumbnail","title"])])])),[[c,{moduleType:e.moduleType,moduleName:o.title}]])]))),128))])}}});export{D 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.