
/**
 *   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.239.0-alpha.0
 *   BUILD_TIMESTAMP: 1780013005605
 *   BUILD_DATE: Fri May 29 2026 00:03:25 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 3344b6c0fd9fa858907db310cfb1ef5e0d224da2
 */
import { i as g, g as m, j as a, a as h, F as r } from "../_mysheerid-preview.js";
import { F as M } from "./FormFieldTypeahead-BeJtNfmN.js";
const p = ({
  value: o,
  isErrored: s,
  onChange: n,
  verificationService: e,
  intl: t,
  placeholder: i = "",
  disabled: d = !1
}) => m("organization")?.hidden ? null : /* @__PURE__ */ a.jsx(
  M,
  {
    fieldId: "membership",
    value: o,
    verificationService: e,
    onChange: (l) => n(l),
    placeholder: i || t.formatHTMLMessage({
      id: "organizationPlaceholder",
      defaultMessage: "Organization"
    }),
    label: /* @__PURE__ */ a.jsx(r, { id: "organization", defaultMessage: "Organization" }),
    errorMessage: s && /* @__PURE__ */ a.jsx(
      r,
      {
        id: "errorId.invalidOrganization",
        defaultMessage: "You must select an organization from the list"
      }
    ),
    orgSearchUrl: h(
      e.viewModel,
      e.programTheme
    ),
    showPlaceholderAndHideLabel: !!i,
    disabled: d
  }
), F = g(p);
export {
  F as M
};
