PageSourceSearch

https://www.billedbladet.dk/_nuxt/CgpZ-WQ8.js

js billedbladet.dk collected 2026-09-24 17:42:01 UTC 1,862 bytes, 1 lines download raw bytes

1import{u as T,z as a,v as n}from"./Ct8m0tvh.js";const S=(e,v,P=0)=>{const{public:f}=T(),t=a(),i=a(0),r=a(t.value?t.value.offsetWidth:0),g=a({breakpoint:0,items:e.sliderConf.items?e.sliderConf.items:1,slidePadding:Object.prototype.hasOwnProperty.call(e.sliderConf,"slidePadding")?e.sliderConf.slidePadding:5,stagePadding:Object.prototype.hasOwnProperty.call(e.sliderConf,"stagePadding")?e.sliderConf.stagePadding:".2",navigation:Object.prototype.hasOwnProperty.call(e.sliderConf,"navigation")?e.sliderConf.navigation:!0}),l=a(g.value),W=a(null),s=n(()=>e.lengthOverride?e.lengthOverride:e.items?Object.keys(e.items).length:0),u=n(()=>Math.ceil(s.value/l.value.items)),h=n(()=>i.value!==0),m=n(()=>i.value<u.value-1),O=()=>{h.value&&t.value&&(t.value.scrollLeft-=r.value-100)},b=()=>{m.value&&t.value&&(t.value.scrollLeft+=r.value)},x=o=>o-1!==i.value,y=n(()=>"px-"+(l.value.slidePadding==="1"?"px":l.value.slidePadding)),A=()=>{if(e.sliderConf.responsive){const o=window.innerWidth,c=e.sliderConf.responsive;l.value=c.reduce(function(w,C){return w.breakpoint<=o&&C.breakpoint>o?w:C},g.value)}r.value=t.value?t.value.offsetWidth:0};let d=0;const k=()=>{d&&window.cancelAnimationFrame(d),d=window.requestAnimationFrame(function(){if(t.value){const c=t.value.scrollWidth/s.value*l.value.items;Math.ceil(t.value.scrollLeft+P)<t.value.scrollWidth-t.value.clientWidth?i.value=Math.floor(Math.ceil(t.value.scrollLeft)/Math.floor(c)):i.value=u.value-1}})},L=n(()=>v?e.arrowsTop?e.arrowsTop:f.snapSlider.arrowsTop?f.snapSlider.arrowsTop:"mt-[40px]":""),M=n(()=>s.value>l.value.items);return{sliderRef:t,currentIndex:i,sliderWidth:r,activeBreakpoint:l,gotoPrev:O,gotoNext:b,slides:u,navigationInActiveItem:x,navigationPadding:y,prevActive:h,nextActive:m,arrowContainerClass:L,sliderLength:s,hasHeader:v,resize:A,scrollListener:k,observer:W,sliderActive:M}};export{S as u};

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.