import{__exports as e}from"../../../_virtual/CarouselIndicators.js";import t from"react";import{p as r}from"../../prop-types/index.js";import{c as a}from"../../classnames/index.js";import"./utils.js";import{__exports as n}from"../../../_virtual/utils.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=c(t),o=c(r),l=c(a),i=n,u=["items","activeIndex","cssModule","onClickHandler","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 a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},d.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},s=Object.keys(e);for(a=0;a<s.length;a++)r=s[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function p(e){var t=e.items,r=e.activeIndex,a=e.cssModule,n=e.onClickHandler,o=e.className,c=f(e,u),p=(0,i.mapToCssModules)((0,l.default)(o,"carousel-indicators"),a),m=t.map((function(e,t){var o=(0,i.mapToCssModules)((0,l.default)({active:r===t}),a);return s.default.createElement("button",{"aria-label":e.caption,"data-bs-target":!0,type:"button",key:"".concat(e.key||Object.values(e).join("")),onClick:function(e){e.preventDefault(),n(t)},className:o})}));return s.default.createElement("div",d({className:p},c),m)}p.propTypes={activeIndex:o.default.number.isRequired,className:o.default.string,cssModule:o.default.object,items:o.default.array.isRequired,onClickHandler:o.default.func.isRequired};var m=p;e.default=m}(e);
//# sourceMappingURL=CarouselIndicators.js.map
