PageSourceSearch

https://www.taiwanplus.com/_nuxt/DbjHUIR8.js

js taiwanplus.com collected 2026-10-02 02:55:12 UTC 21,953 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BWeGAubx.js","./CD0LZZvC.js","./DJqXHs41.js","./swiper-vue.DJHdZmOr.css","./entry.Bkj0VLe-.css","./AppPromo.BoHNFUCy.css","./BzO5uORT.js","./NewsLetter.D8GEKGjG.css","./IV3Sk_YA.js","./DCGeylsZ.js","./useResponsiveBannerImage.A-y2FP7Q.css","./BlG7i_ox.js","./B0zfH0lk.js","./B7Zl1hLj.js","./FlexCard.DmvytADs.css","./MostPopularSlider.B6XhcETM.css","./Shows.Civb2gSG.css","./vRfPCfwR.js","./DownloadAppSection.DTgbBPAm.css"])))=>i.map(i=>d[i]);
2import{n as K,x as Y,j as te,g as he,o as ne,p as ge,r as de,S as se,q as ce,E as me,C as d,a as le,u as ie,v as ve,w as ye,c as Te,b as Ee,F as q,d as we,D as $,G as re}from"./CD0LZZvC.js";import{u as fe,_ as ke}from"./DCGeylsZ.js";import{ac as p,ak as ae,z as i,c as Q,C as Ie,E as g,af as a,an as m,ao as W,ae as f,ag as U,aj as _e,ah as V,ai as Z,al as pe,b as ee,at as J,v as be,u as Ce,P as j}from"./DJqXHs41.js";import{_ as Pe}from"./B7Zl1hLj.js";import{u as Ne}from"./DiWeomqk.js";import{_ as Se,a as Le}from"./BgNMXLaL.js";import{_ as Ae}from"./B0zfH0lk.js";import{_ as xe}from"./DT_q2eQJ.js";const Oe={__name:"Banner",props:{data:{type:Array,required:!0},type:{type:String},themeColor:{type:String,default:"dark"}},setup(y){const{handleNavigation:w}=K(),{dataLayer:k,GTM_EVENT_LIST:E,GTM_CONTENT_TYPE_LIST:D}=Y(),{getSrc:T,getWidth:t,getHeight:S}=fe("banner"),O=y,u={top:{BANNER:D.TOP_BANNER,BANNER_SWIPE:"top_banner_swipe"},bottom:{BANNER:D.BOTTOM_BANNER,BANNER_SWIPE:"bottom_banner_swipe"}},F=Q(()=>(O.data??[]).filter(v=>v?.banner).map(v=>({href:v.banner._link,src:T(v.banner),alt:v.banner.bannerTitle,raw:v.banner}))),R=v=>{w(v.raw),k.push({_gtm_event:E.HOME_CLICK,_gtm_content_area:u[O.type].BANNER,_gtm_content_type:u[O.type].BANNER,_gtm_item_name:v.alt})},L=()=>{k.push({_gtm_event:E.HOME_CLICK,_gtm_content_area:u[O.type].BANNER_SWIPE,_gtm_content_type:D.BUTTON,_gtm_item_name:null})};return(v,r)=>{const o=ke;return p(),ae(o,{slides:i(F),width:i(t),height:i(S),"theme-color":y.themeColor,"lcp-first":y.type==="top",sizes:"xs:100vw sm:100vw md:100vw lg:1180px","aria-label":"banner slider",onSlideClick:R,onNavClick:L},null,8,["slides","width","height","theme-color","lcp-first"])}}},He={id:"live-tv"},De={class:"section-title-and-link-wrapper"},Ue={class:"vstack gap-5"},Fe={class:"current-program-header"},Re={class:"thumbnail-wrapper"},Me={class:"program-state d-flex align-items-baseline mb-1"},$e={class:"program-title h5"},We={key:0,class:"program-category text-label-medium text-primary-400"},Ve={key:0,class:"schedule-card d-none d-lg-flex flex-column"},Be={key:0,class:"schedule-card-body"},Ge={class:"list-unstyled mb-0"},ze={key:0},Ke={class:"title"},Ye={key:0,class:"category"},qe=["onClick"],je={class:"title"},Xe={class:"schedule-card-footer"},Je={__name:"LiveTv",props:{schedule:{type:Array,required:!0}},setup(y){const w=he(),k=ne(),{setCardBodyImageHeight:E,getMaxLineClamp:D}=Ne(),{dataLayer:T,GTM_EVENT_LIST:t,GTM_CONTENT_TYPE_LIST:S}=Y(),{handleNavigation:O}=K(),u=y,F=ee(null),R=ee(null),L=()=>{const r=document.querySelector("#live-tv .current-program-thumbnail");E(r,F.value),D(R.value,20)},v=r=>{if(!r.categoryFullPath||![4,7].includes(parseInt(r.scheduleWebSiteType)))return"";switch(parseInt(r.scheduleWebSiteType)){case 4:return r.categoryFullPath?.split("/")[0];case 7:return r.categoryFullPath?.split("/")[1];default:return r.categoryFullPath?.split("/")[0]}};return Ie(()=>{ge(window,"resize",L)}),(r,o)=>{const I=de,b=ce,H=Pe,l=me;return p(),g("section",He,[a("div",De,[o[2]||(o[2]=a("h2",{class:"section-title h2"},"LIVE TV",-1)),m(I,{class:"d-lg-none",link:"/taiwanplustv/schedule","link-text":"See Full Schedule","icon-url":"schedule"})]),a("div",Ue,[a("article",null,[a("a",{href:"/taiwanplustv",class:"current-program-card",onClick:o[0]||(o[0]=W(c=>(i(w).openLiveVideo(),i(T).push({_gtm_event:i(t).HOME_CLICK,_gtm_content_area:"livestream",_gtm_content_type:i(S).LIVESTREAM,_gtm_item_name:"livestream"})),["prevent"]))},[a("div",Fe,[a("div",Re,[m(b,{class:"current-program-thumbnail",src:u.schedule[0]?.image??"/imgs/live/live-tv-default.webp",alt:`${i(se)} Live TV program thumbnail`,loading:"eager",fetchpriority:"high",preload:"",sizes:"sm:100vw md:50vw lg:600px",onLoad:L},null,8,["src","alt"]),o[3]||(o[3]=a("div",{class:"play-icon-wrapper border-0 d-flex align-items-center justify-content-center rounded-circle"},[a("i",{class:"play-icon"})],-1))])]),a("div",{ref_key:"programCardBody",ref:F,class:"current-program-body vstack align-items-start gap-2"},[a("div",Me,[o[4]||(o[4]=a("i",{class:"live-tv me-1","data-icon":"live-tv"},null,-1)),o[5]||(o[5]=a("span",{class:"program-text me-2"},"LIVE",-1)),u.schedule.length>0?(p(),ae(H,{key:0,class:"program-time",datetime:new Date(u.schedule[0]?.dateTime),hour12:!1,"time-style":"short",locale:"en-US","hour-cycle":"h23"},null,8,["datetime"])):f("",!0)]),a("h3",$e,U(u.schedule[0]?.title??`${i(se)} TV`),1),u.schedule[0]&&[4,7].includes(parseInt(u.schedule[0].scheduleWebSiteType))&&v(u.schedule[0])?(p(),g("span",We,U(v(u.schedule[0])),1)):f("",!0),u.schedule.length>
20&&u.schedule[0]?.shortDescription?(p(),g("p",{key:1,ref_key:"programCardBodyDesc",ref:R,class:_e(["program-description text-body-3 mb-0",{"line-clamp unset":i(k).match("tablet")??!1}])},U(u.schedule[0]?.shortDescription.slice(0,130)),3)):f("",!0)],512)])]),u.schedule.length>1?(p(),g("article",Ve,[o[6]||(o[6]=a("div",{class:"schedule-card-header"},[a("h4",{class:"up-next mb-0 h6"},"UP NEXT")],-1)),u.schedule.length>1?(p(),g("div",Be,[a("ul",Ge,[(p(!0),g(V,null,Z(u.schedule,(c,_)=>(p(),g(V,{key:c.id},[_>0?(p(),g("li",{key:c},[c.categoryFullPath||c.url?(p(),g("article",ze,[m(l,{to:c._link,class:"program-item",onClick:W(C=>(i(O)(c),i(T).push({_gtm_event:i(t).HOME_CLICK,_gtm_content_area:"livestream_up_next",_gtm_content_type:i(S).BUTTON,_gtm_item_name:c.title})),["prevent"])},{default:pe(()=>[m(H,{datetime:new Date(c.dateTime),class:"time",hour12:!1,"time-style":"short",locale:"en-US","hour-cycle":"h23"},null,8,["datetime"]),a("h4",Ke,U(c.title),1),c&&[4,7].includes(parseInt(c.scheduleWebSiteType))&&v(c)?(p(),g("span",Ye,U(v(c)),1)):f("",!0)]),_:2},1032,["to","onClick"])])):(p(),g("article",{key:1,class:"program-item",onClick:W(C=>i(T).push({_gtm_event:i(t).HOME_CLICK,_gtm_content_area:"livestream_up_next",_gtm_content_type:i(S).BUTTON,_gtm_item_name:c.title}),["prevent"])},[m(H,{datetime:new Date(c.dateTime),class:"time",hour12:!1,"time-style":"short",locale:"en-US","hour-cycle":"h23"},null,8,["datetime"]),a("h4",je,U(c.title),1)],8,qe))])):f("",!0)],64))),128))])])):f("",!0),a("div",Xe,[m(I,{class:"d-none d-lg-flex",link:"/taiwanplustv/schedule","link-text":"See Full Schedule","aria-label":"full schedule","icon-url":"schedule",onClick:o[1]||(o[1]=c=>i(T).push({_gtm_event:i(t).HOME_CLICK,_gtm_content_area:"livestream_schedule",_gtm_content_type:i(S).BUTTON,_gtm_item_name:null}))})])])):f("",!0)])])}}},Qe=te(Je,[["__scopeId","data-v-a5ac2500"]]),Ze={id:"home-news-highlight"},et={class:"section-title-and-link-wrapper"},tt={class:"grid-wrapper"},nt={id:"headline-news"},at={class:"d-flex flex-column gap-6"},ot=["href","aria-label"],st={class:"headline-news-thumbnail"},lt={key:0,class:"live-update-label"},it={key:1,class:"video-duration"},rt={class:"text-white headline-news-wrapper"},dt={class:"title"},ct={id:"latest-news"},_t={class:"list-unstyled vstack mb-0 border-bottom border-1 border-neutral-100"},pt={key:0,id:"most-watched"},ut={class:"list-unstyled most-watched-vod-list mb-0",style:{"--most-watched-vod-list-columns":"3"}},ht={key:1,id:"news-category"},gt={__name:"News",props:{newsHighlightData:{type:Array,required:!0},liveUpdate:{type:Boolean,required:!0},mostWatched:{type:Array},newsCategory:{type:Object},lazyLoad:{type:Boolean,default:!1}},setup(y){const{handleNavigation:w}=K(),k=ne(),{dataLayer:E,GTM_EVENT_LIST:D,GTM_CONTENT_TYPE_LIST:T}=Y(),t=y,S=Q(()=>k.isLessThan("tablet")?t.newsHighlightData[0]?.liveUpdateEvents.slice(0,3):t.newsHighlightData[0]?.liveUpdateEvents.slice(0,5)),O=Q(()=>{if(k.isLessThan("tablet"))return t.newsHighlightData.slice(1,6);if(k.isGreaterOrEquals("tablet"))return t.liveUpdate?S.value.length<4?t.newsHighlightData.slice(1,6):t.newsHighlightData.slice(1,7):t.newsHighlightData.slice(1,6)}),u={N_LATEST_NEWS_SEE_MORE:"n_latest_news_see_more",LIVE_UPDATE:"n_live_news",LATEST_NEWS:"n_latest_news",MOST_WATCHED:"n_most_watched"},F={[d.LIVE_NEWS]:T.NEWS,[d.VOD]:T.NEWS,[d.ARTICLE]:T.NEWS_ARTICLE},R=({_gtm_content_area:v,_gtm_content_type:r,_gtm_item_name:o})=>{E.push({_gtm_event:D.HOME_CLICK,_gtm_content_area:v,_gtm_content_type:r,_gtm_item_name:o})},L=(v,r={})=>{let o,I,b;const H=F[r.item?._contentType]??null;switch(v){case"N_LATEST_NEWS_SEE_MORE":o=u.N_LATEST_NEWS_SEE_MORE,I=T.BUTTON,b=null;break;case"HEADLINE":o=t.liveUpdate?u.LIVE_UPDATE:u.LATEST_NEWS,I=H,b=t.liveUpdate?t.newsHighlightData[0].liveUpdateTitle:t.newsHighlightData[0].title;break;case"LIVE_UPDATE_LIST":o=u.LIVE_UPDATE,I=T.NEWS,b=S.value[r.index]?.eventTitle;break;case"LATEST_NEWS":o=u.LATEST_NEWS,I=H,b=r.item.title;break;case"MOST_WATCHED":o=u.MOST_WATCHED,I=T.NEWS,b=r.item.title;break;default:return}R({_gtm_content_area:o,_gtm_content_type:I,_gtm_item_name:b})};return(v,r)=>{const o=de,I=ce,b=Le,H=Ae,l=Se,c=xe;return p(),g("section",Ze,[a("div",et,[r[3]||(r[3]=a("h2",{class:"h2 section-title"},"NEWS",-1)),m(o,{link:"/news","link-text":"More News","icon-direction":"end","aria-label":"more news",onClick:r[0]||(r[0]=_=>L("N_LATEST_NEWS_SEE_MORE"))})]),a("div",tt,[a("section",nt,[a("article",at,[a("a",{href:t.newsHighlightData[0]?._link,class:"headline-news-card","aria-label":t.liveUpdate?t.newsHighlightData[0]?.liveUpdateTitle:t.newsHighlightData[0]?.title,onClick:r[1]||(r[1]=W(_=>(i(w)(t.newsHighlightData[0]),L("HEADLINE",{item:t.newsHighlightData[0]})),["prevent"]))},[a("div",st,[m(I,{src:t.liveUpdate?t.newsHighlightData[0].liveUpdateImage:t.newsHighlightData[0].image,alt:t.liveUpdate?t.newsHighlightData[0].liveUpdateTitle:t.newsHighlightData[0].title,class:"img-fluid w-100",loading:t.lazyLoad?"lazy":"eager",fetchpriority:t.lazyLoad?"auto":"high",preload:!t.lazyLoad,width:t.liveUpdate?1160:960,height:t.liveUpdate?652:540,sizes:"xs:100vw md:50vw lg:60vw xl:800px"},null,8,["src","alt","loading","fetchpriority","preload","width","height"]),t.liveUpdate?(p(),g("span",lt,[...r[4]||(r[4]=[a("i",null,null,-1),a("span",null,"LIVE UPDATES",-1)])])):t.newsHighlightData[0]?.type===1?(p(),g("span",it,U(t.newsHighlightData[0].length),1)):f("",!0)]),a("div",rt,[a("h1",dt,U(t.liveUpdate?t.newsHighlightData[0].liveUpdateTitle:t.newsHighlightData[0].title),1),t.liveUpdate?f("",!0):(p(),g(V,{key:0},[r[5]||(r[5]=a("hr",null,null,-1)),a("p",{class:_e(["mb-0 line-clamp text-body-2",{"headline-news-video-description":t.newsHighlightData[0].type===1,"headline-news-article-description":t.newsHighlightData[0].type===2}])},U(t.newsHighlightData[0].shortDescription),3)],64))])],8,ot),t.liveUpdate?(p(),ae(b,{key:0,"live-update-id":t.newsHighlightData[0]?.liveUpdateId,"live-update-title":t.newsHighlightData[0]?.liveUpdateTitle,"live-update-encoded-title":t.newsHighlightData[0]?.liveUpdateEncodedTitle,"live-update-events":i(S),onClickEvent:r[2]||(r[2]=_=>L("LIVE_UPDATE_LIST",{index:_}))},null,8,["live-update-id","live-update-title","live-update-encoded-title","live-update-events"])):f("",!0)])]),a("section",ct,[r[6]||(r[6]=a("h2",{class:"block-title-and-link-wrapper"},"LATEST NEWS",-1)),a("ul",_t,[(p(!0),g(V,null,Z(i(O),(_,C)=>(p(),g("li",{key:_.id},[m(H,{"show-thumbnail-breakpoint":{mobile:!1,tablet:!1,desktop:!1},data:_,"lazy-load":t.lazyLoad?!0:C>2,onClick:W(A=>(i(w)(_),L("LATEST_NEWS",{item:_})),["prevent"])},null,8,["data","lazy-load","onClick"])]))),128))])]),t.mostWatched.length>
20?(p(),g("section",pt,[r[7]||(r[7]=a("h3",{class:"block-title-and-link-wrapper"},"MOST WATCHED",-1)),a("ul",ut,[(p(!0),g(V,null,Z(t.mostWatched,(_,C)=>(p(),g("li",{key:_.id},[m(l,{number:C+1,"card-direction-breakpoint":{mobile:"row",tablet:"column",desktop:"column"},"show-number-breakpoint":{mobile:!1,tablet:!1,desktop:!0},data:_,"lazy-load":!0,onClick:W(A=>(i(w)(_),L("MOST_WATCHED",{item:_})),["prevent"])},null,8,["number","data","onClick"])]))),128))])])):f("",!0),t.newsCategory!==null&&t.newsCategory.categoryId?(p(),g("section",ht,[m(c,{data:t.newsCategory,"news-list-length-breakpoint":{mobile:3,tablet:3,desktop:3}},null,8,["data"])])):f("",!0)])])}}},mt=te(gt,[["__scopeId","data-v-f8557f15"]]),vt=j(()=>q(()=>import("./BWeGAubx.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(y=>y.default||y)),yt=j(()=>q(()=>import("./BzO5uORT.js"),__vite__mapDeps([6,1,2,3,4,7]),import.meta.url).then(y=>y.default||y)),Tt=j(()=>q(()=>import("./IV3Sk_YA.js"),__vite__mapDeps([8,1,2,3,4,9,10,11,12,13,14,15,16]),import.meta.url).then(y=>y.default||y)),Et=j(()=>q(()=>import("./vRfPCfwR.js"),__vite__mapDeps([17,1,2,3,4,18]),import.meta.url).then(y=>y.default||y)),wt={id:"news-section",class:"text-black"},ft={key:0,class:"news-container py-5 home-top-banner"},kt={class:"news-grid-container"},It={class:"news-and-tv-section-grid"},bt={class:"tv-block gap-5 vstack"},Ct={key:0,class:"d-flex flex-column gap-6"},Pt={key:0,class:"d-flex flex-column"},Nt={id:"shows-section",class:"text-white"},St={key:0,class:"news-container py-5"},Lt=Object.assign({name:"Index"},{__name:"index",async setup(y){let w,k;const{getNavigationLink:E,handleProcessVodEncodedCategoryFullPath:D}=K(),{GTM_EVENT_LIST:T,GTM_CONTENT_TYPE_LIST:t}=Y(),S=ne(),O=we(),{logSSRError:u}=Ee(),F=l=>{if(!l||l.length===0)return[];const c=new Date().getTime(),_=l.filter(h=>new Date(h.dateTime).getTime()<=c),C=l.findIndex(h=>new Date(h.dateTime).getTime()>c),A=[];if(C>0){A.push(_[_.length-1]);for(let h=0;h<3;h++)l[C+h]&&A.push(l[C+h])}else _.length>0&&A.push(_[_.length-1]);return A.map(h=>{const P={...h,_contentType:h.scheduleWebSiteType,_mainCategory:h.categoryType===1?"news":"shows"};switch(parseInt(h.scheduleWebSiteType)){case d.EXTERNAL_URL:P._externalUrl=h.url;break;case d.VOD:P._vodEncodedFullPath=h.encodedFullPath,P._vodId=h.vodId,P._vodTitle=h.encodedTitle,P._vodProgramId=h.programId;break;case d.CATEGORY:P._encodedFullPath=h.encodedFullPath;break;case d.PROGRAM:P._programCategoryFullPath=h.encodedFullPath,P._programId=h.programId;break}return{...P,_link:E(P)}})},R=(l=[],c)=>l?.length?l.map(_=>({categoryType:_.categoryType||c,..._})):[],L=async l=>{if(!l)return null;const c=l.banners||[],_={},C=e=>{if(!e?.banner)return null;const s=e.banner,n={...s,_contentType:s.contentType};switch(s.contentType){case d.EXTERNAL_URL:n._externalUrl=s.url;break;case d.VOD:n._mainCategory=s.categoryType===1?"news":"shows",n._vodEncodedFullPath=s.encodedFullPath,n._vodId=s.id,n._vodTitle=s.encodedTitle,n._vodProgramId=s.programId;break;case d.CATEGORY:n._mainCategory=s.categoryType===1?"news":"shows",n._encodedFullPath=s.encodedFullPath;break;case d.TAG:n._tagName=s.tagName,n._tagId=s.tagId;break;case d.PROGRAM:n._mainCategory="shows",n._programCategoryFullPath=s.encodedFullPath,n._programId=s.programId;break;case d.ARTICLE:n._mainCategory="news",n._articleEncodedFullPath=s.encodedFullPath,n._articleId=s.id,n._articleTitle=s.encodedTitle;break}return n._link=E(n),{...e,banner:n}},A=c.filter(e=>e.group==="Head"),h=c.filter(e=>e.group==="Foot");A&&(_.head=A.map(e=>C(e)).slice(0,7)),h&&(_.foot=h.map(e=>C(e)).slice(0,7));const P=l.liveUpdate!==null;let x=l.liveUpdate||{};x.liveUpdateId&&(x={...x,_contentType:d.LIVE_NEWS,_liveUpdateId:x.liveUpdateId,_liveUpdateTitle:x.liveUpdateEncodedTitle},x._link=E(x));const B=(l.latestNews||[]).map(e=>{let s={};switch(e.type){case 1:{s={...e,_contentType:d.VOD,_mainCategory:"news",_vodEncodedFullPath:e.encodedFullPath,_vodId:e.id,_vodTitle:e.encodedTitle};break}case 2:s={...e,_contentType:d.ARTICLE,_mainCategory:"news",_articleEncodedFullPath:e.encodedFullPath,_articleId:e.id,_articleTitle:e.encodedTitle}}return{...s,_link:E(s)}}),X=x.liveUpdateId?[x,...B]:B;let N=null,oe=[];l.newsSpecifiedCategory!==null?(N={...l.newsSpecifiedCategory,_contentType:d.CATEGORY,_mainCategory:"news",_encodedFullPath:l.newsSpecifiedCategory.encodedCategoryFullPath},N._link=E(N),N._gtm_event=T.HOME_CLICK,N._gtm_content_type=t.NEWS,N._gtm_content_area=N.expo?"n_curation_see_all":null,N.news=(N.news||[]).slice(0,3).map(e=>{let s={};switch(e.type){case 1:{s={...e,_contentType:d.VOD,_mainCategory:"news",_vodEncodedFullPath:e.encodedFullPath,_vodId:e.id,_vodTitle:e.encodedTitle,_gtm_event:T.HOME_CLICK,_gtm_content_type:t.NEWS,_gtm_content_area:N.expo?"n_curation":"n_category",_gtm_item_name:e.title};break}case 2:{s={...e,_contentType:d.ARTICLE,_mainCategory:"news",_articleEncodedFullPath:e.encodedFullPath,_articleId:e.id,_articleTitle:e.encodedTitle,_gtm_event:T.HOME_CLICK,_gtm_content_type:t.NEWS_ARTICLE,_gtm_content_area:N.expo?"n_curation":"n_category",_gtm_item_name:e.title};break}}return{...s,_link:E(s)}})):oe=(l.mostWatched||[]).slice(0,3).map(e=>{const s={...e,_contentType:d.VOD,_mainCategory:"news",_vodEncodedFullPath:e.encodedFullPath,_vodId:e.id,_vodTitle:e.encodedTitle,_gtm_event:T.HOME_CLICK,_gtm_content_type:t.NEWS,_gtm_content_area:"n_most",_gtm_item_name:e.title};return{...s,_link:E(s)}});let G=R((l.showsActivity||[]).slice(0,7),2);await Promise.all(G.filter(e=>e.contentType===2).map(e=>D(e))),G=G.map(e=>{const s=parseInt(e.contentType),n={...e,_contentType:e.contentType,_mainCategory:"shows"};switch(s){case d.EXTERNAL_URL:n._externalUrl=e.url;break;case d.VOD:n._vodEncodedFullPath=e.encodedFullPath,n._vodId=e.vodId,n._vodTitle=e.encodedVodTitle,n._vodProgramId=e.programId;break;case d.CATEGORY:n._encodedFullPath=e.encodedFullPath;break;case d.TAG:n._tagName=e.tagName,n._tagId=e.tagId;break;case d.PROGRAM:n._programCategoryFullPath=e.encodedFullPath,n._programId=e.programId;break}return{...n,_link:E(n)}});let z=(l.originals||[]).slice(0,4);await Promise.all(z.filter(e=>e.contentType===2).map(e=>D(e))),z=z.map(e=>{const s=parseInt(e.contentType),n={...e,_contentType:e.contentType,_mainCategory:"shows"};switch(s){case d.EXTERNAL_URL:n._externalUrl=e.url;break;case d.VOD:n._vodEncodedFullPath=e.encodedFullPath,n._vodId=e.id,n._vodTitle=e.encodedVodTitle,n._vodProgramId=e.programId;break;case d.CATEGORY:n._encodedFullPath=e.encodedFullPath;break;case d.TAG:n._tagName=e.tagName,n._tagId=e.tagId;break;case d.PROGRAM:n._programCategoryFullPath=e.encodedFullPath,n._programId=e.programId;break}return{...n,_link:E(n)}});const ue=(l.mostPopular||[]).slice(0,4).map(e=>{const s={...e,_contentType:d.VOD,_mainCategory:"shows",_vodEncodedFullPath:e.encodedFullPath,_vodId:e.id,_vodTitle:e.encodedTitle,_vodProgramId:e.defaultProgramId};return{...s,_link:E(s)}});let M=null;return l.showsSpecifiedProgram!==null&&(M={...l.showsSpecifiedProgram,_contentType:d.PROGRAM,_programCategoryFullPath:l.showsSpecifiedProgram.encodedFullPath,_programId:l.showsSpecifiedProgram.programId},M._link=E(M),M._gtm_event=T.HOME_CLICK,M._gtm_content_type=t.BUTTON,M._gtm_content_area="s_program_see_all",M.vods=(l.showsSpecifiedProgram.vods||[]).slice(0,4).map(e=>{const s={...e,_contentType:d.VOD,_mainCategory:"shows",_vodEncodedFullPath:e.encodedFullPath,_vodId:e.id,_vodTitle:e.encodedTitle,_vodProgramId:e.defaultProgramId,_gtm_event:T.HOME_CLICK,_gtm_content_area:"s_program",_gtm_content_type:t.SHOWS,_gtm_item_name:e.title};return{...s,_link:E(s)}})),{banners:_,hasLiveUpdate:P,newsHighlightData:X,newsSpecifiedCategory:N,mostWatched:oe,showsActivity:G,originals:z,mostPopular:ue,showsSpecifiedProgram:M}},[{data:v,error:r},{data:o,error:I}]=([w,k]=J(async()=>Promise.all([le("live-schedule-today",async()=>{const l=await O.live.liveScheduleToday("8");return l.code==="0000"&&l.success?F(l.data[0].schedule):[]}),le("home-page-all-components",async()=>{const l=await O.default.homePageAllComponents();if(l.code==="0000"&&l.success)return await L(l.data);throw Te({statusCode:500,statusMessage:"Failed to fetch index data"})})])),w=await w,k(),w);r.value&&(console.warn("Error fetching schedule data: ",r.value),[w,k]=J(()=>u(r.value,{apiEndpoint:"live-schedule-today",pageName:"HomePage"})),await w,k()),I.value&&(console.warn("Error fetching home data: ",I.value),[w,k]=J(()=>u(I.value,{apiEndpoint:"home-page-all-components",pageName:"HomePage"})),await w,k());
2const b=ee(!1),H={title:$.title,description:$.description,ogTitle:$.title,ogDescription:$.description,ogImage:re,ogUrl:$.url,ogType:"website",twitterCard:"summary_large_image",twitterTitle:$.title,twitterDescription:$.description,twitterImage:re,twitterUrl:$.url};return ie(H),be(()=>{b.value||(ie(H),b.value=!0)}),Ce(()=>{b.value=!1}),(l,c)=>{const _=Oe,C=Qe,A=vt,h=yt,P=mt,x=ve,B=ye,X=Tt,N=Et;return p(),g("main",null,[a("section",wt,[i(o)?.banners?.head?.length>0?(p(),g("div",ft,[m(_,{data:i(o).banners.head,type:"top","theme-color":"light"},null,8,["data"])])):f("",!0),a("div",kt,[a("div",It,[a("section",bt,[m(C,{schedule:i(v)},null,8,["schedule"]),i(S).isGreaterThan("tablet")?(p(),g("div",Ct,[m(A),m(h)])):f("",!0)]),c[0]||(c[0]=a("div",{class:"d-none d-lg-block vr text-neutral-100","aria-hidden":"true"},null,-1)),m(P,{class:"news-block","news-highlight-data":i(o).newsHighlightData,"live-update":i(o).hasLiveUpdate,"most-watched":i(o).mostWatched,"news-category":i(o).newsSpecifiedCategory,"lazy-load":!1},null,8,["news-highlight-data","live-update","most-watched","news-category"]),m(B,null,{default:pe(()=>[m(x,{class:"recommendation-block","page-type":1})]),_:1}),i(S).isLessThan("desktop")?(p(),g("div",Pt,[m(A),m(h)])):f("",!0)])])]),a("section",Nt,[m(X,{"shows-activity":i(o).showsActivity,originals:i(o).originals,"most-popular":i(o).mostPopular,"shows-specified-program":i(o).showsSpecifiedProgram},null,8,["shows-activity","originals","most-popular","shows-specified-program"]),i(o).banners?.foot?.length>0?(p(),g("div",St,[m(_,{type:"bottom",data:i(o).banners.foot},null,8,["data"])])):f("",!0)]),m(N)])}}}),Mt=te(Lt,[["__scopeId","data-v-7ed88bad"]]);export{Mt 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.