"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../../utils/index.js"),i=require("styled-components"),s=require("../Field/utils.js"),d=require("../IconButton/styles.js");function l(e){return e&&e.__esModule?e:{default:e}}var a=l(i);const u=a.default.div.withConfig({shouldForwardProp:r.convertToTransientProps(["fullWidth"])})`
  width: ${e=>e.fullWidth?"100%":"300px"};
  font-family: ${e=>e.theme.font.familyPrimary};
`,c=a.default.div.withConfig({shouldForwardProp:r.convertToTransientProps(["hasLabel","hasError","stepperVariant"])})`
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: ${e=>e.disabled&&e.stepperVariant&&e.stepperVariant.includes("input-form")?r.getColorAlias("disabled01"):"transparent"};
  ${r.getDefaultTransition()};

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

  ${d.IconButtonContainer} {
    position: relative;
    top: 0px;
    left: 0px;
  }

  ${e=>e.stepperVariant==="input-form"&&i.css`
      border: 1px solid
        ${!e.disabled&&e.hasError?r.getColorAlias("contentError"):r.getColorAlias("containerDark")};

      border-radius: ${t=>t.theme.radius.roundedD};

      &:hover {
        background: ${!e.disabled&&r.getDarkenColor("hover01","backgroundDefault")};
      }
    `}
`,g=a.default.input.withConfig({shouldForwardProp:r.convertToTransientProps(["hasError","hasLabel","stepperVariant","buttonsDisabled","componentHeight"])})`
  color: ${r.getColorAlias("contentSubdued")};
  font-family: ${e=>e.theme.font.familyPrimary};
  background: ${({stepperVariant:e,buttonsDisabled:t})=>e==="input"&&t?r.getColorAlias("disabled01"):"transparent"};
  ${e=>s.getFieldPadding(e.componentHeight)};
  border: none;
  width: 50%;
  text-align: center;

  ::-webkit-outer-spin-button,
  ::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    margin: ${r.getSpacing("s00")};
  }

  ${r.getFontSize("size16")};
  ${r.getDefaultTransition()};

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

  ${({stepperVariant:e,buttonsDisabled:t,hasError:n})=>{switch(e){case"high-emphasis-wide":return i.css`
          font-weight: ${o=>o.theme.font.weightBold};
          ${r.getFontSize("size24")};
        `;case"high-emphasis-narrow":return i.css`
          font-weight: ${o=>o.theme.font.weightBold};
          ${r.getFontSize("size20")};
        `;case"input":return i.css`
          border: 1px solid
            ${!t&&n?r.getColorAlias("contentError"):r.getColorAlias("containerDark")};
          margin: ${r.getSpacing("s00","s02")};
          border-radius: ${o=>o.theme.radius.roundedD};

          &:hover {
            background: ${!t&&r.getDarkenColor("hover01","backgroundDefault")};
          }
        `}}}
`,h=a.default.div`
  margin: 8px 0;
  border-radius: ${e=>e.theme.radius.roundedD};
  position: relative;
  &:focus-within {
    box-shadow: 0 0 0 2px ${r.getColorAlias("focusOuter")};
  }
`;exports.Border=c;exports.FocusBorder=h;exports.NumberField=g;exports.Wrapper=u;
