
/**
 *   VERSION: 2.240.0-alpha.1
 *   BUILD_TIMESTAMP: 1780360168537
 *   BUILD_DATE: Tue Jun 02 2026 00:29:28 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 758cedd37e00f49a728d704d9ed36884f0f12d79
 */
import { i as f, g as b, j as e, F as d } from "../sheerid.js";
import { F as M } from "./FormFieldText-CPwStdCx.js";
const u = ({
  value: s,
  isErrored: i,
  onChange: l,
  explanation: t,
  intl: o,
  placeholder: a = "",
  isRequired: r = !1,
  label: m,
  disabled: n = !1
}) => {
  const I = () => r ? "" : /* @__PURE__ */ e.jsx(d, { id: "optional", defaultMessage: "Optional" });
  return b("memberId")?.hidden ? null : /* @__PURE__ */ e.jsx(
    M,
    {
      fieldId: "member-id",
      refId: "memberId",
      value: s,
      onChange: l,
      placeholder: a || o.formatHTMLMessage({ id: "memberIdPlaceholder", defaultMessage: "ID Number" }),
      label: m || /* @__PURE__ */ e.jsx(d, { id: "memberId", defaultMessage: "ID Number" }),
      errorMessage: i && /* @__PURE__ */ e.jsx(d, { id: "errorId.invalidMemberId", defaultMessage: "Invalid ID Number" }),
      showPlaceholderAndHideLabel: !!a,
      explanation: t || I(),
      required: r,
      disabled: n
    }
  );
}, F = f(u);
export {
  F as M
};
