function _object_without_properties(source, excluded) {
    if (source == null) return {};
    var target = {}, sourceKeys, key, i;
    if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
        sourceKeys = Reflect.ownKeys(source);
        for(i = 0; i < sourceKeys.length; i++){
            key = sourceKeys[i];
            if (excluded.indexOf(key) >= 0) continue;
            if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
            target[key] = source[key];
        }
        return target;
    }
    target = _object_without_properties_loose(source, excluded);
    if (Object.getOwnPropertySymbols) {
        sourceKeys = Object.getOwnPropertySymbols(source);
        for(i = 0; i < sourceKeys.length; i++){
            key = sourceKeys[i];
            if (excluded.indexOf(key) >= 0) continue;
            if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
            target[key] = source[key];
        }
    }
    return target;
}
function _object_without_properties_loose(source, excluded) {
    if (source == null) return {};
    var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
    for(i = 0; i < sourceKeys.length; i++){
        key = sourceKeys[i];
        if (excluded.indexOf(key) >= 0) continue;
        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
        target[key] = source[key];
    }
    return target;
}
import React from "react";
import { usePaginationDots } from "./usePaginationDots";
import { PaginationDots } from "./PaginationDots";
import { PaginationDot } from "./PaginationDot";
/**
 * Компонент для отображения точек пагинации
 * с возможностью ограничения количества видимых элементов.
 * @deprecated
 */ export var SmartPaginationDots = function SmartPaginationDots(_0) {
    var items = _0.items, index = _0.index, visibleItems = _0.visibleItems, onIndexChange = _0.onIndexChange, rest = _object_without_properties(_0, [
        "items",
        "index",
        "visibleItems",
        "onIndexChange"
    ]);
    var _usePaginationDots = usePaginationDots({
        items: items,
        index: index,
        visibleItems: visibleItems
    }), sliced = _usePaginationDots.sliced, activeId = _usePaginationDots.activeId;
    return /*#__PURE__*/ React.createElement(PaginationDots, rest, sliced.map(function(param, i) {
        var id = param.id;
        return /*#__PURE__*/ React.createElement(PaginationDot, {
            key: "item:".concat(i),
            isActive: id === activeId,
            onClick: function onClick() {
                return onIndexChange === null || onIndexChange === void 0 ? void 0 : onIndexChange(i);
            }
        });
    }));
};
