1import{_ as h}from"./DP-DWO2V.js";import{_}from"./DHhj6f6c.js";import{ax as c,aw as g,I as y,K as P,e as b,f as w,F,P as I,S as v,Y as C,ap as $,m as D,w as G,t as B,B as f,aD as S,a6 as k}from"./53tv3IsK.js";import{d as E}from"./Ca8fljym.js";import{h as N}from"./BJrZ3Jgw.js";import"./NxU7AeIZ.js";import"./DEcqSz-b.js";import"./CiaZUCh0.js";import"./B4wtUjde.js";const V=E({head(){const e=[],t=this.items&&this.items.length>0?this.items[0]:null;return t&&N(t.thumbnailWebp)?e.push({rel:"preload",href:t.thumbnailWebp,as:"image",type:"image/webp"}):t&&t.thumbnail&&e.push({rel:"preload",href:t.thumbnail,as:"image"}),{...C("category",c().params,g().$store.state.filters),link:e}},validate({params:e,store:t}){return e.category===void 0?!0:t.state.filters.categories.some(r=>r.slug===e.category)},data(){return{items:[],sorts:v}},computed:{deferClosedDropdowns(){return(this._.provides[I]||this.$route).path==="/pc/"}},async asyncData(e){let t,r;const i=c(),s=i.params;i.query;const u=$,n=g().$store;let a=y.GAMES,p={"versions.system.slug":["pc"],"type.slug":["spiel","bundle"]};s.category!==void 0&&(p["categories.slug"]=[s.category]);let o=1;s.page&&typeof s.page=="string"&&(o=parseInt(s.page));let m=w,l=([t,r]=P(()=>b(a,p,o,m)),t=await t,r(),t),d=Math.ceil(l.numItems/m);if(d>0&&o>d){u({statusCode:404,message:"Diese Seite ist nicht verfügbar!"});return}return{endpoint:a,filters:F(n.state.filters),items:l.items,numItems:l.numItems,startFilters:p,currentPage:o,itemsPerPage:m,pages:d}},components:{FilteredGrid:_,Breadcrumbs:h}},"$UcieeS5jWL"),W={class:"section"},x={class:"container"};function A(e,t,r,i,s,u){const n=h,a=_;return k(),G("div",W,[B("div",x,[f(a,{endpoint:e.endpoint,filters:e.filters,startFilters:e.startFilters,sorts:e.sorts,priceFilter:!0,items:e.items,pages:e.pages,page:e.currentPage,itemsPerPage:e.itemsPerPage,lazyloadFirst:!1,deferClosedDropdowns:e.deferClosedDropdowns,hasVersions:!0,urlPrefix:""},{heading:S(()=>[f(n)]),_:1},8,["endpoint","filters","startFilters","sorts","items","pages","page","itemsPerPage","deferClosedDropdowns"])])])}const H=D(V,[["render",A]]);export{H 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.