1import{_ as y,ak as b,aU as x,al as k,aW as E,a as g,h as C,S as w,bo as M,e as S}from"./portal-e24ed7db12e0.js";import{E as V}from"./chunk-BvyRsXGM.js";import{y as P,o as s,l as n,B as t,O as c,Q as _,T as h,w as v,n as f,H as L,v as N,z as u,A}from"./portal-vendors-e24ed7db12e0.js";import"./chunk-Dd1nfOyp.js";import"./chunk-DXHoVEGK.js";import"./chunk-CLYToqm6.js";import"./chunk-C4wVQklV.js";const D={key:0,ref:"container",class:"d-flex flex-wrap"},O=["onClick"],T=["onClick"],B={class:"product-item-container"},I={class:"live"},R={class:"embed-responsive embed-responsive-16by9"},G={class:"embed-responsive-item d-flex flex-column text-center"};function Q(r,e,a,l,i,p){const d=P("ui-product");return s(),n("div",null,[e[2]||(e[2]=t("div",{class:"container epg-mobile-title"},[t("p",{class:"d-inline-block"},"WSZYSTKIE")],-1)),t("div",{class:N(["page-container container d-inline-block",{"catalog-loader":i.loading}])},[i.products&&i.products.collection.length?(s(),n("div",D,[i.full?(s(!0),n(c,{key:0},_(i.channels,o=>(s(),n("div",{class:"product-item epg-item epg-item-mobile",onClick:h(m=>p.navigate({name:"detail.program.plus",params:{slug:o.slug,id:o.id}}),["prevent"])},[v(d,{product:o,disabled:!0},null,8,["product"])],8,O))),256)):(s(),n(c,{key:1},[(s(!0),n(c,null,_(i.channels,(o,m)=>(s(),n(c,null,[m<i.maxDisplayNumber?(s(),n("div",{key:0,class:"product-item epg-item epg-item-mobile",onClick:h(Y=>p.navigate({name:"detail.program.plus",params:{slug:o.slug,id:o.id}}),["prevent"])},[v(d,{product:o,disabled:!0},null,8,["product"])],8,T)):f("",!0)],64))),256)),t("div",{class:"product-item epg-item epg-item-mobile epg-display-more",onClick:e[0]||(e[0]=o=>i.full=!0)},[t("div",B,[t("div",I,[t("div",R,[t("div",G,[e[1]||(e[1]=t("p",null,"...",-1)),t("p",null,L(i.epgMoreNumber)+" WIÄCEJ",1)])])])])])],64))],512)):f("",!0)],2)])}const U={name:"EpgMobileView",components:{UiProduct:k},mixins:[b,x],data(){return{categories:C.resolve(w.CATEGORIES),products:void 0,order:"asc",full:!1,maxDisplayNumber:7,epgMoreNumber:0,loading:!1,channels:void 0}},mounted(){this.category=this.categories.collection.records.find(r=>r.slug&&r.slug.toLowerCase()==="live"),this.category&&this.category.label&&(this.products=new E({category:this.category}),this.products.fetchAll("",this.getQuery()).then(r=>{this.channels=r.filter(e=>e.visibleOnEpg),this.fillPrograms(this.channels).then(()=>{}).catch(e=>console.error(e)).then(()=>{this.emitPageLoad(g.VIRTUAL_PAGE_DOM_READY)}),this.epgMoreNumber=this.channels.length-this.maxDisplayNumber,this.emitPageLoad(g.PAGE_LOAD)}))},methods:{getQuery(){return{query:`category[]=${this.category.slug}&order=${this.order}&maxResults=0`,reset:!0}},navigate(r={}){this.$router.push(r)}}},W=y(U,[["render",Q],["__file","index.vue"]]),q={__name:"programtv",setup(r,{expose:e}){e();const a={get appStore(){return S},VLayout:M,EpgView:V,EpgMobileView:W};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}},z={class:"page page-program-tv"};function F(r,e,a,l,i,p){return s(),u(l.VLayout,null,{default:A(()=>[t("div",z,[l.appStore.isMobile?(s(),u(l.EpgMobileView,{key:0})):(s(),u(l.EpgView,{key:1,ref:"epg"},null,512))])]),_:1})}const ee=y(q,[["render",F],["__file","programtv.vue"]]);export{ee 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.