import { jsx } from 'react/jsx-runtime';
import { F as FieldLabel } from './FieldLabel-Cm5A1Jcx.js';
import { S as SrOnly } from './SrOnly-pnf8ajnh.js';

const SelectFieldLabel = ({
  aiMark,
  label,
  getLabelProps,
  hideLabel = false,
  moreInfo,
  moreInfoId,
  moreInfoOpen,
  required
}) => {
  const labelContent = /* @__PURE__ */ jsx(
    FieldLabel,
    {
      ...getLabelProps(),
      aiMark,
      required,
      moreInfo,
      moreInfoId,
      moreInfoOpen,
      children: label
    }
  );
  if (hideLabel) {
    return /* @__PURE__ */ jsx(SrOnly, { children: labelContent });
  }
  return labelContent;
};

export { SelectFieldLabel as S };
//# sourceMappingURL=SelectFieldLabel-dKVBaki2.js.map
