import{o as p,c as h,b as t,r as d,m,a as o,f as c,t as u,h as f,j as b,C as _,G as w}from"./Dtqhy5Y2.js";import"./CvZk7OgK.js";function y(x,a){return p(),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"})])}const v={class:"absolute inset-x-0 bottom-0 bg-gradient-to-b from-gray-900/0 to-gray-900 p-2 pt-8 text-white lg:p-4 lg:pt-12 2xl:p-7 2xl:px-8"},k={class:"mb-3 flex justify-between text-xs md:text-sm"},L={class:"flex items-center space-x-2"},C={class:"text-base font-semibold md:text-xl 2xl:text-2xl"},S=["innerHTML"],V={class:"absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center text-center"},B={__name:"CategoryVideo",setup(x){const a=d(!1),e=d(null),l=m().fullPath;l!=null&&l.includes("ruegerrand");const i=()=>{var n;const s=b();if(s.startLoading(),!a.value||typeof GLightbox>"u")return g();GLightbox({elements:[{href:"https://www.youtube.com/watch?v="+((n=e.value)==null?void 0:n.youtube_id),type:"video"}],autoplayVideos:!0}).open(),s.finishLoading()},g=()=>{const s=_();s.loadStylesheet("lightbox"),s.loadScript("lightbox",()=>{a.value=!0,i()})};return(s,r)=>{const n=w;return o(e)?(p(),h("article",{key:0,class:"group relative col-span-2 h-full min-h-[260px] cursor-pointer select-none overflow-hidden rounded-lg bg-white text-gray-900 shadow-md",onClick:i},[c(n,{src:o(e).image,alt:o(e).title,class:"absolute inset-0 block size-full object-cover transition-transform duration-1000 group-hover:scale-105",lazy:""},null,8,["src","alt"]),r[0]||(r[0]=t("div",{class:"absolute inset-0 h-full bg-gradient-to-b from-gray-900/0 to-gray-900/40"},null,-1)),t("div",v,[t("div",k,[t("span",L,[c(n,{alt:"",class:"h-3 w-auto",src:"/img/icons/play-white.svg"}),t("span",null,u(o(e).duration),1)]),t("span",null,u(o(e).date),1)]),t("h2",C,[t("span",{class:"block cursor-pointer select-none",onClick:i,innerHTML:o(e).title},null,8,S)])]),t("div",V,[c(o(y),{class:"w-16 text-white md:w-28"})])])):f("",!0)}}};export{B as default};
