import './LinkButton.styles_1y8q8yy.css';
import { styled } from '@linaria/react';
import { tokens } from './LinkButton.tokens.js';
import { component, mergeConfig } from '../../engines/common.js';
import { spinnerConfig } from '../Spinner/Spinner.js';

var mergedConfig = /*#__PURE__*/mergeConfig(spinnerConfig);
var Spinner = /*#__PURE__*/component(mergedConfig);
var base = "b1ak1po6";
var StyledAdditionalContent = /*#__PURE__*/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__*/styled('div')({
  name: "LoadWrap",
  "class": "l1s4hcn1",
  propsAsIs: false,
  vars: {
    "l1s4hcn1-0": [/*#__PURE__*/_exp3()]
  }
});
var Loader = /*#__PURE__*/styled('div')({
  name: "Loader",
  "class": "luuddel",
  propsAsIs: false
});
var _exp4 = function _exp4() {
  return Spinner;
};
var StyledSpinner = /*#__PURE__*/styled(_exp4())({
  name: "StyledSpinner",
  "class": "sqhx8qg",
  propsAsIs: true
});
var LinkButtonText = /*#__PURE__*/styled('span')({
  name: "LinkButtonText",
  "class": "l2hlikm",
  propsAsIs: false
});
var _exp11 = function _exp11() {
  return function (_ref2) {
    var hasContent = _ref2.hasContent;
    return hasContent ? "var(".concat(tokens.linkButtonLeftContentMargin, ")") : '0';
  };
};
var StyledContentLeft = /*#__PURE__*/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(tokens.linkButtonRightContentMargin, ")") : '0';
  };
};
var StyledContentRight = /*#__PURE__*/styled('div')({
  name: "StyledContentRight",
  "class": "s1734sex",
  propsAsIs: false,
  vars: {
    "s1734sex-0": [/*#__PURE__*/_exp13()]
  }
});

export { LinkButtonText, LoadWrap, Loader, StyledAdditionalContent, StyledContentLeft, StyledContentRight, StyledSpinner, base };
