1import{_ as v}from"./DS8XpQG0.js";import{_ as h}from"./cD8LFehN.js";import{j as y,a as s,y as k,a4 as b,G as r,J as l,H as g,F as w,a3 as x,a1 as E,z as T}from"./RAqWWVVn.js";import{_ as B}from"./Ca2eL4Js.js";import"./DkpovBrm.js";import"./OXJXYgxy.js";import"./Coodlc8r.js";import"./CEA26BjM.js";const D={class:"mb-4 mt-2 w-100 video-grid-root"},F={key:1,class:"video-grid"},G=y({__name:"Grid",props:{info:{},posts_count:{},configuration:{},moduleType:{}},setup(u){const e=u,i=s(null),d=s(null),c=s(!1);let a;async function m(){var t;if(e.configuration==="youtube"){if(!((t=e.info.channel_id)!=null&&t.trim()))return;a="https://www.youtube.com/feeds/videos.xml?channel_id="+e.info.channel_id}if(e.configuration==="vimeo"){const o=(e.info.link??"").replace(/^https:\/\/vimeo\.com\//,"").trim();if(!o)return;a="https://vimeo.com/"+o+"/videos/rss"}try{const o=await $fetch("/api/videos",{method:"POST",body:{url:a,posts_count:e.posts_count}});i.value=o.videos,c.value=!0}catch{d.value="Error fetching videos"}}return k(()=>{m()}),(t,o)=>{const p=v,_=h,f=b("track-click");return r(),l("div",D,[c.value&&!(i.value&&i.value.length)?(r(),g(p,{key:0,platform:t.configuration==="vimeo"?"vimeo":"youtube"},null,8,["platform"])):(r(),l("div",F,[(r(!0),l(w,null,x(i.value,n=>E((r(),l("div",{key:n.link,class:"overflow-hidden rounded-md w-full"},[T(_,{url:n.link,thumbnail:n.thumbnail,title:n.title,"wrapper-class":"w-full aspect-video","thumbnail-class":"w-full h-full rounded-md border-gray-800/30 object-cover"},null,8,["url","thumbnail","title"])])),[[f,{moduleType:t.moduleType,moduleName:n.title}]])),128))]))])}}}),C=B(G,[["__scopeId","data-v-2647d883"]]);export{C 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.