import{__exports as e}from"../../../_virtual/CarouselControl.js";import t from"react";import{p as r}from"../../prop-types/index.js";import{c as n}from"../../classnames/index.js";import"./utils.js";import{__exports as o}from"../../../_virtual/utils.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=c(t),l=c(r),s=c(n),i=o,u=["direction","onClickHandler","cssModule","directionText","className"];function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e){var t=e.direction,r=e.onClickHandler,n=e.cssModule,o=e.directionText,l=e.className,c=f(e,u),p=(0,i.mapToCssModules)((0,s.default)(l,"carousel-control-".concat(t)),n),m=(0,i.mapToCssModules)((0,s.default)("carousel-control-".concat(t,"-icon")),n),v=(0,i.mapToCssModules)((0,s.default)("visually-hidden"),n);return a.default.createElement("a",d({},c,{className:p,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:function(e){e.preventDefault(),r()}}),a.default.createElement("span",{className:m,"aria-hidden":"true"}),a.default.createElement("span",{className:v},o||t))}p.propTypes={direction:l.default.oneOf(["prev","next"]).isRequired,onClickHandler:l.default.func.isRequired,cssModule:l.default.object,directionText:l.default.string,className:l.default.string};var m=p;e.default=m}(e);
//# sourceMappingURL=CarouselControl.js.map
