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