@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
50 lines (48 loc) • 1.46 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 g, g as m, j as a, c as f, F as o } from "../_mysheerid-preview.js";
import { F as M } from "./FormFieldTypeahead-CyKKVK89.js";
const u = ({
value: n,
isErrored: r,
onChange: s,
verificationService: e,
intl: t,
placeholder: i = "",
disabled: d = !1
}) => m("organization")?.hidden ? null : /* @__PURE__ */ a.jsx(
M,
{
fieldId: "medical-professional-organization",
value: n,
verificationService: e,
onChange: (l) => s(l),
placeholder: i || t.formatHTMLMessage({ id: "organizationPlaceholder", defaultMessage: "Organization" }),
label: /* @__PURE__ */ a.jsx(o, { id: "organization", defaultMessage: "Organization" }),
errorMessage: r && /* @__PURE__ */ a.jsx(
o,
{
id: "errorId.invalidOrganization",
defaultMessage: "You must select an organization from the list"
}
),
orgSearchUrl: f(
e.viewModel,
e.programTheme
),
showPlaceholderAndHideLabel: !!i,
isRequired: !0,
disabled: d
}
), F = g(u);
export {
F as M
};