1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Cm2J8wJT.js","./Cw52Jb_b.js","./Dropzone.BkW6QGI3.css","./oPzPbeIq.js","./Dv5-W7ly.js","./entry.xg9melRb.css","./BrTntTGy.js","./C824MC9Q.js","./AdWrapper.DYSs1InP.css","./D9eUBiJ1.js","./ImageTile.BbjNLOZT.css","./BrWH68IN.js","./CleanTile.CIk01vwu.css","./B628rQtU.js","./Bl4ZNu3Z.js","./NewsListingItem.B3pZK-ds.css","./B6BOj63-.js","./ImageTileOverlay.BN-BtaCs.css","./BXJDBrdV.js","./Pagination.Do8YMEFq.css","./Clz2v0Ma.js","./SectionTitle.Dqa-MZgM.css"])))=>i.map(i=>d[i]); 2import{d as t,a as e,b as s,n as a,e as l,c as i,f as r,i as o,j as n,k as c,_ as m}from"./Cm2J8wJT.js";import u from"./Bl4ZNu3Z.js";import g from"./Clz2v0Ma.js";import p from"./B628rQtU.js";import{_ as d}from"./CIXxJGYT.js";import _ from"./BXJDBrdV.js";import{u as h}from"./vNA1_wLl.js";import{ah as f,L as y,O as b,V as v,M as w,U as P,S as k,a4 as $,$ as T,aj as j,J as E,Q as R,_ as A,X as L}from"./Cw52Jb_b.js";import"./oPzPbeIq.js";import"./Dv5-W7ly.js";const I=t({name:"TagPage",setup:()=>({store:e(),config:c()}),components:{Ads:j((()=>m((()=>import("./Cm2J8wJT.js").then((t=>t.Q))),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url))),AdWrapper:j((()=>m((()=>import("./BrTntTGy.js")),__vite__mapDeps([6,0,1,2,3,4,5,7,8]),import.meta.url))),ImageTile:j((()=>m((()=>import("./D9eUBiJ1.js")),__vite__mapDeps([9,0,1,2,3,4,5,10]),import.meta.url))),NewsList:j((()=>m((()=>import("./Cm2J8wJT.js").then((t=>t.U))),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url))),CleanTile:j((()=>m((()=>import("./BrWH68IN.js")),__vite__mapDeps([11,0,1,2,3,4,5,12]),import.meta.url))),HtmlBlock:j((()=>m((()=>import("./B628rQtU.js")),__vite__mapDeps([13,0,1,2,3,4,5]),import.meta.url))),LatestNews:j((()=>m((()=>import("./Cm2J8wJT.js").then((t=>t.V))),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url))),NewsListingItem:j((()=>m((()=>import("./Bl4ZNu3Z.js")),__vite__mapDeps([14,0,1,2,3,4,5,15]),import.meta.url))),ImageTileOverlay:j((()=>m((()=>import("./B6BOj63-.js")),__vite__mapDeps([16,0,1,2,3,4,5,17]),import.meta.url))),Pagination:j((()=>m((()=>import("./BXJDBrdV.js")),__vite__mapDeps([18,0,1,2,3,4,5,19]),import.meta.url))),SectionTitle:j((()=>m((()=>import("./Clz2v0Ma.js")),__vite__mapDeps([20,0,1,2,3,4,5,21]),import.meta.url))),AdPlacement:j((()=>m((()=>import("./Cm2J8wJT.js").then((t=>t.T))),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)))},asyncData:async()=>{var t,n,m,u,g,p,d,_,f;let y,b;const v={latest:{},articles:{}},w=e(),P=c(),k=s(),$=h(),T=encodeURIComponent(k.params.tag),j=$.searchParams.get("page"),E=Number(j),R=null===j||Number.isInteger(E)&&E>=1,A=null===j?1:E;if(!R)return a(`${P.public.portalUrl}/tagi/${T}`,{redirectCode:301,external:!0});if(null!==j&&1===A)return a(`${P.public.portalUrl}/tagi/${T}`,{redirectCode:301,external:!0});try{const t=([y,b]=l((()=>i("latest-articles",(()=>$fetch("/api/article/list/latest"))))),y=await y,b(),y).data.value;v.latest.list=t.articles}catch(L){}try{const e=([y,b]=l((()=>i(`tag-${k.params.tag}`,(()=>$fetch(`/api/article/tag/${T}?page=${A}`))))),y=await y,b(),y),s=e.error.value;if(s){if(404===(s.statusCode||(null==(t=s.data)?void 0:t.responseCode)))throw r({statusCode:404,statusMessage:(null==(n=s.data)?void 0:n.message)||s.message||"Nie znaleziono tagu"});throw s}const c=e.data.value;if(!c||404===Number(c.status))throw r({statusCode:404,statusMessage:(null==c?void 0:c.message)||"Nie znaleziono tagu"});v.articles.list=c.articles,v.maxRows=c.maxRows,v.tag=(null==(m=c.tag)?void 0:m.tag)??T,v.tagSlug=(null==(u=c.tag)?void 0:u.slug)??T,v.entry=c.tag,v.fullQuery=$.href,v.tagName=T,v.helpers={pending:!1,currentPage:A,perPage:10,totalRows:0,pageData:null,currentTag:null};const h="undefinded"!==(null==(g=c.tag)?void 0:g.meta_title)&&null!==(null==(p=c.tag)?void 0:p.meta_title)&&""!==(null==(d=c.tag)?void 0:d.meta_title)?null==(_=c.tag)?void 0:_.meta_title:(null==(f=c.tag)?void 0:f.tag)??T,{title:j,shorttitle:E}=w.settings,R=`${P.public.portalUrl}/tagi/${v.tagSlug}${A>1?`?page=${A}`:""}`,L=w&&w.metaDefaults?w.metaDefaults:{meta:[],link:[]};o({...L,title:`${h} - ${E||j}`,meta:[...L.meta,{hid:"robots",name:"robots",content:c.maxRows<=3?"noindex, nofollow":"index"},{hid:"og:type",property:"og:type",content:"website"}],link:[...L.link,{rel:"canonical",href:R}]});
2const I=Math.max(1,Math.ceil((v.maxRows??0)/v.helpers.perPage));if(A>I)return a(`${P.public.portalUrl}/tagi/${T}`,{redirectCode:301,external:!0})}catch(L){if(404===(null==L?void 0:L.statusCode))throw L}return v},data:()=>({entry:null,tag:null,tagName:null,helpers:{pending:!1,currentPage:1,perPage:10,totalRows:0,pageData:null,currentTag:null},articles:{pending:!0,error:{status:!1,messageClient:"",messageTech:""},list:[]},latest:{list:[]}}),computed:{settings(){return this.store.settings},categories(){return this.store.categories},user(){return this.store.user},tagTitleFormatted(){return this.tag?this.tag.trim().split(" ").map((t=>`${t[0]?t[0].toUpperCase():""}${t.substr(1)}`)).join(" "):""},ads(){return this.store.ads},adProvider(){return this.settings&&this.settings.programmatic_settings&&this.settings.programmatic_settings.provider?this.settings.programmatic_settings.provider:"ZPR"},sidebarConfig(){if(!(this.store&&this.store.settings&&this.store.settings.sidebar_config))return null;try{return this.store.settings.sidebar_config}catch(t){return null}},placements(){return this.store&&this.store.placements},portalUrl(){return this.config.public.portalUrl}},watch:{"helpers.currentPage":{handler(){const{currentPage:t}=this.helpers,e=`/tagi/${this.tag}`;window.location=e+(t>1?`?page=${this.helpers.currentPage}`:"")}}},methods:{getGridClass(t){switch(t){case 0:case 1:return"col-custom-6 col-custom-mobile-12 mb-4";default:return"col-custom-4 col-custom-mid-6 col-custom-mobile-12 mb-4"}},getSlicedArticles(t,e,s){if(!t)return[];const a=e,l=e+s;return t.slice(a,l)}},mounted(){window&&(this.helpers.isMobile=window.innerWidth<1290)}},"$c0Vh3JXg5m"),C={class:"category my-3 my-lg-4"},x={class:"container-custom"},D={class:"row"},O={class:"col-custom-12 col-custom-mid-12 col-custom-mobile-12"},V={class:"border-bottom text-center mb-4 w-100"},U={key:0,class:"category__title d-inline-block py-4"},N=["href"],M=["innerHTML"],S={class:"row"},Q={class:"col-custom-9 col-custom-mobile-12"},z={key:0,class:"row"},H={key:0,class:"col-custom-4 col-custom-mid-6 col-custom-mobile-12 mb-4"},B={key:0,class:"col-custom-4 col-custom-mid-6 col-custom-mobile-12 mb-4"},F={key:1,class:"col-custom-12 mb-4"},G={key:0,class:"mb-5"},J={key:1,class:"row"},W={class:"col-custom-12 text-center my-5"},X={class:"d-custom-block d-custom-mid-none d-custom-mobile-none col-custom-3 col-custom-mid-12 col-custom-mobile-12"},Y={class:"mb-3"},Z={class:"ad__sky"},q={class:"col-custom-12 mt-2 mb-5 mt-md-3 mb-md-3"},K={key:1,class:"row"};const tt=f(I,[["render",function(t,e,s,a,l,i){const r=n,o=u,c=g,m=p,h=d,f=_;return E(),y("section",C,[t.placements?(E(),b(r,{key:0,placement:t.placements.tag.slot_under_logo},null,8,["placement"])):v("",!0),w("div",x,[w("div",D,[w("div",O,[w("div",V,[t.articles&&t.articles.list&&t.articles.list.length?(E(),y("h1",U,[w("a",{href:`${t.portalUrl}/tagi/${t.tagSlug}`,class:"color-primary"},P(t.tagTitleFormatted)+" "+P(`(${t.maxRows})`),9,N)])):v("",!0)])])]),t.articles&&t.articles.list&&t.entry&&t.entry.seo_description&&t.entry.seo_description.length>15&&t.helpers.currentPage<2?(E(),y("div",{key:0,innerHTML:t.entry.seo_description,class:"mb-4 mb-lg-5"},null,8,M)):v("",!0),w("div",S,[w("div",Q,[t.articles&&t.articles.list&&t.articles.list.length?(E(),y("div",z,[(E(!0),y(k,null,$(t.articles.list,((e,s)=>(E(),y(k,null,[s<6?(E(),y(k,{key:0},[2==s?(E(),y(k,{key:0},[t.settings&&t.settings.programmatic&&t.ads?(E(),y("div",H,[T(r,{placement:t.placements.tag.slot_rec_1},null,8,["placement"])])):v("",!0)],64)):3==s?(E(),y(k,{key:1},[t.settings&&t.settings.programmatic&&t.ads?(E(),y("div",B,[T(r,{placement:t.placements.tag.slot_rec_2},null,8,["placement"])])):v("",!0)],64)):v("",!0),w("div",{class:R(t.getGridClass(s))},[(E(),b(A(e.style),{content:e},null,8,["content"]))],2)],64)):(E(),y("div",F,[s%5==0?(E(),y("div",G,[T(r,{placement:t.placements.tag["slot_tag_"+(s/5-1)]},null,8,["placement"])])):v("",!0),T(o,{content:e},null,8,["content"])]))],64)))),256))])):(E(),y("div",J,[w("div",W,[T(c,{content:{title:"Brak wyników dla danego tagu :("}})])]))]),w("aside",X,[t.sidebarConfig?(E(!0),y(k,{key:0},$(t.sidebarConfig,((e,s)=>(E(),y("div",Y,[e&&e.config&&"List"===e.type?(E(),b(A(e.config.type||"NewsList"),{key:0,content:t.getSlicedArticles(t.latest.list,e.config.skip,e.config.limit)}
2,null,8,["content"])):v("",!0),e&&e.config&&"Article"===e.type?(E(),b(A("ImageTileOverlay"),{key:1,content:t.latest.list[e.config.skip]},null,8,["content"])):v("",!0),e&&e.config&&"Advert"===e.type?(E(),b(A("Ads"),{key:2,content:e.config},null,8,["content"])):v("",!0),e&&e.config&&"HtmlBlock"===e.type?(E(),b(h,{key:3},{default:L((()=>[T(m,{content:e.config},null,8,["content"])])),_:2},1024)):v("",!0),e&&"AdPlacement"===e.type?(E(),b(h,{key:4},{default:L((()=>[T(r,{placement:t.placements[e.config.slot_view][e.config.slot_id]},null,8,["placement"])])),_:2},1024)):v("",!0)])))),256)):v("",!0),w("div",Z,[T(r,{placement:t.placements.tag.slot_half_1},null,8,["placement"])])]),w("div",q,[T(f,{perPage:t.helpers.perPage,currentPage:parseInt(t.helpers.currentPage),maxRows:t.maxRows,baseUrl:`${t.config.public.portalUrl}/tagi/${t.tagName}`},null,8,["perPage","currentPage","maxRows","baseUrl"])])]),t.settings?(E(),y("div",K,[T(r,{placement:t.placements.tag.slot_bottom},null,8,["placement"])])):v("",!0)])])}]]);export{tt 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.