require('./Button.styles_inigzo.css');
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var react = require('@linaria/react');
var Button_tokens = require('./Button.tokens.js');
var common = require('../../engines/common.js');
var Spinner$1 = require('../Spinner/Spinner.js');

// issue #823
var mergedConfig = /*#__PURE__*/common.mergeConfig(Spinner$1.spinnerConfig);
var Spinner = /*#__PURE__*/common.component(mergedConfig);
var ButtonText = /*#__PURE__*/react.styled('span')({
  name: "ButtonText",
  "class": "b1gnd6ak",
  propsAsIs: false
});
var StyledAdditionalContent = /*#__PURE__*/react.styled('div')({
  name: "StyledAdditionalContent",
  "class": "ss7vh3f",
  propsAsIs: false
});
var ButtonValue = /*#__PURE__*/react.styled('span')({
  name: "ButtonValue",
  "class": "b1yx6hiw",
  propsAsIs: false
});

// TODO: #720
var _exp1 = function _exp1() {
  return function (_ref) {
    var isLoading = _ref.isLoading;
    return isLoading ? '0' : '1';
  };
};
var _exp10 = function _exp10() {
  return function (_ref2) {
    var contentPlacing = _ref2.contentPlacing;
    return contentPlacing;
  };
};
var LoadWrap = /*#__PURE__*/react.styled('div')({
  name: "LoadWrap",
  "class": "lrqv885",
  propsAsIs: false,
  vars: {
    "lrqv885-0": [/*#__PURE__*/_exp1()],
    "lrqv885-1": [/*#__PURE__*/_exp10()]
  }
});
var Loader = /*#__PURE__*/react.styled('div')({
  name: "Loader",
  "class": "l1lycp7n",
  propsAsIs: false
});
var _exp11 = function _exp11() {
  return Spinner;
};
var StyledSpinner = /*#__PURE__*/react.styled(_exp11())({
  name: "StyledSpinner",
  "class": "saclpcg",
  propsAsIs: true
});
var _exp18 = function _exp18() {
  return function (_ref3) {
    var hasContentMargin = _ref3.hasContentMargin;
    return hasContentMargin ? "var(".concat(Button_tokens.tokens.buttonLeftContentMargin, ")") : 0;
  };
};
var StyledContentLeft = /*#__PURE__*/react.styled('div')({
  name: "StyledContentLeft",
  "class": "szteube",
  propsAsIs: false,
  vars: {
    "szteube-0": [/*#__PURE__*/_exp18()]
  }
});
var _exp21 = function _exp21() {
  return function (_ref4) {
    var hasContentMargin = _ref4.hasContentMargin;
    return hasContentMargin ? "var(".concat(Button_tokens.tokens.buttonRightContentMargin, ")") : 0;
  };
};
var StyledContentRight = /*#__PURE__*/react.styled('div')({
  name: "StyledContentRight",
  "class": "s1hdeihd",
  propsAsIs: false,
  vars: {
    "s1hdeihd-0": [/*#__PURE__*/_exp21()]
  }
});
var base = "b1j5igjb";

exports.ButtonText = ButtonText;
exports.ButtonValue = ButtonValue;
exports.LoadWrap = LoadWrap;
exports.Loader = Loader;
exports.StyledAdditionalContent = StyledAdditionalContent;
exports.StyledContentLeft = StyledContentLeft;
exports.StyledContentRight = StyledContentRight;
exports.StyledSpinner = StyledSpinner;
exports.base = base;
