PageSourceSearch

https://assets.learn-at-home.at/lh-at/v1.8.119/_nuxt/1thIHf-y.js

js learn-at-home.at collected 2026-10-02 15:38:50 UTC 2,276 bytes, 1 lines download raw bytes

1import{_ as d}from"./D2GCrJHv.js";import{N as c,o as r,h as n,b as i,F as u,r as h,c as m,S as x}from"./DWk3O1Em.js";const w={props:{videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},data(){return{currentIndex:0,transitionDuration:"0.5s",slidesToShow:3}},computed:{carouselStyle(){return{transform:`translateX(-${this.currentIndex*(100/this.slidesToShow)}%)`,transitionDuration:this.transitionDuration}},canScrollPrev(){return this.currentIndex>0},canScrollNext(){return this.currentIndex<this.maxIndex},maxIndex(){return Math.max(0,this.items.length-this.slidesToShow)},usesImages(){return this.images.length>0},items(){return this.usesImages?this.images:this.videos}},methods:{getItemKey(a,s){return this.usesImages?a.src??s:a.id??s},getSlidesToShow(){return window.innerWidth<768?1:window.innerWidth<1024?2:3},handleResize(){this.slidesToShow=this.getSlidesToShow(),this.currentIndex>this.maxIndex&&(this.currentIndex=this.maxIndex)},prevSlide(){this.currentIndex>0&&this.currentIndex--},nextSlide(){this.currentIndex<this.maxIndex&&this.currentIndex++}},mounted(){this.slidesToShow=this.getSlidesToShow(),window.addEventListener("resize",this.handleResize)},beforeDestroy(){window.removeEventListener("resize",this.handleResize)}},S={class:"carousel"},f={key:0,class:"flex h-full items-center justify-center rounded-[2rem] border border-white/10 bg-gray-900/70 p-3 sm:p-4 shadow-xl shadow-black/20"},I=["src","alt"];function _(a,s,g,p,v,e){const o=d;return r(),n("div",S,[i("div",{class:"carousel-inner",style:x(e.carouselStyle)},[(r(!0),n(u,null,h(e.items,(t,l)=>(r(),n("div",{class:"carousel-item px-2 sm:px-4",key:e.getItemKey(t,l)},[e.usesImages?(r(),n("div",f,[i("img",{src:t.src,alt:t.alt||"Learn@Home Plattform",class:"w-full max-w-full rounded-[1.75rem] object-contain shadow-2xl shadow-black/40 ring-1 ring-white/10 sm:max-w-[17rem] md:max-w-[20rem]"},null,8,I)])):(r(),m(o,{key:1,class:"aspect-video",video:t},null,8,["video"]))]))),128))],4),i("button",{class:"carousel-control prev",onClick:s[0]||(s[0]=(...t)=>e.prevSlide&&e.prevSlide(...t))},"❮"),i("button",{class:"carousel-control next",onClick:s[1]||(s[1]=(...t)=>e.nextSlide&&e.nextSlide(...t))},"❯")])}const k=c(w,[["render",_],["__scopeId","data-v-8779aab9"]]);export{k 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.