1import{L as B}from"./Default-BQbYjTFI.js";import{M as O}from"./ModulesRenderer-Cs2loC-z.js";import N from"./Tabs-Bvd95fpB.js";import{S as D}from"./ScrollToTop-BLke-Qg7.js";import{S as A}from"./ShowMore-CqQ_HNn1.js";import{_ as F}from"./PostCardComponent-CYshg7UV.js";import{k as q,a5 as j,d as g,o as d,a as n,t as T,F as I,g as v,n as R,_ as z,S as X,r as l,c as p,w as k,b as i,e as w}from"./app-DdxMyCqq.js";import{T as E,L as H}from"./TitleBlockIndex-B8Ionb2W.js";import"./FlightNotifications--y_DYwPZ.js";import"./flightStore-BP12Xzw8.js";import"./FlightNotification-DthrDj7_.js";import"./OfferDialog-DQLzfZ7v.js";import"./OfferCard-BIDjI4ue.js";import"./dialogDragClose-Blif7TPl.js";import"./FlightUpdatesDialog-CSqEtDTe.js";import"./WalletButtons-CYidBXyG.js";const G=["textContent"],J={class:"flex flex-wrap gap-2"},K=["onClick","data-analytics","data-analytics-value"],Q={__name:"PopularTopics",props:{modelValue:{type:Array,required:!0},topics:{type:Array,required:!0},title:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:s}){const e=t,f=s,o=q(e.modelValue);j(o,r=>{f("update:modelValue",r)});const h=r=>{e.modelValue.includes(r)?e.modelValue.splice(e.modelValue.indexOf(r),1):e.modelValue.push(r)};return(r,u)=>(d(),g("div",null,[n("div",{class:"pb-4 text-h5 text-content-secondary font-bold",textContent:T(t.title)},null,8,G),n("div",J,[(d(!0),g(I,null,v(t.topics,(c,_)=>(d(),g("div",{key:_,onClick:m=>h(c),"data-analytics":t.modelValue.includes(c)?"filter-remove":"filter-use","data-analytics-value":c.name,class:R(["rounded-md cursor-pointer text-body4 p-2",o.value.find(m=>m===c)?"bg-surface-brand":"bg-surface-tertiary dark:bg-neutral-700"])},T(c.name),11,K))),128))])]))}},W={name:"ArticlesTabs",props:{page:{type:Object,required:!0,props:{currentMenuItem:{type:Object},category:{type:Object}}},heroImage:{type:String,default:"/assets/images/home-page-hero-section.png"}},components:{ShowMore:A,ScrollToTop:D,Layout:B,ModulesRenderer:O,Tabs:N,PostCardComponent:F,PopularTopics:Q,SearchInput:X,LeadImageIndex:H,TitleBlockIndex:E},data(){return{loading:!1,nextPageUrl:this.page.items.next_page_url,items:this.page.items.data,expandedItem:-1,filters:{search:null,selectedTopics:[]},moduleOptions:{customHtml:{embedded:!0}}}},watch:{filters:{handler(){this.applyFilters()},deep:!0}},methods:{toggle(t){this.expandedItem=this.expandedItem===t?-1:t},clearFilters(){this.nextPageUrl=window.location.href,this.filters={search:null,selectedTopics:[]}},applyFilters(){const t=this.route("page",{url:window.location.pathname,_query:{search:this.filters.search,tags:this.filters.selectedTopics.map(s=>s.slug)}});axios.get(t,{headers:{"X-Axios-Call":!0}}).then(s=>{this.nextPageUrl=s.data.items.next_page_url,this.items=s.data.items.data})},showMore(){this.loading=!0,axios.get(this.nextPageUrl,{headers:{"X-Axios-Call":!0}}).then(t=>{this.nextPageUrl=t.data.items.next_page_url,this.items=this.items.concat(t.data.items.data)}).finally(()=>{this.loading=!1})}}},Y={class:"px-6 md:px-8 lg:px-12 xl:px-16 2xl:px-20 py-10 lg:py-10"},Z={class:"max-w-[1120px] w-full mx-auto"},$={class:"mb-10 mx-auto"},ee={class:"w-full lg:px-0 mx-auto py-10"},te={class:"py-10"},ae={class:"flex flex-col gap-6 pt-5 pb-10"};function se(t,s,e,f,o,h){const r=l("LeadImageIndex"),u=l("ModulesRenderer"),c=l("TitleBlockIndex"),_=l("Tabs",!0),m=l("SearchInput"),P=l("PopularTopics"),V=l("PostCardComponent"),S=l("Link"),L=l("ShowMore"),M=l("ScrollToTop"),U=l("Layout");return d(),p(U,{isDark:!!e.page.currentMenuItem.is_vip},{default:k(()=>{var x,y,b;return[i(r,{image:e.page.category.image[0]},null,8,["image"]),i(u,{modulePositions:(x=e.page)==null?void 0:x.modules,position:"site_top",pageType:"index"},null,8,["modulePositions"]),n("div",Y,[n("div",Z,[i(c,{title:e.page.title,hasLead:e.page.category.hasLead,lead:e.page.category.lead,hasDescription:e.page.category.hasDescription,description:e.page.category.description,hasBreadcrumbs:e.page.displayOptions.show_breadcrumbs,breadcrumbs:e.page.breadcrumbs},null,8,["title","hasLead","lead","hasDescription","description","hasBreadcrumbs","breadcrumbs"]),n("div",$,[i(_,{tabs:e.page.tabs},null,8,["tabs"])]),n("div",ee,[i(m,{placeholder:t.trans("bud.search_placeholder"),modelValue:o.filters.search,"onUpdate:modelValue":s[0]||(s[0]=a=>o.filters.search=a),clearable:!0,"tracking-type":"subpage","tracking-context":"article"},null,8,["placeholder","modelValue"])]),n("div",te,[e.page.tags.length?(d(),p(P,{key:0,topics:e.page.tags,title:"Népszerű témák",modelValue:o.filters.selectedTopics,"onUpdate:modelValue":s[1]||(s[1]=a=>o.filters.selectedTopics=a)},null,8,["topics","modelValue"])):w("",!0)]),i(u,{modulePositions:(y=e.page)==null?void 0:y.modules,moduleOptions:o.moduleOptions,backgroundColorClasses:["bg-surface-secondary",""],position:"in_content",pageType:"index"},null,8,["modulePositions","moduleOptions"]),n("div",ae,[(d(!0),g(I,null,v(o.items,(a,C)=>(d(),p(S,{key:C,href:a.url,"data-analytics":"list-page-item","data-analytics-value":a.title,"data-analytics-url":a.url},{default:k(()=>
1[i(V,{imgUrl:a.image,title:a.title,description:a.lead,date:a.date,authorName:a.authorName,authorImgUrl:a.authorImgUrl},null,8,["imgUrl","title","description","date","authorName","authorImgUrl"])]),_:2},1032,["href","data-analytics-value","data-analytics-url"]))),128))])])]),o.nextPageUrl?(d(),p(L,{key:0,loading:o.loading,onShowMore:h.showMore},null,8,["loading","onShowMore"])):w("",!0),i(u,{modulePositions:(b=e.page)==null?void 0:b.modules,pageType:"index",backgroundColorClasses:["bg-surface-secondary",""],position:"site_down"},null,8,["modulePositions"]),i(M)]}),_:1},8,["isDark"])}const be=z(W,[["render",se]]);export{be 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.