"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 CarouselTrack () {
        return CarouselTrack;
    },
    get CarouselVirtualItem () {
        return CarouselVirtualItem;
    },
    get CarouselWrapper () {
        return CarouselWrapper;
    },
    get ControlsWrapper () {
        return ControlsWrapper;
    },
    get IconButton () {
        return IconButton;
    },
    get IconButtonComponent () {
        return IconButtonComponent;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _engines = require("../../../engines");
const _IconButton = require("../../IconButton");
const _Carouseltokens = require("./Carousel.tokens");
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;
}
const mergedConfig = (0, _engines.mergeConfig)(_IconButton.iconButtonConfig);
const IconButtonComponent = (0, _engines.component)(mergedConfig);
const base = (0, _styledcomponents.css)([
    `position:relative;`
]);
const CarouselWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Carousel.styles__CarouselWrapper",
    componentId: "sc-942ee38a-0"
})([
    `position:relative;padding:0;list-style:none;-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}overflow-x:hidden;overflow-y:hidden;scroll-behavior:smooth;scroll-snap-type:x mandatory;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:pan-y;cursor:`,
    `;&:active{cursor:`,
    `;}`
], ({ isSwipeEnabled })=>isSwipeEnabled ? 'grab' : 'default', ({ isSwipeEnabled })=>isSwipeEnabled ? 'grabbing' : 'default');
const CarouselTrack = _styledcomponents.default.div.withConfig({
    displayName: "Carousel.styles__CarouselTrack",
    componentId: "sc-942ee38a-1"
})([
    `display:inline-flex;flex-direction:row;gap:`,
    `;vertical-align:top;& > div{scroll-snap-align:none;}`
], ({ gap })=>gap);
const CarouselVirtualItem = _styledcomponents.default.div.withConfig({
    displayName: "Carousel.styles__CarouselVirtualItem",
    componentId: "sc-942ee38a-2"
})([
    `display:flex;flex:0 0 auto;`
]);
const IconButton = (0, _styledcomponents.default)(IconButtonComponent).withConfig({
    displayName: "Carousel.styles__IconButton",
    componentId: "sc-942ee38a-3"
})([
    `position:absolute;top:50%;transform:translateY(-50%);left:0.75rem;z-index:10;`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:2.5rem;`,
    `:2.5rem;`,
    `:1rem;`,
    `:var(`,
    `);&.`,
    `{left:auto;right:0.75rem;}`
], _IconButton.iconButtonTokens.iconButtonColor, _Carouseltokens.tokens.controlIconButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _Carouseltokens.tokens.controlIconButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonColorHover, _Carouseltokens.tokens.controlIconButtonColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _Carouseltokens.tokens.controlIconButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonColorActive, _Carouseltokens.tokens.controlIconButtonColorActive, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive, _Carouseltokens.tokens.controlIconButtonBackgroundColorActive, _IconButton.iconButtonTokens.iconButtonHeight, _IconButton.iconButtonTokens.iconButtonWidth, _IconButton.iconButtonTokens.iconButtonPadding, _IconButton.iconButtonTokens.iconButtonRadius, _Carouseltokens.tokens.controlIconButtonRadius, _Carouseltokens.classes.rightControlButton);
const ControlsWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Carousel.styles__ControlsWrapper",
    componentId: "sc-942ee38a-4"
})([
    `position:relative;`
]);
