"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get Carousel () {
        return Carousel;
    },
    get CarouselGridWrapper () {
        return CarouselGridWrapper;
    },
    get CarouselTrack () {
        return CarouselTrack;
    }
});
var _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
function _getRequireWildcardCache(nodeInterop) {
    if (typeof WeakMap !== "function") return null;
    var cacheBabelInterop = new WeakMap();
    var cacheNodeInterop = new WeakMap();
    return (_getRequireWildcardCache = function(nodeInterop) {
        return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
    })(nodeInterop);
}
function _interop_require_wildcard(obj, nodeInterop) {
    if (!nodeInterop && obj && obj.__esModule) {
        return obj;
    }
    if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
        return {
            default: obj
        };
    }
    var cache = _getRequireWildcardCache(nodeInterop);
    if (cache && cache.has(obj)) {
        return cache.get(obj);
    }
    var newObj = {
        __proto__: null
    };
    var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
    for(var key in obj){
        if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
            var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
            if (desc && (desc.get || desc.set)) {
                Object.defineProperty(newObj, key, desc);
            } else {
                newObj[key] = obj[key];
            }
        }
    }
    newObj.default = obj;
    if (cache) {
        cache.set(obj, newObj);
    }
    return newObj;
}
var CarouselGridWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Carousel__CarouselGridWrapper",
    componentId: "sc-2bb1b43b-0"
})([
    "overflow:hidden;margin-left:calc(var(--plasma-grid-margin) * -1);margin-right:calc(var(--plasma-grid-margin) * -1);"
]);
var Carousel = _styledcomponents.default.div.withConfig({
    displayName: "Carousel",
    componentId: "sc-2bb1b43b-1"
})([
    "position:relative;margin:0;padding:0;list-style:none;::-webkit-scrollbar{display:none;}",
    " ",
    " ",
    " &{scroll-padding:0 var(--plasma-grid-margin);padding-left:var(--plasma-grid-margin);}"
], function(param) {
    var axis = param.axis;
    return axis === 'x' ? (0, _styledcomponents.css)([
        "overflow-x:auto;overflow-y:hidden;"
    ]) : (0, _styledcomponents.css)([
        "height:100%;overflow-x:hidden;overflow-y:auto;"
    ]);
}, function(param) {
    var scrollSnapType = param.scrollSnapType, axis = param.axis;
    return scrollSnapType && scrollSnapType !== 'none' && (0, _styledcomponents.css)([
        "scroll-behavior:",
        ";scroll-snap-type:",
        " ",
        ";"
    ], function(param) {
        var theme = param.theme;
        return theme.lowPerformance ? 'unset' : 'smooth';
    }, axis, scrollSnapType);
}, CarouselGridWrapper);
var CarouselTrack = _styledcomponents.default.div.withConfig({
    displayName: "Carousel__CarouselTrack",
    componentId: "sc-2bb1b43b-2"
})([
    "",
    " ",
    " ",
    ""
], function(param) {
    var virtualSize = param.virtualSize, axis = param.axis;
    return(// для виртуализированной карусели (useVirtual)
    virtualSize && (0, _styledcomponents.css)([
        "position:absolute;",
        ":",
        "px;"
    ], axis === 'x' ? 'width' : 'height', virtualSize));
}, function(param) {
    var liteMode = param.liteMode;
    return(// для поддержки CarouselLite
    liteMode && (0, _styledcomponents.css)([
        "transition-property:transform;transition-duration:0.5s;transform:translate(0px,0px);"
    ]));
}, function(param) {
    var axis = param.axis, paddingStart = param.paddingStart, paddingEnd = param.paddingEnd;
    return axis === 'x' ? (0, _styledcomponents.css)([
        "display:inline-flex;flex-direction:row;",
        " ",
        ""
    ], paddingStart && (0, _styledcomponents.css)([
        "padding-left:",
        ";"
    ], paddingStart), paddingEnd ? (0, _styledcomponents.css)([
        "padding-right:",
        ";"
    ], paddingEnd) : (0, _styledcomponents.css)([
        "",
        " &{padding-right:var(--plasma-grid-margin);}"
    ], CarouselGridWrapper)) : (0, _styledcomponents.css)([
        "display:flex;flex-direction:column;width:100%;",
        " ",
        ""
    ], paddingStart && (0, _styledcomponents.css)([
        "padding-top:",
        ";"
    ], paddingStart), paddingEnd && (0, _styledcomponents.css)([
        "padding-bottom:",
        ";"
    ], paddingEnd));
});
