
/**
 *   VERSION: 2.239.0-alpha.0
 *   BUILD_TIMESTAMP: 1780012993002
 *   BUILD_DATE: Fri May 29 2026 00:03:13 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 3344b6c0fd9fa858907db310cfb1ef5e0d224da2
 */
import { i as g, g as m, j as a, a as F, F as i } from "../sheerid.js";
import { F as u } from "./FormFieldTypeahead-CVa8xBC0.js";
const f = ({
  value: o,
  isErrored: n,
  onChange: s,
  verificationService: e,
  intl: t,
  placeholder: r = "",
  disabled: d = !1
}) => m("organization")?.hidden ? null : /* @__PURE__ */ a.jsx(
  u,
  {
    fieldId: "first-responder-organization",
    value: o,
    verificationService: e,
    onChange: (l) => s(l),
    placeholder: r || t.formatHTMLMessage({ id: "organizationPlaceholder", defaultMessage: "Organization" }),
    label: /* @__PURE__ */ a.jsx(i, { id: "organization", defaultMessage: "Organization" }),
    errorMessage: n && /* @__PURE__ */ a.jsx(
      i,
      {
        id: "errorId.invalidOrganization",
        defaultMessage: "You must select an organization from the list"
      }
    ),
    orgSearchUrl: F(
      e.viewModel,
      e.programTheme
    ),
    showPlaceholderAndHideLabel: !!r,
    isRequired: !0,
    disabled: d
  }
), M = g(f);
export {
  M as F
};
