1import{_ as N}from"./nuxt-link.w6DfrOSH.js";import{_ as D}from"./PageRightColumn.vue.USWrvE01.js";import{h as I,j as x,d as P,u as U,c as G,r as j,w as S,y as E,o as c,f as u,g as s,b as d,t as m,n as _,z as v,F as k,q as C,A as F,l as H,B as M,x as w,s as R,v as z,_ as L}from"./entry.PA-trY5-.js";import{u as O,a as q,c as Z}from"./canonicalUrlHelper.3rXC01wj.js";import{_ as J,a as K}from"./pagination-next.n14obEVh.js";import{u as Q}from"./programs.jTOornsH.js";import"./PageAdvertisement.syWaIo41.js";import"./Image.vue.yussY_Vy.js";import"./play.D3R0Rnoe.js";const W=I({id:"genres",state:()=>({genre:{},genres:[]}),getters:{getGenre:e=>e.genre,getGenres:e=>e.genres},actions:{async fetchAll(){if(this.genres.length)return;const e=x().public.apiBaseUrl;this.genres=await $fetch(`${e}genres`)},async fetchBySlug(e){const o=x().public.apiBaseUrl;this.genre=await $fetch(`${o}genres/${e}`)}}});function X(e){const{public:{siteImage:o}}=x();let r=`${e.name} TV Shows & Guide`,l=`Explore the world of ${e.name} TV shows and get your guide on TV Guide Tonight, Australia's premier online destination for TV programming schedules. Stay updated with your favourite shows, live sports, movies, and more across all networks and channels. Discover the latest in ${e.name} entertainment and keep your finger on the pulse of Australian television with TVGuideTonight.com.au.`;return{title:r,description:l,ogTitle:r,ogDescription:l,ogImage:o}}const T=e=>(R("data-v-3859857a"),e=e(),z(),e),Y={class:"columns flex columns--opacity"},ee={class:"column column--left"},se={class:"browse-header"},te=T(()=>s("div",{class:"opacity"},null,-1)),ae={key:0,class:"content"},oe={class:"padding"},ne={class:"tabs flex"},re={class:"pagination flex"},ie={class:"pagination-items flex"},le=["onClick"],ce={class:"results"},ue=T(()=>s("div",{class:"opacity"},null,-1)),de={class:"results-listing flex"},pe=P({__name:"index",async setup(e){let o,r;const l=U(),y=W(),n=G(()=>y.genres),a=j(),g=Q(),b=G(()=>g.getPrograms);[o,r]=S(()=>y.fetchAll()),await o,r();const h=async t=>{a.value=t,await g.fetchByGenre(t.slug);const p=`/genres/${t.slug}`;return M(p)},B=()=>{const t=n.value.indexOf(a.value);t!==n.value.length-1&&h(n.value[t+1])},V=()=>{const t=n.value.indexOf(a.value);t!==0&&h(n.value[t-1])};if(l.params.genre){const t=n.value.find(p=>p.slug===l.params.genre);if(!t)throw E({statusCode:404,statusMessage:"Page Not Found"});a.value=t}else a.value=n.value[0];[o,r]=S(()=>g.fetchByGenre(a.value.slug)),await o,r();const $=X(a.value);return O($),q({link:[{rel:"canonical",href:Z(l.path)}],script:[{src:"../js/ipsos-otherpages.js",async:!0}]}),(t,p)=>{const f=N,A=D;return c(),u("div",Y,[s("div",ee,[s("div",se,[te,d(a)?(c(),u("div",ae,[s("div",oe,[s("h2",null,m(d(a).name)+" Shows",1),s("p",null,"Browse the "+m(d(a).name)+" tv shows that are pulled from our TV Guide, to check available show times and find out more.",1),s("div",ne,[_(f,{to:"/tv-shows",class:"tab"},{default:v(()=>[w("TV Shows A-Z")]),_:1}),_(f,{to:"/genres",class:"tab is-active"},{default:v(()=>[w("Browse by Genre")]),_:1})]),s("div",re,[s("img",{onClick:V,class:"pagination-arrow pagination-arrow--previous",src:J,alt:"previous"}),s("ul",ie,[(c(!0),u(k,null,C(d(n),i=>(c(),u("li",{key:i,class:F(["item",{"is-active":d(a)===i}]),onClick:me=>h(i)},m(i.name),11,le))),128))]),s("img",{onClick:B,class:"pagination-arrow pagination-arrow--next",src:K,alt:"next"})])])])):H("",!0)]),s("div",ce,[ue,s("ul",de,[(c(!0),u(k,null,C(d(b),i=>(c(),u("li",null,[_(f,{to:i.link},{default:v(()=>[w(m(i.name),1)]),_:2},1032,["to"])]))),256))])])]),_(A)])}}}),Se=L(pe,[["__scopeId","data-v-3859857a"]]);export{Se 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.