1import{e as N,g as y,a as I,c,u as P,f as E,b as M,d as S,S as $}from"./CD0LZZvC.js";import{u as k}from"./JH_HlzPx.js";import{b as g,at as m,ac as x,E as A,z as F}from"./DJqXHs41.js";const R=["innerHTML"],q={__name:"[id]",async setup(j){let s,l;const{pageContent:p,init:h}=k(),f=N(),u=y(),r=g(f.params.id),b=S(),{logSSRError:C}=M(),{data:o,error:d}=([s,l]=m(()=>I(`fetchData-customPage-${r.value}`,()=>b.default.getCustomPage(r.value))),s=await s,l(),s),n=g(null);if(d.value)throw[s,l]=m(()=>C(d.value,{apiEndpoint:`fetchData-customPage-${r.value}`,pageName:`customPage-${r.value}`,customPageTitle:r.value})),await s,l(),c({statusCode:404,statusMessage:"Page Not Found"});if(o.value?.success&&o.value?.code==="0000")n.value=o.value.data.title,h(o.value.data.content);else throw!o.value?.success&&o.value?.code==="9999"?c({statusCode:404,statusMessage:"Page Not Found"}):c({statusCode:500,statusMessage:"Internal Server Error"});P({title:E(n.value),description:()=>n.value?`${$} ${n.value}`:void 0});const T=()=>{u.openLiveVideo()},_=e=>{const t=e.dataset.brightcoveVideoId,i=V(window.vodList.filter(a=>a.brightcoveVideoId===t)[0]);i&&u.openCustomPageVideo(i)},V=e=>({id:e.vodId,isTrailer:e.isTrailer||!1,brightcoveVideoId:e.brightcoveVideoId,title:e.title,description:e.description,shortDescription:e.shortDescription,directors:"",created:e.publishTime!==null&&e.publishTime!==""&&e.publishTime.length>=10?v(e.publishTime):"",viewerCount:0,duration:e.length,downloadable:!1,tags:[],drm:e.drm,defaultCategoryId:e.defaultCategoryId,blockCountry:e.blockCountry,publishTime:e.publishTime,categoryName:e.categoryName,subCategoryName:e.subCategoryName,programName:e.programName,seasonName:e.seasonName}),v=e=>{const t=new Date(e),i=t.getMonth()+1>=10?t.getMonth()+1:"0"+(t.getMonth()+1),a=t.getDate()>=10?t.getDate():"0"+t.getDate();return t.getFullYear()+"/"+i+"/"+a},w=["custom-page-vod-item"],D=["custom-page-vod-item--disabled"],L=e=>{const t=w.map(a=>`.${a}`).join(","),i=D.map(a=>`:not(.${a})`).join(",");if(e.target&&e.target.id==="CustomPageLive")e.preventDefault(),T();else if(e.target&&e.target.closest(t)&&e.target.closest(t).matches(i)){const a=e.target.closest(t);e.preventDefault(),_(a)}};return(e,t)=>(x(),A("main",{id:"custom-page",class:"news-grid-container",onClick:L,innerHTML:F(p)},null,8,R))}};export{q 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.