"use strict";

exports.__esModule = true;
exports.default = void 0;

var _styledComponents = _interopRequireWildcard(require("styled-components"));

var _utils = require("../utils");

var _polished = require("polished");

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

var borderColor = function borderColor(base) {
  return (0, _utils.ifFlag)("primary", (0, _utils.getThemeProp)(["colors", "application", "base"], base), base);
};

var background = (0, _utils.ifFlag)("primary", (0, _utils.ifFlag)("active", (0, _styledComponents.css)(["color:#fff;background-image:linear-gradient( ", ",", " );&:enabled:active{background-image:none;background-color:#fff;color:", ";}"], (0, _utils.getThemeProp)(["colors", "application", "base"], "#333", function (color) {
  return (0, _polished.tint)(0.05, color);
}), (0, _utils.getThemeProp)(["colors", "application", "base"], "#333"), (0, _utils.getThemeProp)(["colors", "application", "base"], "#333")), (0, _styledComponents.css)(["color:", ";background-image:none;background-color:#fff;&:enabled:active{color:#fff;background-image:linear-gradient( ", ",", " );}"], (0, _utils.getThemeProp)(["colors", "application", "base"], "#333"), (0, _utils.getThemeProp)(["colors", "application", "base"], "#333", function (color) {
  return (0, _polished.tint)(0.05, color);
}), (0, _utils.getThemeProp)(["colors", "application", "base"], "#333"))), (0, _utils.ifFlag)("active", (0, _styledComponents.css)(["background-image:none;background-color:", ";&:enabled:active{background-color:#f7f7f7;}"], (0, _utils.getThemeProp)(["colors", "bgLight"], "#efefef")), (0, _styledComponents.css)(["background-image:none;background-color:#f7f7f7;&:enabled:active{background-color:", ";}"], (0, _utils.getThemeProp)(["colors", "bgLight"], "#efefef"))));

var Button = _styledComponents.default.button.withConfig({
  displayName: "Button",
  componentId: "sc-1rffh1n-0"
})(["display:inline-block;margin:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;white-space:nowrap;padding:6px 10px;font-size:13px;line-height:1.42857;border-radius:4px;user-select:none;height:30px;border:1px solid ", ";outline:none;font-family:", ";text-transform:uppercase;min-width:50px;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);", ";&:enabled:active,&:enabled:focus,&:enabled:hover{border-color:", ";box-shadow:0 0 4px #4fa1f0;outline:none;}&:disabled{opacity:0.6;cursor:default;}"], borderColor((0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc")), (0, _utils.getThemeProp)(["fonts", "header"], "sans-serif"), background, borderColor("#4fa1f0"));

var _default = Button;
var _default2 = _default;
var _default3 = _default2;
exports.default = _default3;
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(borderColor, "borderColor", "/home/vsts/work/1/s/src/components/Button.js");
  reactHotLoader.register(background, "background", "/home/vsts/work/1/s/src/components/Button.js");
  reactHotLoader.register(Button, "Button", "/home/vsts/work/1/s/src/components/Button.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Button.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();

;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(borderColor, "borderColor", "/home/vsts/work/1/s/src/components/Button.js");
  reactHotLoader.register(background, "background", "/home/vsts/work/1/s/src/components/Button.js");
  reactHotLoader.register(Button, "Button", "/home/vsts/work/1/s/src/components/Button.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Button.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();