
/**
 *   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.240.0-alpha.1
 *   BUILD_TIMESTAMP: 1780360182346
 *   BUILD_DATE: Tue Jun 02 2026 00:29:42 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 758cedd37e00f49a728d704d9ed36884f0f12d79
 */
import { i as S, j as t, F as d } from "../_mysheerid-preview.js";
import { F as m } from "./FormFieldInputSelect-BlLhAwUh.js";
const I = ({
  value: o,
  isErrored: r,
  options: a,
  onChange: n,
  intl: i,
  placeholder: s = "",
  label: c = "",
  isRequired: f = !1,
  disabled: u = !1
}) => {
  const l = "state";
  return /* @__PURE__ */ t.jsx(
    m,
    {
      fieldId: l,
      value: a.find((e) => e.value === o),
      refId: "state",
      onChange: (e) => n(e),
      placeholder: s || i.formatHTMLMessage({
        id: "statePlaceholder",
        defaultMessage: "State"
      }),
      label: c || /* @__PURE__ */ t.jsx(d, { id: "state", defaultMessage: "State" }),
      errorMessage: r && /* @__PURE__ */ t.jsx(d, { id: "errorId.invalidState", defaultMessage: "Invalid state" }),
      showPlaceholderAndHideLabel: !!s,
      options: a,
      isRequired: f,
      buttonRef: "inputSelectButtonState",
      containerId: `sid-${l}__select`,
      disabled: u,
      autoComplete: "address-level1"
    }
  );
}, p = S(I);
export {
  p as S
};
