import{__exports as e}from"../../../_virtual/PaginationLink.js";import t from"react";import{p as a}from"../../prop-types/index.js";import{c as r}from"../../classnames/index.js";import"./utils.js";import{__exports as l}from"../../../_virtual/utils.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=f(t),n=f(a),o=f(r),i=l,u=["className","cssModule","next","previous","first","last","tag"];function f(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},s=Object.keys(e);for(r=0;r<s.length;r++)a=s[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)a=s[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}var c={"aria-label":n.default.string,children:n.default.node,className:n.default.string,cssModule:n.default.object,next:n.default.bool,previous:n.default.bool,first:n.default.bool,last:n.default.bool,tag:i.tagPropType};function m(e){var t,a=e.className,r=e.cssModule,l=e.next,n=e.previous,f=e.first,c=e.last,m=e.tag,b=d(e,u),v=(0,i.mapToCssModules)((0,o.default)(a,"page-link"),r);n?t="Previous":l?t="Next":f?t="First":c&&(t="Last");var y,g=e["aria-label"]||t;n?y="‹":l?y="›":f?y="«":c&&(y="»");var j=e.children;return j&&Array.isArray(j)&&0===j.length&&(j=null),b.href||"a"!==m||(m="button"),(n||l||f||c)&&(j=[s.default.createElement("span",{"aria-hidden":"true",key:"caret"},j||y),s.default.createElement("span",{className:"visually-hidden",key:"ariaLabel"},g)]),s.default.createElement(m,p({},b,{className:v,"aria-label":g}),j)}m.propTypes=c,m.defaultProps={tag:"a"};var b=m;e.default=b}(e);
//# sourceMappingURL=PaginationLink.js.map
