import { jsxs as f, jsx as e } from "react/jsx-runtime";
import { c as T } from "./index.CfM2L_w0.js";
import { n as _ } from "./index.B0wX8xO7.js";
import { a as A } from "./index.CfQlFjZU.js";
import { u as d } from "./useId.7P31viIO.js";
import { T as v } from "./TextAreaField.CZMa8u-h.js";
const I = "creator_container_sZ-cD", y = "creator_label_0drlx", C = "creator_helper_9YciI", j = "creator_helper__error_AlKv7", o = { container: I, label: y, helper: C, helper__error: j }, $ = ({
  label: c,
  helper: r,
  prefixIcon: n,
  suffixIcon: a,
  isDisabled: i,
  isError: l,
  textAreaClassName: m,
  ...p
}) => {
  const s = d(), t = d();
  return {
    ...p,
    labelId: s,
    label: c,
    helperId: t,
    helper: r,
    labelledby: `${s} ${t}`,
    prefixIcon: n,
    suffixIcon: a,
    isDisabled: i,
    isError: l,
    containerClassName: o.container,
    labelClassName: o.label,
    helperClassName: T(o.helper, {
      [o.helper__error]: l
    }),
    textAreaClassName: m
  };
}, w = ({
  labelId: c,
  label: r,
  helperId: n,
  helper: a,
  labelledby: i,
  prefixIcon: l,
  suffixIcon: m,
  isDisabled: p,
  isError: s,
  containerClassName: t,
  labelClassName: h,
  textAreaContainerClassName: b,
  helperClassName: u,
  textAreaClassName: x,
  ...N
}) => /* @__PURE__ */ f("div", { className: t, children: [
  /* @__PURE__ */ e(
    _,
    {
      value: r,
      then: /* @__PURE__ */ e("label", { id: c, className: h, children: r })
    }
  ),
  /* @__PURE__ */ e(
    v,
    {
      prefixIcon: l,
      suffixIcon: m,
      isDisabled: p,
      isError: s,
      "aria-labelledby": i,
      textAreaClassName: x,
      textAreaContainerClassName: b,
      ...N
    }
  ),
  /* @__PURE__ */ e(
    _,
    {
      value: a,
      then: /* @__PURE__ */ e("label", { id: n, className: u, children: a })
    }
  )
] }), g = A(w, $);
export {
  w as T,
  g as a,
  $ as u
};
