"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "addScrollbar", {
    enumerable: true,
    get: function() {
        return addScrollbar;
    }
});
var _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
var _Scrollbarconfig = require("./Scrollbar.config");
function _define_property(obj, key, value) {
    if (key in obj) {
        Object.defineProperty(obj, key, {
            value: value,
            enumerable: true,
            configurable: true,
            writable: true
        });
    } else {
        obj[key] = value;
    }
    return obj;
}
function _object_spread(target) {
    for(var i = 1; i < arguments.length; i++){
        var source = arguments[i] != null ? arguments[i] : {};
        var ownKeys = Object.keys(source);
        if (typeof Object.getOwnPropertySymbols === "function") {
            ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
                return Object.getOwnPropertyDescriptor(source, sym).enumerable;
            }));
        }
        ownKeys.forEach(function(key) {
            _define_property(target, key, source[key]);
        });
    }
    return target;
}
var addScrollbar = function(size) {
    return (0, _styledcomponents.addScrollbar)(_object_spread({}, _Scrollbarconfig.config.size[size], _Scrollbarconfig.config.view.default));
};
