1import{_ as x}from"./ClDaYw7g.js";import{_ as $}from"./--F2EU6D.js";import{_ as w}from"./B2ueSZty.js";import{A}from"./D9q6gKAG.js";import{u as T,T as I}from"./CZzCAwDx.js";import{n as M,p as f,e as h,c as l,j as _,F as k,k as j,o as r,i as d,_ as b,q as C,a as y,b as g,f as a}from"./D8PiJXAC.js";import{u as L}from"./CzZsnjVt.js";import{g as N}from"./Cd-7wpi2.js";import{C as V}from"./BlvJBiV5.js";import{u as F}from"./CoWCgI_-.js";import"./Qb_DJyTh.js";import"./ByxYglhp.js";import"./BqhBiACS.js";import"./4wKvl7LT.js";import"./DvjRR0r1.js";const Q=async()=>{const p=M(),{data:t,error:s,status:n}=await L("tv-projects-categories",()=>N("tv-projects/categories"),{immediate:!0,transform:e=>(e!=null&&e.data&&(e.data=e.data.map(c=>{var u,i;return{...c,icon:{...c.icon,url:(u=c.icon)!=null&&u.url.startsWith("https://")?`${p.public.apiBase}${c.icon.path}`:(i=c.icon)==null?void 0:i.url}}})),e)}),o=f(()=>{var e;return((e=t.value)==null?void 0:e.data)||[]}),m=f(()=>n.value==="pending");return{tvProjectsCategories:o,loading:m,error:s}},R={key:0,class:"categories-wrapper"},W=h({__name:"SelectCategory",props:{categories:{},activeCategory:{}},emits:["select"],setup(p,{emit:t}){const s=t,n=o=>{s("select",o)};return(o,m)=>o.categories&&o.categories.length?(r(),l("div",R,[(r(!0),l(k,null,j(o.categories,e=>(r(),d(V,{key:e.id,category:e,"is-active":o.activeCategory===e.code,onSelect:c=>n(e.code)},null,8,["category","is-active","onSelect"]))),128))])):_("",!0)}}),q=b(W,[["__scopeId","data-v-655c199e"]]),D={class:"page-container","aria-label":"ТелепÑоекÑÑ"},E={class:"page-header"},z={key:1,class:"tv-projects-card-grid"},G=h({__name:"index",async setup(p){let t,s;const{tvProjects:n,loadMore:o,hasMore:m,loading:e,setCategory:c,category:u}=([t,s]=C(()=>T("tv-projects-page",8)),t=await t,s(),t),{tvProjectsCategories:i}=([t,s]=C(()=>Q()),t=await t,s(),t);return F("programs"),(H,J)=>{const B=x,P=$,S=w;return r(),l("section",D,[y("div",E,[g(B),g(P,{title:"ТелепÑоекÑÑ"})]),y("div",null,[a(i).length?(r(),d(q,{key:0,categories:a(i),activeCategory:a(u),onSelect:a(c)},null,8,["categories","activeCategory","onSelect"])):_("",!0),a(n)?(r(),l("div",z,[(r(!0),l(k,null,j(a(n),v=>(r(),d(I,{key:v.id,item:v},null,8,["item"]))),128))])):_("",!0),a(m)?(r(),d(S,{key:2,loading:a(e),disabled:a(e),label:"ÐагÑÑзиÑÑ ÐµÑÑ",onClick:a(o)},null,8,["loading","disabled","onClick"])):_("",!0)]),g(A)])}}}),le=b(G,[["__scopeId","data-v-af38e84a"]]);export{le 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.