require('./Input.styles_18qhvs7.css');
'use strict';

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

var react = require('@linaria/react');
var NumberInput_tokens = require('../../NumberInput.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 _exp = function _exp() {
  return function (_ref) {
    var isManualInput = _ref.isManualInput;
    return isManualInput ? 'text' : 'default';
  };
};
var InputWrapper = /*#__PURE__*/react.styled('div')({
  name: "InputWrapper",
  "class": "ionzb69",
  propsAsIs: false,
  vars: {
    "ionzb69-0": [/*#__PURE__*/_exp()]
  }
});
var TextWrapper = /*#__PURE__*/react.styled('div')({
  name: "TextWrapper",
  "class": "t1a1e3pz",
  propsAsIs: false
});
var AdditionalText = /*#__PURE__*/react.styled('span')({
  name: "AdditionalText",
  "class": "a1jhvtdz",
  propsAsIs: false
});
var Loader = /*#__PURE__*/react.styled('div')({
  name: "Loader",
  "class": "l1kh87uj",
  propsAsIs: false
});
var _exp2 = function _exp2() {
  return Spinner;
};
var StyledSpinner = /*#__PURE__*/react.styled(_exp2())({
  name: "StyledSpinner",
  "class": "scyyy4p",
  propsAsIs: true
});
var DynamicInput = /*#__PURE__*/react.styled('div')({
  name: "DynamicInput",
  "class": "dhxez4z",
  propsAsIs: false
});
var _exp3 = function _exp3() {
  return function (_ref2) {
    var dynamicWidth = _ref2.dynamicWidth;
    return dynamicWidth;
  };
};
var _exp4 = function _exp4() {
  return function (_ref3) {
    var isManualInput = _ref3.isManualInput;
    return isManualInput ? 'text' : 'default';
  };
};
var _exp5 = function _exp5() {
  return function (_ref4) {
    var isManualInput = _ref4.isManualInput;
    return isManualInput ? 'initial' : 'none';
  };
};
var _exp6 = function _exp6() {
  return function (_ref5) {
    var isManualInput = _ref5.isManualInput;
    return isManualInput ? "var(".concat(NumberInput_tokens.tokens.caretColor, ")") : 'transparent';
  };
};
var Input = /*#__PURE__*/react.styled('input')({
  name: "Input",
  "class": "i1q3xr1o",
  propsAsIs: false,
  vars: {
    "i1q3xr1o-0": [/*#__PURE__*/_exp3()],
    "i1q3xr1o-1": [/*#__PURE__*/_exp4()],
    "i1q3xr1o-2": [/*#__PURE__*/_exp5()],
    "i1q3xr1o-3": [/*#__PURE__*/_exp6()]
  }
});
var InputWidthHelper = /*#__PURE__*/react.styled('span')({
  name: "InputWidthHelper",
  "class": "i1pia430",
  propsAsIs: false
});

exports.AdditionalText = AdditionalText;
exports.DynamicInput = DynamicInput;
exports.Input = Input;
exports.InputWidthHelper = InputWidthHelper;
exports.InputWrapper = InputWrapper;
exports.Loader = Loader;
exports.StyledSpinner = StyledSpinner;
exports.TextWrapper = TextWrapper;
