
/**
 *   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 h, f as u, g as c, j as o, a as F, F as l } from "../sheerid.js";
import { F as f } from "./FormFieldTypeahead-BYkRNOT7.js";
const M = ({
  value: s,
  isErrored: r,
  onChange: d,
  verificationService: e,
  intl: t,
  placeholder: a = "",
  isRequired: n = !0,
  disabled: i = !1
}) => {
  const g = (u().urlAddSchoolForm || "").trim();
  return c("organization")?.hidden ? null : /* @__PURE__ */ o.jsx(
    f,
    {
      fieldId: "college-name",
      value: s,
      verificationService: e,
      onChange: (m) => d(m),
      placeholder: a || t.formatHTMLMessage({
        id: "schoolNamePlaceholder",
        defaultMessage: "University / College name"
      }),
      label: /* @__PURE__ */ o.jsx(l, { id: "schoolName", defaultMessage: "University / College name" }),
      errorMessage: r && /* @__PURE__ */ o.jsx(
        l,
        {
          id: "errorId.invalidOrganization",
          defaultMessage: "You must select an organization from the list"
        }
      ),
      isRequired: n,
      showPlaceholderAndHideLabel: !!a,
      orgSearchUrl: F(
        e.viewModel,
        e.programTheme
      ),
      urlAddSchoolForm: g,
      disabled: i
    }
  );
}, x = h(M);
export {
  x as C
};
