1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tiny-slider.uCKHH1aW.css"])))=>i.map(i=>d[i]); 2import{_ as C,a as E,o as P,U as T,ax as y,b as u,i as c,f as r,t as h,e as d,c as q,d as N,g as R,j as z,K as g,F as b,k as M,h as $,r as S,B as x}from"./DyKsjnBy.js";import{_ as j}from"./Dba53ezs.js";import{S as D}from"./Dkof3IgU.js";const H={class:"row pb-2"},L={class:"col-12 d-flex align-items-center justify-content-between"},F={class:"slider-title largeHeader"},O={class:"row"},K={class:"col-12"},U=["aria-label"],G={__name:"SlidersVideoSlider",props:{title:{type:String,required:!0},videos:{type:Array,required:!0},categoryId:{type:String,required:!0},slug:{type:String,required:!0},showSeeAll:{type:Boolean,default:!0},shuffle:{type:Boolean,default:!1}},setup(f){const _=E(),p=S(null),o=f,i=S(void 0),l="video_carousel_"+o.slug,m=o.title,w=o.showSeeAll,k=x(()=>o.videos?.length||0);o.slug==="watch-list"?i.value="":_.fullPath?.match(/category/)!==null?i.value=_.fullPath:i.value="/videos/category";function A(e,n){const t=[...e||[]];let a=n;function V(){const s=Math.sin(a++)*1e4;return s-Math.floor(s)}for(let s=t.length-1;s>0;s--){const v=Math.floor(V()*(s+1));[t[s],t[v]]=[t[v],t[s]]}return t}function B(){return(o.slug||"").split("").reduce((e,n)=>e+n.charCodeAt(0),0)}const I=x(()=>{const e=o.videos||[];return o.shuffle?A(e,B()):e});return P(async()=>{try{await T();const e=p.value;if(!e)return;const t=(await y(()=>import("./D_J6XP0y.js"),[],import.meta.url))?.tns;if(!t){console.error("TinySlider failed to load");return}if(await y(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),e.dataset.tnsInit==="true")return;e.dataset.tnsInit="true",t({container:e,slideBy:"page",controls:!0,controlsContainer:`#${l}`,nextButton:`.next-${l}`,prevButton:`.prev-${l}`,nav:!1,responsive:{0:{items:2},480:{items:3},768:{items:4},992:{items:5}},swipeAngle:!1,lazyload:!0,lazyloadSelector:".tns-lazy",speed:200,gutter:30,onInit:()=>{document.querySelectorAll(".slideHolder").forEach(a=>{a.removeAttribute("aria-hidden")})}})}catch(e){console.error("VideoSlider mounted hook crashed:",e)}}),(e,n)=>{const t=j;return u(),c(b,null,[r("div",H,[r("div",L,[r("h4",F,h(d(m)),1),r("div",{class:"controls d-flex",id:l},[d(w)?(u(),q(t,{key:0,to:{path:i.value+"/"+f.slug}},{default:N(()=>[R(" See All ("+h(k.value)+") ",1)]),_:1},8,["to"])):z("",!0),r("button",{class:g(["btn btn-primary bi bi-caret-left-fill",{"tiny-prev":!0,"tiny-arrow":!0,["prev-"+l]:!0}]),"aria-label":"Previous",type:"button",style:{display:"block"}},null,2),r("button",{class:g(["btn btn-primary bi bi-caret-right-fill",{"tiny-next":!0,"tiny-arrow":!0,["next-"+l]:!0}]),"aria-label":"Next",type:"button",style:{display:"block"}},null,2)])])]),r("div",O,[r("div",K,[r("div",{ref_key:"sliderContainer",ref:p,role:"region","aria-label":`${d(m)} carousel`},[(u(!0),c(b,null,M(I.value,a=>(u(),c("div",{class:"slideHolder",key:a.v_id,tabindex:"-1"},[$(D,{video:a},null,8,["video"])]))),128))],8,U)])])],64)}}},X=C(G,[["__scopeId","data-v-72c98680"]]);export{X 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.