require('./LinkButton.styles_1y8q8yy.css');
'use strict';

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

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

var mergedConfig = /*#__PURE__*/common.mergeConfig(Spinner$1.spinnerConfig);
var Spinner = /*#__PURE__*/common.component(mergedConfig);
var base = "b1ak1po6";
var StyledAdditionalContent = /*#__PURE__*/react.styled('div')({
  name: "StyledAdditionalContent",
  "class": "sx1d9zg",
  propsAsIs: false
});
var _exp3 = function _exp3() {
  return function (_ref) {
    var isLoading = _ref.isLoading;
    return isLoading ? '0.06' : '1';
  };
};
var LoadWrap = /*#__PURE__*/react.styled('div')({
  name: "LoadWrap",
  "class": "l1s4hcn1",
  propsAsIs: false,
  vars: {
    "l1s4hcn1-0": [/*#__PURE__*/_exp3()]
  }
});
var Loader = /*#__PURE__*/react.styled('div')({
  name: "Loader",
  "class": "luuddel",
  propsAsIs: false
});
var _exp4 = function _exp4() {
  return Spinner;
};
var StyledSpinner = /*#__PURE__*/react.styled(_exp4())({
  name: "StyledSpinner",
  "class": "sqhx8qg",
  propsAsIs: true
});
var LinkButtonText = /*#__PURE__*/react.styled('span')({
  name: "LinkButtonText",
  "class": "l2hlikm",
  propsAsIs: false
});
var _exp11 = function _exp11() {
  return function (_ref2) {
    var hasContent = _ref2.hasContent;
    return hasContent ? "var(".concat(LinkButton_tokens.tokens.linkButtonLeftContentMargin, ")") : '0';
  };
};
var StyledContentLeft = /*#__PURE__*/react.styled('div')({
  name: "StyledContentLeft",
  "class": "soeoa2f",
  propsAsIs: false,
  vars: {
    "soeoa2f-0": [/*#__PURE__*/_exp11()]
  }
});
var _exp13 = function _exp13() {
  return function (_ref3) {
    var hasContent = _ref3.hasContent;
    return hasContent ? "var(".concat(LinkButton_tokens.tokens.linkButtonRightContentMargin, ")") : '0';
  };
};
var StyledContentRight = /*#__PURE__*/react.styled('div')({
  name: "StyledContentRight",
  "class": "s1734sex",
  propsAsIs: false,
  vars: {
    "s1734sex-0": [/*#__PURE__*/_exp13()]
  }
});

exports.LinkButtonText = LinkButtonText;
exports.LoadWrap = LoadWrap;
exports.Loader = Loader;
exports.StyledAdditionalContent = StyledAdditionalContent;
exports.StyledContentLeft = StyledContentLeft;
exports.StyledContentRight = StyledContentRight;
exports.StyledSpinner = StyledSpinner;
exports.base = base;
