PageSourceSearch

https://accessmedia.nz/v11.1_Live/js/Episodes.B1neblEW.js

js accessmedia.nz collected 2026-10-03 22:11:22 UTC 3,871 bytes, 1 lines download raw bytes

1import{u as P,g as F,d as A,h as m,e as M,i as $,j as B,k as y,o as i,c as _,a as e,l as d,p as a,t as c,q as R,v as q,F as b,f as N,s as U,m as C}from"./index.0asgyqvA.js";import{d as T}from"./default-image.jntmyUdW.js";import{r as V,s as H}from"./metaUtils.ipqBNsLl.js";import{_ as Q}from"./FCNavbarDefault.B7su0b1r.js";import{_ as j}from"./Breadcrumbs.4NbLsz_b.js";import{S as z}from"./SkeletonLoader.dvqrKKUo.js";import{f as O}from"./format.BnjGCzBc.js";import"./_commonjsHelpers.BosuxZz1.js";const G={class:"container position-relative top-0"},J={class:"row"},K={class:"col-12"},W={class:"card card-body shadow-blur mx-3 mx-md-4 mt-8"},X={class:"container"},Y={class:"row mx-1"},Z={class:"col-12 mt-5"},ee={class:"row mx-1 mt-3 mb-4"},se={class:"col-12"},te=["lang"],ae={class:"title text-primary"},oe={key:1,class:"mx-1 mt-3"},le={class:"row mx-1 mt-3 mb-4"},re={class:"tile"},ne={class:"progImg"},ce=["src","alt"],ie=["onClick"],de={class:"text-xs p-0 m-0"},ue={class:"disTitles"},me={class:"text-sm disDesc"},_e={class:"text-xs text-uppercase"},pe="https://ondemand.accessmedia.nz",ke={__name:"Episodes",setup(he){const l=P(),u=F(),x=A(),E=m(null),p=m(!1),n=m(null),h=m(!1),S=M(()=>n.value!==null?n.value:l.homeLatestEpisodes),k=async({query:s,category:o,language:r})=>{if(!(s&&s.trim().length>=3||o&&o!=="All"||r&&r!=="All")){n.value=null;return}h.value=!0;try{const t=await l.searchProgrammesAndEpisodes(s||"",o!=="All"?o:null,r!=="All"?r:null,null);n.value=t?.Episodes??[]}finally{h.value=!1}},f=T,I=s=>{s.target.src=f},{t:v,locale:D}=$(),w=s=>O(new Date(s),"dd/M/yyyy h:mm aaaa").replace("AM","a.m.").replace("PM","p.m."),L=s=>{const o=`/StationFolder/${s.folder}/`,r=`${pe}${o}${s.MediaFile}`.replace(/ /g,"%20");l.setFooterCurrentEpisode({...s,url:r,ProgrammeId:s.Programme,type:"audio/mp3"},!0),console.log(r)};return B(async()=>{p.value=!0,l.selectedStation=null,await Promise.all([l.fetchAllStationLatestEpisodes(1,6).then(()=>p.value=!1),l.fetchItunesCategories(),l.fetchStationLanguages()])}),(s,o)=>{const r=y("SearchControl"),g=y("RouterLink");return i(),_(b,null,[e("div",G,[e("div",J,[e("div",K,[d(Q,{transparent:""})])])]),e("div",W,[e("div",X,[e("div",Y,[e("div",Z,[d(r,{selectedLanguage:a(u).query.Lang,selectedCategory:a(u).query.Category,searchQuery:a(u).query.Search,categories:a(l).itunesCategories,languages:a(l).languages,navigateOnSearch:!1,route:a(u),router:a(x),requireMinChars:!1,searchClass:"custom-search",buttonClass:"btn bg-gradient-primary",filterClass:"custom-filters",onSearch:k},null,8,["selectedLanguage","selectedCategory","searchQuery","categories","languages","route","router"])])]),e("div",ee,[e("div",se,[d(j,{routes:[{label:"Home",route:"/"},{label:"Episodes",route:"/"}]}),e("a",{id:"main",ref_key:"main",ref:E},null,512),e("div",{lang:a(D)},[e("h1",ae,c(a(v)("latest-episode-menu")),1),e("p",null,c(a(v)("episode-header")),1)],8,te)])]),p.value||h.value?(i(),R(z,{key:0,rows:20,layout:"grid"})):n.value!==null&&n.value.length===0?(i(),_("p",oe,"No episodes found.")):q("",!0),e("div",le,[(i(!0),_(b,null,N(S.value,t=>(i(),_("div",{key:t.ID,class:"col-lg-2 col-md-4 col-sm-6 mb-6"},[e("div",re,[e("p",ne,[e("img",{src:a(V)(t.EpisodeImageUrl)||t.programmeImage||a(f),alt:t.Title,class:"img-raised rounded",onError:I},null,40,ce),e("button",{onClick:U(ge=>L(t),["stop"]),type:"button",class:"btn bg-gradient-primary p-0 epPlay","aria-label":"Play episode"},o[0]||(o[0]=[e("i",{class:"material-icons","aria-hidden":"true"},"play_arrow",-1)]),8,ie)]),d(g,{class:"go-to-episode-link",to:{name:"episode",params:{EID:t.ID}}},{default:C(()=>[e("p",de," Published: "+c(w(t.PublishDate)),1),e("h5",ue,c(t.Title),1),e("span",me,c(a(H)(t.Description)),1)]),_:2},1032,["to"]),d(g,{to:{name:"station",query:{SID:t.id}}},{default:C(()=>[e("span",_e,c(t.station),1)]),_:2},1032,["to"])])]))),128))])])])],64)}}};export{ke 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.