PageSourceSearch

https://www.zuiderzeemuseum.nl/_nuxt/wIqRiGkL.js

js zuiderzeemuseum.nl collected 2026-10-02 03:57:25 UTC 2,309 bytes, 1 lines download raw bytes

1import{M as w,aj as k,a$ as _,ac as x,aA as t,G as d,C as c,K as b,a4 as g,F as y,al as C,E as I,B as h,af as p,at as $,i as P}from"./DDWHqvoJ.js";const j={key:0,class:"pagination-controls spacing-top flex flex-wrap justify-center gap-2"},z=["disabled","aria-label"],B=["onClick"],S={class:"t-default !font-bold"},E=["disabled","aria-label"],N=w({__name:"Pagination",props:{items:{},pageSize:{},initialPage:{}},emits:["update:page","update:paginatedItems"],setup(f,{emit:v}){const i=f,s=v,e=k(i.initialPage??1),o=h(()=>Math.max(1,Math.ceil(i.items.length/i.pageSize))),r=h(()=>{const a=(e.value-1)*i.pageSize;return i.items.slice(a,a+i.pageSize)}),u=a=>{if(a>=1&&a<=o.value&&(e.value=a,s("update:page",e.value),s("update:paginatedItems",r.value),typeof window<"u")){const n=document.getElementById("overview");n&&n.scrollIntoView({behavior:"smooth"})}};return _(()=>i.items,()=>{e.value>o.value&&(e.value=1),s("update:paginatedItems",r.value)},{deep:!0}),x(()=>{s("update:page",e.value),s("update:paginatedItems",r.value)}),(a,n)=>{const m=P;return t(o)>1?(p(),d("div",j,[c("button",{onClick:n[0]||(n[0]=l=>u(t(e)-1)),disabled:t(e)<=1,"aria-label":a.$t("aria.previous.page"),class:g(["mr-5 flex h-14 w-14 items-center justify-center rounded-full transition-all duration-300 ease-in-out lg:mr-7",t(e)<=1?"bg-blue-dark hover:bg-blue-darklight cursor-not-allowed text-white opacity-20":"bg-blue-dark hover:bg-blue-darklight cursor-pointer text-white"])},[b(m,{name:"arrow",class:"block h-4 w-4 rotate-180 fill-current"})],10,z),(p(!0),d(y,null,C(t(o),l=>(p(),d("button",{key:l,onClick:M=>u(l),class:g(["hover:bg-blue-light text-blue-dark flex h-14 w-14 cursor-pointer items-center justify-center rounded-full bg-white transition-all duration-300 ease-in-out",l===t(e)?"!bg-blue-darkbright text-white":""])},[c("span",S,$(l),1)],10,B))),128)),c("button",{onClick:n[1]||(n[1]=l=>u(t(e)+1)),disabled:t(e)>=t(o),"aria-label":a.$t("aria.next.page"),class:g(["ml-5 flex h-14 w-14 items-center justify-center rounded-full transition-all duration-300 ease-in-out lg:ml-7",t(e)>=t(o)?"bg-blue-dark hover:bg-blue-darklight cursor-not-allowed text-white opacity-20":"bg-blue-dark hover:bg-blue-darklight cursor-pointer text-white"])},[b(m,{name:"arrow",class:"h-4 w-4 fill-current"})],10,E)])):I("",!0)}}});export{N as _};

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.