import _defineProperty from "@babel/runtime/helpers/defineProperty";

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

import makeStyles from "../../../../ui/styles/makeStyles";
var getClasses = makeStyles(function (_ref) {
  var _ref$cleverUI = _ref.cleverUI,
      spaces = _ref$cleverUI.spaces,
      colors = _ref$cleverUI.colors,
      typography = _ref$cleverUI.typography;
  return {
    button: _objectSpread(_objectSpread({
      height: "fit-content",
      minHeight: "unset",
      color: colors.primary[500],
      borderRadius: spaces.lg,
      backgroundColor: colors.primary[50],
      border: "2px solid ".concat(colors.primary[500]),
      padding: "".concat(spaces.xs, " ").concat(spaces.lg),
      cursor: "pointer",
      marginTop: "6px"
    }, typography.variants.small), {}, {
      fontWeight: 600,
      "&:disabled": {
        color: colors.neutral[400],
        backgroundColor: colors.neutral[50],
        borderColor: colors.neutral[400],
        cursor: "unset"
      },
      "& > div > span": {
        gap: 0
      },
      "& svg > path": {
        fill: "currentColor"
      }
    }),
    inputContainer: {
      width: "100%",
      position: "relative",
      "&:focus-within > button": {
        display: "inline-flex"
      }
    },
    input: {
      width: "100%",
      "& input:focus": {
        paddingRight: spaces["2xl"]
      },
      "& input:disabled::placeholder": {
        color: colors.neutral[200]
      }
    },
    enterButton: {
      padding: spaces.sm,
      position: "absolute",
      top: spaces.xs,
      right: spaces.xs,
      minHeight: "unset",
      display: "none",
      "&:disabled svg > path": {
        fill: colors.primary[300]
      }
    },
    loadingContainer: {
      width: "100%",
      height: "100%",
      transform: "none !important"
    }
  };
});
export default getClasses;