
/**
 *   VERSION: 2.240.0-alpha.1
 *   BUILD_TIMESTAMP: 1780360168537
 *   BUILD_DATE: Tue Jun 02 2026 00:29:28 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 758cedd37e00f49a728d704d9ed36884f0f12d79
 */
import { i as g, g as m, j as a, a as f, F as o } from "../sheerid.js";
import { F as M } from "./FormFieldTypeahead-BYkRNOT7.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
  }
), c = g(u);
export {
  c as M
};
