"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.styles = exports.globalClasses = exports.activeStyles = void 0;var _taggedTemplateLiteralLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteralLoose"));var _Emotion = require("../../lib/theming/Emotion");

var _Mixins = require("../../lib/styles/Mixins");

var _Button = require("./Button.mixins");var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75, _templateObject76, _templateObject77, _templateObject78, _templateObject79;







var globalClasses = exports.globalClasses = (0, _Emotion.prefix)('button')({
  root: 'root',
  arrow: 'arrow',
  caption: 'caption',
  text: 'text',
  innerShadow: 'inner-shadow',
  disabled: 'disabled'
});

var styles = exports.styles = (0, _Emotion.memoizeStyle)({
  root: function root(t) {
    return (0, _Emotion.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", ";\n      ", ";\n\n      transition: background-color ", " ", "\n        ", ";\n\n      background-clip: ", ";\n      background-position: center;\n      background-repeat: no-repeat;\n      background-size: contain;\n      cursor: pointer;\n      display: inline-block;\n      position: relative;\n      text-align: center;\n      width: 100%;\n      height: 100%; // fix height in ie11\n\n      .", " {\n        content: '';\n        border-radius: inherit;\n        position: absolute;\n        top: 0;\n        bottom: 0;\n        left: 0;\n        right: 0;\n      }\n\n      &::-moz-focus-inner {\n        border: 0;\n        padding: 0;\n      }\n      &::after {\n        content: '';\n        display: inline-block;\n        vertical-align: baseline;\n        width: 0;\n      }\n\n      &:hover svg {\n        color: ", ";\n      }\n      &.", " svg {\n        color: ", ";\n      }\n      & svg {\n        color: ", ";\n      }\n    "])),
    (0, _Mixins.resetButton)(),
    (0, _Mixins.resetText)(),

    t.transitionDuration, t.transitionTimingFunction,
    t.btnBorderColorTransition ? ", " + t.btnBorderColorTransition : '',

    t.btnBackgroundClip,










    globalClasses.innerShadow,





















    t.btnIconHoverColor,

    globalClasses.disabled,
    t.btnIconDisabledColor,


    t.btnIconColor);


  },

  withArrowIconRightSmall: function withArrowIconRightSmall(t) {
    return (0, _Emotion.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-right: calc(", " + ", " + ", ");\n    "])),
    t.btnIconSizeSmall, t.btnWithIconPaddingSmall, t.btnWithIconPaddingSmall);

  },

  withArrowIconRightMedium: function withArrowIconRightMedium(t) {
    return (0, _Emotion.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-right: calc(", " + ", " + ", ");\n    "])),
    t.btnIconSizeMedium, t.btnWithIconPaddingMedium, t.btnWithIconPaddingMedium);

  },

  withArrowIconRightLarge: function withArrowIconRightLarge(t) {
    return (0, _Emotion.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-right: calc(", " + ", " + ", ");\n    "])),
    t.btnIconSizeLarge, t.btnWithIconPaddingLarge, t.btnWithIconPaddingLarge);

  },

  withArrowIconLeftSmall: function withArrowIconLeftSmall(t) {
    return (0, _Emotion.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: calc(", " + ", " + ", ");\n    "])),
    t.btnIconSizeSmall, t.btnWithIconPaddingSmall, t.btnWithIconPaddingSmall);

  },

  withArrowIconLeftMedium: function withArrowIconLeftMedium(t) {
    return (0, _Emotion.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: calc(", " + ", " + ", ");\n    "])),
    t.btnIconSizeMedium, t.btnWithIconPaddingMedium, t.btnWithIconPaddingMedium);

  },

  withArrowIconLeftLarge: function withArrowIconLeftLarge(t) {
    return (0, _Emotion.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: calc(", " + ", " + ", ");\n    "])),
    t.btnIconSizeLarge, t.btnWithIconPaddingLarge, t.btnWithIconPaddingLarge);

  },

  simulatedPress: function simulatedPress() {
    return (0, _Emotion.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteralLoose2.default)(["\n      &:active .", " {\n        transform: translateY(1px);\n      }\n    "])),
    globalClasses.caption);



  },

  outline: function outline() {
    return (0, _Emotion.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteralLoose2.default)(["\n      border-radius: inherit;\n      position: absolute;\n      top: 0;\n      bottom: 0;\n      left: 0;\n      right: 0;\n    "])));







  },

  outlineWarning: function outlineWarning(t) {
    return (0, _Emotion.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteralLoose2.default)(["\n      box-shadow:\n        0 0 0 ", " ", ",\n        inset 0 0 0 ", " ", ";\n    "])),

    t.btnOutlineWidth, t.btnBorderColorWarning,
    t.btnInsetWidth, t.btnInsetColor);

  },

  outlineError: function outlineError(t) {
    return (0, _Emotion.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteralLoose2.default)(["\n      box-shadow:\n        0 0 0 ", " ", ",\n        inset 0 0 0 ", " ", ";\n    "])),

    t.btnOutlineWidth, t.btnBorderColorError,
    t.btnInsetWidth, t.btnInsetColor);

  },

  outlineLink: function outlineLink() {
    return (0, _Emotion.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteralLoose2.default)(["\n      cursor: default;\n      box-shadow: none;\n      left: -2px;\n      right: -2px;\n      bottom: -2px;\n      top: -2px;\n    "])));







  },

  outlineLinkWarning: function outlineLinkWarning(t) {
    return (0, _Emotion.css)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteralLoose2.default)(["\n      background-color: ", ";\n    "])),
    t.btnWarningSecondary);

  },

  outlineLinkError: function outlineLinkError(t) {
    return (0, _Emotion.css)(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteralLoose2.default)(["\n      background-color: ", ";\n    "])),
    t.btnErrorSecondary);

  },

  sizeSmall: function sizeSmall(t) {
    return (0, _Emotion.css)(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteralLoose2.default)(["\n      border-radius: ", ";\n\n      ", ";\n    "])),
    t.btnBorderRadiusSmall,

    (0, _Button.buttonSizeMixin)(t.btnFontSizeSmall, t.btnLineHeightSmall, t.btnPaddingXSmall, t.btnPaddingYSmall));

  },

  sizeSmallIE11: function sizeSmallIE11(t) {
    return (0, _Emotion.css)(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", ";\n    "])),
    (0, _Button.buttonSizeMixinIE11)(t.btnPaddingXSmall, t.btnPaddingYSmall));

  },

  sizeMedium: function sizeMedium(t) {
    return (0, _Emotion.css)(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteralLoose2.default)(["\n      border-radius: ", ";\n\n      ", ";\n    "])),
    t.btnBorderRadiusMedium,

    (0, _Button.buttonSizeMixin)(t.btnFontSizeMedium, t.btnLineHeightMedium, t.btnPaddingXMedium, t.btnPaddingYMedium));

  },

  sizeMediumIE11: function sizeMediumIE11(t) {
    return (0, _Emotion.css)(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", ";\n    "])),
    (0, _Button.buttonSizeMixinIE11)(t.btnPaddingXMedium, t.btnPaddingYMedium));

  },

  sizeLarge: function sizeLarge(t) {
    return (0, _Emotion.css)(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteralLoose2.default)(["\n      border-radius: ", ";\n\n      ", ";\n    "])),
    t.btnBorderRadiusLarge,

    (0, _Button.buttonSizeMixin)(t.btnFontSizeLarge, t.btnLineHeightLarge, t.btnPaddingXLarge, t.btnPaddingYLarge));

  },

  sizeLargeIE11: function sizeLargeIE11(t) {
    return (0, _Emotion.css)(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", ";\n    "])),
    (0, _Button.buttonSizeMixinIE11)(t.btnPaddingXLarge, t.btnPaddingYLarge));

  },

  sizeSmallWithIcon: function sizeSmallWithIcon(t) {
    return (0, _Emotion.css)(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: ", ";\n    "])),
    t.btnWithIconPaddingSmall);

  },

  sizeMediumWithIcon: function sizeMediumWithIcon(t) {
    return (0, _Emotion.css)(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: ", ";\n    "])),
    t.btnWithIconPaddingMedium);

  },

  sizeLargeWithIcon: function sizeLargeWithIcon(t) {
    return (0, _Emotion.css)(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: ", ";\n    "])),
    t.btnWithIconPaddingLarge);

  },

  sizeSmallWithRightIcon: function sizeSmallWithRightIcon(t) {
    return (0, _Emotion.css)(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-right: ", ";\n    "])),
    t.btnWithIconPaddingSmall);

  },

  sizeMediumWithRightIcon: function sizeMediumWithRightIcon(t) {
    return (0, _Emotion.css)(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-right: ", ";\n    "])),
    t.btnWithIconPaddingMedium);

  },

  sizeLargeWithRightIcon: function sizeLargeWithRightIcon(t) {
    return (0, _Emotion.css)(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-right: ", ";\n    "])),
    t.btnWithIconPaddingLarge);

  },

  sizeSmallWithIconWithoutText: function sizeSmallWithIconWithoutText(t) {
    return (0, _Emotion.css)(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-right: ", ";\n    "])),
    t.btnWithIconPaddingSmall);

  },

  sizeMediumWithIconWithoutText: function sizeMediumWithIconWithoutText(t) {
    return (0, _Emotion.css)(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-right: ", ";\n    "])),
    t.btnWithIconPaddingMedium);

  },

  sizeLargeWithIconWithoutText: function sizeLargeWithIconWithoutText(t) {
    return (0, _Emotion.css)(_templateObject29 || (_templateObject29 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-right: ", ";\n    "])),
    t.btnWithIconPaddingLarge);

  },

  sizeSmallWithIconWithoutText5_3: function sizeSmallWithIconWithoutText5_3(t) {
    return (0, _Emotion.css)(_templateObject30 || (_templateObject30 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: ", ";\n      padding-right: ", ";\n    "])),
    t.btnWithIconPaddingSmall,
    t.btnWithIconPaddingSmall);

  },

  sizeMediumWithIconWithoutText5_3: function sizeMediumWithIconWithoutText5_3(t) {
    return (0, _Emotion.css)(_templateObject31 || (_templateObject31 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: ", ";\n      padding-right: ", ";\n    "])),
    t.btnWithIconPaddingMedium,
    t.btnWithIconPaddingMedium);

  },

  sizeLargeWithIconWithoutText5_3: function sizeLargeWithIconWithoutText5_3(t) {
    return (0, _Emotion.css)(_templateObject32 || (_templateObject32 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: ", ";\n      padding-right: ", ";\n    "])),
    t.btnWithIconPaddingLarge,
    t.btnWithIconPaddingLarge);

  },

  link: function link(t) {
    return (0, _Emotion.css)(_templateObject33 || (_templateObject33 = (0, _taggedTemplateLiteralLoose2.default)(["\n      background: none;\n      border-radius: ", ";\n      border: none;\n      box-shadow: none;\n      white-space: nowrap;\n      color: ", ";\n      display: inline;\n      margin: 0;\n      padding: 0 !important; // override size mixin\n      height: auto !important; // override size mixin\n\n      &:hover:enabled,\n      &:active:enabled {\n        color: ", ";\n        text-decoration: ", ";\n      }\n\n      &:active:enabled {\n        ", "\n      }\n    "])),

    t.btnLinkBorderRadius,



    t.btnLinkColor,







    t.btnLinkHoverColor,
    t.btnLinkHoverTextDecoration,



    activeStyles.link(t));


  },

  linkLineHeight: function linkLineHeight() {
    return (0, _Emotion.css)(_templateObject34 || (_templateObject34 = (0, _taggedTemplateLiteralLoose2.default)(["\n      line-height: inherit !important; // override size mixin\n    "])));


  },

  linkLineHeightSafariFallback: function linkLineHeightSafariFallback() {
    return (0, _Emotion.css)(_templateObject35 || (_templateObject35 = (0, _taggedTemplateLiteralLoose2.default)(["\n      /* Safari overrides 'underline' and 'border' if 'line-height' is used */\n      margin: -1px 0 -2px;\n    "])));



  },

  linkFocus: function linkFocus(t) {
    return (0, _Emotion.css)(_templateObject36 || (_templateObject36 = (0, _taggedTemplateLiteralLoose2.default)(["\n      & {\n        color: ", ";\n        text-decoration: ", ";\n      }\n    "])),

    t.btnLinkColor,
    t.btnLinkHoverTextDecoration);


  },

  linkDisabled: function linkDisabled(t) {
    return (0, _Emotion.css)(_templateObject37 || (_templateObject37 = (0, _taggedTemplateLiteralLoose2.default)(["\n      cursor: default;\n\n      &,\n      &:hover:enabled,\n      &:active:enabled {\n        color: ", ";\n      }\n    "])),





    t.btnLinkDisabledColor);


  },

  focus: function focus(t) {
    return (0, _Emotion.css)(_templateObject38 || (_templateObject38 = (0, _taggedTemplateLiteralLoose2.default)(["\n      position: relative;\n      z-index: 2;\n\n      &,\n      &:hover:enabled,\n      &:active:enabled,\n      &:active:hover:enabled {\n        box-shadow:\n          inset 0 0 0 ", " ", ",\n          0 0 0 ", " ", " !important; // override root:hover style\n      }\n    "])),








    t.btnInsetWidth, t.btnOutlineColorFocus,
    t.btnFocusShadowWidth, t.btnBorderColorFocus);


  },

  disabled: function disabled(t) {
    return (0, _Emotion.css)(_templateObject39 || (_templateObject39 = (0, _taggedTemplateLiteralLoose2.default)(["\n      cursor: default;\n      pointer-events: none;\n      box-shadow: 0 0 0 ", " ", ";\n\n      background-image: none;\n      background-color: ", ";\n      color: ", ";\n    "])),


    t.btnBorderWidth, t.btnDisabledBorderColor,


    t.btnDisabledBg,
    t.btnDisabledTextColor);

  },

  disabledWithoutOutline: function disabledWithoutOutline(t) {
    return (0, _Emotion.css)(_templateObject40 || (_templateObject40 = (0, _taggedTemplateLiteralLoose2.default)(["\n      box-shadow: 0 0 0 ", " ", ";\n    "])),
    t.btnBorderWidth, t.btnDisabledBg);

  },

  arrowIconRoot: function arrowIconRoot() {
    return (0, _Emotion.css)(_templateObject41 || (_templateObject41 = (0, _taggedTemplateLiteralLoose2.default)(["\n      position: absolute;\n      height: 100%;\n      top: 0;\n      right: 0;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      box-sizing: content-box;\n    "])));









  },

  arrowIconRootSmall: function arrowIconRootSmall(t) {
    return (0, _Emotion.css)(_templateObject42 || (_templateObject42 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding: 0 ", " 0 ", ";\n      width: ", ";\n    "])),
    t.btnWithIconPaddingSmall, t.btnWithIconPaddingSmall,
    t.btnIconSizeSmall);

  },

  arrowIconRootMedium: function arrowIconRootMedium(t) {
    return (0, _Emotion.css)(_templateObject43 || (_templateObject43 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding: 0 ", " 0 ", ";\n      width: ", ";\n    "])),
    t.btnWithIconPaddingMedium, t.btnWithIconPaddingMedium,
    t.btnIconSizeMedium);

  },

  arrowIconRootLarge: function arrowIconRootLarge(t) {
    return (0, _Emotion.css)(_templateObject44 || (_templateObject44 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding: 0 ", " 0 ", ";\n      width: ", ";\n    "])),
    t.btnWithIconPaddingLarge, t.btnWithIconPaddingLarge,
    t.btnIconSizeLarge);

  },

  arrowIconLeft: function arrowIconLeft() {
    return (0, _Emotion.css)(_templateObject45 || (_templateObject45 = (0, _taggedTemplateLiteralLoose2.default)(["\n      left: 0;\n    "])));


  },

  default: function _default(t) {
    return (0, _Emotion.css)(_templateObject46 || (_templateObject46 = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", ";\n\n      &:hover {\n        ", ";\n      }\n\n      &:active {\n        ", ";\n      }\n    "])),
    (0, _Button.buttonUseMixin)(
      t.btnDefaultBg,
      t.btnDefaultBgStart,
      t.btnDefaultBgEnd,
      t.btnDefaultTextColor,
      t.btnDefaultBorderColor,
      t.btnBorderWidth
    ),


    (0, _Button.buttonHoverMixin)(
      t.btnDefaultHoverBg,
      t.btnDefaultHoverBgStart,
      t.btnDefaultHoverBgEnd,
      t.btnDefaultHoverTextColor,
      t.btnDefaultHoverBorderColor,
      t.btnBorderWidth
    ),



    activeStyles.default(t));


  },

  primary: function primary(t) {
    return (0, _Emotion.css)(_templateObject47 || (_templateObject47 = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", ";\n\n      &:hover {\n        ", ";\n      }\n\n      &:active {\n        ", "\n      }\n    "])),
    (0, _Button.buttonUseMixin)(
      t.btnPrimaryBg,
      t.btnPrimaryBgStart,
      t.btnPrimaryBgEnd,
      t.btnPrimaryTextColor,
      t.btnPrimaryBorderColor,
      t.btnBorderWidth
    ),


    (0, _Button.buttonHoverMixin)(
      t.btnPrimaryHoverBg,
      t.btnPrimaryHoverBgStart,
      t.btnPrimaryHoverBgEnd,
      t.btnPrimaryHoverTextColor,
      t.btnPrimaryHoverBorderColor,
      t.btnBorderWidth
    ),



    activeStyles.primary(t));


  },

  success: function success(t) {
    return (0, _Emotion.css)(_templateObject48 || (_templateObject48 = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", ";\n\n      &:hover {\n        ", ";\n      }\n\n      &:active {\n        ", "\n      }\n    "])),
    (0, _Button.buttonUseMixin)(
      t.btnSuccessBg,
      t.btnSuccessBgStart,
      t.btnSuccessBgEnd,
      t.btnSuccessTextColor,
      t.btnSuccessBorderColor,
      t.btnBorderWidth
    ),


    (0, _Button.buttonHoverMixin)(
      t.btnSuccessHoverBg,
      t.btnSuccessHoverBgStart,
      t.btnSuccessHoverBgEnd,
      t.btnSuccessHoverTextColor,
      t.btnSuccessHoverBorderColor,
      t.btnBorderWidth
    ),



    activeStyles.success(t));


  },

  danger: function danger(t) {
    return (0, _Emotion.css)(_templateObject49 || (_templateObject49 = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", ";\n\n      &:hover {\n        ", ";\n      }\n\n      &:active {\n        ", "\n      }\n    "])),
    (0, _Button.buttonUseMixin)(
      t.btnDangerBg,
      t.btnDangerBgStart,
      t.btnDangerBgEnd,
      t.btnDangerTextColor,
      t.btnDangerBorderColor,
      t.btnBorderWidth
    ),


    (0, _Button.buttonHoverMixin)(
      t.btnDangerHoverBg,
      t.btnDangerHoverBgStart,
      t.btnDangerHoverBgEnd,
      t.btnDangerHoverTextColor,
      t.btnDangerHoverBorderColor,
      t.btnBorderWidth
    ),



    activeStyles.danger(t));


  },

  pay: function pay(t) {
    return (0, _Emotion.css)(_templateObject50 || (_templateObject50 = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", ";\n\n      &:hover {\n        ", ";\n      }\n\n      &:active {\n        ", "\n      }\n    "])),
    (0, _Button.buttonUseMixin)(
      t.btnPayBg,
      t.btnPayBgStart,
      t.btnPayBgEnd,
      t.btnPayTextColor,
      t.btnPayBorderColor,
      t.btnBorderWidth
    ),


    (0, _Button.buttonHoverMixin)(
      t.btnPayHoverBg,
      t.btnPayHoverBgStart,
      t.btnPayHoverBgEnd,
      t.btnPayHoverTextColor,
      t.btnPayHoverBorderColor,
      t.btnBorderWidth
    ),



    activeStyles.pay(t));


  },

  text: function text(t) {
    return (0, _Emotion.css)(_templateObject51 || (_templateObject51 = (0, _taggedTemplateLiteralLoose2.default)(["\n      &,\n      &:enabled,\n      &:hover {\n        box-shadow: none;\n      }\n\n      ", ";\n\n      &:hover {\n        ", ";\n      }\n\n      &:active {\n        ", "\n      }\n    "])),






    (0, _Button.buttonUseMixin)(t.btnTextBg, '', '', t.btnTextTextColor, t.btnTextBorderColor, t.btnBorderWidth),


    (0, _Button.buttonHoverMixin)(
      t.btnTextHoverBg,
      '',
      '',
      t.btnTextHoverTextColor,
      t.btnTextHoverBorderColor,
      t.btnBorderWidth
    ),



    activeStyles.text(t));


  },

  backless: function backless(t) {
    return (0, _Emotion.css)(_templateObject52 || (_templateObject52 = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", ";\n\n      &:hover {\n        ", ";\n      }\n\n      &:active {\n        ", "\n      }\n    "])),
    (0, _Button.buttonUseMixin)(t.btnBacklessBg, '', '', t.btnBacklessTextColor, t.btnBacklessBorderColor, t.btnBorderWidth),


    (0, _Button.buttonHoverMixin)(
      t.btnBacklessHoverBg,
      '',
      '',
      t.btnBacklessHoverTextColor,
      t.btnBacklessHoverBorderColor,
      t.btnBorderWidth
    ),



    activeStyles.backless(t));


  },

  checked: function checked(t) {
    var checkedStyles = "\n      background-image: none;\n      box-shadow: 0 0 0 " +

    t.btnBorderWidth + " " + t.btnDefaultCheckedBorderColor + " !important;\n      background-color: " +
    t.btnCheckedBg + " !important;\n      color: " +
    t.btnCheckedTextColor + " !important;\n\n      ." +

    globalClasses.innerShadow + " {\n        box-shadow: " +
    t.btnCheckedShadow + ";\n      }\n\n      :enabled svg {\n        color: " +



    t.btnCheckedTextColor + " !important;\n      }\n      :hover:enabled svg {\n        color: " +


    t.btnCheckedTextColor + " !important;\n      }\n    ";



    return (0, _Emotion.css)(_templateObject53 || (_templateObject53 = (0, _taggedTemplateLiteralLoose2.default)(["\n      ", "\n\n      &:hover:enabled,\n      &:active:enabled,\n      &:hover:active:enabled {\n        ", "\n      }\n    "])),
    checkedStyles,




    checkedStyles);


  },

  checkedFocused: function checkedFocused(t) {
    return (0, _Emotion.css)(_templateObject54 || (_templateObject54 = (0, _taggedTemplateLiteralLoose2.default)(["\n      &:hover:enabled,\n      &:hover:active:enabled {\n        box-shadow:\n          inset 0 0 0 ", " ", ",\n          0 0 0 ", " ", " !important;\n        border-color: ", " !important;\n      }\n    "])),



    t.btnInsetWidth, t.btnOutlineColorFocus,
    t.btnFocusShadowWidth, t.btnBorderColorFocus,
    t.btnBorderColorFocus);


  },

  checkedDisabled: function checkedDisabled(t) {
    return (0, _Emotion.css)(_templateObject55 || (_templateObject55 = (0, _taggedTemplateLiteralLoose2.default)(["\n      box-shadow: 0 0 0 ", " ", ";\n      background-color: ", ";\n      color: ", ";\n\n      .", " {\n        box-shadow: ", ";\n      }\n\n      svg {\n        color: ", " !important;\n      }\n    "])),
    t.btnBorderWidth, t.btnCheckedDisabledBorderColor,
    t.btnCheckedDisabledBg,
    t.btnCheckedDisabledColor,

    globalClasses.innerShadow,
    t.btnCheckedDisabledShadow,



    t.btnCheckedDisabledColor);


  },

  caption: function caption() {
    return (0, _Emotion.css)(_templateObject56 || (_templateObject56 = (0, _taggedTemplateLiteralLoose2.default)(["\n      position: relative;\n      white-space: nowrap;\n      display: inline-block;\n      width: 100%;\n      vertical-align: top;\n    "])));






  },

  captionLink: function captionLink() {
    return (0, _Emotion.css)(_templateObject57 || (_templateObject57 = (0, _taggedTemplateLiteralLoose2.default)(["\n      display: inline;\n      transform: none !important; // override root:active style\n    "])));



  },

  captionDisabled: function captionDisabled() {
    return (0, _Emotion.css)(_templateObject58 || (_templateObject58 = (0, _taggedTemplateLiteralLoose2.default)(["\n      transform: none !important; // override root:active style\n    "])));


  },

  wrap: function wrap(t) {
    return (0, _Emotion.css)(_templateObject59 || (_templateObject59 = (0, _taggedTemplateLiteralLoose2.default)(["\n      box-sizing: border-box;\n      display: inline-block;\n      line-height: normal;\n      padding: ", ";\n    "])),



    t.btnBorderWidth);

  },

  wrapSmall: function wrapSmall(t) {
    return (0, _Emotion.css)(_templateObject60 || (_templateObject60 = (0, _taggedTemplateLiteralLoose2.default)(["\n      height: ", ";\n    "])),
    t.btnHeightSmall);

  },

  wrapMedium: function wrapMedium(t) {
    return (0, _Emotion.css)(_templateObject61 || (_templateObject61 = (0, _taggedTemplateLiteralLoose2.default)(["\n      height: ", ";\n    "])),
    t.btnHeightMedium);

  },

  wrapLarge: function wrapLarge(t) {
    return (0, _Emotion.css)(_templateObject62 || (_templateObject62 = (0, _taggedTemplateLiteralLoose2.default)(["\n      height: ", ";\n    "])),
    t.btnHeightLarge);

  },

  narrow: function narrow() {
    return (0, _Emotion.css)(_templateObject63 || (_templateObject63 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: 5px;\n      padding-right: 5px;\n    "])));



  },

  noPadding: function noPadding() {
    return (0, _Emotion.css)(_templateObject64 || (_templateObject64 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-left: 0;\n      padding-right: 0;\n    "])));



  },

  noRightPadding: function noRightPadding() {
    return (0, _Emotion.css)(_templateObject65 || (_templateObject65 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding-right: 0;\n    "])));


  },

  wrapLink: function wrapLink() {
    return (0, _Emotion.css)(_templateObject66 || (_templateObject66 = (0, _taggedTemplateLiteralLoose2.default)(["\n      padding: 0;\n    "])));


  },

  borderless: function borderless() {
    return (0, _Emotion.css)(_templateObject67 || (_templateObject67 = (0, _taggedTemplateLiteralLoose2.default)(["\n      &,\n      &:active:hover,\n      &:hover {\n        box-shadow: none !important; // override root:hover style\n      }\n    "])));






  },

  backlessDisabled: function backlessDisabled(t) {
    return (0, _Emotion.css)(_templateObject68 || (_templateObject68 = (0, _taggedTemplateLiteralLoose2.default)(["\n      box-shadow: 0 0 0 1px ", ";\n      background-color: transparent;\n    "])),
    t.btnBacklessDisabledBorderColor);


  },

  textDisabled: function textDisabled() {
    return (0, _Emotion.css)(_templateObject69 || (_templateObject69 = (0, _taggedTemplateLiteralLoose2.default)(["\n      background-color: transparent;\n    "])));


  },

  loading: function loading() {
    return (0, _Emotion.css)(_templateObject70 || (_templateObject70 = (0, _taggedTemplateLiteralLoose2.default)(["\n      position: absolute;\n      top: 0;\n      bottom: 0;\n      left: 0;\n      right: 0;\n      border-radius: inherit;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      z-index: 10;\n    "])));











  },

  visibilityHidden: function visibilityHidden() {
    return (0, _Emotion.css)(_templateObject71 || (_templateObject71 = (0, _taggedTemplateLiteralLoose2.default)(["\n      visibility: hidden;\n    "])));


  }
});

var activeStyles = exports.activeStyles = (0, _Emotion.memoizeStyle)({
  default: function _default(t) {
    return (0, _Emotion.css)(_templateObject72 || (_templateObject72 = (0, _taggedTemplateLiteralLoose2.default)(["\n      & {\n        ", ";\n      }\n    "])),

    (0, _Button.buttonActiveMixin)(
      t.btnDefaultActiveBg,
      t.btnDefaultActiveShadow,
      t.btnDefaultActiveBorderColor,
      t.btnBorderWidth
    ));


  },

  primary: function primary(t) {
    return (0, _Emotion.css)(_templateObject73 || (_templateObject73 = (0, _taggedTemplateLiteralLoose2.default)(["\n      & {\n        ", ";\n      }\n    "])),

    (0, _Button.buttonActiveMixin)(
      t.btnPrimaryActiveBg,
      t.btnPrimaryActiveShadow,
      t.btnPrimaryActiveBorderColor,
      t.btnBorderWidth
    ));


  },

  success: function success(t) {
    return (0, _Emotion.css)(_templateObject74 || (_templateObject74 = (0, _taggedTemplateLiteralLoose2.default)(["\n      & {\n        ", ";\n      }\n    "])),

    (0, _Button.buttonActiveMixin)(
      t.btnSuccessActiveBg,
      t.btnSuccessActiveShadow,
      t.btnSuccessActiveBorderColor,
      t.btnBorderWidth
    ));


  },

  danger: function danger(t) {
    return (0, _Emotion.css)(_templateObject75 || (_templateObject75 = (0, _taggedTemplateLiteralLoose2.default)(["\n      & {\n        ", ";\n      }\n    "])),

    (0, _Button.buttonActiveMixin)(
      t.btnDangerActiveBg,
      t.btnDangerActiveShadow,
      t.btnDangerActiveBorderColor,
      t.btnBorderWidth
    ));


  },

  pay: function pay(t) {
    return (0, _Emotion.css)(_templateObject76 || (_templateObject76 = (0, _taggedTemplateLiteralLoose2.default)(["\n      & {\n        ", ";\n      }\n    "])),

    (0, _Button.buttonActiveMixin)(t.btnPayActiveBg, t.btnPayActiveShadow, t.btnPayActiveBorderColor, t.btnBorderWidth));


  },

  link: function link(t) {
    return (0, _Emotion.css)(_templateObject77 || (_templateObject77 = (0, _taggedTemplateLiteralLoose2.default)(["\n      & {\n        color: ", ";\n      }\n    "])),

    t.btnLinkActiveColor);


  },

  text: function text(t) {
    return (0, _Emotion.css)(_templateObject78 || (_templateObject78 = (0, _taggedTemplateLiteralLoose2.default)(["\n      & {\n        ", ";\n      }\n    "])),

    (0, _Button.buttonActiveMixin)(t.btnTextActiveBg, '', t.btnTextActiveBg, t.btnBorderWidth));


  },

  backless: function backless(t) {
    return (0, _Emotion.css)(_templateObject79 || (_templateObject79 = (0, _taggedTemplateLiteralLoose2.default)(["\n      & {\n        ", "\n      }\n    "])),

    (0, _Button.buttonActiveMixin)(t.btnBacklessActiveBg, '', t.btnBacklessActiveBorderColor, t.btnBorderWidth));


  }
});