1import{_ as t}from"./D-n1EpxZ.js";import a from"./BlCTCtZ2.js";import{h as e,i as s,a_ as o,e as r,b8 as i,k as n,a4 as u,H as p,ag as l,c,a as m,b as d,J as g,I as h,o as v}from"./BFOZ3Oa7.js";import"./DmZbd92G.js";import"./B-t_jUMS.js";import"./BHnOCAsI.js";import"./B_qcClU6.js";const f={class:"product-view product-list"},y={class:"product-list-content"},j={key:1,class:"alert alert-info-2",role:"alert"},b=e({__name:"ProductList",props:{products:{},pagination:{}},emits:["update"],setup(e,{emit:b}){const k=e,w=b,M=s(),x=o(),N=r(()=>k?.pagination??{page:1,limit:5,total:k?.products?.length??0,count:k?.products?.length??0}),{start:_,set:q,finish:L}=i({duration:1e4,throttle:200}),P=r(()=>k?.products??[]);async function T(t){const a=Math.min(Math.max(1,t),S.value);await M.push({query:{...x.query,page:String(a)}}),w("update"),window.scrollTo({top:0,behavior:"smooth"})}const I=r(()=>{const t=Number(x.query.page);return!Number.isNaN(t)&&t>=1?t:Math.max(1,N.value.page||1)}),S=r(()=>{const t=Math.max(0,N.value.total||0),a=Math.max(1,N.value.limit||5);return Math.max(1,Math.ceil(t/a))}),C=n().hook("t3:page",t=>{_({force:!0}),setTimeout(()=>L({force:!0}),500)});return u(()=>C()),(e,s)=>{const o=t;return v(),p(g,null,[l("div",f,[l("div",y,[d(P).length>0?(v(!0),p(g,{key:0},h(d(P),(t,e)=>(v(),c(a,{key:e,product:t},null,8,["product"]))),128)):(v(),p("div",j," Im ausgewählten Zeitraum gab es keine Neuerscheinungen. "))])]),d(S)>1?(v(),c(o,{key:0,"current-page":d(I),"total-pages":d(S),"onUpdate:page":T},null,8,["current-page","total-pages"])):m("",!0)],64)}}}),k=Object.assign(b,{__name:"T3CeQ3ivdeshopProfilewatchlistLayoutProductList"});export{k 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.