import { jsxs as x, jsx as e } from "react/jsx-runtime";
import { c as n } from "./index.CfM2L_w0.js";
import { n as c } from "./index.B0wX8xO7.js";
import { a as C } from "./index.CfQlFjZU.js";
const h = "creator_smsContentBox_eaIq-", p = "creator_title_QkIcq", N = "creator_textarea_Cb9GA", d = "creator_textarea__error_uXIMj", u = "creator_helper_vicVi", v = "creator_helper__error_OC-wh", t = { smsContentBox: h, title: p, textarea: N, textarea__error: d, helper: u, helper__error: v }, S = ({
  label: a,
  helper: s,
  hasError: r,
  ...o
}) => ({
  ...o,
  label: a,
  helper: s,
  hasError: r,
  containerClassName: t.smsContentBox,
  labelClassName: t.title,
  textareaClassName: n(t.textarea, {
    [t.textarea__error]: r
  }),
  helperClassName: n(t.helper, {
    [t.helper__error]: r
  })
}), f = ({
  label: a,
  helper: s,
  containerClassName: r,
  labelClassName: o,
  helperClassName: l,
  textareaClassName: _,
  onChange: m,
  value: i
}) => /* @__PURE__ */ x("div", { className: r, children: [
  /* @__PURE__ */ e(
    c,
    {
      value: a,
      then: /* @__PURE__ */ e("div", { className: o, children: a })
    }
  ),
  /* @__PURE__ */ e("div", { className: _, children: /* @__PURE__ */ e("textarea", { onChange: m, value: i }) }),
  /* @__PURE__ */ e(
    c,
    {
      value: s,
      then: /* @__PURE__ */ e("div", { className: l, children: s })
    }
  )
] }), I = C(
  f,
  S
);
export {
  f as S,
  I as a,
  S as u
};
