import { jsx as e } from "react/jsx-runtime";
import { a as o } from "./ProgressActivity.DYLCzf8q.js";
import { M as a, a as i } from "./index.dWlEA7uO.js";
import { n as c } from "./index.B0wX8xO7.js";
import { s } from "./formInputIcon.module.CU3tuFAI.js";
var m = /* @__PURE__ */ ((r) => (r.IDLE = "IDLE", r.LOADING = "LOADING", r.ERROR = "ERROR", r.SUCCESS = "SUCCESS", r))(m || {});
const R = ({
  status: r = "IDLE"
  /* IDLE */
}) => /* @__PURE__ */ e(
  c,
  {
    value: r,
    then: {
      IDLE: void 0,
      LOADING: /* @__PURE__ */ e("div", { className: s.validatingIconWrapper, children: /* @__PURE__ */ e(o, { className: s.validatingIcon }) }),
      ERROR: /* @__PURE__ */ e(i, { size: 24, className: s.errorIcon }),
      SUCCESS: /* @__PURE__ */ e(a, { size: 24, className: s.successIcon })
    },
    otherwise: void 0
  }
);
export {
  R as F,
  m as I
};
