1import{_ as G}from"./U2dusufJ.js";import{_ as U}from"./mNuj8HSJ.js";import{d as X,u as Y,bF as Z,Q as j,aw as O,bJ as ee,P as te,w as f,R as oe,c as ae,bK as se,S as C,j as y,k as h,h as t,b3 as ne,o as c,i as P,x as g,a4 as re,t as S,f as N,F as ie,r as ce,g as le,_ as pe,J as me,K as ge,l as _e,a0 as ue}from"./CszEZ04n.js";import{_ as de}from"./Cr1wdUTp.js";import{_ as fe}from"./CW2rOV1l.js";import ye from"./eVnyyGN1.js";import{e as he}from"./BGm3Nzry.js";import{u as we}from"./SBM0EaPJ.js";import"./C81GZLgK.js";import"./Dd2Sa1-v.js";import"./BvWIPzj5.js";import"./DD93FjRa.js";import"./DCHRtWtO.js";import"./AZJ8vWhz.js";import"./BCFiAmqr.js";import"./DcQklPhC.js";import"./DBqXkJ0c.js";const be={class:"mt-70px"},xe={class:"flex justify-center"},Ae={key:0,class:"inline-flex justify-center items-center text-center text-primary text-2xl"},Ke=X({__name:"section",async setup($e){let a,n;const w=Y(),{category:b,section:_}=w.params,z=Z("breadcrumbs"),x=j(),D=x.public.siteName,A=O(),l=A.blog,$=x.public.platform,k=ee(),F=te(),r=([a,n]=f(()=>k.getHome()),a=await a,n(),a).homePage.content,u=([a,n]=f(()=>F.getStory({by_slug:`blog/categories/${b}/${_}`,resolve_relations:"magazinePage.headerArticles,magazinePage.topArticles,magazinePage.tags"})),a=await a,n(),a),e=he(`${b}-${_}`,r.categories),s=oe({pageItem:u||{},tags:u.tags,tagIds:""});function M(o,m){const i={__or:[{sections:{in_array:e==null?void 0:e.sectionId}},{categories:{in_array:e==null?void 0:e.value}}],...s.tagIds&&{tags:{any_in_array:s.tagIds}}};return k.getArticles(o,i,{per_page:m})}const{state:p,restore:R,reset:T,fetchMore:V}=we(M);ae({title:`${e==null?void 0:e.name} | ${D}`,meta:[{name:"description",content:u.metaDescription||""}]}),z.value={breadcrumbs:[{slug:`${l.url}/`,title:se(l.url.substring(1))}],title:`${e==null?void 0:e.name}`||"Sekce"},C(()=>{var o;(o=window.dataLayer)==null||o.push({event:"page_view",country_custom:A.locale.code,platform:$,page_env:"prod",login_status:"logged-out",page_content_type:"article",p_product_family:e==null?void 0:e.productFamily,p_product:e==null?void 0:e.product,page_name:`${$}/owned/article/${_}`,cg1:"level-3",cg2:"articles",cg3:"",cg4:"uncategorized",cg5:"content",uid:""}),window.scroll(0,0)});function I(o){s.tagIds=o==null?void 0:o.split(",").map(m=>{var i;return(i=s.tags.find(d=>d.slug===m))==null?void 0:i.uuid}).join(",")}async function H(o){I(o),await T()}return I(w.query.tags||""),[a,n]=f(()=>R()),await a,n(),C(()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,m)=>{var B;const i=G,d=U,J=pe,K=me,L=de,W=fe,q=ye,E=ne("editable");return c(),y(q,{"blog-homepage-items":t(r),"show-tiles":"","show-section":"","tiles-articles":t(s).pageItem.headerArticles,"page-title":(B=t(e))==null?void 0:B.name},{default:h(()=>[P("h3",be,S(t(l).allArticles),1),g(i,{items:t(s).tags,onOnchange:H},null,8,["items"]),g(L,{"top-articles":t(s).pageItem.topArticles,"most-read-articles":t(r).mostReadArticles||[],banner:t(s).pageItem.banner[0],nepodcento:t(r).nepodcento[0]},{default:h(()=>[(c(!0),N(ie,null,ce(t(p).articleItems,(v,Q)=>(c(),y(d,{key:Q+v.slug,item:v},null,8,["item"]))),128)),P("div",xe,[t(p).loading?(c(),N("div",Ae,[g(J,{type:"fas",icon:"spinner",class:"fa-spin mr-2"})])):t(p).showFetchMore?(c(),y(K,{key:1,to:t(p).nextPage,render:"secondary",onClickCapture:ge(t(V),["prevent"])},{default:h(()=>[_e(S(t(l).fetchMore),1)]),_:1},8,["to","onClickCapture"])):le("",!0)])]),_:1},8,["top-articles","most-read-articles","banner","nepodcento"]),re(g(W,ue(t(r).tiles[0].reference.content,{class:"py-70px md:py-140px"}),null,16),[[E,t(r).tiles[0].reference.content]])]),_:1},8,["blog-homepage-items","tiles-articles","page-title"])}}});export{Ke 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.