"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Indicator = exports.largeSize = exports.smallSize = exports.contrastLinearLoading = exports.linearLoading = exports.contrastButtonLoading = exports.buttonLoading = exports.contrastCircularLoading = exports.circularLoading = void 0;
const tslib_1 = require("tslib");
const lottie_react_native_1 = tslib_1.__importDefault(require("lottie-react-native"));
const native_1 = tslib_1.__importDefault(require("styled-components/native"));
const theme_toolkit_1 = require("@platformbuilders/theme-toolkit");
exports.circularLoading = (0, theme_toolkit_1.getTheme)('circularLoading');
exports.contrastCircularLoading = (0, theme_toolkit_1.getTheme)('contrastCircularLoading');
exports.buttonLoading = (0, theme_toolkit_1.getTheme)('buttonLoading');
exports.contrastButtonLoading = (0, theme_toolkit_1.getTheme)('contrastButtonLoading');
exports.linearLoading = (0, theme_toolkit_1.getTheme)('linearLoading');
exports.contrastLinearLoading = (0, theme_toolkit_1.getTheme)('contrastLinearLoading');
const loadingVariant = (props) => {
    const { variant, contrast } = props;
    switch (variant) {
        case 'button':
            return contrast ? (0, exports.contrastButtonLoading)(props) : (0, exports.buttonLoading)(props);
        case 'linear':
            return contrast ? (0, exports.contrastLinearLoading)(props) : (0, exports.linearLoading)(props);
        default:
            return contrast ? (0, exports.contrastCircularLoading)(props) : (0, exports.circularLoading)(props);
    }
};
exports.smallSize = {
    width: 60,
    height: 60,
};
exports.largeSize = {
    width: 120,
    height: 120,
};
exports.Indicator = (0, native_1.default)(lottie_react_native_1.default).attrs((props) => ({
    source: loadingVariant(props),
    autoPlay: true,
    loop: true,
})) ``;
//# sourceMappingURL=style.js.map