PageSourceSearch

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

js taiwanplus.com collected 2026-10-02 02:55:21 UTC 3,445 bytes, 1 lines download raw bytes

1import{n as b,o as B,t as D,q as N,r as q,x as F}from"./CD0LZZvC.js";import{ac as e,E as i,z as n,ak as h,ae as l,af as r,ag as k,av as f,ah as I,ai as A,an as S,ao as V,aj as $,c}from"./DJqXHs41.js";const j={class:"category-content-wrapper"},z={class:"title-wrapper"},T={class:"category-title"},E={key:0,class:"category-description mb-0 text-body-2"},O={class:"d-flex flex-column gap-3 vod-list-wrapper"},P={class:"d-flex d-md-none align-items-center justify-content-end"},R={__name:"CategoryList",props:{data:{type:Object,required:!0},themeColor:{type:String,required:!1,default:"light"},showCategoryDescription:{type:Boolean,required:!1,default:!0},newsListLengthBreakpoint:{type:Object,required:!1,default:()=>({mobile:3,tablet:4,desktop:4})},showImage:{type:Boolean,required:!1,default:!0},showVodDescription:{type:Boolean,required:!1,default:!1}},setup(_){const{handleNavigation:w}=b(),{dataLayer:C}=F(),t=_,L=c(()=>t.data.expo?{"--curation-background-color":t.data.backgroundColor,"--curation-category-alias-font-color":t.data.categoryAliasFontColor,"--curation-category-description-font-color":t.data.categoryDescriptionFontColor,"--curation-link-color":t.data.tourButtonStyle,"--curation-link-icon-color":t.data.categoryAliasFontColor}:{}),d=B(),m=c(()=>{if(t.newsListLengthBreakpoint)return d.isLessThan("tablet")?t.data.expo?3:t.newsListLengthBreakpoint.mobile:d.isLessThan("desktop")?t.newsListLengthBreakpoint.tablet:t.newsListLengthBreakpoint.desktop}),x=c(()=>{if(t.newsListLengthBreakpoint)return t.data.news?.slice(0,m.value)}),y=c(()=>d.isLessThan("tablet")?t.data?.headerImagePhone:t.data?.headerImage),u=({_gtm_event:p,_gtm_content_area:o,_gtm_content_type:g,_gtm_item_name:s})=>{p&&C.push({_gtm_event:p,_gtm_content_area:o,_gtm_content_type:g,_gtm_item_name:s})};return(p,o)=>{const g=N,s=q,v=D;return e(),i("section",{class:$(["card-list-wrapper",[t.themeColor,{curation:t.data.expo}]]),style:f(n(L))},[n(y)&&t.showImage?(e(),h(g,{key:0,src:n(y),class:"category-image",alt:"category image",loading:"lazy",width:"1920",height:"1080"},null,8,["src"])):l("",!0),r("div",j,[r("div",z,[r("h2",T,k(t.data.categoryAlias??t.data.categoryName),1),t.data._link?(e(),h(s,{key:0,link:t.data._link,curation:t.data.expo,"theme-color":t.themeColor,"aria-label":`see all - ${t.data.categoryAlias??t.data.categoryName}`,class:"d-md-flex d-none","link-text":"See All","icon-direction":"end",onClick:o[0]||(o[0]=a=>u(t.data))},null,8,["link","curation","theme-color","aria-label"])):l("",!0)]),t.showCategoryDescription&&t.data.categoryDescription&&t.data.displayDescription?(e(),i("p",E,k(t.data.categoryDescription),1)):l("",!0)]),r("div",O,[r("ul",{class:"list",style:f({"--vod-list-length":n(m)})},[(e(!0),i(I,null,A(n(x),a=>(e(),i("li",{key:a.vodId},[S(v,{data:a,"theme-color":t.themeColor,curation:t.data.expo,"show-description":t.showVodDescription,"title-font-color":t.data.titleFontColor,"title-hover-font-color":t.data.titleHoverFontColor,"text-font-color":t.data.textFontColor,onClick:V(G=>(n(w)(a),u(a)),["prevent"])},null,8,["data","theme-color","curation","show-description","title-font-color","title-hover-font-color","text-font-color","onClick"])]))),128))],4),r("div",P,[t.data._link?(e(),h(s,{key:0,link:t.data._link,curation:t.data.expo,"theme-color":t.themeColor,"link-text":"See All","icon-direction":"end",onClick:o[1]||(o[1]=a=>u(t.data))},null,8,["link","curation","theme-color"])):l("",!0)])])],6)}}};export{R as _};

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.