@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
54 lines (52 loc) • 1.44 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 h, e as c, g as u, j as o, c as F, F as l } from "../sheerid.js";
import { F as f } from "./FormFieldTypeahead-C6eS7yJg.js";
const M = ({
value: s,
isErrored: r,
onChange: d,
verificationService: e,
intl: t,
placeholder: a = "",
isRequired: n = !0,
disabled: i = !1
}) => {
const g = (c().urlAddSchoolForm || "").trim();
return u("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
};