PageSourceSearch

https://fdm.dk/_nuxt/vMv6vvx_.js

js fdm.dk collected 2026-09-24 09:49:45 UTC 1,974 bytes, 1 lines download raw bytes

1import{d as A,$ as B,cY as N,u as a,o as l,c as n,n as p,s as m,F as S,r as T,q as $,W as j,f as _,N as F,U as d,ac as I,g as q,K as z}from"./iDxzLRBQ.js";import{u as U}from"./CLPaZcyL.js";const V=["aria-label"],D=["aria-label","aria-selected","aria-controls","onClick"],E=A({__name:"CarouselProgress",props:{classButton:{default:void 0},class:{default:void 0}},setup(b){const f=b,v=F(),{carouselApi:t,activeIndex:r,canScrollPrev:h,canScrollNext:k}=U(),i=d(0),o=d(!1),y=d(0),c=()=>{o.value=!1,I(()=>{requestAnimationFrame(()=>{o.value=!0})})},g=()=>{o.value=!1};B(t,e=>{if(!e)return;const u=e.plugins()?.autoplay;i.value=e.slideNodes?.()?.length??0,y.value=u?.options?.delay??0,u?.isPlaying()&&c(),e.on("autoplay:timerset",c),e.on("autoplay:timerstopped",g)}),N(()=>{t.value?.off("autoplay:timerset",c),t.value?.off("autoplay:timerstopped",g)});const C=e=>{t.value?.plugins().autoplay?.stop(),t.value?.scrollTo(e)},w=q(()=>i.value>0&&(h.value||k.value));return(e,u)=>a(w)?(l(),n("div",{key:0,class:p(("cn"in e?e.cn:a(m))("theme-use-accent flex justify-center gap-1.5 empty:hidden",f.class)),role:"tablist","aria-label":a(v)("carousel.controls")},[(l(!0),n(S,null,T(a(i),(P,s)=>(l(),n("button",{key:`slide-control-${s}`,type:"button",role:"tab","aria-label":a(v)("carousel.goToSlide")(P),"aria-selected":a(r)===s,"aria-controls":`carousel-slide-${s}`,class:p(("cn"in e?e.cn:a(m))("focus-outline group pointer-events-auto relative flex w-6 flex-none items-center justify-center py-2.5",f.classButton)),onClick:K=>C(s)},[$("div",{class:p(("cn"in e?e.cn:a(m))("relative h-1 w-full overflow-hidden rounded-px bg-primary/40 group-hover:bg-primary/80",s===a(r)&&!a(o)?"bg-primary":""))},[s===a(r)&&a(o)?(l(),n("div",{key:0,class:"animate-fill absolute inset-0 bg-primary",style:j({animationDuration:`${a(y)}ms`})},null,4)):_("",!0)],2)],10,D))),128))],10,V)):_("",!0)}}),W=Object.assign(z(E,[["__scopeId","data-v-2843c51c"]]),{__name:"PrimitivesCarouselProgress"});export{W as _};

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.