"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__, {
    MuiDatepicker: ()=>MuiDatepicker
});
const apollo_core_namespaceObject = require("@uipath/apollo-core");
var apollo_core_default = /*#__PURE__*/ __webpack_require__.n(apollo_core_namespaceObject);
const dayFocusIndicatorSize = 3;
const MuiDatepicker = (palette)=>({
        root: {
            '&.MuiPickersPopper-root': {
                '.MuiPickersPopper-paper': {
                    backgroundColor: palette.semantic.colorBackgroundRaised,
                    backgroundImage: 'unset',
                    '& .MuiDateCalendar-root': {
                        userSelect: 'none',
                        width: '310px',
                        height: 'auto',
                        maxHeight: 'none',
                        '--date-picker-day-size': apollo_core_default().Spacing.SpacingXl,
                        '--date-picker-weeks-rows-gap': apollo_core_default().Spacing.SpacingXs,
                        '--date-picker-days-gap': apollo_core_default().Spacing.SpacingXs
                    },
                    '& .MuiPickersSlideTransition-root': {
                        '--date-picker-day-rows-count': '4',
                        marginTop: `-${dayFocusIndicatorSize}px`,
                        minHeight: 0,
                        overflow: 'hidden',
                        marginBottom: apollo_core_default().Spacing.SpacingBase,
                        transition: '0.2s all',
                        height: `calc(
                        (var(--date-picker-day-rows-count) * var(--date-picker-day-size)) +
                        ((var(--date-picker-day-rows-count) - 1) * var(--date-picker-weeks-rows-gap)) +
                        ${2 * dayFocusIndicatorSize}px
                    )`,
                        '&:has(div[aria-rowindex="5"])': {
                            '--date-picker-day-rows-count': '5'
                        },
                        '&:has(div[aria-rowindex="6"])': {
                            '--date-picker-day-rows-count': '6'
                        }
                    },
                    '& .MuiPickersFadeTransitionGroup-root:has(.MuiYearCalendar-root)': {
                        height: '280px'
                    },
                    '& .MuiPickersCalendarHeader-root': {
                        paddingRight: '14px'
                    },
                    '& .MuiPickersCalendarHeader-switchViewButton, & .MuiPickersArrowSwitcher-button': {
                        width: apollo_core_default().Spacing.SpacingXl,
                        height: apollo_core_default().Spacing.SpacingXl,
                        padding: 0,
                        '&:focus-visible': {
                            outlineColor: `${palette.semantic.colorFocusIndicator} !important`
                        },
                        '&:hover': {
                            backgroundColor: palette.semantic.colorBackgroundHover
                        }
                    },
                    '& .MuiDayCalendar-header': {
                        maxHeight: 'var(--date-picker-day-size)',
                        borderBottom: `1px solid ${palette.semantic.colorBorderDeEmp}`,
                        marginBottom: apollo_core_default().Spacing.SpacingS,
                        gap: apollo_core_default().Spacing.SpacingXs
                    },
                    '& .MuiDayCalendar-weekDayLabel': {
                        width: 'var(--date-picker-day-size)',
                        height: 'var(--date-picker-day-size)',
                        margin: 0,
                        color: palette.semantic.colorForegroundDeEmp
                    },
                    '& .MuiDayCalendar-monthContainer': {
                        display: 'flex',
                        flexDirection: 'column',
                        gap: 'var(--date-picker-weeks-rows-gap)',
                        overflow: 'visible',
                        marginTop: `${dayFocusIndicatorSize}px`
                    },
                    '& .MuiDayCalendar-weekContainer': {
                        gap: 'var(--date-picker-days-gap)',
                        margin: 0
                    },
                    '& .MuiPickersDay-root': {
                        width: 'var(--date-picker-day-size)',
                        height: 'var(--date-picker-day-size)',
                        fontWeight: apollo_core_default().FontFamily.FontWeightSemibold,
                        backgroundColor: 'transparent',
                        color: palette.semantic.colorForegroundDeEmp,
                        fontSize: apollo_core_default().FontFamily.FontMSize,
                        margin: 0,
                        '&:focus-visible': {
                            outline: `2px ${palette.semantic.colorFocusIndicator} solid !important`,
                            outlineOffset: '1px'
                        },
                        '&:hover': {
                            backgroundColor: palette.semantic.colorBackgroundHover
                        },
                        '&.MuiPickersDay-today': {
                            borderColor: palette.semantic.colorForegroundDeEmp,
                            backgroundColor: 'transparent',
                            '&:hover': {
                                backgroundColor: palette.semantic.colorBackgroundHover
                            }
                        },
                        '&.Mui-disabled': {
                            color: palette.semantic.colorForegroundDisable
                        },
                        '&.Mui-selected': {
                            backgroundColor: palette.semantic.colorPrimary,
                            color: palette.semantic.colorForegroundInverse,
                            '&:hover': {
                                backgroundColor: palette.semantic.colorPrimary
                            }
                        }
                    },
                    '& .MuiPickersYear-root': {
                        height: '48px'
                    },
                    '& .MuiPickersYear-yearButton': {
                        width: '56px',
                        height: '32px',
                        borderRadius: apollo_core_default().Border.BorderRadiusS,
                        backgroundColor: 'transparent',
                        color: palette.semantic.colorForegroundDeEmp,
                        fontSize: apollo_core_default().FontFamily.FontMSize,
                        fontWeight: apollo_core_default().FontFamily.FontWeightSemibold,
                        lineHeight: apollo_core_default().FontFamily.FontMLineHeight,
                        '&:focus-visible': {
                            outline: `2px ${palette.semantic.colorFocusIndicator} solid !important`,
                            outlineOffset: '2px'
                        },
                        '&:hover': {
                            backgroundColor: palette.semantic.colorBackgroundHover
                        },
                        '&.Mui-selected': {
                            backgroundColor: palette.semantic.colorPrimary,
                            color: palette.semantic.colorForegroundInverse,
                            '&:hover': {
                                backgroundColor: palette.semantic.colorPrimary
                            }
                        }
                    }
                },
                '&[data-popper-placement^="top"] .MuiPickersPopper-paper .MuiPickersSlideTransition-root': {
                    transitionDelay: '0.7s'
                }
            }
        }
    });
exports.MuiDatepicker = __webpack_exports__.MuiDatepicker;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "MuiDatepicker"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
