import { jsx as y } from "react/jsx-runtime";
import { useMemo as T } from "react";
import { c as u, f as b, s as k, a as C } from "../tools/tools.js";
const N = function(r) {
  const {
    as: d = "div",
    children: c,
    className: a,
    dropOldClass: e,
    invalidFeedback: s,
    invalidTooltip: t,
    style: o,
    validFeedback: i,
    validTooltip: l,
    variables: n,
    ...m
  } = r, p = T(() => {
    const f = u(
      !e && b(
        ["invalid-feedback", s],
        ["invalid-tooltip", t],
        ["valid-feedback", i],
        ["valid-tooltip", l],
        ["form-text", !0]
      ),
      a
    ), v = k((B, x) => ({ tKey: C(x) }), n, o);
    return {
      className: f,
      style: v
    };
  }, [a, e, s, t, o, i, l, n]);
  return /* @__PURE__ */ y(d, { ...m, ...p, children: c });
};
N.displayName = "BRL.Text";
export {
  N as T
};
//# sourceMappingURL=text.js.map
