1import{x as e,i as a,a as t,c as s,u as l,z as o,e as r,f as n,t as i,l as u,k as c,E as d,h as p,r as m,o as v}from"./vendor.00b8f836.js";import{d as f,b as h,V as b,k as g,c as j,l as _,h as k}from"./app.js";const y={class:"headline"},O=f({__name:"Videos",props:["section","self","object","title","lifetime"],setup(f){const{gender:O}=e(h()),w=a(),x=f,E=t({page:1,count:24,gender:O.value,sort:"latest-updates"});x.lifetime&&(E.lifetime=x.lifetime);const I=s(()=>{const e={};if("search"!==E.section){let a={};Object.keys(b).forEach(e=>{a[b[e]]=C("component.filter.sort."+b[e])}),e.sort=a}return"top-rated"!=E.sort&&"most-popular"!=E.sort||(e.date={all:C("component.filter.date.all"),day:C("component.filter.date.day"),month:C("component.filter.date.month"),week:C("component.filter.date.week")}),{...e,duration:{1:C("component.filter.duration.1"),2:C("component.filter.duration.2"),3:C("component.filter.duration.3")}}}),V=()=>{D()},q=m([]),z=m(null),U=m(!1),A=m(0),B=s(()=>x.object.title),{t:C}=l(),D=()=>{U.value||(U.value=!0,z.value=null,self.value&&(E.value.lifetime=0),k.videos({...E,section:x.section},e=>{U.value=!1,e.videos&&(q.value=e.videos,e.total_count&&(A.value=parseInt(e.total_count))),e.error&&(z.value=e.code)}))},F=s(()=>U.value?E.count:q.value);return o(()=>{E.object_id=w.params.dir,"playlist"===x.section&&(E.object_id=w.params.id),E.page=w.params.page,x.self&&Object.assign(E,{...E,lifetime:0}),Object.assign(E,{...E,...w.query}),D()}),(e,a)=>(v(),r("div",null,[n("div",y,[n("h2",null,i(B.value)+" "+i(u(C)("nav.videos")),1),c(g,{params:E,filters:I.value,"is-hd":"",onUpdate:V},null,8,["params","filters"])]),c(j,{error:z.value,thumbs:F.value},null,8,["error","thumbs"]),q.value.length>0?(v(),d(_,{key:0,current:E.page,params:E,total:A.value},null,8,["current","params","total"])):p("",!0)]))}},[["__scopeId","data-v-cccabcda"]]);export{O as default};
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.