import './LinkButton.styles_ztirgn.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 = "b15p59s9";
var StyledAdditionalContent = /*#__PURE__*/styled('div')({
  name: "StyledAdditionalContent",
  "class": "s1tk0pdn",
  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": "lwmk0e5",
  propsAsIs: false,
  vars: {
    "lwmk0e5-0": [/*#__PURE__*/_exp3()]
  }
});
var Loader = /*#__PURE__*/styled('div')({
  name: "Loader",
  "class": "l7ptchj",
  propsAsIs: false
});
var _exp4 = function _exp4() {
  return Spinner;
};
var StyledSpinner = /*#__PURE__*/styled(_exp4())({
  name: "StyledSpinner",
  "class": "s12rghuz",
  propsAsIs: true
});
var LinkButtonText = /*#__PURE__*/styled('span')({
  name: "LinkButtonText",
  "class": "l1uogc3z",
  propsAsIs: false
});
var _exp15 = function _exp15() {
  return function (_ref2) {
    var hasContent = _ref2.hasContent;
    return hasContent ? "var(".concat(tokens.linkButtonLeftContentMargin, ")") : '0';
  };
};
var StyledContentLeft = /*#__PURE__*/styled('div')({
  name: "StyledContentLeft",
  "class": "s176p3a0",
  propsAsIs: false,
  vars: {
    "s176p3a0-0": [/*#__PURE__*/_exp15()]
  }
});
var _exp17 = function _exp17() {
  return function (_ref3) {
    var hasContent = _ref3.hasContent;
    return hasContent ? "var(".concat(tokens.linkButtonRightContentMargin, ")") : '0';
  };
};
var StyledContentRight = /*#__PURE__*/styled('div')({
  name: "StyledContentRight",
  "class": "slixkvc",
  propsAsIs: false,
  vars: {
    "slixkvc-0": [/*#__PURE__*/_exp17()]
  }
});

export { LinkButtonText, LoadWrap, Loader, StyledAdditionalContent, StyledContentLeft, StyledContentRight, StyledSpinner, base };
//# sourceMappingURL=LinkButton.styles.js.map
