"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 LoaderContentWrapper () {
        return LoaderContentWrapper;
    },
    get LoaderWrapper () {
        return LoaderWrapper;
    },
    get StyledOverlay () {
        return StyledOverlay;
    },
    get StyledProgressBarCircular () {
        return StyledProgressBarCircular;
    },
    get StyledSpinner () {
        return StyledSpinner;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _Spinner = require("../Spinner");
const _ProgressBarCircular = require("../ProgressBarCircular");
const _engines = require("../../engines");
const _Loadertokens = require("./Loader.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 mergedSpinnerConfig = (0, _engines.mergeConfig)(_Spinner.spinnerConfig);
const Spinner = (0, _engines.component)(mergedSpinnerConfig);
const mergedProgressBarCircularConfig = (0, _engines.mergeConfig)(_ProgressBarCircular.progressBarCircularConfig);
const ProgressBarCircular = (0, _engines.component)(mergedProgressBarCircularConfig);
const base = (0, _styledcomponents.css)([
    `display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(`,
    `);height:var(`,
    `);`
], _Loadertokens.tokens.width, _Loadertokens.tokens.height);
const StyledSpinner = (0, _styledcomponents.default)(Spinner).withConfig({
    displayName: "Loader.styles__StyledSpinner",
    componentId: "sc-7a5b81df-0"
})([
    ``,
    `:var(`,
    `);`,
    `:var(`,
    `);`
], _Spinner.spinnerTokens.size, _Loadertokens.tokens.spinnerSize, _Spinner.spinnerTokens.color, _Loadertokens.tokens.spinnerColor);
const StyledProgressBarCircular = (0, _styledcomponents.default)(ProgressBarCircular).withConfig({
    displayName: "Loader.styles__StyledProgressBarCircular",
    componentId: "sc-7a5b81df-1"
})([
    ``,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`
], _ProgressBarCircular.progressBarCircularTokens.size, _Loadertokens.tokens.progressBarCircularSize, _ProgressBarCircular.progressBarCircularTokens.width, _Loadertokens.tokens.progressBarCircularWidth, _ProgressBarCircular.progressBarCircularTokens.height, _Loadertokens.tokens.progressBarCircularHeight, _ProgressBarCircular.progressBarCircularTokens.strokeWidth, _Loadertokens.tokens.progressBarCircularStrokeWidth, _ProgressBarCircular.progressBarCircularTokens.strokeSize, _Loadertokens.tokens.progressBarCircularStrokeSize, _ProgressBarCircular.progressBarCircularTokens.backgroundStroke, _Loadertokens.tokens.progressBarCircularBackgroundStroke, _ProgressBarCircular.progressBarCircularTokens.progressStroke, _Loadertokens.tokens.progressBarCircularStroke, _ProgressBarCircular.progressBarCircularTokens.contentColor, _Loadertokens.tokens.progressBarCircularContentColor, _ProgressBarCircular.progressBarCircularTokens.contentFontFamily, _Loadertokens.tokens.progressBarCircularContentFontFamily, _ProgressBarCircular.progressBarCircularTokens.contentFontSize, _Loadertokens.tokens.progressBarCircularContentFontSize, _ProgressBarCircular.progressBarCircularTokens.contentFontStyle, _Loadertokens.tokens.progressBarCircularContentFontStyle, _ProgressBarCircular.progressBarCircularTokens.contentFontWeight, _Loadertokens.tokens.progressBarCircularContentFontWeight, _ProgressBarCircular.progressBarCircularTokens.contentLetterSpacing, _Loadertokens.tokens.progressBarCircularContentLetterSpacing, _ProgressBarCircular.progressBarCircularTokens.contentLineHeight, _Loadertokens.tokens.progressBarCircularContentLineHeight);
const LoaderWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Loader.styles__LoaderWrapper",
    componentId: "sc-7a5b81df-2"
})([
    `position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:`,
    `;`
], ({ zIndex })=>zIndex || 9000);
const StyledOverlay = _styledcomponents.default.div.withConfig({
    displayName: "Loader.styles__StyledOverlay",
    componentId: "sc-7a5b81df-3"
})([
    `position:absolute;inset:0;background:var(--plasma_private-overlay-background-color);backdrop-filter:`,
    `;cursor:`,
    `;--plasma_private-overlay-background-color:`,
    `;`
], ({ withBlur })=>withBlur ? 'blur(1rem)' : 'none', ({ onClick })=>onClick ? 'pointer' : 'default', ({ backgroundColorToken })=>backgroundColorToken);
const LoaderContentWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Loader.styles__LoaderContentWrapper",
    componentId: "sc-7a5b81df-4"
})([
    `position:relative;z-index:1;`
]);
