PageSourceSearch

https://www.filmfonds.nl/_nuxt/B157tmCw.js

js filmfonds.nl collected 2026-10-02 04:37:52 UTC 4,047 bytes, 2 lines download raw bytes

1import{r as e}from"./BSZVuBlx.js";import{Et as t,Ft as n,It as r,Mt as i,Pt as a,dn as o,ft as s,ht as c,mt as l,o as u,pt as d,qt as f,sn as p,t as m,tt as h,ut as g,vt as _,yt as v}from"#entry";import{t as y}from"./CgdfjUIq.js";var b={name:`DnPaginator`,components:{DnButton:y},props:{currentPage:{type:Number,required:!0,default:1},totalPages:{type:Number,required:!0,default:1},queryParam:{type:String,required:!1,default:`page`},pageNumberPrefixSr:{type:String,required:!1,default:`Page`}},emits:[`update:currentPage`],computed:{mapLeft(){return this.totalPages<=5?Array.from(Array(this.totalPages).keys(),(e,t)=>t+1):this.currentPage<=2?[1,2,3]:[1]},gapLeft(){if(!(this.mapMiddle&&this.mapMiddle[0]===2))return this.mapMiddle},mapMiddle(){return this.totalPages<=5?null:this.currentPage>2&&this.currentPage<=this.totalPages-2?[this.currentPage-1,this.currentPage,this.currentPage+1]:null},gapRight(){return this.mapRight},mapRight(){return this.totalPages>5?this.currentPage<=3||this.mapMiddle?[this.totalPages]:[this.totalPages-2,this.totalPages-1,this.totalPages]:null}},methods:{emitPageEvent(e){this.goToPage(e,!1)},goToPreviousPage(){this.goToPage(this.currentPage-1)},goToNextPage(){this.goToPage(this.currentPage+1)},goToPage(e,t=!0){if(this.$router||(t=!1),e<1){this.$emit(`update:currentPage`,1),t&&this.queryParam&&this.$router.push(this.getPageUrl(1));return}if(e>this.totalPages){this.$emit(`update:currentPage`,this.totalPages),t&&this.queryParam&&this.$router.push(this.getPageUrl(this.totalPages));return}this.$emit(`update:currentPage`,e),t&&this.queryParam&&this.$router.push(this.getPageUrl(e))},getPageUrl(e){return!this.queryParam||e<1||e>this.totalPages?``:{query:{...(this._.provides[h]||this.$route).query,[this.queryParam]:e}}}}},x={key:0,class:`dn-paginator`},S={class:`dn-paginator__sr-only`};function C(e,t,u,p,m,h){let y=r(`dn-button`);return u.totalPages>1?(i(),c(`nav`,x,[n(e.$slots,`previous`,{emitPageEvent:h.goToPage,goToPage:h.goToPage,goToPreviousPage:h.goToPreviousPage,isDisabled:u.currentPage===1},()=>[v(y,{element:`button`,rel:`prev`,disabled:u.currentPage===1,class:`dn-button--clean dn-paginator__prev`,onClick:t[0]||=e=>h.goToPage(u.currentPage-1)},{default:f(()=>[n(e.$slots,`labelPrevious`,{},()=>[t[2]||=_(`«`,-1)])]),_:3},8,[`disabled`])]),(i(!0),c(g,null,a([h.mapLeft,h.mapMiddle,h.mapRight],(t,r)=>(i(),c(g,null,[(i(!0),c(g,null,a(t,t=>n(e.$slots,`pageNumber`,{pageNumber:t,pageNumberPrefixSr:u.pageNumberPrefixSr,currentPage:u.currentPage,emitPageEvent:h.goToPage,goToPage:h.goToPage,isActive:t===u.currentPage},()=>[(i(),d(y,{key:`pager_${t}`,element:`button`,class:`dn-button--clean dn-paginator__button`,"data-active":t===u.currentPage,onClick:e=>h.goToPage(t)},{default:f(()=>[s(`span`,S,o(u.pageNumberPrefixSr),1),_(o(t),1)]),_:2},1032,[`data-active`,`onClick`]))])),256)),r===0&&h.gapLeft||r===1&&h.gapRight?n(e.$slots,`gap`,{key:0},()=>[(i(),c(`span`,{key:`gap_${r}`,class:`dn-paginator__gap`,"aria-hidden":``},`…`))]):l(``,!0)],64))),256)),n(e.$slots,`next`,{emitPageEvent:h.goToPage,goToPage:h.goToPage,goToNextPage:h.goToNextPage,isDisabled:u.currentPage>=u.totalPages},()=>[v(y,{element:`button`,rel:`next`,disabled:u.currentPage>=u.totalPages,class:`dn-button--clean dn-paginator__next`,onClick:t[1]||=e=>h.goToPage(u.currentPage+1)},{default:f(()=>[n(e.$slots,`labelNext`,{},()=>[t[3]||=_(`»`,-1)])]),_:3},8,[`disabled`])])])):l(``,!0)}var w=m(b,[[`render`,C]]),T={class:`sr-only`},E={class:`sr-only`},D={__name:`BasePaginator`,setup(r){let{t:a}=u();return(r,c)=>{let l=e;return i(),d(p(w),t({class:`base-paginator`},r.$attrs,{"page-number-prefix-sr":p(a)(`a11y.paginator.page_prefix_sr`)}),{labelPrevious:f(()=>[v(l,{class:`base-paginator__icon`,icon:`chevron-left`}),s(`div`,T,o(p(a)(`a11y.paginator.previous_sr`)),1)]),labelNext:f(()=>[v(l,{class:`base-paginator__icon`,icon:`chevron-right`}),s(`div`,E,o(p(a)(`a11y.paginator.next_sr`)),1)]),default:f(()=>[n(r.$slots,`default`)]),_:3},16,[`page-number-prefix-sr`])}}};export{D as t};
2//# sourceMappingURL=B157tmCw.js.map

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.