{"version":3,"sources":["webpack:///./node_modules/@instructure/ui-buttons/es/DeprecatedButton/theme.js","webpack:///./node_modules/@instructure/ui-buttons/es/DeprecatedButton/index.js","webpack:///./node_modules/@instructure/ui-buttons/es/Button/themeAdapter.js","webpack:///./node_modules/@instructure/ui-buttons/es/Button/theme.js","webpack:///./node_modules/@instructure/ui-buttons/es/Button/index.js"],"names":["activeShadow","focusShadow","focusOutline","style","mainColor","textColor","_ref","concat","darken","generator","_ref2","arguments","length","_ref2$colors","colors","_ref2$borders","borders","_ref2$forms","forms","_ref2$spacing","spacing","_ref2$typography","typography","borderWidth","widthSmall","fontFamily","fontWeight","fontWeightNormal","textTransform","letterSpacing","borderRadius","radiusMedium","borderStyle","transform","hoverTransform","smallHeight","inputHeightSmall","smallPadding","xSmall","smallFontSize","fontSizeSmall","mediumHeight","inputHeightMedium","mediumPadding","small","mediumFontSize","fontSizeMedium","largeHeight","inputHeightLarge","largePadding","medium","largeFontSize","fontSizeLarge","focusBorder","borderBrand","lightBackground","backgroundLightest","lightBorderColor","borderLight","lightBorderStyle","lightColor","textDarkest","lightHoverBackground","lightActiveBackground","lightActiveBoxShadow","borderLightest","ghostBackground","ghostBorderColor","ghostBorderStyle","ghostColor","textBrand","ghostHoverBackground","alpha","backgroundBrand","ghostActiveBackground","ghostActiveBoxShadow","ghostInverseBackground","ghostInverseBorderColor","ghostInverseBorderStyle","ghostInverseColor","textLightest","ghostInverseHoverBackground","ghostInverseActiveBackground","ghostInverseActiveBoxShadow","linkColor","textLink","linkBorderColor","linkFocusBorderColor","linkHoverColor","linkTextDecoration","linkInverseColor","textLight","inverseFocusBorder","iconBorderColor","iconPadding","xxSmall","iconColor","iconHoverColor","iconActiveColor","iconFocusBoxShadow","iconPlusTextFontSize","iconSizeSmall","iconSizeMedium","iconSizeLarge","iconPlusTextMargin","iconInverseColor","iconInverseHoverColor","iconInverseFocusBoxShadow","fluidWidthLineHeight","lineHeightFit","backgroundLight","backgroundSuccess","backgroundDanger","variables","_ref3","_ref3$colors","defaultBorderColor","borderMedium","circleDefaultBorderColor","_dec","_dec2","_dec3","_class","_class2","_temp","styles","componentId","template","theme","defaultBackground","defaultColor","defaultHoverBackground","defaultActiveBackground","defaultActiveBoxShadow","primaryBackground","primaryBorderColor","primaryColor","primaryHoverBackground","primaryActiveBackground","primaryActiveBoxShadow","successBackground","successBorderColor","successColor","successHoverBackground","successActiveBackground","successActiveBoxShadow","dangerBackground","dangerBorderColor","dangerColor","dangerHoverBackground","dangerActiveBackground","dangerActiveBoxShadow","circleDefaultBackground","circleDefaultColor","circleDefaultHoverBackground","circleDefaultActiveBackground","circleDefaultActiveBoxShadow","circlePrimaryBackground","circlePrimaryBorderColor","circlePrimaryColor","circlePrimaryHoverBackground","circlePrimaryActiveBackground","circlePrimaryActiveBoxShadow","circleDangerBackground","circleDangerBorderColor","circleDangerColor","circleDangerHoverBackground","circleDangerActiveBackground","circleDangerActiveBoxShadow","circleVariants","squareVariants","deprecated","testable","_Component","DeprecatedButton","_super","_this","this","_len","args","Array","_key","call","apply","handleClick","e","_this$props","props","disabled","readOnly","onClick","preventDefault","stopPropagation","handleKeyDown","_this$props2","href","elementType","keyCode","codes","space","enter","_button","click","key","value","focus","Icon","icon","createElement","className","iconSVG","inline","includes","variant","hasOnlyIcon","_this$props3","fluidWidth","_classnames","_this2","_this$props4","as","buttonRef","children","cursor","margin","size","type","tabIndex","IHaveVisibleChildren","hasVisibleChildren","hasTextAndIcon","passthroughProps","View","omitViewProps","propTypes","Object","assign","root","buttonWidth","buttonBorderRadius","onKeyDown","role","elementRef","c","display","Flex","height","width","Item","padding","renderIcon","shouldGrow","shouldShrink","content","get","getElementType","isActiveElement","displayName","node","isRequired","oneOf","func","bool","string","oneOfType","element","number","defaultProps","button","map","themeAdapter","version","shouldIncludeOldValues","borderColor","backgroundColor","fullyAccessibleBrand","secondaryHoverBackground","secondaryActiveBackground","secondaryActiveBoxShadow","primaryGhostColor","primaryGhostBorderColor","primaryGhostHoverBackground","primaryGhostActiveBackground","primaryGhostActiveBoxShadow","Button","_buttonComponent","handleElementRef","el","handleButtonRef","component","scopeTheme","_assertThisInitialize","_assertThisInitialize2","deprecatedTheme","deprecatedKeys","keys","entries","reduce","result","color","focusColor","textAlign","withBackground","interaction","getInteraction","_this$theme","ref","buttonProps","__dangerouslyIgnoreExperimentalWarnings","BaseButton","focused"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAIA,EAAe;AACnB,IAAIC,EAAc;AAClB,IAAIC,EAAe;AAEnB,IAAI,EAAgB,SAAuBC,EAAOC,EAAWC,GAC3D,IAAIC;AAEJ,OAAOA,EAAO,GAAI,eAAgBA,EAAM,GAAGC,OAAOJ,EAAO,cAAeC,GAAY,eAAgBE,EAAM,GAAGC,OAAOJ,EAAO,eAAgB,OAAAK,EAAA,MAAOJ,EAAW,KAAM,eAAgBE,EAAM,GAAGC,OAAOJ,EAAO,SAAUE,GAAY,eAAgBC,EAAM,GAAGC,OAAOJ,EAAO,mBAAoB,OAAAK,EAAA,MAAOJ,EAAW,KAAM,eAAgBE,EAAM,GAAGC,OAAOJ,EAAO,oBAAqB,OAAAK,EAAA,MAAOJ,EAAW,KAAM,eAAgBE,EAAM,GAAGC,OAAOJ,EAAO,mBAAoB,GAAGI,OAAOP,EAAc,KAAKO,OAAO,OAAAC,EAAA,MAAOJ,EAAW,GAAI,OAASE;AAGxf,SAASG,IACtB,IAAIC,EAAQC,UAAUC,OAAS,QAAsB,IAAjBD,UAAU,GAAgBA,UAAU,GAAK,GACzEE,EAAeH,EAAMI,OACrBA,OAA0B,IAAjBD,EAA0B,GAAKA,EACxCE,EAAgBL,EAAMM,QACtBA,OAA4B,IAAlBD,EAA2B,GAAKA,EAC1CE,EAAcP,EAAMQ,MACpBA,OAAwB,IAAhBD,EAAyB,GAAKA,EACtCE,EAAgBT,EAAMU,QACtBA,OAA4B,IAAlBD,EAA2B,GAAKA,EAC1CE,EAAmBX,EAAMY,WACzBA,OAAkC,I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,WAAY,IAAU8C,KAKtBvD,KAAM,IAAUyD,UAAU,CAAC,IAAUH,KAAM,IAAUI,WACpD,GAAQE,aAAe,CACxB7C,SAAU,KACVI,KAAM,SACND,KAAM,SACNiB,WAAY,SAAoB6C,KAChCnE,GAAI,SAEJmF,iBAAa,EAEbJ,WAAO,EACPC,gBAAY,EACZxD,QAAS,eACTyD,UAAW,SACXC,eAAgB,KAChB9E,OAAQ,IACRD,OAAQ,UACR5B,UAAM,EACNuD,gBAAY,EACZ7B,eAAW,EACXR,aAAS,EACTG,gBAAY,EACZT,UAAM,GACL,MAAW,KAAW,KAAW","file":"2-c-49d1ef7c2e.js","sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport { alpha, darken } from '@instructure/ui-color-utils';\nvar activeShadow = 'inset 0 0 0.1875rem 0.0625rem';\nvar focusShadow = 'inset 0 0 0 0.0625rem';\nvar focusOutline = '0.125rem solid';\n\nvar buttonVariant = function buttonVariant(style, mainColor, textColor) {\n var _ref;\n\n return _ref = {}, _defineProperty(_ref, \"\".concat(style, \"Background\"), mainColor), _defineProperty(_ref, \"\".concat(style, \"BorderColor\"), darken(mainColor, 10)), _defineProperty(_ref, \"\".concat(style, \"Color\"), textColor), _defineProperty(_ref, \"\".concat(style, \"HoverBackground\"), darken(mainColor, 10)), _defineProperty(_ref, \"\".concat(style, \"ActiveBackground\"), darken(mainColor, 10)), _defineProperty(_ref, \"\".concat(style, \"ActiveBoxShadow\"), \"\".concat(activeShadow, \" \").concat(darken(mainColor, 20, 0.45))), _ref;\n};\n\nexport default function generator() {\n var _ref2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},\n _ref2$colors = _ref2.colors,\n colors = _ref2$colors === void 0 ? {} : _ref2$colors,\n _ref2$borders = _ref2.borders,\n borders = _ref2$borders === void 0 ? {} : _ref2$borders,\n _ref2$forms = _ref2.forms,\n forms = _ref2$forms === void 0 ? {} : _ref2$forms,\n _ref2$spacing = _ref2.spacing,\n spacing = _ref2$spacing === void 0 ? {} : _ref2$spacing,\n _ref2$typography = _ref2.typography,\n typography = _ref2$typography === void 0 ? {} : _ref2$typography;\n\n return _objectSpread({\n borderWidth: borders.widthSmall,\n fontFamily: typography.fontFamily,\n fontWeight: typography.fontWeightNormal,\n textTransform: 'none',\n letterSpacing: 'normal',\n borderRadius: borders.radiusMedium,\n borderStyle: borders.style,\n transform: 'none',\n hoverTransform: 'none',\n smallHeight: forms.inputHeightSmall,\n smallPadding: spacing.xSmall,\n smallFontSize: typography.fontSizeSmall,\n mediumHeight: forms.inputHeightMedium,\n mediumPadding: spacing.small,\n mediumFontSize: typography.fontSizeMedium,\n largeHeight: forms.inputHeightLarge,\n largePadding: spacing.medium,\n largeFontSize: typography.fontSizeLarge,\n focusBorder: \"\".concat(focusOutline, \" \").concat(colors.borderBrand),\n focusShadow: 'none',\n lightBackground: colors.backgroundLightest,\n lightBorderColor: darken(colors.borderLight, 10),\n lightBorderStyle: borders.style,\n lightColor: colors.textDarkest,\n lightHoverBackground: darken(colors.backgroundLightest, 5),\n lightActiveBackground: colors.backgroundLightest,\n lightActiveBoxShadow: \"\".concat(activeShadow, \" \").concat(darken(colors.borderLightest, 25)),\n ghostBackground: 'transparent',\n ghostBorderColor: colors.borderBrand,\n ghostBorderStyle: borders.style,\n ghostColor: colors.textBrand,\n ghostHoverBackground: alpha(colors.backgroundBrand, 10),\n ghostActiveBackground: 'transparent',\n ghostActiveBoxShadow: \"inset 0 0 1px 1px \".concat(alpha(colors.borderBrand, 20)),\n ghostInverseBackground: 'transparent',\n ghostInverseBorderColor: colors.borderLightest,\n ghostInverseBorderStyle: borders.style,\n ghostInverseColor: colors.textLightest,\n ghostInverseHoverBackground: alpha(colors.backgroundLightest, 10),\n ghostInverseActiveBackground: 'transparent',\n ghostInverseActiveBoxShadow: \"inset 0 0 1px 1px \".concat(alpha(colors.borderLightest, 20)),\n linkColor: colors.textLink,\n linkBorderColor: 'transparent',\n linkFocusBorderColor: 'transparent',\n linkHoverColor: darken(colors.textLink, 10),\n linkTextDecoration: 'none',\n linkInverseColor: colors.textLight,\n inverseFocusBorder: \"\".concat(focusOutline, \" \").concat(colors.borderLightest),\n iconBorderColor: 'transparent',\n iconPadding: \"0 \".concat(spacing.xxSmall),\n iconColor: colors.textDarkest,\n iconHoverColor: colors.textBrand,\n iconActiveColor: darken(colors.textDarkest, 10),\n iconFocusBoxShadow: \"\".concat(focusShadow, \" \").concat(colors.borderBrand),\n iconPlusTextFontSize: '1.25rem',\n iconSizeSmall: '1rem',\n iconSizeMedium: '1.25rem',\n iconSizeLarge: '1.625rem',\n iconPlusTextMargin: spacing.xSmall,\n iconInverseColor: colors.textLightest,\n iconInverseHoverColor: colors.textLightest,\n iconInverseFocusBoxShadow: \"\".concat(focusShadow, \" \").concat(colors.borderLightest),\n fluidWidthLineHeight: typography.lineHeightFit\n }, buttonVariant('default', colors.backgroundLight, colors.textDarkest), {}, buttonVariant('primary', colors.backgroundBrand, colors.textLightest), {}, buttonVariant('success', colors.backgroundSuccess, colors.textLightest), {}, buttonVariant('danger', colors.backgroundDanger, colors.textLightest), {}, buttonVariant('circleDefault', colors.backgroundLight, colors.textDarkest), {}, buttonVariant('circlePrimary', colors.backgroundBrand, colors.textLightest), {}, buttonVariant('circleDanger', colors.backgroundDanger, colors.textLightest));\n}\n\ngenerator['canvas'] = function () {\n var variables = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n return _objectSpread({\n focusBorder: \"\".concat(focusOutline, \" \").concat(variables['ic-brand-primary']),\n ghostBorderColor: variables['ic-brand-button--primary-bgd'],\n ghostColor: variables['ic-brand-button--primary-bgd'],\n ghostHoverBackground: alpha(variables['ic-brand-button--primary-bgd'], 10),\n ghostActiveBoxShadow: \"inset 0 0 1px 1px \".concat(alpha(variables['ic-brand-button--primary-bgd'], 20)),\n linkColor: variables['ic-link-color'],\n linkHoverColor: darken(variables['ic-link-color'], 10),\n iconHoverColor: variables['ic-brand-primary'],\n iconFocusBoxShadow: \"\".concat(focusShadow, \" \").concat(variables['ic-brand-primary'])\n }, buttonVariant('primary', variables['ic-brand-button--primary-bgd'], variables['ic-brand-button--primary-text']), {}, buttonVariant('circlePrimary', variables['ic-brand-button--primary-bgd'], variables['ic-brand-button--primary-text']));\n};\n\ngenerator['canvas-a11y'] = generator['canvas-high-contrast'] = function () {\n var _ref3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},\n _ref3$colors = _ref3.colors,\n colors = _ref3$colors === void 0 ? {} : _ref3$colors;\n\n return {\n defaultBorderColor: colors.borderMedium,\n lightBorderColor: colors.borderMedium,\n circleDefaultBorderColor: colors.borderMedium,\n linkTextDecoration: 'underline',\n linkFocusBorderColor: colors.borderBrand\n };\n};","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport { warn as _warn } from \"@instructure/console\";\n\nvar _dec, _dec2, _dec3, _class, _class2, _temp;\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport keycode from 'keycode';\nimport { testable } from '@instructure/ui-testable';\nimport { themeable, ThemeablePropTypes } from '@instructure/ui-themeable';\nimport { omitProps, getElementType, deprecated } from '@instructure/ui-react-utils';\nimport { isActiveElement } from '@instructure/ui-dom-utils';\nimport { hasVisibleChildren } from '@instructure/ui-a11y-utils';\nimport { Flex } from '@instructure/ui-flex';\nimport { View } from '@instructure/ui-view';\nvar styles = {\n componentId: 'eHiXd',\n template: function template(theme) {\n return \"\\n\\n.eHiXd_bGBk,a.eHiXd_bGBk,button.eHiXd_bGBk,button.eHiXd_bGBk[type=button],button.eHiXd_bGBk[type=reset],button.eHiXd_bGBk[type=submit]{-moz-appearance:none;-ms-user-select:none;-webkit-appearance:none;-webkit-user-select:none;appearance:none;background:none;border-style:\".concat(theme.borderStyle || 'inherit', \";border-width:\").concat(theme.borderWidth || 'inherit', \";box-sizing:border-box;direction:inherit;display:inline-block;font-family:\").concat(theme.fontFamily || 'inherit', \";font-weight:\").concat(theme.fontWeight || 'inherit', \";height:auto;letter-spacing:\").concat(theme.letterSpacing || 'inherit', \";margin:0;max-width:100%;overflow:visible;padding:0;position:relative;text-decoration:none;text-transform:\").concat(theme.textTransform || 'inherit', \";touch-action:manipulation;transform:\").concat(theme.transform || 'inherit', \";transition:background 0.2s,transform 0.2s;user-select:none;vertical-align:middle;width:auto}\\n\\n.eHiXd_bGBk::-moz-focus-inner,a.eHiXd_bGBk::-moz-focus-inner,button.eHiXd_bGBk::-moz-focus-inner,button.eHiXd_bGBk[type=button]::-moz-focus-inner,button.eHiXd_bGBk[type=reset]::-moz-focus-inner,button.eHiXd_bGBk[type=submit]::-moz-focus-inner{border:0}\\n\\n.eHiXd_bGBk.eHiXd_ywdX,a.eHiXd_bGBk.eHiXd_ywdX,button.eHiXd_bGBk.eHiXd_ywdX,button.eHiXd_bGBk[type=button].eHiXd_ywdX,button.eHiXd_bGBk[type=reset].eHiXd_ywdX,button.eHiXd_bGBk[type=submit].eHiXd_ywdX{opacity:0.5;pointer-events:none}\\n\\n.eHiXd_bGBk:before,a.eHiXd_bGBk:before,button.eHiXd_bGBk:before,button.eHiXd_bGBk[type=button]:before,button.eHiXd_bGBk[type=reset]:before,button.eHiXd_bGBk[type=submit]:before{border:\").concat(theme.focusBorder || 'inherit', \";bottom:-0.3125rem;box-sizing:border-box;content:\\\"\\\";left:-0.3125rem;opacity:0;pointer-events:none;position:absolute;right:-0.3125rem;top:-0.3125rem;transform:scale(0.9);transition:all 0.2s}\\n\\n.eHiXd_bGBk:focus,a.eHiXd_bGBk:focus,button.eHiXd_bGBk:focus,button.eHiXd_bGBk[type=button]:focus,button.eHiXd_bGBk[type=reset]:focus,button.eHiXd_bGBk[type=submit]:focus{outline:none}\\n\\n.eHiXd_bGBk:focus:before,a.eHiXd_bGBk:focus:before,button.eHiXd_bGBk:focus:before,button.eHiXd_bGBk[type=button]:focus:before,button.eHiXd_bGBk[type=reset]:focus:before,button.eHiXd_bGBk[type=submit]:focus:before{opacity:1;transform:scale(1)}\\n\\n.eHiXd_bGBk:hover,a.eHiXd_bGBk:hover,button.eHiXd_bGBk:hover,button.eHiXd_bGBk[type=button]:hover,button.eHiXd_bGBk[type=reset]:hover,button.eHiXd_bGBk[type=submit]:hover{transform:\").concat(theme.hoverTransform || 'inherit', \"}\\n\\n.eHiXd_bGBk *,a.eHiXd_bGBk *,button.eHiXd_bGBk *,button.eHiXd_bGBk[type=button] *,button.eHiXd_bGBk[type=reset] *,button.eHiXd_bGBk[type=submit] *{pointer-events:none}\\n\\n.eHiXd_caGd,a.eHiXd_caGd,button.eHiXd_caGd,button.eHiXd_caGd[type=button],button.eHiXd_caGd[type=reset],button.eHiXd_caGd[type=submit]{box-sizing:border-box}\\n\\n.eHiXd_cuTS,a.eHiXd_cuTS,button.eHiXd_cuTS,button.eHiXd_cuTS[type=button],button.eHiXd_cuTS[type=reset],button.eHiXd_cuTS[type=submit]{border-radius:\").concat(theme.borderRadius || 'inherit', \"}\\n\\n.eHiXd_cuTS:before,a.eHiXd_cuTS:before,button.eHiXd_cuTS:before,button.eHiXd_cuTS[type=button]:before,button.eHiXd_cuTS[type=reset]:before,button.eHiXd_cuTS[type=submit]:before{border-radius:calc(\").concat(theme.borderRadius || 'inherit', \"*1.5)}\\n\\n.eHiXd_dEqw,.eHiXd_dEqw:before,a.eHiXd_dEqw,a.eHiXd_dEqw:before,button.eHiXd_dEqw,button.eHiXd_dEqw:before,button.eHiXd_dEqw[type=button],button.eHiXd_dEqw[type=button]:before,button.eHiXd_dEqw[type=reset],button.eHiXd_dEqw[type=reset]:before,button.eHiXd_dEqw[type=submit],button.eHiXd_dEqw[type=submit]:before{border-radius:50%}\\n\\n.eHiXd_bPzo,a.eHiXd_bPzo,button.eHiXd_bPzo,button.eHiXd_bPzo[type=button],button.eHiXd_bPzo[type=reset],button.eHiXd_bPzo[type=submit]{line-height:1;text-align:center;text-decoration:none}\\n\\n[dir=ltr] .eHiXd_bPzo,[dir=ltr] a.eHiXd_bPzo,[dir=ltr] button.eHiXd_bPzo,[dir=ltr] button.eHiXd_bPzo[type=button],[dir=ltr] button.eHiXd_bPzo[type=reset],[dir=ltr] button.eHiXd_bPzo[type=submit],[dir=rtl] .eHiXd_bPzo,[dir=rtl] a.eHiXd_bPzo,[dir=rtl] button.eHiXd_bPzo,[dir=rtl] button.eHiXd_bPzo[type=button],[dir=rtl] button.eHiXd_bPzo[type=reset],[dir=rtl] button.eHiXd_bPzo[type=submit]{text-align:center}\\n\\n.eHiXd_bPzo:active,.eHiXd_bPzo:focus,.eHiXd_bPzo:hover,a.eHiXd_bPzo:active,a.eHiXd_bPzo:focus,a.eHiXd_bPzo:hover,button.eHiXd_bPzo:active,button.eHiXd_bPzo:focus,button.eHiXd_bPzo:hover,button.eHiXd_bPzo[type=button]:active,button.eHiXd_bPzo[type=button]:focus,button.eHiXd_bPzo[type=button]:hover,button.eHiXd_bPzo[type=reset]:active,button.eHiXd_bPzo[type=reset]:focus,button.eHiXd_bPzo[type=reset]:hover,button.eHiXd_bPzo[type=submit]:active,button.eHiXd_bPzo[type=submit]:focus,button.eHiXd_bPzo[type=submit]:hover{text-decoration:none}\\n\\n.eHiXd_bPzo.eHiXd_doqw,a.eHiXd_bPzo.eHiXd_doqw,button.eHiXd_bPzo.eHiXd_doqw,button.eHiXd_bPzo[type=button].eHiXd_doqw,button.eHiXd_bPzo[type=reset].eHiXd_doqw,button.eHiXd_bPzo[type=submit].eHiXd_doqw{height:\").concat(theme.smallHeight || 'inherit', \";width:\").concat(theme.smallHeight || 'inherit', \"}\\n\\n.eHiXd_bPzo.eHiXd_doqw:not(.eHiXd_wWyq),a.eHiXd_bPzo.eHiXd_doqw:not(.eHiXd_wWyq),button.eHiXd_bPzo.eHiXd_doqw:not(.eHiXd_wWyq),button.eHiXd_bPzo[type=button].eHiXd_doqw:not(.eHiXd_wWyq),button.eHiXd_bPzo[type=reset].eHiXd_doqw:not(.eHiXd_wWyq),button.eHiXd_bPzo[type=submit].eHiXd_doqw:not(.eHiXd_wWyq){font-size:1rem}\\n\\n.eHiXd_bPzo.eHiXd_doqw .eHiXd_eoCh,a.eHiXd_bPzo.eHiXd_doqw .eHiXd_eoCh,button.eHiXd_bPzo.eHiXd_doqw .eHiXd_eoCh,button.eHiXd_bPzo[type=button].eHiXd_doqw .eHiXd_eoCh,button.eHiXd_bPzo[type=reset].eHiXd_doqw .eHiXd_eoCh,button.eHiXd_bPzo[type=submit].eHiXd_doqw .eHiXd_eoCh{font-size:\").concat(theme.iconSizeSmall || 'inherit', \"}\\n\\n.eHiXd_bPzo.eHiXd_ycrn,a.eHiXd_bPzo.eHiXd_ycrn,button.eHiXd_bPzo.eHiXd_ycrn,button.eHiXd_bPzo[type=button].eHiXd_ycrn,button.eHiXd_bPzo[type=reset].eHiXd_ycrn,button.eHiXd_bPzo[type=submit].eHiXd_ycrn{height:\").concat(theme.mediumHeight || 'inherit', \";width:\").concat(theme.mediumHeight || 'inherit', \"}\\n\\n.eHiXd_bPzo.eHiXd_ycrn:not(.eHiXd_wWyq),a.eHiXd_bPzo.eHiXd_ycrn:not(.eHiXd_wWyq),button.eHiXd_bPzo.eHiXd_ycrn:not(.eHiXd_wWyq),button.eHiXd_bPzo[type=button].eHiXd_ycrn:not(.eHiXd_wWyq),button.eHiXd_bPzo[type=reset].eHiXd_ycrn:not(.eHiXd_wWyq),button.eHiXd_bPzo[type=submit].eHiXd_ycrn:not(.eHiXd_wWyq){font-size:1.25rem}\\n\\n.eHiXd_bPzo.eHiXd_ycrn .eHiXd_eoCh,a.eHiXd_bPzo.eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_bPzo.eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_bPzo[type=button].eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_bPzo[type=reset].eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_bPzo[type=submit].eHiXd_ycrn .eHiXd_eoCh{font-size:\").concat(theme.iconSizeMedium || 'inherit', \"}\\n\\n.eHiXd_bPzo.eHiXd_cMDj,a.eHiXd_bPzo.eHiXd_cMDj,button.eHiXd_bPzo.eHiXd_cMDj,button.eHiXd_bPzo[type=button].eHiXd_cMDj,button.eHiXd_bPzo[type=reset].eHiXd_cMDj,button.eHiXd_bPzo[type=submit].eHiXd_cMDj{height:\").concat(theme.largeHeight || 'inherit', \";width:\").concat(theme.largeHeight || 'inherit', \"}\\n\\n.eHiXd_bPzo.eHiXd_cMDj:not(.eHiXd_wWyq),a.eHiXd_bPzo.eHiXd_cMDj:not(.eHiXd_wWyq),button.eHiXd_bPzo.eHiXd_cMDj:not(.eHiXd_wWyq),button.eHiXd_bPzo[type=button].eHiXd_cMDj:not(.eHiXd_wWyq),button.eHiXd_bPzo[type=reset].eHiXd_cMDj:not(.eHiXd_wWyq),button.eHiXd_bPzo[type=submit].eHiXd_cMDj:not(.eHiXd_wWyq){font-size:1.75rem}\\n\\n.eHiXd_bPzo.eHiXd_cMDj .eHiXd_eoCh,a.eHiXd_bPzo.eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_bPzo.eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_bPzo[type=button].eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_bPzo[type=reset].eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_bPzo[type=submit].eHiXd_cMDj .eHiXd_eoCh{font-size:\").concat(theme.iconSizeLarge || 'inherit', \"}\\n\\n.eHiXd_bPzo .eHiXd_caGd,a.eHiXd_bPzo .eHiXd_caGd,button.eHiXd_bPzo .eHiXd_caGd,button.eHiXd_bPzo[type=button] .eHiXd_caGd,button.eHiXd_bPzo[type=reset] .eHiXd_caGd,button.eHiXd_bPzo[type=submit] .eHiXd_caGd{align-items:center;display:flex;height:100%;justify-content:center}\\n\\n.eHiXd_bNlk.eHiXd_doqw,.eHiXd_eESV.eHiXd_doqw,a.eHiXd_bNlk.eHiXd_doqw,a.eHiXd_eESV.eHiXd_doqw,button.eHiXd_bNlk.eHiXd_doqw,button.eHiXd_bNlk[type=button].eHiXd_doqw,button.eHiXd_bNlk[type=reset].eHiXd_doqw,button.eHiXd_bNlk[type=submit].eHiXd_doqw,button.eHiXd_eESV.eHiXd_doqw,button.eHiXd_eESV[type=button].eHiXd_doqw,button.eHiXd_eESV[type=reset].eHiXd_doqw,button.eHiXd_eESV[type=submit].eHiXd_doqw{font-size:\").concat(theme.smallFontSize || 'inherit', \";line-height:calc(\").concat(theme.smallHeight || 'inherit', \" - \").concat(theme.borderWidth || 'inherit', \"*2);padding-left:\").concat(theme.smallPadding || 'inherit', \";padding-right:\").concat(theme.smallPadding || 'inherit', \"}\\n\\n.eHiXd_bNlk.eHiXd_doqw .eHiXd_eoCh,.eHiXd_eESV.eHiXd_doqw .eHiXd_eoCh,a.eHiXd_bNlk.eHiXd_doqw .eHiXd_eoCh,a.eHiXd_eESV.eHiXd_doqw .eHiXd_eoCh,button.eHiXd_bNlk.eHiXd_doqw .eHiXd_eoCh,button.eHiXd_bNlk[type=button].eHiXd_doqw .eHiXd_eoCh,button.eHiXd_bNlk[type=reset].eHiXd_doqw .eHiXd_eoCh,button.eHiXd_bNlk[type=submit].eHiXd_doqw .eHiXd_eoCh,button.eHiXd_eESV.eHiXd_doqw .eHiXd_eoCh,button.eHiXd_eESV[type=button].eHiXd_doqw .eHiXd_eoCh,button.eHiXd_eESV[type=reset].eHiXd_doqw .eHiXd_eoCh,button.eHiXd_eESV[type=submit].eHiXd_doqw .eHiXd_eoCh{font-size:\").concat(theme.iconSizeSmall || 'inherit', \"}\\n\\n.eHiXd_bNlk.eHiXd_ycrn,.eHiXd_eESV.eHiXd_ycrn,a.eHiXd_bNlk.eHiXd_ycrn,a.eHiXd_eESV.eHiXd_ycrn,button.eHiXd_bNlk.eHiXd_ycrn,button.eHiXd_bNlk[type=button].eHiXd_ycrn,button.eHiXd_bNlk[type=reset].eHiXd_ycrn,button.eHiXd_bNlk[type=submit].eHiXd_ycrn,button.eHiXd_eESV.eHiXd_ycrn,button.eHiXd_eESV[type=button].eHiXd_ycrn,button.eHiXd_eESV[type=reset].eHiXd_ycrn,button.eHiXd_eESV[type=submit].eHiXd_ycrn{font-size:\").concat(theme.mediumFontSize || 'inherit', \";line-height:calc(\").concat(theme.mediumHeight || 'inherit', \" - \").concat(theme.borderWidth || 'inherit', \"*2);padding-left:\").concat(theme.mediumPadding || 'inherit', \";padding-right:\").concat(theme.mediumPadding || 'inherit', \"}\\n\\n.eHiXd_bNlk.eHiXd_ycrn .eHiXd_eoCh,.eHiXd_eESV.eHiXd_ycrn .eHiXd_eoCh,a.eHiXd_bNlk.eHiXd_ycrn .eHiXd_eoCh,a.eHiXd_eESV.eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_bNlk.eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_bNlk[type=button].eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_bNlk[type=reset].eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_bNlk[type=submit].eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_eESV.eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_eESV[type=button].eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_eESV[type=reset].eHiXd_ycrn .eHiXd_eoCh,button.eHiXd_eESV[type=submit].eHiXd_ycrn .eHiXd_eoCh{font-size:\").concat(theme.iconSizeMedium || 'inherit', \"}\\n\\n.eHiXd_bNlk.eHiXd_cMDj,.eHiXd_eESV.eHiXd_cMDj,a.eHiXd_bNlk.eHiXd_cMDj,a.eHiXd_eESV.eHiXd_cMDj,button.eHiXd_bNlk.eHiXd_cMDj,button.eHiXd_bNlk[type=button].eHiXd_cMDj,button.eHiXd_bNlk[type=reset].eHiXd_cMDj,button.eHiXd_bNlk[type=submit].eHiXd_cMDj,button.eHiXd_eESV.eHiXd_cMDj,button.eHiXd_eESV[type=button].eHiXd_cMDj,button.eHiXd_eESV[type=reset].eHiXd_cMDj,button.eHiXd_eESV[type=submit].eHiXd_cMDj{font-size:\").concat(theme.largeFontSize || 'inherit', \";line-height:calc(\").concat(theme.largeHeight || 'inherit', \" - \").concat(theme.borderWidth || 'inherit', \"*2);padding-left:\").concat(theme.largePadding || 'inherit', \";padding-right:\").concat(theme.largePadding || 'inherit', \"}\\n\\n.eHiXd_bNlk.eHiXd_cMDj .eHiXd_eoCh,.eHiXd_eESV.eHiXd_cMDj .eHiXd_eoCh,a.eHiXd_bNlk.eHiXd_cMDj .eHiXd_eoCh,a.eHiXd_eESV.eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_bNlk.eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_bNlk[type=button].eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_bNlk[type=reset].eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_bNlk[type=submit].eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_eESV.eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_eESV[type=button].eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_eESV[type=reset].eHiXd_cMDj .eHiXd_eoCh,button.eHiXd_eESV[type=submit].eHiXd_cMDj .eHiXd_eoCh{font-size:\").concat(theme.iconSizeLarge || 'inherit', \"}\\n\\n.eHiXd_bNlk .eHiXd_caGd,.eHiXd_eESV .eHiXd_caGd,a.eHiXd_bNlk .eHiXd_caGd,a.eHiXd_eESV .eHiXd_caGd,button.eHiXd_bNlk .eHiXd_caGd,button.eHiXd_bNlk[type=button] .eHiXd_caGd,button.eHiXd_bNlk[type=reset] .eHiXd_caGd,button.eHiXd_bNlk[type=submit] .eHiXd_caGd,button.eHiXd_eESV .eHiXd_caGd,button.eHiXd_eESV[type=button] .eHiXd_caGd,button.eHiXd_eESV[type=reset] .eHiXd_caGd,button.eHiXd_eESV[type=submit] .eHiXd_caGd{display:block}\\n\\n.eHiXd_bNlk .eHiXd_eoCh,.eHiXd_eESV .eHiXd_eoCh,a.eHiXd_bNlk .eHiXd_eoCh,a.eHiXd_eESV .eHiXd_eoCh,button.eHiXd_bNlk .eHiXd_eoCh,button.eHiXd_bNlk[type=button] .eHiXd_eoCh,button.eHiXd_bNlk[type=reset] .eHiXd_eoCh,button.eHiXd_bNlk[type=submit] .eHiXd_eoCh,button.eHiXd_eESV .eHiXd_eoCh,button.eHiXd_eESV[type=button] .eHiXd_eoCh,button.eHiXd_eESV[type=reset] .eHiXd_eoCh,button.eHiXd_eESV[type=submit] .eHiXd_eoCh{display:inline-block;margin-bottom:0.1875rem;vertical-align:middle}\\n\\n.eHiXd_bNlk:not(.eHiXd_wWyq) .eHiXd_caGd>svg,.eHiXd_eESV:not(.eHiXd_wWyq) .eHiXd_caGd>svg,a.eHiXd_bNlk:not(.eHiXd_wWyq) .eHiXd_caGd>svg,a.eHiXd_eESV:not(.eHiXd_wWyq) .eHiXd_caGd>svg,button.eHiXd_bNlk:not(.eHiXd_wWyq) .eHiXd_caGd>svg,button.eHiXd_bNlk[type=button]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,button.eHiXd_bNlk[type=reset]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,button.eHiXd_bNlk[type=submit]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,button.eHiXd_eESV:not(.eHiXd_wWyq) .eHiXd_caGd>svg,button.eHiXd_eESV[type=button]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,button.eHiXd_eESV[type=reset]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,button.eHiXd_eESV[type=submit]:not(.eHiXd_wWyq) .eHiXd_caGd>svg{-webkit-margin-end:\").concat(theme.iconPlusTextMargin || 'inherit', \";-webkit-margin-start:auto;display:inline-block;font-size:\").concat(theme.iconPlusTextFontSize || 'inherit', \";margin-inline-end:\").concat(theme.iconPlusTextMargin || 'inherit', \";margin-inline-start:auto;transform:translateY(-0.0625rem);vertical-align:middle}\\n\\n[dir=ltr] .eHiXd_bNlk:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] .eHiXd_eESV:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] a.eHiXd_bNlk:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] a.eHiXd_eESV:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] button.eHiXd_bNlk:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] button.eHiXd_bNlk[type=button]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] button.eHiXd_bNlk[type=reset]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] button.eHiXd_bNlk[type=submit]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] button.eHiXd_eESV:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] button.eHiXd_eESV[type=button]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] button.eHiXd_eESV[type=reset]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=ltr] button.eHiXd_eESV[type=submit]:not(.eHiXd_wWyq) .eHiXd_caGd>svg{margin-left:auto;margin-right:\").concat(theme.iconPlusTextMargin || 'inherit', \"}\\n\\n[dir=rtl] .eHiXd_bNlk:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] .eHiXd_eESV:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] a.eHiXd_bNlk:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] a.eHiXd_eESV:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] button.eHiXd_bNlk:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] button.eHiXd_bNlk[type=button]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] button.eHiXd_bNlk[type=reset]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] button.eHiXd_bNlk[type=submit]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] button.eHiXd_eESV:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] button.eHiXd_eESV[type=button]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] button.eHiXd_eESV[type=reset]:not(.eHiXd_wWyq) .eHiXd_caGd>svg,[dir=rtl] button.eHiXd_eESV[type=submit]:not(.eHiXd_wWyq) .eHiXd_caGd>svg{margin-left:\").concat(theme.iconPlusTextMargin || 'inherit', \";margin-right:auto}\\n\\n.eHiXd_bNlk .eHiXd_caGd,a.eHiXd_bNlk .eHiXd_caGd,button.eHiXd_bNlk .eHiXd_caGd,button.eHiXd_bNlk[type=button] .eHiXd_caGd,button.eHiXd_bNlk[type=reset] .eHiXd_caGd,button.eHiXd_bNlk[type=submit] .eHiXd_caGd{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\\n\\n.eHiXd_eESV,a.eHiXd_eESV,button.eHiXd_eESV,button.eHiXd_eESV[type=button],button.eHiXd_eESV[type=reset],button.eHiXd_eESV[type=submit]{display:block;text-align:start;width:100%}\\n\\n[dir=ltr] .eHiXd_eESV,[dir=ltr] a.eHiXd_eESV,[dir=ltr] button.eHiXd_eESV,[dir=ltr] button.eHiXd_eESV[type=button],[dir=ltr] button.eHiXd_eESV[type=reset],[dir=ltr] button.eHiXd_eESV[type=submit]{text-align:left}\\n\\n[dir=rtl] .eHiXd_eESV,[dir=rtl] a.eHiXd_eESV,[dir=rtl] button.eHiXd_eESV,[dir=rtl] button.eHiXd_eESV[type=button],[dir=rtl] button.eHiXd_eESV[type=reset],[dir=rtl] button.eHiXd_eESV[type=submit]{text-align:right}\\n\\n.eHiXd_eESV.eHiXd_doqw .eHiXd_caGd,a.eHiXd_eESV.eHiXd_doqw .eHiXd_caGd,button.eHiXd_eESV.eHiXd_doqw .eHiXd_caGd,button.eHiXd_eESV[type=button].eHiXd_doqw .eHiXd_caGd,button.eHiXd_eESV[type=reset].eHiXd_doqw .eHiXd_caGd,button.eHiXd_eESV[type=submit].eHiXd_doqw .eHiXd_caGd{padding-bottom:0.3125rem;padding-top:0.375rem}\\n\\n.eHiXd_eESV.eHiXd_ycrn .eHiXd_caGd,a.eHiXd_eESV.eHiXd_ycrn .eHiXd_caGd,button.eHiXd_eESV.eHiXd_ycrn .eHiXd_caGd,button.eHiXd_eESV[type=button].eHiXd_ycrn .eHiXd_caGd,button.eHiXd_eESV[type=reset].eHiXd_ycrn .eHiXd_caGd,button.eHiXd_eESV[type=submit].eHiXd_ycrn .eHiXd_caGd{padding-bottom:0.5625rem;padding-top:0.5625rem}\\n\\n.eHiXd_eESV.eHiXd_cMDj .eHiXd_caGd,a.eHiXd_eESV.eHiXd_cMDj .eHiXd_caGd,button.eHiXd_eESV.eHiXd_cMDj .eHiXd_caGd,button.eHiXd_eESV[type=button].eHiXd_cMDj .eHiXd_caGd,button.eHiXd_eESV[type=reset].eHiXd_cMDj .eHiXd_caGd,button.eHiXd_eESV[type=submit].eHiXd_cMDj .eHiXd_caGd{padding-bottom:0.6875rem;padding-top:0.6875rem}\\n\\n.eHiXd_eESV .eHiXd_caGd,a.eHiXd_eESV .eHiXd_caGd,button.eHiXd_eESV .eHiXd_caGd,button.eHiXd_eESV[type=button] .eHiXd_caGd,button.eHiXd_eESV[type=reset] .eHiXd_caGd,button.eHiXd_eESV[type=submit] .eHiXd_caGd{-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;line-height:\").concat(theme.fluidWidthLineHeight || 'inherit', \";word-wrap:break-word}\\n\\n.eHiXd_ddES,.eHiXd_fnSs,a.eHiXd_ddES,a.eHiXd_fnSs,button.eHiXd_ddES,button.eHiXd_ddES[type=button],button.eHiXd_ddES[type=reset],button.eHiXd_ddES[type=submit],button.eHiXd_fnSs,button.eHiXd_fnSs[type=button],button.eHiXd_fnSs[type=reset],button.eHiXd_fnSs[type=submit]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}\\n\\n.eHiXd_ddES,a.eHiXd_ddES,button.eHiXd_ddES,button.eHiXd_ddES[type=button],button.eHiXd_ddES[type=reset],button.eHiXd_ddES[type=submit]{background:\").concat(theme.defaultBackground || 'inherit', \";border-color:\").concat(theme.defaultBorderColor || 'inherit', \";color:\").concat(theme.defaultColor || 'inherit', \"}\\n\\n.eHiXd_ddES:active,.eHiXd_ddES:hover,a.eHiXd_ddES:active,a.eHiXd_ddES:hover,button.eHiXd_ddES:active,button.eHiXd_ddES:hover,button.eHiXd_ddES[type=button]:active,button.eHiXd_ddES[type=button]:hover,button.eHiXd_ddES[type=reset]:active,button.eHiXd_ddES[type=reset]:hover,button.eHiXd_ddES[type=submit]:active,button.eHiXd_ddES[type=submit]:hover{background:\").concat(theme.defaultHoverBackground || 'inherit', \"}\\n\\n.eHiXd_ddES:active,.eHiXd_ddES:focus,.eHiXd_ddES:hover,a.eHiXd_ddES:active,a.eHiXd_ddES:focus,a.eHiXd_ddES:hover,button.eHiXd_ddES:active,button.eHiXd_ddES:focus,button.eHiXd_ddES:hover,button.eHiXd_ddES[type=button]:active,button.eHiXd_ddES[type=button]:focus,button.eHiXd_ddES[type=button]:hover,button.eHiXd_ddES[type=reset]:active,button.eHiXd_ddES[type=reset]:focus,button.eHiXd_ddES[type=reset]:hover,button.eHiXd_ddES[type=submit]:active,button.eHiXd_ddES[type=submit]:focus,button.eHiXd_ddES[type=submit]:hover{color:\").concat(theme.defaultColor || 'inherit', \"}\\n\\n.eHiXd_ddES:active,a.eHiXd_ddES:active,button.eHiXd_ddES:active,button.eHiXd_ddES[type=button]:active,button.eHiXd_ddES[type=reset]:active,button.eHiXd_ddES[type=submit]:active{background:\").concat(theme.defaultActiveBackground || 'inherit', \";box-shadow:\").concat(theme.defaultActiveBoxShadow || 'inherit', \"}\\n\\n.eHiXd_bXiG,a.eHiXd_bXiG,button.eHiXd_bXiG,button.eHiXd_bXiG[type=button],button.eHiXd_bXiG[type=reset],button.eHiXd_bXiG[type=submit]{background:\").concat(theme.primaryBackground || 'inherit', \";border-color:\").concat(theme.primaryBorderColor || 'inherit', \";color:\").concat(theme.primaryColor || 'inherit', \"}\\n\\n.eHiXd_bXiG:active,.eHiXd_bXiG:hover,a.eHiXd_bXiG:active,a.eHiXd_bXiG:hover,button.eHiXd_bXiG:active,button.eHiXd_bXiG:hover,button.eHiXd_bXiG[type=button]:active,button.eHiXd_bXiG[type=button]:hover,button.eHiXd_bXiG[type=reset]:active,button.eHiXd_bXiG[type=reset]:hover,button.eHiXd_bXiG[type=submit]:active,button.eHiXd_bXiG[type=submit]:hover{background:\").concat(theme.primaryHoverBackground || 'inherit', \"}\\n\\n.eHiXd_bXiG:active,.eHiXd_bXiG:focus,.eHiXd_bXiG:hover,a.eHiXd_bXiG:active,a.eHiXd_bXiG:focus,a.eHiXd_bXiG:hover,button.eHiXd_bXiG:active,button.eHiXd_bXiG:focus,button.eHiXd_bXiG:hover,button.eHiXd_bXiG[type=button]:active,button.eHiXd_bXiG[type=button]:focus,button.eHiXd_bXiG[type=button]:hover,button.eHiXd_bXiG[type=reset]:active,button.eHiXd_bXiG[type=reset]:focus,button.eHiXd_bXiG[type=reset]:hover,button.eHiXd_bXiG[type=submit]:active,button.eHiXd_bXiG[type=submit]:focus,button.eHiXd_bXiG[type=submit]:hover{color:\").concat(theme.primaryColor || 'inherit', \"}\\n\\n.eHiXd_bXiG:active,a.eHiXd_bXiG:active,button.eHiXd_bXiG:active,button.eHiXd_bXiG[type=button]:active,button.eHiXd_bXiG[type=reset]:active,button.eHiXd_bXiG[type=submit]:active{background:\").concat(theme.primaryActiveBackground || 'inherit', \";box-shadow:\").concat(theme.primaryActiveBoxShadow || 'inherit', \"}\\n\\n.eHiXd_cOXX,a.eHiXd_cOXX,button.eHiXd_cOXX,button.eHiXd_cOXX[type=button],button.eHiXd_cOXX[type=reset],button.eHiXd_cOXX[type=submit]{background:\").concat(theme.successBackground || 'inherit', \";border-color:\").concat(theme.successBorderColor || 'inherit', \";color:\").concat(theme.successColor || 'inherit', \"}\\n\\n.eHiXd_cOXX:active,.eHiXd_cOXX:hover,a.eHiXd_cOXX:active,a.eHiXd_cOXX:hover,button.eHiXd_cOXX:active,button.eHiXd_cOXX:hover,button.eHiXd_cOXX[type=button]:active,button.eHiXd_cOXX[type=button]:hover,button.eHiXd_cOXX[type=reset]:active,button.eHiXd_cOXX[type=reset]:hover,button.eHiXd_cOXX[type=submit]:active,button.eHiXd_cOXX[type=submit]:hover{background:\").concat(theme.successHoverBackground || 'inherit', \"}\\n\\n.eHiXd_cOXX:active,.eHiXd_cOXX:focus,.eHiXd_cOXX:hover,a.eHiXd_cOXX:active,a.eHiXd_cOXX:focus,a.eHiXd_cOXX:hover,button.eHiXd_cOXX:active,button.eHiXd_cOXX:focus,button.eHiXd_cOXX:hover,button.eHiXd_cOXX[type=button]:active,button.eHiXd_cOXX[type=button]:focus,button.eHiXd_cOXX[type=button]:hover,button.eHiXd_cOXX[type=reset]:active,button.eHiXd_cOXX[type=reset]:focus,button.eHiXd_cOXX[type=reset]:hover,button.eHiXd_cOXX[type=submit]:active,button.eHiXd_cOXX[type=submit]:focus,button.eHiXd_cOXX[type=submit]:hover{color:\").concat(theme.successColor || 'inherit', \"}\\n\\n.eHiXd_cOXX:active,a.eHiXd_cOXX:active,button.eHiXd_cOXX:active,button.eHiXd_cOXX[type=button]:active,button.eHiXd_cOXX[type=reset]:active,button.eHiXd_cOXX[type=submit]:active{background:\").concat(theme.successActiveBackground || 'inherit', \";box-shadow:\").concat(theme.successActiveBoxShadow || 'inherit', \"}\\n\\n.eHiXd_zGXc,a.eHiXd_zGXc,button.eHiXd_zGXc,button.eHiXd_zGXc[type=button],button.eHiXd_zGXc[type=reset],button.eHiXd_zGXc[type=submit]{background:\").concat(theme.dangerBackground || 'inherit', \";border-color:\").concat(theme.dangerBorderColor || 'inherit', \";color:\").concat(theme.dangerColor || 'inherit', \"}\\n\\n.eHiXd_zGXc:active,.eHiXd_zGXc:hover,a.eHiXd_zGXc:active,a.eHiXd_zGXc:hover,button.eHiXd_zGXc:active,button.eHiXd_zGXc:hover,button.eHiXd_zGXc[type=button]:active,button.eHiXd_zGXc[type=button]:hover,button.eHiXd_zGXc[type=reset]:active,button.eHiXd_zGXc[type=reset]:hover,button.eHiXd_zGXc[type=submit]:active,button.eHiXd_zGXc[type=submit]:hover{background:\").concat(theme.dangerHoverBackground || 'inherit', \"}\\n\\n.eHiXd_zGXc:active,.eHiXd_zGXc:focus,.eHiXd_zGXc:hover,a.eHiXd_zGXc:active,a.eHiXd_zGXc:focus,a.eHiXd_zGXc:hover,button.eHiXd_zGXc:active,button.eHiXd_zGXc:focus,button.eHiXd_zGXc:hover,button.eHiXd_zGXc[type=button]:active,button.eHiXd_zGXc[type=button]:focus,button.eHiXd_zGXc[type=button]:hover,button.eHiXd_zGXc[type=reset]:active,button.eHiXd_zGXc[type=reset]:focus,button.eHiXd_zGXc[type=reset]:hover,button.eHiXd_zGXc[type=submit]:active,button.eHiXd_zGXc[type=submit]:focus,button.eHiXd_zGXc[type=submit]:hover{color:\").concat(theme.dangerColor || 'inherit', \"}\\n\\n.eHiXd_zGXc:active,a.eHiXd_zGXc:active,button.eHiXd_zGXc:active,button.eHiXd_zGXc[type=button]:active,button.eHiXd_zGXc[type=reset]:active,button.eHiXd_zGXc[type=submit]:active{background:\").concat(theme.dangerActiveBackground || 'inherit', \";box-shadow:\").concat(theme.dangerActiveBoxShadow || 'inherit', \"}\\n\\n.eHiXd_eYmo,a.eHiXd_eYmo,button.eHiXd_eYmo,button.eHiXd_eYmo[type=button],button.eHiXd_eYmo[type=reset],button.eHiXd_eYmo[type=submit]{background:\").concat(theme.lightBackground || 'inherit', \";border-color:\").concat(theme.lightBorderColor || 'inherit', \";color:\").concat(theme.lightColor || 'inherit', \"}\\n\\n.eHiXd_eYmo:active,.eHiXd_eYmo:hover,a.eHiXd_eYmo:active,a.eHiXd_eYmo:hover,button.eHiXd_eYmo:active,button.eHiXd_eYmo:hover,button.eHiXd_eYmo[type=button]:active,button.eHiXd_eYmo[type=button]:hover,button.eHiXd_eYmo[type=reset]:active,button.eHiXd_eYmo[type=reset]:hover,button.eHiXd_eYmo[type=submit]:active,button.eHiXd_eYmo[type=submit]:hover{background:\").concat(theme.lightHoverBackground || 'inherit', \"}\\n\\n.eHiXd_eYmo:active,.eHiXd_eYmo:focus,.eHiXd_eYmo:hover,a.eHiXd_eYmo:active,a.eHiXd_eYmo:focus,a.eHiXd_eYmo:hover,button.eHiXd_eYmo:active,button.eHiXd_eYmo:focus,button.eHiXd_eYmo:hover,button.eHiXd_eYmo[type=button]:active,button.eHiXd_eYmo[type=button]:focus,button.eHiXd_eYmo[type=button]:hover,button.eHiXd_eYmo[type=reset]:active,button.eHiXd_eYmo[type=reset]:focus,button.eHiXd_eYmo[type=reset]:hover,button.eHiXd_eYmo[type=submit]:active,button.eHiXd_eYmo[type=submit]:focus,button.eHiXd_eYmo[type=submit]:hover{color:\").concat(theme.lightColor || 'inherit', \"}\\n\\n.eHiXd_eYmo:active,a.eHiXd_eYmo:active,button.eHiXd_eYmo:active,button.eHiXd_eYmo[type=button]:active,button.eHiXd_eYmo[type=reset]:active,button.eHiXd_eYmo[type=submit]:active{background:\").concat(theme.lightActiveBackground || 'inherit', \";box-shadow:\").concat(theme.lightActiveBoxShadow || 'inherit', \"}\\n\\n.eHiXd_fnSs,a.eHiXd_fnSs,button.eHiXd_fnSs,button.eHiXd_fnSs[type=button],button.eHiXd_fnSs[type=reset],button.eHiXd_fnSs[type=submit]{background:\").concat(theme.ghostBackground || 'inherit', \";border-color:\").concat(theme.ghostBorderColor || 'inherit', \";border-style:\").concat(theme.ghostBorderStyle || 'inherit', \";color:\").concat(theme.ghostColor || 'inherit', \"}\\n\\n.eHiXd_fnSs:active,.eHiXd_fnSs:hover,a.eHiXd_fnSs:active,a.eHiXd_fnSs:hover,button.eHiXd_fnSs:active,button.eHiXd_fnSs:hover,button.eHiXd_fnSs[type=button]:active,button.eHiXd_fnSs[type=button]:hover,button.eHiXd_fnSs[type=reset]:active,button.eHiXd_fnSs[type=reset]:hover,button.eHiXd_fnSs[type=submit]:active,button.eHiXd_fnSs[type=submit]:hover{background:\").concat(theme.ghostHoverBackground || 'inherit', \"}\\n\\n.eHiXd_fnSs:active,.eHiXd_fnSs:focus,.eHiXd_fnSs:hover,a.eHiXd_fnSs:active,a.eHiXd_fnSs:focus,a.eHiXd_fnSs:hover,button.eHiXd_fnSs:active,button.eHiXd_fnSs:focus,button.eHiXd_fnSs:hover,button.eHiXd_fnSs[type=button]:active,button.eHiXd_fnSs[type=button]:focus,button.eHiXd_fnSs[type=button]:hover,button.eHiXd_fnSs[type=reset]:active,button.eHiXd_fnSs[type=reset]:focus,button.eHiXd_fnSs[type=reset]:hover,button.eHiXd_fnSs[type=submit]:active,button.eHiXd_fnSs[type=submit]:focus,button.eHiXd_fnSs[type=submit]:hover{color:\").concat(theme.ghostColor || 'inherit', \"}\\n\\n.eHiXd_fnSs:active,a.eHiXd_fnSs:active,button.eHiXd_fnSs:active,button.eHiXd_fnSs[type=button]:active,button.eHiXd_fnSs[type=reset]:active,button.eHiXd_fnSs[type=submit]:active{background:\").concat(theme.ghostActiveBackground || 'inherit', \";box-shadow:\").concat(theme.ghostActiveBoxShadow || 'inherit', \"}\\n\\n.eHiXd_eoGN,a.eHiXd_eoGN,button.eHiXd_eoGN,button.eHiXd_eoGN[type=button],button.eHiXd_eoGN[type=reset],button.eHiXd_eoGN[type=submit]{background:\").concat(theme.ghostInverseBackground || 'inherit', \";border-color:\").concat(theme.ghostInverseBorderColor || 'inherit', \";border-style:\").concat(theme.ghostInverseBorderStyle || 'inherit', \";color:\").concat(theme.ghostInverseColor || 'inherit', \"}\\n\\n.eHiXd_eoGN:active,.eHiXd_eoGN:hover,a.eHiXd_eoGN:active,a.eHiXd_eoGN:hover,button.eHiXd_eoGN:active,button.eHiXd_eoGN:hover,button.eHiXd_eoGN[type=button]:active,button.eHiXd_eoGN[type=button]:hover,button.eHiXd_eoGN[type=reset]:active,button.eHiXd_eoGN[type=reset]:hover,button.eHiXd_eoGN[type=submit]:active,button.eHiXd_eoGN[type=submit]:hover{background:\").concat(theme.ghostInverseHoverBackground || 'inherit', \"}\\n\\n.eHiXd_eoGN:active,.eHiXd_eoGN:focus,.eHiXd_eoGN:hover,a.eHiXd_eoGN:active,a.eHiXd_eoGN:focus,a.eHiXd_eoGN:hover,button.eHiXd_eoGN:active,button.eHiXd_eoGN:focus,button.eHiXd_eoGN:hover,button.eHiXd_eoGN[type=button]:active,button.eHiXd_eoGN[type=button]:focus,button.eHiXd_eoGN[type=button]:hover,button.eHiXd_eoGN[type=reset]:active,button.eHiXd_eoGN[type=reset]:focus,button.eHiXd_eoGN[type=reset]:hover,button.eHiXd_eoGN[type=submit]:active,button.eHiXd_eoGN[type=submit]:focus,button.eHiXd_eoGN[type=submit]:hover{color:\").concat(theme.ghostInverseColor || 'inherit', \"}\\n\\n.eHiXd_eoGN:focus:before,a.eHiXd_eoGN:focus:before,button.eHiXd_eoGN:focus:before,button.eHiXd_eoGN[type=button]:focus:before,button.eHiXd_eoGN[type=reset]:focus:before,button.eHiXd_eoGN[type=submit]:focus:before{border:\").concat(theme.inverseFocusBorder || 'inherit', \"}\\n\\n.eHiXd_eoGN:active,a.eHiXd_eoGN:active,button.eHiXd_eoGN:active,button.eHiXd_eoGN[type=button]:active,button.eHiXd_eoGN[type=reset]:active,button.eHiXd_eoGN[type=submit]:active{background:\").concat(theme.ghostActiveBackground || 'inherit', \";box-shadow:\").concat(theme.ghostInverseActiveBoxShadow || 'inherit', \"}\\n\\n.eHiXd_brAJ,.eHiXd_eTYR,a.eHiXd_brAJ,a.eHiXd_eTYR,button.eHiXd_brAJ,button.eHiXd_eTYR,button.eHiXd_eTYR[type=button],button.eHiXd_eTYR[type=reset],button.eHiXd_eTYR[type=submit],button.eHiXd_brAJ[type=button],button.eHiXd_brAJ[type=reset],button.eHiXd_brAJ[type=submit]{-webkit-text-decoration:\").concat(theme.linkTextDecoration || 'inherit', \";background:transparent;border-color:\").concat(theme.linkBorderColor || 'inherit', \";text-decoration:\").concat(theme.linkTextDecoration || 'inherit', \"}\\n\\n.eHiXd_brAJ,a.eHiXd_brAJ,button.eHiXd_brAJ,button.eHiXd_brAJ[type=button],button.eHiXd_brAJ[type=reset],button.eHiXd_brAJ[type=submit]{color:\").concat(theme.linkColor || 'inherit', \"}\\n\\n.eHiXd_brAJ:active,.eHiXd_brAJ:focus,.eHiXd_brAJ:hover,a.eHiXd_brAJ:active,a.eHiXd_brAJ:focus,a.eHiXd_brAJ:hover,button.eHiXd_brAJ:active,button.eHiXd_brAJ:focus,button.eHiXd_brAJ:hover,button.eHiXd_brAJ[type=button]:active,button.eHiXd_brAJ[type=button]:focus,button.eHiXd_brAJ[type=button]:hover,button.eHiXd_brAJ[type=reset]:active,button.eHiXd_brAJ[type=reset]:focus,button.eHiXd_brAJ[type=reset]:hover,button.eHiXd_brAJ[type=submit]:active,button.eHiXd_brAJ[type=submit]:focus,button.eHiXd_brAJ[type=submit]:hover{color:\").concat(theme.linkHoverColor || 'inherit', \"}\\n\\n.eHiXd_brAJ:hover,a.eHiXd_brAJ:hover,button.eHiXd_brAJ:hover,button.eHiXd_brAJ[type=button]:hover,button.eHiXd_brAJ[type=reset]:hover,button.eHiXd_brAJ[type=submit]:hover{text-decoration:underline}\\n\\n.eHiXd_eTYR,.eHiXd_eTYR:active,.eHiXd_eTYR:focus,.eHiXd_eTYR:hover,a.eHiXd_eTYR,a.eHiXd_eTYR:active,a.eHiXd_eTYR:focus,a.eHiXd_eTYR:hover,button.eHiXd_eTYR,button.eHiXd_eTYR:active,button.eHiXd_eTYR:focus,button.eHiXd_eTYR:hover,button.eHiXd_eTYR[type=button],button.eHiXd_eTYR[type=button]:active,button.eHiXd_eTYR[type=button]:focus,button.eHiXd_eTYR[type=button]:hover,button.eHiXd_eTYR[type=reset],button.eHiXd_eTYR[type=reset]:active,button.eHiXd_eTYR[type=reset]:focus,button.eHiXd_eTYR[type=reset]:hover,button.eHiXd_eTYR[type=submit],button.eHiXd_eTYR[type=submit]:active,button.eHiXd_eTYR[type=submit]:focus,button.eHiXd_eTYR[type=submit]:hover{color:\").concat(theme.linkInverseColor || 'inherit', \"}\\n\\n.eHiXd_eTYR:hover,a.eHiXd_eTYR:hover,button.eHiXd_eTYR:hover,button.eHiXd_eTYR[type=button]:hover,button.eHiXd_eTYR[type=reset]:hover,button.eHiXd_eTYR[type=submit]:hover{text-decoration:underline}\\n\\n.eHiXd_eTYR:focus:before,a.eHiXd_eTYR:focus:before,button.eHiXd_eTYR:focus:before,button.eHiXd_eTYR[type=button]:focus:before,button.eHiXd_eTYR[type=reset]:focus:before,button.eHiXd_eTYR[type=submit]:focus:before{border:\").concat(theme.inverseFocusBorder || 'inherit', \"}\\n\\n.eHiXd_bVwc,a.eHiXd_bVwc,button.eHiXd_bVwc,button.eHiXd_bVwc[type=button],button.eHiXd_bVwc[type=reset],button.eHiXd_bVwc[type=submit]{background:\").concat(theme.circleDefaultBackground || 'inherit', \";border-color:\").concat(theme.circleDefaultBorderColor || 'inherit', \";color:\").concat(theme.circleDefaultColor || 'inherit', \"}\\n\\n.eHiXd_bVwc:active,.eHiXd_bVwc:hover,a.eHiXd_bVwc:active,a.eHiXd_bVwc:hover,button.eHiXd_bVwc:active,button.eHiXd_bVwc:hover,button.eHiXd_bVwc[type=button]:active,button.eHiXd_bVwc[type=button]:hover,button.eHiXd_bVwc[type=reset]:active,button.eHiXd_bVwc[type=reset]:hover,button.eHiXd_bVwc[type=submit]:active,button.eHiXd_bVwc[type=submit]:hover{background:\").concat(theme.circleDefaultHoverBackground || 'inherit', \"}\\n\\n.eHiXd_bVwc:active,.eHiXd_bVwc:focus,.eHiXd_bVwc:hover,a.eHiXd_bVwc:active,a.eHiXd_bVwc:focus,a.eHiXd_bVwc:hover,button.eHiXd_bVwc:active,button.eHiXd_bVwc:focus,button.eHiXd_bVwc:hover,button.eHiXd_bVwc[type=button]:active,button.eHiXd_bVwc[type=button]:focus,button.eHiXd_bVwc[type=button]:hover,button.eHiXd_bVwc[type=reset]:active,button.eHiXd_bVwc[type=reset]:focus,button.eHiXd_bVwc[type=reset]:hover,button.eHiXd_bVwc[type=submit]:active,button.eHiXd_bVwc[type=submit]:focus,button.eHiXd_bVwc[type=submit]:hover{color:\").concat(theme.circleDefaultColor || 'inherit', \"}\\n\\n.eHiXd_bVwc:active,a.eHiXd_bVwc:active,button.eHiXd_bVwc:active,button.eHiXd_bVwc[type=button]:active,button.eHiXd_bVwc[type=reset]:active,button.eHiXd_bVwc[type=submit]:active{background:\").concat(theme.circleDefaultActiveBackground || 'inherit', \";box-shadow:\").concat(theme.circleDefaultActiveBoxShadow || 'inherit', \"}\\n\\n.eHiXd_HJDj,a.eHiXd_HJDj,button.eHiXd_HJDj,button.eHiXd_HJDj[type=button],button.eHiXd_HJDj[type=reset],button.eHiXd_HJDj[type=submit]{background:\").concat(theme.circlePrimaryBackground || 'inherit', \";border-color:\").concat(theme.circlePrimaryBorderColor || 'inherit', \";color:\").concat(theme.circlePrimaryColor || 'inherit', \"}\\n\\n.eHiXd_HJDj:active,.eHiXd_HJDj:hover,a.eHiXd_HJDj:active,a.eHiXd_HJDj:hover,button.eHiXd_HJDj:active,button.eHiXd_HJDj:hover,button.eHiXd_HJDj[type=button]:active,button.eHiXd_HJDj[type=button]:hover,button.eHiXd_HJDj[type=reset]:active,button.eHiXd_HJDj[type=reset]:hover,button.eHiXd_HJDj[type=submit]:active,button.eHiXd_HJDj[type=submit]:hover{background:\").concat(theme.circlePrimaryHoverBackground || 'inherit', \"}\\n\\n.eHiXd_HJDj:active,.eHiXd_HJDj:focus,.eHiXd_HJDj:hover,a.eHiXd_HJDj:active,a.eHiXd_HJDj:focus,a.eHiXd_HJDj:hover,button.eHiXd_HJDj:active,button.eHiXd_HJDj:focus,button.eHiXd_HJDj:hover,button.eHiXd_HJDj[type=button]:active,button.eHiXd_HJDj[type=button]:focus,button.eHiXd_HJDj[type=button]:hover,button.eHiXd_HJDj[type=reset]:active,button.eHiXd_HJDj[type=reset]:focus,button.eHiXd_HJDj[type=reset]:hover,button.eHiXd_HJDj[type=submit]:active,button.eHiXd_HJDj[type=submit]:focus,button.eHiXd_HJDj[type=submit]:hover{color:\").concat(theme.circlePrimaryColor || 'inherit', \"}\\n\\n.eHiXd_HJDj:active,a.eHiXd_HJDj:active,button.eHiXd_HJDj:active,button.eHiXd_HJDj[type=button]:active,button.eHiXd_HJDj[type=reset]:active,button.eHiXd_HJDj[type=submit]:active{background:\").concat(theme.circlePrimaryActiveBackground || 'inherit', \";box-shadow:\").concat(theme.circlePrimaryActiveBoxShadow || 'inherit', \"}\\n\\n.eHiXd_bKGu,a.eHiXd_bKGu,button.eHiXd_bKGu,button.eHiXd_bKGu[type=button],button.eHiXd_bKGu[type=reset],button.eHiXd_bKGu[type=submit]{background:\").concat(theme.circleDangerBackground || 'inherit', \";border-color:\").concat(theme.circleDangerBorderColor || 'inherit', \";color:\").concat(theme.circleDangerColor || 'inherit', \"}\\n\\n.eHiXd_bKGu:active,.eHiXd_bKGu:hover,a.eHiXd_bKGu:active,a.eHiXd_bKGu:hover,button.eHiXd_bKGu:active,button.eHiXd_bKGu:hover,button.eHiXd_bKGu[type=button]:active,button.eHiXd_bKGu[type=button]:hover,button.eHiXd_bKGu[type=reset]:active,button.eHiXd_bKGu[type=reset]:hover,button.eHiXd_bKGu[type=submit]:active,button.eHiXd_bKGu[type=submit]:hover{background:\").concat(theme.circleDangerHoverBackground || 'inherit', \"}\\n\\n.eHiXd_bKGu:active,.eHiXd_bKGu:focus,.eHiXd_bKGu:hover,a.eHiXd_bKGu:active,a.eHiXd_bKGu:focus,a.eHiXd_bKGu:hover,button.eHiXd_bKGu:active,button.eHiXd_bKGu:focus,button.eHiXd_bKGu:hover,button.eHiXd_bKGu[type=button]:active,button.eHiXd_bKGu[type=button]:focus,button.eHiXd_bKGu[type=button]:hover,button.eHiXd_bKGu[type=reset]:active,button.eHiXd_bKGu[type=reset]:focus,button.eHiXd_bKGu[type=reset]:hover,button.eHiXd_bKGu[type=submit]:active,button.eHiXd_bKGu[type=submit]:focus,button.eHiXd_bKGu[type=submit]:hover{color:\").concat(theme.circleDangerColor || 'inherit', \"}\\n\\n.eHiXd_bKGu:active,a.eHiXd_bKGu:active,button.eHiXd_bKGu:active,button.eHiXd_bKGu[type=button]:active,button.eHiXd_bKGu[type=reset]:active,button.eHiXd_bKGu[type=submit]:active{background:\").concat(theme.circleDangerActiveBackground || 'inherit', \";box-shadow:\").concat(theme.circleDangerActiveBoxShadow || 'inherit', \"}\\n\\n.eHiXd_dnnz,.eHiXd_ccgO,a.eHiXd_dnnz,a.eHiXd_ccgO,button.eHiXd_dnnz,button.eHiXd_ccgO,button.eHiXd_ccgO[type=button],button.eHiXd_ccgO[type=reset],button.eHiXd_ccgO[type=submit],button.eHiXd_dnnz[type=button],button.eHiXd_dnnz[type=reset],button.eHiXd_dnnz[type=submit]{border-color:\").concat(theme.iconBorderColor || 'inherit', \"}\\n\\n.eHiXd_ccgO,a.eHiXd_ccgO,button.eHiXd_ccgO,button.eHiXd_ccgO[type=button],button.eHiXd_ccgO[type=reset],button.eHiXd_ccgO[type=submit]{color:\").concat(theme.iconInverseColor || 'inherit', \"}\\n\\n.eHiXd_ccgO:focus,a.eHiXd_ccgO:focus,button.eHiXd_ccgO:focus,button.eHiXd_ccgO[type=button]:focus,button.eHiXd_ccgO[type=reset]:focus,button.eHiXd_ccgO[type=submit]:focus{color:\").concat(theme.iconInverseHoverColor || 'inherit', \"}\\n\\n.eHiXd_ccgO:focus:before,a.eHiXd_ccgO:focus:before,button.eHiXd_ccgO:focus:before,button.eHiXd_ccgO[type=button]:focus:before,button.eHiXd_ccgO[type=reset]:focus:before,button.eHiXd_ccgO[type=submit]:focus:before{border-color:\").concat(theme.ghostInverseBorderColor || 'inherit', \"}\\n\\n.eHiXd_ccgO:active,.eHiXd_ccgO:hover,a.eHiXd_ccgO:active,a.eHiXd_ccgO:hover,button.eHiXd_ccgO:active,button.eHiXd_ccgO:hover,button.eHiXd_ccgO[type=button]:active,button.eHiXd_ccgO[type=button]:hover,button.eHiXd_ccgO[type=reset]:active,button.eHiXd_ccgO[type=reset]:hover,button.eHiXd_ccgO[type=submit]:active,button.eHiXd_ccgO[type=submit]:hover{color:\").concat(theme.iconInverseHoverColor || 'inherit', \"}\\n\\n.eHiXd_dnnz,a.eHiXd_dnnz,button.eHiXd_dnnz,button.eHiXd_dnnz[type=button],button.eHiXd_dnnz[type=reset],button.eHiXd_dnnz[type=submit]{color:\").concat(theme.iconColor || 'inherit', \"}\\n\\n.eHiXd_dnnz:focus,.eHiXd_dnnz:hover,a.eHiXd_dnnz:focus,a.eHiXd_dnnz:hover,button.eHiXd_dnnz:focus,button.eHiXd_dnnz:hover,button.eHiXd_dnnz[type=button]:focus,button.eHiXd_dnnz[type=button]:hover,button.eHiXd_dnnz[type=reset]:focus,button.eHiXd_dnnz[type=reset]:hover,button.eHiXd_dnnz[type=submit]:focus,button.eHiXd_dnnz[type=submit]:hover{color:\").concat(theme.iconHoverColor || 'inherit', \"}\\n\\n.eHiXd_dnnz:active,a.eHiXd_dnnz:active,button.eHiXd_dnnz:active,button.eHiXd_dnnz[type=button]:active,button.eHiXd_dnnz[type=reset]:active,button.eHiXd_dnnz[type=submit]:active{color:\").concat(theme.iconActiveColor || 'inherit', \"}\\n\\n.eHiXd_eoCh>svg,a.eHiXd_eoCh>svg,button.eHiXd_eoCh>svg{display:block}\");\n },\n 'root': 'eHiXd_bGBk',\n 'disabled': 'eHiXd_ywdX',\n 'content': 'eHiXd_caGd',\n 'borderRadius--rounded': 'eHiXd_cuTS',\n 'borderRadius--circle': 'eHiXd_dEqw',\n 'width--icon': 'eHiXd_bPzo',\n 'small': 'eHiXd_doqw',\n 'has-icon': 'eHiXd_wWyq',\n 'iconSVG': 'eHiXd_eoCh',\n 'medium': 'eHiXd_ycrn',\n 'large': 'eHiXd_cMDj',\n 'width--auto': 'eHiXd_bNlk',\n 'width--fluid': 'eHiXd_eESV',\n 'default': 'eHiXd_ddES',\n 'ghost': 'eHiXd_fnSs',\n 'primary': 'eHiXd_bXiG',\n 'success': 'eHiXd_cOXX',\n 'danger': 'eHiXd_zGXc',\n 'light': 'eHiXd_eYmo',\n 'ghost-inverse': 'eHiXd_eoGN',\n 'link': 'eHiXd_brAJ',\n 'link-inverse': 'eHiXd_eTYR',\n 'circle-default': 'eHiXd_bVwc',\n 'circle-primary': 'eHiXd_HJDj',\n 'circle-danger': 'eHiXd_bKGu',\n 'icon': 'eHiXd_dnnz',\n 'icon-inverse': 'eHiXd_ccgO'\n};\nimport theme from './theme';\nvar circleVariants = ['circle-primary', 'circle-danger', 'circle-default'];\nvar squareVariants = ['circle-default', 'circle-primary', 'circle-danger', 'icon', 'icon-inverse'];\n/**\n---\ncategory: components/deprecated\n---\n**/\n\nvar DeprecatedButton = (_dec = deprecated('8.0.0', null, 'Use Button from ui-buttons instead. See the upgrade guide for detailed instructions on updating https://instructure.design/#button-upgrade-guide'), _dec2 = testable(), _dec3 = themeable(theme, styles), _dec(_class = _dec2(_class = _dec3(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {\n _inherits(DeprecatedButton, _Component);\n\n var _super = _createSuper(DeprecatedButton);\n\n function DeprecatedButton() {\n var _this;\n\n _classCallCheck(this, DeprecatedButton);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _this.handleClick = function (e) {\n var _this$props = _this.props,\n disabled = _this$props.disabled,\n readOnly = _this$props.readOnly,\n onClick = _this$props.onClick;\n\n if (disabled || readOnly) {\n e.preventDefault();\n e.stopPropagation();\n } else if (typeof onClick === 'function') {\n onClick(e);\n }\n };\n\n _this.handleKeyDown = function (e) {\n var _this$props2 = _this.props,\n disabled = _this$props2.disabled,\n readOnly = _this$props2.readOnly,\n onClick = _this$props2.onClick,\n href = _this$props2.href; // behave like a button when space key is pressed\n\n if (_this.elementType !== 'button' && (e.keyCode === keycode.codes.space || e.keyCode === keycode.codes.enter)) {\n e.preventDefault();\n e.stopPropagation();\n\n if (typeof onClick === 'function' && !disabled && !readOnly) {\n onClick(e);\n }\n\n if (href) {\n _this._button && _this._button.click();\n }\n }\n };\n\n return _this;\n }\n\n _createClass(DeprecatedButton, [{\n key: \"focus\",\n value: function focus() {\n this._button && this._button.focus();\n }\n }, {\n key: \"renderIcon\",\n value: function renderIcon() {\n var Icon = this.props.icon;\n\n if (typeof this.props.icon === 'function') {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: styles.iconSVG\n }, /*#__PURE__*/React.createElement(Icon, {\n inline: false\n }));\n } else if (Icon) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: styles.iconSVG\n }, Icon);\n } else {\n return null;\n }\n }\n }, {\n key: \"buttonBorderRadius\",\n value: function buttonBorderRadius() {\n if (circleVariants.includes(this.props.variant)) {\n return 'circle';\n } else {\n return 'rounded';\n }\n }\n }, {\n key: \"buttonWidth\",\n value: function buttonWidth(hasOnlyIcon) {\n var _this$props3 = this.props,\n variant = _this$props3.variant,\n fluidWidth = _this$props3.fluidWidth;\n\n if (hasOnlyIcon || squareVariants.includes(variant)) {\n return 'icon';\n } else if (fluidWidth) {\n return 'fluid';\n } else {\n return 'auto';\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _classnames,\n _this2 = this;\n\n var _this$props4 = this.props,\n as = _this$props4.as,\n buttonRef = _this$props4.buttonRef,\n children = _this$props4.children,\n cursor = _this$props4.cursor,\n disabled = _this$props4.disabled,\n href = _this$props4.href,\n icon = _this$props4.icon,\n margin = _this$props4.margin,\n onClick = _this$props4.onClick,\n readOnly = _this$props4.readOnly,\n size = _this$props4.size,\n type = _this$props4.type,\n variant = _this$props4.variant,\n tabIndex = _this$props4.tabIndex;\n var IHaveVisibleChildren = hasVisibleChildren(this.props.children);\n var hasTextAndIcon = IHaveVisibleChildren && this.props.icon; // any button with an icon + text label\n\n var hasOnlyIcon = !IHaveVisibleChildren && this.props.icon; // any button with just an icon visible\n\n if (process.env.NODE_ENV !== 'production') {\n // show warning if icon is added as a child\n if (this.hasVisibleChildren) {\n React.Children.forEach(children, function (child) {\n var icon = child && child.type && typeof child.type.glyphName !== 'undefined';\n\n /*#__PURE__*/\n\n /*#__PURE__*/\n _warn(!icon, \"[DeprecatedButton] Icons as children is deprecated. Please use the 'icon' prop instead.\");\n });\n }\n } // warn for unallowed view props\n\n\n var passthroughProps = View.omitViewProps(omitProps(this.props, DeprecatedButton.propTypes), DeprecatedButton);\n return /*#__PURE__*/React.createElement(View, Object.assign({}, passthroughProps, {\n className: classnames((_classnames = {}, _defineProperty(_classnames, styles.root, true), _defineProperty(_classnames, styles[variant], true), _defineProperty(_classnames, styles[size], size), _defineProperty(_classnames, styles[\"width--\".concat(this.buttonWidth(hasOnlyIcon))], true), _defineProperty(_classnames, styles[\"borderRadius--\".concat(this.buttonBorderRadius())], true), _defineProperty(_classnames, styles.disabled, disabled), _defineProperty(_classnames, styles['has-icon'], icon), _classnames)),\n disabled: disabled || readOnly,\n onClick: this.handleClick,\n onKeyDown: this.handleKeyDown,\n href: href,\n type: href ? null : type,\n role: onClick && as !== 'button' ? 'button' : null,\n tabIndex: onClick && as ? tabIndex || '0' : tabIndex,\n elementRef: function elementRef(c) {\n _this2._button = c;\n if (typeof buttonRef === 'function') buttonRef(c);\n },\n display: null,\n as: this.elementType,\n margin: margin,\n cursor: disabled ? 'not-allowed' : cursor\n }), hasTextAndIcon ? /*#__PURE__*/React.createElement(Flex, {\n height: \"100%\",\n width: \"100%\"\n }, /*#__PURE__*/React.createElement(Flex.Item, {\n padding: \"0 x-small 0 0\"\n }, this.renderIcon()), /*#__PURE__*/React.createElement(Flex.Item, {\n shouldGrow: true,\n shouldShrink: true\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: styles.content\n }, children))) :\n /*#__PURE__*/\n // all other button layouts (icon only and text only)\n React.createElement(\"span\", {\n className: styles.content\n }, icon && this.renderIcon(), children));\n }\n }, {\n key: \"elementType\",\n get: function get() {\n return getElementType(DeprecatedButton, this.props);\n }\n }, {\n key: \"focused\",\n get: function get() {\n return isActiveElement(this._button);\n }\n }]);\n\n DeprecatedButton.displayName = \"DeprecatedButton\";\n return DeprecatedButton;\n}(Component), _class2.propTypes = {\n children: PropTypes.node.isRequired,\n type: PropTypes.oneOf(['button', 'submit', 'reset']),\n variant: PropTypes.oneOf(['default', 'primary', 'success', 'danger', 'light', 'ghost', 'ghost-inverse', 'link', 'link-inverse', 'circle-default', 'circle-primary', 'circle-danger', 'icon', 'icon-inverse']),\n\n /**\n * provides a reference to the underlying focusable (`button` or `a`) element\n */\n buttonRef: PropTypes.func,\n\n /**\n * the element type to render as (will be `` if href is provided)\n */\n as: PropTypes.elementType,\n size: PropTypes.oneOf(['small', 'medium', 'large']),\n\n /**\n * should the `` fill the width of its container\n */\n fluidWidth: PropTypes.bool,\n disabled: PropTypes.bool,\n readOnly: PropTypes.bool,\n href: PropTypes.string,\n onClick: PropTypes.func,\n\n /**\n * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,\n * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via\n * familiar CSS-like shorthand. For example: `margin=\"small auto large\"`.\n */\n margin: ThemeablePropTypes.spacing,\n\n /**\n * Add an SVG icon to the button. Do not add icons directly as\n * children.\n */\n icon: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),\n\n /**\n * Specify a mouse cursor to use when hovering over the button.\n * The `pointer` cursor is used by default.\n */\n cursor: PropTypes.string,\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string])\n}, _class2.defaultProps = {\n as: 'button',\n type: 'button',\n variant: 'default',\n size: 'medium',\n margin: '0',\n fluidWidth: false,\n buttonRef: function buttonRef(button) {},\n cursor: 'pointer',\n disabled: void 0,\n onClick: void 0,\n icon: void 0,\n href: void 0,\n readOnly: void 0,\n tabIndex: void 0\n}, _temp)) || _class) || _class) || _class);\nexport default DeprecatedButton;\nexport { DeprecatedButton };","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport { createThemeAdapter } from '@instructure/ui-themeable';\nvar map = {\n smallPadding: 'smallPaddingHorizontal',\n mediumPadding: 'mediumPaddingHorizontal',\n largePadding: 'largePaddingHorizontal',\n defaultBackground: 'secondaryBackground',\n defaultBorderColor: 'secondaryBorderColor',\n defaultColor: 'secondaryColor',\n defaultHoverBackground: 'secondaryHoverBackground',\n defaultActiveBackground: 'secondaryActiveBackground',\n defaultActiveBoxShadow: 'secondaryActiveBoxShadow'\n};\nexport var themeAdapter = createThemeAdapter({\n map: map,\n version: '8.0.0',\n shouldIncludeOldValues: true\n});","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport baseThemeGenerator, { activeShadow, generateButtonThemeVars } from '../BaseButton/theme';\nimport { alpha } from '@instructure/ui-color-utils';\nexport default function generator() {\n return baseThemeGenerator.apply(void 0, arguments);\n}\n/**\n * We need to copy the theme-specific overrides from `BaseButton` before adding\n * theme-specific overrides that only apply to `Button`\n */\n\nObject.assign(generator, baseThemeGenerator);\n\ngenerator['canvas-ams'] = function (_ref) {\n var colors = _ref.colors;\n return _objectSpread({}, generateButtonThemeVars({\n style: 'secondary',\n borderColor: colors.borderBrand,\n backgroundColor: 'transparent',\n textColor: colors.fullyAccessibleBrand\n }), {\n secondaryHoverBackground: alpha(colors.fullyAccessibleBrand, 10),\n secondaryActiveBackground: 'transparent',\n secondaryActiveBoxShadow: \"\".concat(activeShadow, \" \").concat(alpha(colors.fullyAccessibleBrand, 28)),\n // Overrides for primary ghost button\n primaryGhostColor: colors.textDarkest,\n primaryGhostBorderColor: colors.textDarkest,\n primaryGhostHoverBackground: alpha(colors.textDarkest, 10),\n primaryGhostActiveBackground: 'transparent',\n primaryGhostActiveBoxShadow: \"\".concat(activeShadow, \" \").concat(alpha(colors.textDarkest, 28))\n });\n};","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n\nvar _dec, _dec2, _dec3, _class, _class2, _temp;\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 - present Instructure, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { testable } from '@instructure/ui-testable';\nimport { themeable, ThemeablePropTypes } from '@instructure/ui-themeable';\nimport { getInteraction, passthroughProps, deprecated } from '@instructure/ui-react-utils';\nimport { BaseButton } from '../BaseButton';\nimport { DeprecatedButton } from '../DeprecatedButton';\nimport { themeAdapter } from './themeAdapter';\nimport generateDeprecatedTheme from '../DeprecatedButton/theme';\nimport theme from './theme';\n/**\n---\ncategory: components\n---\n**/\n\nvar Button = (_dec = deprecated('8.0.0', {\n buttonRef: 'elementRef',\n fluidWidth: 'display',\n icon: 'renderIcon',\n variant: null\n}, 'See the following upgrade guide for more help updating https://instructure.design/#button-upgrade-guide'), _dec2 = testable(), _dec3 = themeable(theme, null, themeAdapter), _dec(_class = _dec2(_class = _dec3(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {\n _inherits(Button, _Component);\n\n var _super = _createSuper(Button);\n\n function Button() {\n var _this;\n\n _classCallCheck(this, Button);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n _this._buttonComponent = null;\n\n _this.handleElementRef = function (el) {\n var _this$props = _this.props,\n elementRef = _this$props.elementRef,\n buttonRef = _this$props.buttonRef;\n elementRef(el);\n\n if (typeof buttonRef === 'function') {\n buttonRef(el);\n }\n };\n\n _this.handleButtonRef = function (component) {\n _this._buttonComponent = component;\n };\n\n _this.scopeTheme = function () {\n // TODO: Remove this function in version 8.0.0\n // We only want to pass the theme vars that exist in the deprecated\n // button, otherwise every theme var that is unique to the updated\n // button gets injected into the style tag for the deprecated one\n // (that ends up being a _massive_ amount of variables)\n var _assertThisInitialize = _assertThisInitialized(_this),\n _assertThisInitialize2 = _assertThisInitialize.theme,\n theme = _assertThisInitialize2 === void 0 ? {} : _assertThisInitialize2;\n\n var deprecatedTheme = generateDeprecatedTheme() || {};\n var deprecatedKeys = Object.keys(deprecatedTheme);\n return Object.entries(theme).reduce(function (result, _ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n if (deprecatedKeys.includes(key)) {\n return _objectSpread({}, result, _defineProperty({}, key, value));\n }\n\n return result;\n }, {});\n };\n\n return _this;\n }\n\n _createClass(Button, [{\n key: \"focus\",\n value: function focus() {\n this._buttonComponent && this._buttonComponent.focus();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n children = _this$props2.children,\n type = _this$props2.type,\n size = _this$props2.size,\n as = _this$props2.as,\n color = _this$props2.color,\n focusColor = _this$props2.focusColor,\n display = _this$props2.display,\n textAlign = _this$props2.textAlign,\n withBackground = _this$props2.withBackground,\n margin = _this$props2.margin,\n cursor = _this$props2.cursor,\n href = _this$props2.href,\n icon = _this$props2.icon,\n renderIcon = _this$props2.renderIcon,\n variant = _this$props2.variant,\n fluidWidth = _this$props2.fluidWidth,\n props = _objectWithoutProperties(_this$props2, [\"children\", \"type\", \"size\", \"as\", \"color\", \"focusColor\", \"display\", \"textAlign\", \"withBackground\", \"margin\", \"cursor\", \"href\", \"icon\", \"renderIcon\", \"variant\", \"fluidWidth\"]);\n\n var interaction = getInteraction({\n props: props\n });\n var _this$theme = this.theme,\n theme = _this$theme === void 0 ? {} : _this$theme;\n\n if (variant) {\n return /*#__PURE__*/React.createElement(DeprecatedButton, Object.assign({}, passthroughProps(props), {\n type: type,\n size: size,\n as: as,\n disabled: interaction === 'disabled',\n readOnly: interaction === 'readonly',\n margin: margin,\n cursor: cursor,\n href: href,\n icon: renderIcon || icon,\n fluidWidth: fluidWidth,\n variant: variant,\n buttonRef: this.handleElementRef,\n ref: this.handleButtonRef,\n theme: this.scopeTheme()\n }), children);\n }\n\n var buttonProps = _objectSpread({}, passthroughProps(props), {\n type: type,\n size: size,\n elementRef: this.handleElementRef,\n ref: this.handleButtonRef,\n as: as,\n color: color,\n interaction: interaction,\n focusColor: focusColor,\n display: display,\n textAlign: textAlign,\n withBackground: withBackground,\n margin: margin,\n cursor: cursor,\n href: href,\n renderIcon: renderIcon || icon,\n theme: theme,\n __dangerouslyIgnoreExperimentalWarnings: true\n });\n\n if (fluidWidth) {\n buttonProps.textAlign = 'start';\n buttonProps.display = 'block';\n }\n\n return /*#__PURE__*/React.createElement(BaseButton, buttonProps, children);\n }\n }, {\n key: \"focused\",\n get: function get() {\n return this._buttonComponent && this._buttonComponent.focused;\n }\n }]);\n\n Button.displayName = \"Button\";\n return Button;\n}(Component), _class2.propTypes = {\n /**\n * Specifies the `Button` children.\n */\n children: PropTypes.node,\n\n /**\n * Specifies the type of the `Button`'s underlying html element.\n */\n type: PropTypes.oneOf(['button', 'submit', 'reset']),\n\n /**\n * The size of the `Button`\n */\n size: PropTypes.oneOf(['small', 'medium', 'large']),\n\n /**\n * Provides a reference to the `Button`'s underlying html element.\n */\n elementRef: PropTypes.func,\n\n /**\n * The element to render as the component root, `Button` by default.\n */\n as: PropTypes.elementType,\n\n /**\n * Specifies if interaction with the `Button` is enabled, disabled, or readonly.\n */\n interaction: PropTypes.oneOf(['enabled', 'disabled', 'readonly']),\n\n /**\n * Specifies the color for the `Button`.\n */\n color: PropTypes.oneOf(['primary', 'primary-inverse', 'secondary', 'success', 'danger']),\n\n /**\n * Override the `Button`'s default focus outline color.\n */\n focusColor: PropTypes.oneOf(['info', 'inverse']),\n\n /**\n * The `Button` display property. When set to `inline-block`, the `Button` displays inline with other elements.\n * When set to block, the `Button` expands to fill the width of the container.\n */\n display: PropTypes.oneOf(['inline-block', 'block']),\n\n /**\n * Sets the alignment of the `Button` children and/or icon.\n */\n textAlign: PropTypes.oneOf(['start', 'center']),\n\n /**\n * Specifies if the `Button` should render with a solid background. When false, the background is transparent.\n */\n withBackground: PropTypes.bool,\n\n /**\n * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,\n * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via\n * familiar CSS-like shorthand. For example: `margin=\"small auto large\"`.\n */\n margin: ThemeablePropTypes.spacing,\n\n /**\n * Specify a mouse cursor to use when hovering over the button.\n * The `pointer` cursor is used by default.\n */\n cursor: PropTypes.string,\n\n /**\n * Specifies an href attribute for the `Button`'s underlying html element.\n */\n href: PropTypes.string,\n\n /**\n * An icon, or function that returns an icon.\n */\n renderIcon: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n\n /**\n * __Deprecated - use `elementRef` instead (See the [upgrade guide](#button-upgrade-guide/#v8-button-upgrade-guide-props-that-need-to-be-upgraded) for more details)__\n */\n buttonRef: PropTypes.func,\n\n /**\n * __Deprecated - see the [upgrade guide](#button-upgrade-guide/#v8-button-upgrade-guide-upgrading-variant-default,-primary,-success,-danger,-light,-ghost,-or-ghost-inverse)__\n */\n variant: PropTypes.oneOf(['default', 'primary', 'success', 'danger', 'light', 'ghost', 'ghost-inverse', 'link', 'link-inverse', 'circle-default', 'circle-primary', 'circle-danger', 'icon', 'icon-inverse']),\n\n /**\n * __Deprecated - set `display=\"block\"` and `textAlign=\"start\"` instead (See the [upgrade guide](#button-upgrade-guide/#v8-button-upgrade-guide-props-that-need-to-be-upgraded) for more details)__\n */\n fluidWidth: PropTypes.bool,\n\n /**\n * __Deprecated - use `renderIcon` instead (See the [upgrade guide](#button-upgrade-guide/#v8-button-upgrade-guide-props-that-need-to-be-upgraded) for more details)__\n */\n icon: PropTypes.oneOfType([PropTypes.func, PropTypes.element])\n}, _class2.defaultProps = {\n children: null,\n type: 'button',\n size: 'medium',\n elementRef: function elementRef(el) {},\n as: 'button',\n // Leave interaction default undefined so that `disabled` and `readOnly` can also be supplied\n interaction: void 0,\n // TODO: Switch to 'secondary' in 8.0 when we drop variant\n color: void 0,\n focusColor: void 0,\n display: 'inline-block',\n textAlign: 'center',\n withBackground: true,\n margin: '0',\n cursor: 'pointer',\n href: void 0,\n renderIcon: void 0,\n buttonRef: void 0,\n variant: void 0,\n fluidWidth: void 0,\n icon: void 0\n}, _temp)) || _class) || _class) || _class);\nexport default Button;\nexport { Button };"],"sourceRoot":""}