@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
54 lines (52 loc) • 1.41 kB
JavaScript
/**
* VERSION: 2.230.0-alpha.0
* BUILD_TIMESTAMP: 1778694684677
* BUILD_DATE: Wed May 13 2026 17:51:24 GMT+0000 (Coordinated Universal Time)
* BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
*/
import { i as c, e as g, g as u, j as o, c as F, F as s } from "../sheerid.js";
import { F as f } from "./FormFieldTypeahead-C6eS7yJg.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
};