"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = (module)=>{
        var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    MuiButton: ()=>MuiButton
});
const apollo_core_namespaceObject = require("@uipath/apollo-core");
var apollo_core_default = /*#__PURE__*/ __webpack_require__.n(apollo_core_namespaceObject);
const MuiButton = (palette)=>({
        root: {
            height: '40px',
            borderRadius: '3px',
            boxShadow: 'none',
            fontStyle: 'normal',
            fontWeight: apollo_core_default().FontFamily.FontWeightSemibold,
            fontSize: apollo_core_default().FontFamily.FontMSize,
            padding: '6px 16px',
            lineHeight: apollo_core_default().FontFamily.FontMLineHeight,
            textTransform: 'none',
            '&:focus-visible': {
                outlineOffset: '1px'
            },
            '&.warning': {
                border: `1px solid ${palette.semantic.colorWarn}`,
                backgroundColor: `${palette.semantic.colorWarn}`,
                color: `${palette.semantic.colorForegroundInverse}`,
                '&.MuiButton-containedSecondary': {
                    color: `${palette.semantic.colorForegroundInverse}`
                },
                '&&:hover': {
                    backgroundColor: `${palette.semantic.colorWarnDarker}`,
                    border: `1px solid ${palette.semantic.colorWarnDarker}`,
                    color: `${palette.semantic.colorForegroundInverse}`,
                    boxShadow: 'none'
                },
                '&&:focus': {
                    boxShadow: 'none',
                    border: `1px solid ${palette.semantic.colorWarnDarker}`,
                    backgroundColor: `${palette.semantic.colorWarnDarker}`,
                    color: `${palette.semantic.colorForegroundInverse}`
                },
                '&&:disabled': {
                    backgroundColor: `${palette.semantic.colorBackgroundDisabled}`,
                    color: `${palette.semantic.colorForegroundDisable}`,
                    border: `1px solid ${palette.semantic.colorBackgroundDisabled}`
                }
            }
        },
        contained: {
            border: `1px solid ${palette.semantic.colorPrimary}`,
            backgroundColor: `${palette.semantic.colorPrimary}`,
            color: `${palette.semantic.colorForegroundOnAccent}`,
            '&.MuiButton-containedSecondary': {
                color: `${palette.semantic.colorForegroundOnAccent}`
            },
            '&&:hover': {
                backgroundColor: `${palette.semantic.colorPrimaryHover}`,
                border: `1px solid ${palette.semantic.colorPrimaryHover}`,
                color: `${palette.semantic.colorForegroundOnAccent}`,
                boxShadow: 'none'
            },
            '&&:focus': {
                boxShadow: 'none',
                border: `1px solid ${palette.semantic.colorPrimaryFocused}`,
                color: `${palette.semantic.colorForegroundOnAccent}`
            },
            '&&:disabled': {
                backgroundColor: `${palette.semantic.colorBackgroundDisabled}`,
                color: `${palette.semantic.colorForegroundDisable}`,
                border: `1px solid ${palette.semantic.colorBackgroundDisabled}`
            },
            '&&:focus-visible': {
                backgroundColor: palette.semantic.colorPrimaryFocused
            },
            '&&:active': {
                backgroundColor: palette.semantic.colorPrimaryPressed
            }
        },
        outlined: {
            border: `1px solid ${palette.semantic.colorBorderDeEmp}`,
            background: `${palette.semantic.colorBackground}`,
            color: `${palette.semantic.colorPrimary}`,
            '&&': {
                borderColor: palette.semantic.colorBorder
            },
            '&&:hover': {
                backgroundColor: palette.semantic.colorSecondaryFocused
            },
            '&&:focus': {
                backgroundColor: palette.semantic.colorSecondaryFocused
            },
            '&&:disabled': {
                backgroundColor: `${palette.semantic.colorBackgroundDisabled}`,
                color: `${palette.semantic.colorForegroundDisable}`
            },
            '&&:focus-visible': {
                backgroundColor: palette.semantic.colorSecondaryFocused,
                outlineOffset: 0
            },
            '&&:active': {
                backgroundColor: palette.semantic.colorSecondaryPressed
            }
        },
        text: {
            '& .MuiButton-label': {
                paddingLeft: apollo_core_default().Padding.PadL,
                paddingRight: apollo_core_default().Padding.PadL
            },
            '&&:hover': {
                backgroundColor: palette.semantic.colorSecondaryFocused
            },
            '&&:focus': {
                backgroundColor: palette.semantic.colorSecondaryFocused
            },
            '&&:disabled': {
                color: `${palette.semantic.colorForegroundDisable}`
            },
            '&&:focus-visible': {
                backgroundColor: palette.semantic.colorSecondaryFocused
            },
            '&&:active': {
                backgroundColor: palette.semantic.colorSecondaryPressed
            }
        },
        sizeSmall: {
            height: '32px',
            fontSize: apollo_core_default().FontFamily.FontMSize,
            lineHeight: apollo_core_default().FontFamily.FontMLineHeight
        },
        sizeLarge: {
            height: '40px',
            fontSize: apollo_core_default().FontFamily.FontMSize,
            lineHeight: apollo_core_default().FontFamily.FontMLineHeight
        },
        startIcon: {
            fontSize: apollo_core_default().Icon.IconXs,
            lineHeight: apollo_core_default().Icon.IconXs,
            '& img': {
                width: apollo_core_default().Icon.IconXs,
                height: apollo_core_default().Icon.IconXs
            },
            '& svg': {
                width: apollo_core_default().Icon.IconXs
            }
        },
        endIcon: {
            fontSize: apollo_core_default().Icon.IconXs,
            lineHeight: apollo_core_default().Icon.IconXs,
            '& img': {
                width: apollo_core_default().Icon.IconXs,
                height: apollo_core_default().Icon.IconXs
            },
            '& svg': {
                width: apollo_core_default().Icon.IconXs
            }
        }
    });
exports.MuiButton = __webpack_exports__.MuiButton;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "MuiButton"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
