1import{r as s,a3 as a,a as t,g as e,L as l,u as i,c as u,o as r,b as p,d as o,n as v,e as n,p as c,B as d,k as m,y,s as _,f,t as b,E as w,T as h}from"./app.js";import{_ as k}from"./NavBar.8916fff3.js";import{_ as g}from"./Card.e7bbb6bf.js";const j={class:"wrapper"},L={__name:"Playlist",setup(L){const S=s({}),C=s(""),P=s(a),$=s(a.UPLOAD_VIDEOS),B=s([]),D=s(!1),{t:E}=t(),M=e(),O=l(),x=i(),A=()=>{x.dispatch("subscribe",{section:"playlist",id:S.value.playlist_id,statistics:S.value.statistics})},I=u(()=>x.state.user),N=s=>{$.value=s,O.push({name:"playlist_"+s,params:{page:"1",id:S.value.playlist_id,stopScroll:"true"}})},T=u(()=>({title:E("meta.title.playlist",{v:C.value}),description:E("meta.description.playlist",{title:C.value}),keywords:E("meta.keywords.playlist")}));return r(()=>{$.value=M.name.replace("playlist_",""),(s=>{var a;const t={};(null==(a=I.value)?void 0:a.user_id)&&(t.lifetime=0),y.playlist({id:s,...t},s=>{s.playlist&&(S.value=s.playlist,C.value=S.value.title,D.value=s.playlist.user.user_id==(x.state.user&&x.state.user.user_id),x.dispatch("addStat",{section:"playlist",id:S.value.playlist_id,nogeo:1})),s.error&&O.replace({name:"404"}),x.dispatch("setMeta",T.value)})})(M.params.id)}),(s,a)=>{const t=_("router-view");return f(),p("div",null,[o("div",j,[o("div",{class:v(["content-block",{"playlist--self":D.value}])},[n(g,{title:s.$t("listing.title.playlist",{...S.value}),avatar:S.value.previews&&S.value.previews[0],previews:S.value.previews,statistics:S.value.statistics,isLong:!0},{buttons:c(()=>[o("div",{class:"btn btn-accent",onClick:A},b(s.$t("misc.subscribe")),1)]),_:1},8,["title","avatar","previews","statistics"]),n(k,{sections:P.value,section:$.value,onSwitch:N},null,8,["sections","section"]),S.value.playlist_id?(f(),d(t,{key:s.$route.fullPath},{default:c(({Component:s})=>[n(h,{name:"component-fade",mode:"out-in"},{default:c(()=>[(f(),d(w(s),{items:B.value,section:"playlist",object:S.value,self:D.value},null,8,["items","object","self"]))]),_:2},1024)]),_:1})):m("",!0)],2)])])}}};export{L 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.