
/**
 *   VERSION: 2.239.0-alpha.0
 *   BUILD_TIMESTAMP: 1780012993002
 *   BUILD_DATE: Fri May 29 2026 00:03:13 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 3344b6c0fd9fa858907db310cfb1ef5e0d224da2
 */
import { b7 as F, d as s, j as n } from "../sheerid.js";
import { I as C } from "./InputText-D8Ob-kQk.js";
import { F as j } from "./FormFieldLayout-DEVPpEyA.js";
const l = (t, r = void 0) => (F(t) || []).length >= 2 && !r, v = ({
  fieldId: t,
  value: r,
  onChange: a,
  placeholder: m,
  label: d,
  errorMessage: o,
  showPlaceholderAndHideLabel: e = !1,
  required: i = !0,
  explanation: u = "",
  ...p
}) => {
  const x = `sid-${s(t)}-error`;
  return /* @__PURE__ */ n.jsx(
    j,
    {
      fieldId: t,
      label: d,
      errorMessage: o,
      showPlaceholderAndHideLabel: e,
      isRequired: i,
      explanation: u,
      children: /* @__PURE__ */ n.jsx(
        C,
        {
          id: s(t),
          value: r,
          onChange: (c) => a(c.target.value),
          placeholder: e ? m : "",
          hidePlaceholder: !e,
          refId: t,
          isErrored: !!o,
          required: i,
          "aria-describedby": o ? x : void 0,
          ...p
        }
      )
    }
  );
};
export {
  v as F,
  l as i
};
