"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.useStyles = void 0;
var styles_1 = require("@mui/styles");
exports.useStyles = (0, styles_1.makeStyles)(function () { return ({
    root: function (_a) {
        var fullyColored = _a.fullyColored, opaque = _a.opaque, color = _a.color, variant = _a.variant;
        return (__assign(__assign(__assign({ minHeight: '28px', wordBreak: 'break-word' }, (variant === 'filled' && {
            borderRadius: '4px',
            background: fullyColored ? color : "linear-gradient(to right, ".concat(color, " 8px, rgba(0,0,0,0.05) 8px)")
        })), (variant === 'outlined' && {
            '&::after': {
                content: '""',
                position: 'absolute',
                background: color,
                borderRadius: '4px 0px 0px 4px',
                width: '8px',
                height: '100%',
                pointerEvents: 'none'
            },
            '&::before': {
                content: '""',
                position: 'absolute',
                boxSizing: 'border-box',
                borderRadius: '4px',
                border: fullyColored ? "".concat(color, " solid 2px") : 'rgba(0,0,0,0.12) solid 1px',
                width: '100%',
                height: '100%',
                pointerEvents: 'none'
            }
        })), { display: 'flex', alignItems: 'center', opacity: opaque ? 1 : 0.38, transition: 'opacity 0.3s', position: 'relative' }));
    },
    attributeValue: {
        marginLeft: '16px',
        padding: '6px 0',
        lineHeight: '14px',
        width: 'calc(100% - 71px)',
        whiteSpace: 'break-spaces'
    },
    actions: function (_a) {
        var hasMasking = _a.hasMasking;
        return ({
            display: 'flex',
            width: "".concat(71 + (hasMasking ? 20 : 0), "px"),
            justifyContent: 'flex-end',
            marginRight: '4px'
        });
    },
    maskingControl: {
        flexShrink: 0,
        marginLeft: '2px',
        height: '20px !important', // important to override inline circular progress styles
        width: '20px !important'
    }
}); });
