@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
58 lines (56 loc) • 1.65 kB
JavaScript
/**
* WARNING: This file is intended to be used within MySheerID.
* This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
*/
/**
* VERSION: 2.230.0-alpha.0
* BUILD_TIMESTAMP: 1778694697559
* BUILD_DATE: Wed May 13 2026 17:51:37 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 "../_mysheerid-preview.js";
import { F as f } from "./FormFieldTypeahead-CyKKVK89.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
};