1import{j as e,L as a}from"./main-CiqKJGD5.js";import{y as n,l,f as o}from"./format-C6qjlnZW.js";const c={nybegynner:"bg-card text-foreground",middels:"bg-band-lime text-oak-900",avansert:"bg-band-pink text-white"};function d({video:t}){const r=n(t.youtube_id,t.thumbnail_url),s=t.level??"";return e.jsxs(a,{to:"/videoer/$slug",params:{slug:t.slug},className:"group block",children:[e.jsxs("div",{className:"relative aspect-video rounded-2xl overflow-hidden mb-4 bg-secondary outline outline-1 outline-foreground/10 outline-offset-[-1px]",children:[r?e.jsx("img",{src:r,alt:t.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500 ease-out"}):e.jsx("div",{className:"w-full h-full bg-secondary flex items-center justify-center text-muted-foreground text-sm",children:"Ingen forhåndsvisning"}),e.jsxs("div",{className:"absolute top-3 left-3 flex gap-2 flex-wrap",children:[t.level&&e.jsx("span",{className:`px-2.5 py-1 text-[11px] font-bold uppercase tracking-wider rounded-md ${c[s]??"bg-card text-foreground"}`,children:l(t.level)}),t.muscle_group&&e.jsx("span",{className:"px-2.5 py-1 text-[11px] font-bold uppercase tracking-wider bg-black/55 backdrop-blur-sm text-white rounded-md",children:t.muscle_group})]}),e.jsx("div",{className:"absolute bottom-3 right-3 px-2 py-1 bg-card/90 backdrop-blur-md text-foreground text-xs font-bold rounded-md tabular-nums",children:o(t.duration_seconds)}
1),e.jsx("div",{className:"absolute inset-0 bg-foreground/15 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:e.jsx("div",{className:"px-6 py-3 bg-accent text-accent-foreground font-semibold rounded-full translate-y-3 group-hover:translate-y-0 transition-transform duration-300",children:"Spill av"})})]}),e.jsx("h3",{className:"font-display font-semibold text-lg leading-tight mb-1 text-balance group-hover:text-accent transition-colors",children:t.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t.instructor?.name?e.jsxs(e.Fragment,{children:["Med ",e.jsx("span",{className:"font-medium text-foreground",children:t.instructor.name})]}):t.category?.name})]})}export{d as V};
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.