{"version":3,"file":"PrimaryButton.668c19a5.js","sources":["../../../node_modules/@fluentui/react/lib/components/Button/ButtonThemes.js","../../../node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.styles.js","../../../node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.js","../../../node_modules/@fluentui/react/lib/components/Button/PrimaryButton/PrimaryButton.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport { HighContrastSelector, getHighContrastNoAdjustStyle } from '../../Styling';\nimport { IsFocusVisibleClassName } from '../../Utilities';\nvar splitButtonDividerBaseStyles = function () {\n    return {\n        position: 'absolute',\n        width: 1,\n        right: 31,\n        top: 8,\n        bottom: 8,\n    };\n};\nexport function standardStyles(theme) {\n    var _a, _b, _c, _d, _e;\n    var s = theme.semanticColors, p = theme.palette;\n    var buttonBackground = s.buttonBackground;\n    var buttonBackgroundPressed = s.buttonBackgroundPressed;\n    var buttonBackgroundHovered = s.buttonBackgroundHovered;\n    var buttonBackgroundDisabled = s.buttonBackgroundDisabled;\n    var buttonText = s.buttonText;\n    var buttonTextHovered = s.buttonTextHovered;\n    var buttonTextDisabled = s.buttonTextDisabled;\n    var buttonTextChecked = s.buttonTextChecked;\n    var buttonTextCheckedHovered = s.buttonTextCheckedHovered;\n    return {\n        root: {\n            backgroundColor: buttonBackground,\n            color: buttonText,\n        },\n        rootHovered: (_a = {\n                backgroundColor: buttonBackgroundHovered,\n                color: buttonTextHovered\n            },\n            _a[HighContrastSelector] = {\n                borderColor: 'Highlight',\n                color: 'Highlight',\n            },\n            _a),\n        rootPressed: {\n            backgroundColor: buttonBackgroundPressed,\n            color: buttonTextChecked,\n        },\n        rootExpanded: {\n            backgroundColor: buttonBackgroundPressed,\n            color: buttonTextChecked,\n        },\n        rootChecked: {\n            backgroundColor: buttonBackgroundPressed,\n            color: buttonTextChecked,\n        },\n        rootCheckedHovered: {\n            backgroundColor: buttonBackgroundPressed,\n            color: buttonTextCheckedHovered,\n        },\n        rootDisabled: (_b = {\n                color: buttonTextDisabled,\n                backgroundColor: buttonBackgroundDisabled\n            },\n            _b[HighContrastSelector] = {\n                color: 'GrayText',\n                borderColor: 'GrayText',\n                backgroundColor: 'Window',\n            },\n            _b),\n        // Split button styles\n        splitButtonContainer: (_c = {},\n            _c[HighContrastSelector] = {\n                border: 'none',\n            },\n            _c),\n        splitButtonMenuButton: {\n            color: p.white,\n            backgroundColor: 'transparent',\n            ':hover': (_d = {\n                    backgroundColor: p.neutralLight\n                },\n                _d[HighContrastSelector] = {\n                    color: 'Highlight',\n                },\n                _d),\n        },\n        splitButtonMenuButtonDisabled: {\n            backgroundColor: s.buttonBackgroundDisabled,\n            ':hover': {\n                backgroundColor: s.buttonBackgroundDisabled,\n            },\n        },\n        splitButtonDivider: __assign(__assign({}, splitButtonDividerBaseStyles()), (_e = { backgroundColor: p.neutralTertiaryAlt }, _e[HighContrastSelector] = {\n            backgroundColor: 'WindowText',\n        }, _e)),\n        splitButtonDividerDisabled: {\n            backgroundColor: theme.palette.neutralTertiaryAlt,\n        },\n        splitButtonMenuButtonChecked: {\n            backgroundColor: p.neutralQuaternaryAlt,\n            ':hover': {\n                backgroundColor: p.neutralQuaternaryAlt,\n            },\n        },\n        splitButtonMenuButtonExpanded: {\n            backgroundColor: p.neutralQuaternaryAlt,\n            ':hover': {\n                backgroundColor: p.neutralQuaternaryAlt,\n            },\n        },\n        splitButtonMenuIcon: {\n            color: s.buttonText,\n        },\n        splitButtonMenuIconDisabled: {\n            color: s.buttonTextDisabled,\n        },\n    };\n}\nexport function primaryStyles(theme) {\n    var _a, _b, _c, _d, _e, _f, _g, _h, _j;\n    var p = theme.palette, s = theme.semanticColors;\n    return {\n        root: (_a = {\n                backgroundColor: s.primaryButtonBackground,\n                border: \"1px solid \".concat(s.primaryButtonBackground),\n                color: s.primaryButtonText\n            },\n            _a[HighContrastSelector] = __assign({ color: 'Window', backgroundColor: 'WindowText', borderColor: 'WindowText' }, getHighContrastNoAdjustStyle()),\n            _a[\".\".concat(IsFocusVisibleClassName, \" &:focus, :host(.\").concat(IsFocusVisibleClassName, \") &:focus\")] = {\n                ':after': {\n                    border: \"none\",\n                    outlineColor: p.white,\n                },\n            },\n            _a),\n        rootHovered: (_b = {\n                backgroundColor: s.primaryButtonBackgroundHovered,\n                border: \"1px solid \".concat(s.primaryButtonBackgroundHovered),\n                color: s.primaryButtonTextHovered\n            },\n            _b[HighContrastSelector] = {\n                color: 'Window',\n                backgroundColor: 'Highlight',\n                borderColor: 'Highlight',\n            },\n            _b),\n        rootPressed: (_c = {\n                backgroundColor: s.primaryButtonBackgroundPressed,\n                border: \"1px solid \".concat(s.primaryButtonBackgroundPressed),\n                color: s.primaryButtonTextPressed\n            },\n            _c[HighContrastSelector] = __assign({ color: 'Window', backgroundColor: 'WindowText', borderColor: 'WindowText' }, getHighContrastNoAdjustStyle()),\n            _c),\n        rootExpanded: {\n            backgroundColor: s.primaryButtonBackgroundPressed,\n            color: s.primaryButtonTextPressed,\n        },\n        rootChecked: {\n            backgroundColor: s.primaryButtonBackgroundPressed,\n            color: s.primaryButtonTextPressed,\n        },\n        rootCheckedHovered: {\n            backgroundColor: s.primaryButtonBackgroundPressed,\n            color: s.primaryButtonTextPressed,\n        },\n        rootDisabled: (_d = {\n                color: s.primaryButtonTextDisabled,\n                backgroundColor: s.primaryButtonBackgroundDisabled\n            },\n            _d[HighContrastSelector] = {\n                color: 'GrayText',\n                borderColor: 'GrayText',\n                backgroundColor: 'Window',\n            },\n            _d),\n        // Split button styles\n        splitButtonContainer: (_e = {},\n            _e[HighContrastSelector] = {\n                border: 'none',\n            },\n            _e),\n        splitButtonDivider: __assign(__assign({}, splitButtonDividerBaseStyles()), (_f = { backgroundColor: p.white }, _f[HighContrastSelector] = {\n            backgroundColor: 'Window',\n        }, _f)),\n        splitButtonMenuButton: (_g = {\n                backgroundColor: s.primaryButtonBackground,\n                color: s.primaryButtonText\n            },\n            _g[HighContrastSelector] = {\n                backgroundColor: 'Canvas',\n            },\n            _g[':hover'] = (_h = {\n                    backgroundColor: s.primaryButtonBackgroundHovered\n                },\n                _h[HighContrastSelector] = {\n                    color: 'Highlight',\n                },\n                _h),\n            _g),\n        splitButtonMenuButtonDisabled: {\n            backgroundColor: s.primaryButtonBackgroundDisabled,\n            ':hover': {\n                backgroundColor: s.primaryButtonBackgroundDisabled,\n            },\n        },\n        splitButtonMenuButtonChecked: {\n            backgroundColor: s.primaryButtonBackgroundPressed,\n            ':hover': {\n                backgroundColor: s.primaryButtonBackgroundPressed,\n            },\n        },\n        splitButtonMenuButtonExpanded: {\n            backgroundColor: s.primaryButtonBackgroundPressed,\n            ':hover': {\n                backgroundColor: s.primaryButtonBackgroundPressed,\n            },\n        },\n        splitButtonMenuIcon: {\n            color: s.primaryButtonText,\n        },\n        splitButtonMenuIconDisabled: (_j = {\n                color: p.neutralTertiary\n            },\n            _j[HighContrastSelector] = {\n                color: 'GrayText',\n            },\n            _j),\n    };\n}\n//# sourceMappingURL=ButtonThemes.js.map","import { concatStyleSets, FontWeights } from '../../../Styling';\nimport { memoizeFunction } from '../../../Utilities';\nimport { getStyles as getBaseButtonStyles } from '../BaseButton.styles';\nimport { getStyles as getSplitButtonStyles } from '../SplitButton/SplitButton.styles';\nimport { primaryStyles, standardStyles } from '../ButtonThemes';\nvar DEFAULT_BUTTON_MIN_HEIGHT = '32px';\nvar DEFAULT_BUTTON_MIN_WIDTH = '80px';\nexport var getStyles = memoizeFunction(function (theme, customStyles, primary) {\n    var baseButtonStyles = getBaseButtonStyles(theme);\n    var splitButtonStyles = getSplitButtonStyles(theme);\n    var defaultButtonStyles = {\n        root: {\n            minWidth: DEFAULT_BUTTON_MIN_WIDTH,\n            minHeight: DEFAULT_BUTTON_MIN_HEIGHT,\n        },\n        label: {\n            fontWeight: FontWeights.semibold,\n        },\n    };\n    return concatStyleSets(baseButtonStyles, defaultButtonStyles, primary ? primaryStyles(theme) : standardStyles(theme), splitButtonStyles, customStyles);\n});\n//# sourceMappingURL=DefaultButton.styles.js.map","import { __assign, __decorate, __extends } from \"tslib\";\nimport * as React from 'react';\nimport { BaseButton } from '../BaseButton';\nimport { customizable, nullRender } from '../../../Utilities';\nimport { getStyles } from './DefaultButton.styles';\n/**\n * {@docCategory Button}\n */\nvar DefaultButton = /** @class */ (function (_super) {\n    __extends(DefaultButton, _super);\n    function DefaultButton() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    DefaultButton.prototype.render = function () {\n        var _a = this.props, _b = _a.primary, primary = _b === void 0 ? false : _b, styles = _a.styles, theme = _a.theme;\n        return (React.createElement(BaseButton, __assign({}, this.props, { variantClassName: primary ? 'ms-Button--primary' : 'ms-Button--default', styles: getStyles(theme, styles, primary), onRenderDescription: nullRender })));\n    };\n    DefaultButton = __decorate([\n        customizable('DefaultButton', ['theme', 'styles'], true)\n    ], DefaultButton);\n    return DefaultButton;\n}(React.Component));\nexport { DefaultButton };\n//# sourceMappingURL=DefaultButton.js.map","import { __assign, __decorate, __extends } from \"tslib\";\nimport * as React from 'react';\nimport { customizable, nullRender } from '../../../Utilities';\nimport { DefaultButton } from '../DefaultButton/DefaultButton';\n/**\n * {@docCategory Button}\n */\nvar PrimaryButton = /** @class */ (function (_super) {\n    __extends(PrimaryButton, _super);\n    function PrimaryButton() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    PrimaryButton.prototype.render = function () {\n        return React.createElement(DefaultButton, __assign({}, this.props, { primary: true, onRenderDescription: nullRender }));\n    };\n    PrimaryButton = __decorate([\n        customizable('PrimaryButton', ['theme', 'styles'], true)\n    ], PrimaryButton);\n    return PrimaryButton;\n}(React.Component));\nexport { PrimaryButton };\n//# sourceMappingURL=PrimaryButton.js.map"],"names":["splitButtonDividerBaseStyles","standardStyles","theme","_a","_b","_c","_d","_e","s","p","buttonBackground","buttonBackgroundPressed","buttonBackgroundHovered","buttonBackgroundDisabled","buttonText","buttonTextHovered","buttonTextDisabled","buttonTextChecked","buttonTextCheckedHovered","HighContrastSelector","__assign","primaryStyles","_f","_g","_h","_j","getHighContrastNoAdjustStyle","IsFocusVisibleClassName","DEFAULT_BUTTON_MIN_HEIGHT","DEFAULT_BUTTON_MIN_WIDTH","getStyles","memoizeFunction","customStyles","primary","baseButtonStyles","getBaseButtonStyles","splitButtonStyles","getSplitButtonStyles","defaultButtonStyles","FontWeights","concatStyleSets","DefaultButton","_super","__extends","styles","React.createElement","BaseButton","nullRender","__decorate","customizable","React.Component","PrimaryButton"],"mappings":"uMAGA,IAAIA,EAA+B,UAAY,CAC3C,MAAO,CACH,SAAU,WACV,MAAO,EACP,MAAO,GACP,IAAK,EACL,OAAQ,CAChB,CACA,EACO,SAASC,EAAeC,EAAO,CAClC,IAAIC,EAAIC,EAAIC,EAAIC,EAAIC,EAChBC,EAAIN,EAAM,eAAgBO,EAAIP,EAAM,QACpCQ,EAAmBF,EAAE,iBACrBG,EAA0BH,EAAE,wBAC5BI,EAA0BJ,EAAE,wBAC5BK,EAA2BL,EAAE,yBAC7BM,EAAaN,EAAE,WACfO,EAAoBP,EAAE,kBACtBQ,EAAqBR,EAAE,mBACvBS,EAAoBT,EAAE,kBACtBU,EAA2BV,EAAE,yBACjC,MAAO,CACH,KAAM,CACF,gBAAiBE,EACjB,MAAOI,CACV,EACD,aAAcX,EAAK,CACX,gBAAiBS,EACjB,MAAOG,CACV,EACDZ,EAAGgB,CAAoB,EAAI,CACvB,YAAa,YACb,MAAO,WACV,EACDhB,GACJ,YAAa,CACT,gBAAiBQ,EACjB,MAAOM,CACV,EACD,aAAc,CACV,gBAAiBN,EACjB,MAAOM,CACV,EACD,YAAa,CACT,gBAAiBN,EACjB,MAAOM,CACV,EACD,mBAAoB,CAChB,gBAAiBN,EACjB,MAAOO,CACV,EACD,cAAed,EAAK,CACZ,MAAOY,EACP,gBAAiBH,CACpB,EACDT,EAAGe,CAAoB,EAAI,CACvB,MAAO,WACP,YAAa,WACb,gBAAiB,QACpB,EACDf,GAEJ,sBAAuBC,EAAK,CAAE,EAC1BA,EAAGc,CAAoB,EAAI,CACvB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