/** * External dependencies */ import { __, sprintf } from '@wordpress/i18n'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Label from '@woocommerce/base-components/label'; /** * Internal dependencies */ import { getIndexes } from './utils.js'; import './style.scss'; const Pagination = ( { currentPage, displayFirstAndLastPages, displayNextAndPreviousArrows, pagesToDisplay, onPageChange, totalPages, } ) => { let { minIndex, maxIndex } = getIndexes( pagesToDisplay, currentPage, totalPages ); const showFirstPage = displayFirstAndLastPages && Boolean( minIndex !== 1 ); const showLastPage = displayFirstAndLastPages && Boolean( maxIndex !== totalPages ); const showFirstPageEllipsis = displayFirstAndLastPages && Boolean( minIndex > 3 ); const showLastPageEllipsis = displayFirstAndLastPages && Boolean( maxIndex < totalPages - 2 ); // Handle the cases where there would be an ellipsis replacing one single page if ( showFirstPage && minIndex === 3 ) { minIndex = minIndex - 1; } if ( showLastPage && maxIndex === totalPages - 2 ) { maxIndex = maxIndex + 1; } const pages = []; if ( minIndex && maxIndex ) { for ( let i = minIndex; i <= maxIndex; i++ ) { pages.push( i ); } } return (
); }; Pagination.propTypes = { /** * Number of the page currently being displayed. */ currentPage: PropTypes.number.isRequired, /** * Total number of pages. */ totalPages: PropTypes.number.isRequired, /** * Displays first and last pages if they are not in the current range of pages displayed. */ displayFirstAndLastPages: PropTypes.bool, /** * Displays arrows to navigate to the previous and next pages. */ displayNextAndPreviousArrows: PropTypes.bool, /** * Callback function called when the user triggers a page change. */ onPageChange: PropTypes.func, /** * Number of pages to display at the same time, including the active page * and the pages displayed before and after it. It doesn't include the first * and last pages. */ pagesToDisplay: PropTypes.number, }; Pagination.defaultProps = { displayFirstAndLastPages: true, displayNextAndPreviousArrows: true, pagesToDisplay: 3, }; export default Pagination; {"id":2394,"date":"2022-02-08T13:17:16","date_gmt":"2022-02-08T13:17:16","guid":{"rendered":"http:\/\/sexshop-xxxl.nl\/?product=dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black"},"modified":"2023-11-26T19:22:16","modified_gmt":"2023-11-26T19:22:16","slug":"dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black","status":"publish","type":"product","link":"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/","title":{"rendered":"Dames Mode Ontwerp Party Jurk Halter Strapless Lange mouwen Jurk 7007 3XL R70076black"},"content":{"rendered":"

<\/p>\n

Patroon: afdrukken
Proces: haakbloem hol
Stofgehalte van het hoofdbestanddeel: 91% -99%
Hoofdbestanddelen van stof: polyester (PET)
Kleur: R70076 Zwart
Maat: M, L, XL, XXL, 3XL, 5XL <\/p>\n

Type stijl: Commuter temperament
Materiaal: polyurethaan
Toepasselijke leeftijd: volwassenen <\/p>\n

Kledingstijl: Europa<\/span> <\/p>\n

proces: haak bloem holle
\nStofgehalte van het hoofdbestanddeel: 91% -99%
\nStof 2 hoofdbestanddelen: polyester (PET)
\nKleur: R70076 Zwart
\nMaat: M, L, XL, XXL, 3XL, 5XL
\n

\n\n\t
\n\t\t
\n\t\t\t
\n\t\t\t\t
<\/div>\n\t\t\t\t
<\/div>\n\t\t\t\t
<\/div>\n\t\t\t\t
<\/div>\n\t\t\t\t
<\/div>\n\t\t\t\t
<\/div>\n\t\t\t\t
<\/div>\n\t\t\t\t
<\/div>\n\t\t\t<\/div>\n\t\t\t
<\/div>\n\t\t<\/div>\n\t<\/div>\n\n\t\t\n<\/div>\n
<\/div><\/p>\n","protected":false},"excerpt":{"rendered":"

proces: haak bloem holle
\nStofgehalte van het hoofdbestanddeel: 91% -99%
\nStof 2 hoofdbestanddelen: polyester (PET)<\/p>\n","protected":false},"featured_media":2406,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_cat":[183],"product_tag":[],"class_list":{"0":"post-2394","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-curiositeiten-and-spellen","7":"pa_brand-merk-unknown","9":"first","10":"instock","11":"shipping-taxable","12":"product-type-external"},"yoast_head":"\nDames Mode Ontwerp Party Jurk Halter Strapless Lange mouwen Jurk 7007 3XL R70076black - Sexshop-xxxl.nl<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dames Mode Ontwerp Party Jurk Halter Strapless Lange mouwen Jurk 7007 3XL R70076black - Sexshop-xxxl.nl\" \/>\n<meta property=\"og:description\" content=\"proces: haak bloem holle Stofgehalte van het hoofdbestanddeel: 91% -99% Stof 2 hoofdbestanddelen: polyester (PET)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/\" \/>\n<meta property=\"og:site_name\" content=\"Sexshop-xxxl.nl\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-26T19:22:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/m.media-amazon.com\/images\/I\/41QUZxlTUJL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/\",\"url\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/\",\"name\":\"Dames Mode Ontwerp Party Jurk Halter Strapless Lange mouwen Jurk 7007 3XL R70076black - Sexshop-xxxl.nl\",\"isPartOf\":{\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/m.media-amazon.com\/images\/I\/41QUZxlTUJL.jpg\",\"datePublished\":\"2022-02-08T13:17:16+00:00\",\"dateModified\":\"2023-11-26T19:22:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/#breadcrumb\"},\"inLanguage\":\"nl\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nl\",\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/#primaryimage\",\"url\":\"https:\/\/m.media-amazon.com\/images\/I\/41QUZxlTUJL.jpg\",\"contentUrl\":\"https:\/\/m.media-amazon.com\/images\/I\/41QUZxlTUJL.jpg\",\"width\":500,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sexshop-xxxl.nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shop\",\"item\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Dames Mode Ontwerp Party Jurk Halter Strapless Lange mouwen Jurk 7007 3XL R70076black\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/#website\",\"url\":\"https:\/\/www.sexshop-xxxl.nl\/\",\"name\":\"Sexshop-xxxl.nl\",\"description\":\"Koop de bestverkochte deals tegen lage kosten en bespaar tijd en geld\",\"publisher\":{\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sexshop-xxxl.nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/#organization\",\"name\":\"Sexshop-xxxl.nl\",\"url\":\"https:\/\/www.sexshop-xxxl.nl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl\",\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.sexshop-xxxl.nl\/wp-content\/uploads\/2022\/02\/SexShop-xxxl-logo.png\",\"contentUrl\":\"https:\/\/www.sexshop-xxxl.nl\/wp-content\/uploads\/2022\/02\/SexShop-xxxl-logo.png\",\"width\":250,\"height\":65,\"caption\":\"Sexshop-xxxl.nl\"},\"image\":{\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dames Mode Ontwerp Party Jurk Halter Strapless Lange mouwen Jurk 7007 3XL R70076black - Sexshop-xxxl.nl","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/","og_locale":"nl_NL","og_type":"article","og_title":"Dames Mode Ontwerp Party Jurk Halter Strapless Lange mouwen Jurk 7007 3XL R70076black - Sexshop-xxxl.nl","og_description":"proces: haak bloem holle Stofgehalte van het hoofdbestanddeel: 91% -99% Stof 2 hoofdbestanddelen: polyester (PET)","og_url":"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/","og_site_name":"Sexshop-xxxl.nl","article_modified_time":"2023-11-26T19:22:16+00:00","og_image":[{"width":500,"height":500,"url":"https:\/\/m.media-amazon.com\/images\/I\/41QUZxlTUJL.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/","url":"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/","name":"Dames Mode Ontwerp Party Jurk Halter Strapless Lange mouwen Jurk 7007 3XL R70076black - Sexshop-xxxl.nl","isPartOf":{"@id":"https:\/\/www.sexshop-xxxl.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/#primaryimage"},"image":{"@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/#primaryimage"},"thumbnailUrl":"https:\/\/m.media-amazon.com\/images\/I\/41QUZxlTUJL.jpg","datePublished":"2022-02-08T13:17:16+00:00","dateModified":"2023-11-26T19:22:16+00:00","breadcrumb":{"@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/#breadcrumb"},"inLanguage":"nl","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/"]}]},{"@type":"ImageObject","inLanguage":"nl","@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/#primaryimage","url":"https:\/\/m.media-amazon.com\/images\/I\/41QUZxlTUJL.jpg","contentUrl":"https:\/\/m.media-amazon.com\/images\/I\/41QUZxlTUJL.jpg","width":500,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/curiositeiten-and-spellen\/dames-mode-ontwerp-party-jurk-halter-strapless-lange-mouwen-jurk-7007-3xl-r70076black\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sexshop-xxxl.nl\/"},{"@type":"ListItem","position":2,"name":"Shop","item":"https:\/\/www.sexshop-xxxl.nl\/shop\/"},{"@type":"ListItem","position":3,"name":"Dames Mode Ontwerp Party Jurk Halter Strapless Lange mouwen Jurk 7007 3XL R70076black"}]},{"@type":"WebSite","@id":"https:\/\/www.sexshop-xxxl.nl\/#website","url":"https:\/\/www.sexshop-xxxl.nl\/","name":"Sexshop-xxxl.nl","description":"Koop de bestverkochte deals tegen lage kosten en bespaar tijd en geld","publisher":{"@id":"https:\/\/www.sexshop-xxxl.nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sexshop-xxxl.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl"},{"@type":"Organization","@id":"https:\/\/www.sexshop-xxxl.nl\/#organization","name":"Sexshop-xxxl.nl","url":"https:\/\/www.sexshop-xxxl.nl\/","logo":{"@type":"ImageObject","inLanguage":"nl","@id":"https:\/\/www.sexshop-xxxl.nl\/#\/schema\/logo\/image\/","url":"https:\/\/www.sexshop-xxxl.nl\/wp-content\/uploads\/2022\/02\/SexShop-xxxl-logo.png","contentUrl":"https:\/\/www.sexshop-xxxl.nl\/wp-content\/uploads\/2022\/02\/SexShop-xxxl-logo.png","width":250,"height":65,"caption":"Sexshop-xxxl.nl"},"image":{"@id":"https:\/\/www.sexshop-xxxl.nl\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/product\/2394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/comments?post=2394"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/media\/2406"}],"wp:attachment":[{"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/media?parent=2394"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/product_cat?post=2394"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/product_tag?post=2394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}