"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("styled-components"),t=require("../../../utils/index.js"),l=require("../utils.js");function a(e){return e&&e.__esModule?e:{default:e}}var o=a(i);const n=o.default.input.withConfig({shouldForwardProp:t.convertToTransientProps(["hasError"])})`
  color: ${e=>e.disabled?t.getColorAlias("contentDisabled"):t.getColorAlias("contentDefault")};
  font-family: ${e=>e.theme.font.familyPrimary};
  background: ${e=>e.disabled?t.getColorAlias("disabled01"):"transparent"};
  ${t.getFontSize("size16")};
  ${e=>l.getFieldPadding(e.variant)};
  border-radius: ${e=>e.theme.radius.roundedC};
  border: unset;
  width: 100%;
  ${t.getDefaultTransition("background")};

  &::placeholder {
    color: ${e=>e.disabled?t.getColorAlias("contentDisabled"):t.getColorAlias("contentSubdued")};
    font-weight: ${e=>e.theme.font.weightRegular};
  }

  &:hover {
    cursor: ${e=>e.disabled?"not-allowed":"auto"};
  }

  &:focus:hover {
    background: ${e=>e.disabled?t.getColorAlias("disabled01"):t.getColorAlias("containerDefault")};
  }

  &:focus {
    outline: none;
    ${e=>!e.hasError&&i.css`
        border: none;
      `};
  }
`,r=o.default.div`
  display: flex;
  color: ${t.getColorAlias("contentDefault")};
  ${t.getFontSize("size16")};
  svg {
    color: ${t.getColorAlias("contentDefault")};
    height: 24px;
    width: 24px;
  }
`,d=o.default(r)``,s=o.default(r)`
  cursor: ${e=>e.hasHandler?"pointer":"auto"};
`;exports.Prefix=d;exports.PrefixSufix=r;exports.Sufix=s;exports.TextFieldInput=n;
