1import{$t as e,An as t,Hn as n,Kn as r,Nn as i,Q as a,Qt as o,Vn as s,Xn as c,an as l,bn as u,cn as d,dn as f,in as p,ir as m,on as h,or as g,ot as _,pn as v,sn as y,st as ee,tr as b,un as x,zn as S}from"./B-xOH4IK.js";import{n as C,r as w}from"./CcIqGu1x.js";import{t as T}from"./3wStQDZk.js";import{n as te}from"./aIab2Rmk.js";import{t as E}from"./CSsF6Das.js";import{i as D}from"./am298OYN.js";import{t as O}from"./BDNMzG2s.js";import{n as k,t as A}from"./GQkmTXsf.js";import{t as j}from"./CNs_Ozdc.js";import{t as M}from"./C9x9aWYQ.js";import{t as N}from"./CVZENKHr.js";var P={class:`mainview mainview-page hero`},F={class:`container`},I={class:`con flex flex:column ai:center`},L={class:`f:52px! f:40px!@<992 mt:0px!`},R={key:0,class:`f:18px f:14px@<992 font-weight:500 color:#fff lh:1.6 mt:4px max-width:80% max-width:100%@<992`},z={key:1,class:`row justify-content-center w:100%`},B={class:`col-md-6`},V={class:`input-group my-3`},H=[`value`],U={key:2,class:`mt-5`},W=[`href`],G=Object.assign(O(v({__name:`Hero`,props:{title:{},description:{},searchBar:{type:Boolean},subscribeText:{},subscribeLink:{},modelValue:{default:``}},emits:[`update:modelValue`,`clear`,`search`],setup(e,{emit:n}){let r=e,i=n,a=p(()=>r.modelValue.trim().length>0),o=c(),s=e=>{let t=e.target;i(`update:modelValue`,t.value)},f=e=>{e.key===`Enter`&&(h(),e.preventDefault()),e.key===`Escape`&&a.value&&(m(),e.preventDefault())},m=()=>{i(`update:modelValue`,``),i(`clear`),u(()=>{o.value?.focus()})},h=()=>{i(`search`)};return(n,r)=>(t(),d(`section`,P,[r[0]||=l(`div`,{class:`overlay`},null,-1),r[1]||=l(`div`,{class:`dec`},null,-1),l(`div`,F,[l(`div`,I,[l(`h2`,L,g(e.title),1),e.description?(t(),d(`div`,R,g(e.description),1)):y(``,!0),e.searchBar?(t(),d(`div`,z,[l(`div`,B,[l(`div`,V,[l(`input`,{ref_key:`inputRef`,ref:o,type:`text`,class:`form-control`,placeholder:`æå°ç¯ç®å稱ã主æäººãæ¼å¡...`,value:e.modelValue,autocomplete:`off`,onInput:s,onKeydown:f},null,40,H),b(a)?(t(),d(`span`,{key:0,class:`clear-icon`,title:`æ¸
é¤`,onClick:m},` â `)):y(``,!0),l(`button`,{class:`btn btn-primary`,type:`button`,onClick:h},` æå° `)])])])):y(``,!0),e.subscribeText?(t(),d(`div`,U,[l(`a`,{href:e.subscribeLink,class:`btn btn-outline-light`},g(e.subscribeText),9,W)])):y(``,!0)])])]))}}),[[`__scopeId`,`data-v-e770fc94`]]),{__name:`ShowsProgHero`}),K={class:`show-type-selection-wrapper mb:60px mb:40px@<768`},q={class:`card-body {h:80px!;p:8px!}@<768`},J=[`innerHTML`],Y=Object.assign(O(v({__name:`Selector`,props:{categories:{}},setup(r){let a=_();return(o,s)=>{let c=T,u=D;return t(),d(`div`,K,[f(u,null,{default:n(()=>[f(b(A),{modules:[b(M)],"slides-per-view":3,"space-between":12,navigation:!0,breakpoints:{768:{slidesPerView:4,spaceBetween:16},1024:{slidesPerView:6,spaceBetween:16}},class:`show-type-swiper`},{default:n(()=>[(t(!0),d(e,null,i(r.categories,e=>(t(),h(b(k),{key:e.slug},{default:n(()=>[l(`div`,{class:m([`card card-live card-live-program h:100%`,{active:b(a).params.category===e.slug}])},[f(c,{to:`/shows_prog/${e.slug}`,class:`h:100% block`},{default:n(()=>[l(`div`,q,[l(`div`,{class:`title mt:0px! {f:16px!}@<768`,innerHTML:e.name},null,8,J)])]),_:2},1032,[`to`])],2)]),_:2},1024))),128))]),_:1},8,[`modules`])]),_:1})])}}}),[[`__scopeId`,`data-v-adef9ede`]]),{__name:`ShowsProgSelector`}),X={class:`list-grid-section`},Z={key:0,class:`flex ai:center gap:12px mb:16px gap:8px@<768`},Q=[`src`,`alt`],ne={key:1,class:`f:40px f:bold f:28px@<768px`},re={key:2,class:`f:36px f:bold f:24px@<768px`},ie={class:`row g-5`},ae={class:`card card-show h:100%`},oe=[`href`],se={class:`card-body h:100%`},ce={key:0,class:`tag`},le=[`src`],ue={key:1,class:`pic-title`},de={class:`list-tag`},fe={class:`title`},pe={class:`text`},me=Object.assign(O(v({__name:`Grid`,props:{shows:{},title:{},icon:{},mode:{default:`normal`},showTitle:{type:Boolean,default:!0}},setup(n){return(r,a)=>(t(),d(`div`,X,[n.showTitle?(t(),d(`div`,Z,[n.icon?(t(),d(`img`,{key:0,src:n.icon,alt:n.title,class:`w:60px h:60px {w:40px;h:40px}@<768`},null,8,Q)):y(``,!0),n.mode===`hot`?(t(),d(`div`,ne,[...a[0]||=[x(` æ¬é±`,-1),l(`span`,{class:`color:#8BD6FF`},`ç±`,-1),l(`span`,{class:`color:#B6FFF1`},`é`,-1),x(`æ¨è¦ `,-1)]])):(t(),d(`div`,re,g(n.title),1))])):y(``,!0),l(`div`,ie,[(t(!0),d(e,null,i(n.shows,e=>(t(),d(`div`,{key:e.id,class:`col-md-4`},[l(`div`,ae,[l(`a`,{href:e.link},[l(`div`,se,[e.isHot?(t(),d(`div`,ce,`ç±æ æ¨è¦`)):y(``,!0),l(`div`,{class:m([`pic p:0! aspect:16/9 overflow:hidden`,{"pic-placeholder":!e.imageUrl}])},[e.imageUrl?(t(),d(`img`,{key:0,src:e.imageUrl??void 0,class:`w-full obj:cover`}
1,null,8,le)):(t(),d(`span`,ue,g(e.title),1))],2),l(`ul`,de,[l(`li`,null,g(e.category),1)]),l(`div`,fe,g(e.title),1),l(`div`,pe,g(e.content),1)])],8,oe)])]))),128))])]))}}),[[`__scopeId`,`data-v-c4379a91`]]),{__name:`ShowsProgGrid`}),he=`data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M43.7268%209.31994C42.1498%205.87513%2037.2588%205.87513%2035.6818%209.31994L33.346%2014.4278C33.2571%2014.6178%2032.9843%2014.6178%2032.8954%2014.4278C31.5437%2011.47%2027.3523%2011.47%2026.0006%2014.4278C26.0006%2014.4278%2019.2124%2028.017%2019.2124%2032.9466C19.2124%2041.9803%2026.5223%2049.3035%2035.5395%2049.3035C44.5568%2049.3035%2051.8667%2041.9803%2051.8667%2032.9466C51.8667%2025.6472%2043.7209%209.31994%2043.7209%209.31994H43.7268Z'%20fill='url(%23paint0_linear_479_2433)'/%3e%3cpath%20d='M13.8716%2022.4346H33.061C36.1721%2022.4346%2038.6987%2024.9622%2038.6987%2028.0732V47.2627C38.6987%2050.3738%2036.1721%2052.9004%2033.061%2052.9004H13.8716C10.7605%2052.9004%208.23291%2050.3738%208.23291%2047.2627V28.0732C8.23291%2024.9622%2010.7605%2022.4346%2013.8716%2022.4346Z'%20fill='white'%20fill-opacity='0.55'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M15.6728%2040.6676H14.1159C12.7456%2040.6676%2011.6318%2039.5539%2011.6318%2038.1836V36.6266C11.6318%2035.2563%2012.7456%2034.1426%2014.1159%2034.1426H15.6728C17.0431%2034.1426%2018.1569%2035.2563%2018.1569%2036.6266V38.1836C18.1569%2039.5539%2017.0431%2040.6676%2015.6728%2040.6676ZM26.7869%2038.1836V36.6266C26.7869%2035.2563%2025.6732%2034.1426%2024.3029%2034.1426H22.746C21.3756%2034.1426%2020.2619%2035.2563%2020.2619%2036.6266V38.1836C20.2619%2039.5539%2021.3756%2040.6676%2022.746%2040.6676H24.3029C25.6732%2040.6676%2026.7869%2039.5539%2026.7869%2038.1836ZM35.417%2038.1836V36.6266C35.417%2035.2563%2034.3032%2034.1426%2032.9329%2034.1426H31.376C30.0057%2034.1426%2028.892%2035.2563%2028.892%2036.6266V38.1836C28.892%2039.5539%2030.0057%2040.6676%2031.376%2040.6676H32.9329C34.3032%2040.6676%2035.417%2039.5539%2035.417%2038.1836ZM26.7869%2046.8136V45.2567C26.7869%2043.8864%2025.6732%2042.7726%2024.3029%2042.7726H22.746C21.3756%2042.7726%2020.2619%2043.8864%2020.2619%2045.2567V46.8136C20.2619%2048.1839%2021.3756%2049.2977%2022.746%2049.2977H24.3029C25.6732%2049.2977%2026.7869%2048.1839%2026.7869%2046.8136ZM35.417%2046.8136V45.2567C35.417%2043.8864%2034.3032%2042.7726%2032.9329%2042.7726H31.376C30.0057%2042.7726%2028.892%2043.8864%2028.892%2045.2567V46.8136C28.892%2048.1839%2030.0057%2049.2977%2031.376%2049.2977H32.9329C34.3032%2049.2977%2035.417%2048.1839%2035.417%2046.8136ZM14.1159%2049.2977H15.6728C17.0431%2049.2977%2018.1569%2048.1839%2018.1569%2046.8136V45.2567C18.1569%2043.8864%2017.0431%2042.7726%2015.6728%2042.7726H14.1159C12.7456%2042.7726%2011.6318%2043.8864%2011.6318%2045.2567V46.8136C11.6318%2048.1839%2012.7456%2049.2977%2014.1159%2049.2977Z'%20fill='%23FCFBFF'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_479_2433'%20x1='35.5395'%20y1='6.69653'%20x2='35.5395'%20y2='49.3035'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.12'%20stop-color='%23FF6D54'/%3e%3cstop%20offset='1'%20stop-color='%23FFA844'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,ge=`data:image/svg+xml,%3csvg%20width='64'%20height='60'%20viewBox='0%200%2064%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='6.39404'%20y='19'%20width='39.4298'%20height='29'%20rx='7'%20fill='url(%23paint0_linear_479_4041)'/%3e%3crect%20x='11.5054'%20y='24.0186'%20width='14.6036'%20height='4.11111'%20rx='2.05556'%20fill='%23BAE9FF'/%3e%3crect%20x='11.5054'%20y='31.5557'%20width='27.0167'%20height='4.11111'%20rx='2.05556'%20fill='%23BAE9FF'/%3e%3crect%20x='11.5054'%20y='39.0928'%20width='20.4451'%20height='4.11111'%20rx='2.05556'%20fill='%23BAE9FF'/%3e%3cpath%20d='M41.4424%2011.0996C50.6683%2011.0996%2058.1364%2018.1165%2058.1367%2026.7588C58.1367%2035.4013%2050.6684%2042.4189%2041.4424%2042.4189C32.2165%2042.4188%2024.748%2035.4012%2024.748%2026.7588C24.7483%2018.1166%2032.2166%2011.0997%2041.4424%2011.0996Z'%20fill='white'%20fill-opacity='0.55'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M46.2288%2025.0012C47.6252%2025.7577%2047.6252%2027.7617%2046.2288%2028.5182L40.3793%2031.6873C39.0467%2032.4092%2037.4266%2031.4444%2037.4266%2029.9288L37.4266%2023.5906C37.4266%2022.075%2039.0467%2021.1102%2040.3793%2021.8321L46.2288%2025.0012Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_479_4041'%20x1='26.1089'%20y1='19'%20x2='26.1089'%20y2='48'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.16'%20stop-color='%231575FB'/%3e%3cstop%20offset='1'%20stop-color='%2344C6FE'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,_e={class:`container`},$={key:0,class:`search-result-info mb-4`},ve={class:`d-flex align-items-center justify-content-between px:20px`},ye={class:`color:#fff f:16px`}
1,be={class:`color:#77EDFF f:24px f:bold`},xe={key:3,class:`no-results text-center py-5`},Se={class:`f:16px text-muted mb-4`},Ce=O(v({__name:`index`,async setup(n){let i,u;te(`global`),j({layout:`global`});let v=_(),T=ee(),D=v.params.category,O=p(()=>{let e=parseInt(String(v.query.page),10);return e>0?e:1}),k=p(()=>{let e=parseInt(String(v.query.limit),10);return e>0?e:void 0}),A=p(()=>{let e=v.query.search;return typeof e==`string`?e:``}),M=c(A.value),P=p(()=>A.value.trim().length>0),{data:F,error:I,status:L}=([i,u]=s(()=>E(()=>`/api/shows-prog/${D}`,{query:p(()=>({page:O.value,...k.value!==void 0&&{limit:k.value},...A.value&&{search:A.value}}))},`$QmquWhITej`)),i=await i,u(),i);if(S([O,A],()=>{window.scrollTo({top:0,behavior:`smooth`})}),I.value)throw a({statusCode:404,message:`æ¾ä¸å°ç¯ç®åé¡: ${D}`});let R=p(()=>F.value?.data?.navigation?.categories??[]),z=p(()=>R.value.find(e=>e.slug===D)??{slug:D,name:D,description:``}),B=p(()=>F.value?.data?.shows??[]),V=p(()=>F.value?.data?.total??0),H=p(()=>F.value?.data?.pagination??{page:O.value,totalPages:0}),U=p(()=>D===`all`&&!P.value?B.value.filter(e=>e.isHot):[]),W=()=>{M.value.trim()&&T.push({query:{...v.query,search:M.value,page:`1`}})},K=()=>{M.value=``;let{search:e,...t}=v.query;T.push({query:t})};return S(()=>v.query.search,e=>{M.value=e??``}),w({title:()=>`${z.value.name} - è¯è¦å
¨çè³è¨ç¶²`,description:()=>z.value.description,ogTitle:()=>`${z.value.name} - è¯è¦å
¨çè³è¨ç¶²`,ogDescription:()=>z.value.description}),C({meta:[{name:`keywords`,content:()=>`è¯è¦,${z.value.name},ç¯ç®,ä¸è¯é»è¦å
¬å¸`}]}),(n,i)=>{let a=G,s=Y,c=me,u=N;return t(),d(e,null,[f(a,{modelValue:b(M),"onUpdate:modelValue":i[0]||=e=>r(M)?M.value=e:null,title:b(z).name,description:b(z).description,"search-bar":b(D)===`all`,"subscribe-text":b(D)===`all`?`è¨é±é»åå ±`:void 0,"subscribe-link":b(D)===`all`?`/service/subscribe`:void 0,onSearch:W,onClear:K},null,8,[`modelValue`,`title`,`description`,`search-bar`,`subscribe-text`,`subscribe-link`]),l(`section`,{class:m([`area`,{"shows-prog-list--loading":b(L)===`pending`}])},[l(`div`,_e,[f(s,{categories:b(R)},null,8,[`categories`]),b(P)&&b(D)===`all`?(t(),d(`div`,$,[l(`div`,ve,[l(`span`,ye,[i[1]||=x(` å
±æ¾å° `,-1),l(`span`,be,g(b(V)),1),i[2]||=x(` åç¯ç® `,-1)]),l(`button`,{type:`button`,class:`btn btn-sm btn-outline-secondary`,onClick:K},` æ¸
é¤æå° `)])])):y(``,!0),b(U).length>0&&!b(P)?(t(),h(c,{key:1,shows:b(U),title:`æ¬é±ç±éæ¨è¦`,icon:b(he),mode:`hot`},null,8,[`shows`,`icon`])):y(``,!0),b(B).length>0?(t(),h(c,{key:2,shows:b(B),title:`${b(z).name}å表`,icon:b(ge),"show-title":!b(P)},null,8,[`shows`,`title`,`icon`,`show-title`])):y(``,!0),b(P)&&b(B).length===0?(t(),d(`div`,xe,[i[4]||=l(`div`,{class:`f:24px f:bold mb-3`},`æ¾ä¸å°ç¸éç¯ç®`,-1),l(`div`,Se,[i[3]||=x(` 試試å
¶ä»ééµåæ `,-1),l(`a`,{href:`#`,onClick:o(K,[`prevent`])},`æ¸
餿å°`)])])):y(``,!0),f(u,{pagination:b(H)},null,8,[`pagination`])])],2)],64)}}}),[[`__scopeId`,`data-v-3f488058`]]);export{Ce 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.