/** * 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":4647,"date":"2022-02-09T05:32:55","date_gmt":"2022-02-09T05:32:55","guid":{"rendered":"http:\/\/sexshop-xxxl.nl\/?product=pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling"},"modified":"2022-04-09T21:38:15","modified_gmt":"2022-04-09T21:38:15","slug":"pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling","status":"publish","type":"product","link":"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/","title":{"rendered":"Pleasurebox Sex Toy Sensual Glazen Dildo Volwassenen Toy Butt Plug Anal Toy Roze Werveling"},"content":{"rendered":"

<\/p>\n

Dit ongelooflijke glas seksspeeltje is van goede kwaliteit. Vervaardigd met behulp van medische kwaliteit pyrex glas. Ze zijn ontworpen met plezier in het achterhoofd en hun vorm is vakkundig gemaakt om een \u200b\u200bongelooflijke gebruikerservaring te garanderen. Het assortiment van de glazen seksspeeltjes, variert van anale en vaginale stimulators, butt plugs en prostaat seksspeeltjes, het maakt het veelzijdig en geweldig voor stelletjes om te gebruiken. Begin vandaag met het verzamelen van de meest onderscheidende en bevRoodiginde seksspeeltjes beschikbaar.<\/span> <\/p>\n

11,5 cm lengte
\nGestructureerde Schacht voor maximaal plezier
\nGratis opbergzakje
\nGeniet van het sensuele gevoel dat alleen glas kan leveren
\nKan verwarmd worden of gekoeld voor extra sensaties
\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":"

11,5 cm lengte
\nGestructureerde Schacht voor maximaal plezier
\nGratis opbergzakje<\/p>\n","protected":false},"featured_media":4655,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_cat":[588,587],"product_tag":[],"class_list":{"0":"post-4647","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-anaalspeeltjes","7":"product_cat-seksspeeltjes","8":"pa_brand-merk-pleasurebox","10":"first","11":"instock","12":"shipping-taxable","13":"product-type-external"},"yoast_head":"\nPleasurebox Sex Toy Sensual Glazen Dildo Volwassenen Toy Butt Plug Anal Toy Roze Werveling - 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\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pleasurebox Sex Toy Sensual Glazen Dildo Volwassenen Toy Butt Plug Anal Toy Roze Werveling - Sexshop-xxxl.nl\" \/>\n<meta property=\"og:description\" content=\"11,5 cm lengte Gestructureerde Schacht voor maximaal plezier Gratis opbergzakje\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/\" \/>\n<meta property=\"og:site_name\" content=\"Sexshop-xxxl.nl\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-09T21:38:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/m.media-amazon.com\/images\/I\/31biDSAJLcL.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<meta name=\"twitter:label1\" content=\"Verwachte leestijd\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/\",\"url\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/\",\"name\":\"Pleasurebox Sex Toy Sensual Glazen Dildo Volwassenen Toy Butt Plug Anal Toy Roze Werveling - Sexshop-xxxl.nl\",\"isPartOf\":{\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/m.media-amazon.com\/images\/I\/31biDSAJLcL.jpg\",\"datePublished\":\"2022-02-09T05:32:55+00:00\",\"dateModified\":\"2022-04-09T21:38:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/#breadcrumb\"},\"inLanguage\":\"nl\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nl\",\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/#primaryimage\",\"url\":\"https:\/\/m.media-amazon.com\/images\/I\/31biDSAJLcL.jpg\",\"contentUrl\":\"https:\/\/m.media-amazon.com\/images\/I\/31biDSAJLcL.jpg\",\"width\":500,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/#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\":\"Pleasurebox Sex Toy Sensual Glazen Dildo Volwassenen Toy Butt Plug Anal Toy Roze Werveling\"}]},{\"@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":"Pleasurebox Sex Toy Sensual Glazen Dildo Volwassenen Toy Butt Plug Anal Toy Roze Werveling - 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\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/","og_locale":"nl_NL","og_type":"article","og_title":"Pleasurebox Sex Toy Sensual Glazen Dildo Volwassenen Toy Butt Plug Anal Toy Roze Werveling - Sexshop-xxxl.nl","og_description":"11,5 cm lengte Gestructureerde Schacht voor maximaal plezier Gratis opbergzakje","og_url":"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/","og_site_name":"Sexshop-xxxl.nl","article_modified_time":"2022-04-09T21:38:15+00:00","og_image":[{"width":500,"height":500,"url":"https:\/\/m.media-amazon.com\/images\/I\/31biDSAJLcL.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Verwachte leestijd":"1 minuut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/","url":"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/","name":"Pleasurebox Sex Toy Sensual Glazen Dildo Volwassenen Toy Butt Plug Anal Toy Roze Werveling - Sexshop-xxxl.nl","isPartOf":{"@id":"https:\/\/www.sexshop-xxxl.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/#primaryimage"},"image":{"@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/#primaryimage"},"thumbnailUrl":"https:\/\/m.media-amazon.com\/images\/I\/31biDSAJLcL.jpg","datePublished":"2022-02-09T05:32:55+00:00","dateModified":"2022-04-09T21:38:15+00:00","breadcrumb":{"@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/#breadcrumb"},"inLanguage":"nl","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/"]}]},{"@type":"ImageObject","inLanguage":"nl","@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/#primaryimage","url":"https:\/\/m.media-amazon.com\/images\/I\/31biDSAJLcL.jpg","contentUrl":"https:\/\/m.media-amazon.com\/images\/I\/31biDSAJLcL.jpg","width":500,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.sexshop-xxxl.nl\/shop\/seksspeeltjes\/anaalspeeltjes\/pleasurebox-sex-toy-sensual-glazen-dildo-volwassenen-toy-butt-plug-anal-toy-roze-werveling\/#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":"Pleasurebox Sex Toy Sensual Glazen Dildo Volwassenen Toy Butt Plug Anal Toy Roze Werveling"}]},{"@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\/4647","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=4647"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/media\/4655"}],"wp:attachment":[{"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/media?parent=4647"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/product_cat?post=4647"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.sexshop-xxxl.nl\/wp-json\/wp\/v2\/product_tag?post=4647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}