"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _AffixSt = require("./Affix.st.css.js");
var _InputConsumer = _interopRequireDefault(require("../InputConsumer"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/Input/components/Affix/Affix.tsx";
var Affix = _ref => {
  var {
    children,
    value
  } = _ref;
  return /*#__PURE__*/_react.default.createElement(_InputConsumer.default, {
    consumerCompName: Affix.displayName,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 12,
      columnNumber: 3
    }
  }, _ref2 => {
    var {
      size,
      inPrefix,
      inSuffix,
      border,
      disabled,
      onInputClicked
    } = _ref2;
    return /*#__PURE__*/_react.default.createElement("div", {
      className: (0, _AffixSt.st)(_AffixSt.classes.root, {
        size,
        inPrefix,
        inSuffix,
        border,
        disabled
      }),
      onClick: onInputClicked,
      "data-hook": "custom-affix",
      __self: void 0,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 14,
        columnNumber: 7
      }
    }, value || children);
  });
};
Affix.displayName = 'Input.Affix';
var _default = exports.default = Affix;
//# sourceMappingURL=Affix.js.map