import { jsx as k } from "@emotion/react/jsx-runtime";
import { normalizeDaysOfWeekPickerPropsFromBackend as y } from "./normalizeDaysOfWeekPickerPropsFromBackend.js";
import { resolveFieldHelperMessage as b, resolveFieldMandatory as F } from "../../../resolveFieldContractAliases.js";
import { RHFDaysOfWeekPicker as P } from "../../../../../hook-form/RHFDaysOfWeekPicker/RHFDaysOfWeekPicker.js";
const W = {
  componentIds: ["RHFDaysOfWeekPicker"],
  /** Renders the RHFDaysOfWeekPicker component for the given field and context. */
  render(r) {
    const { field: e, props: s } = r, { size: o = "medium", disabled: a, readOnly: l, getLabel: n, suppressLabel: t } = s, { name: d } = e, i = b(e), m = F(e), p = y(e, n), { resolvedLabel: c, ...f } = p;
    return (
      // @ts-expect-error - value is provided automatically by withRHFController
      /* @__PURE__ */ k(
        P,
        {
          name: d,
          size: o,
          ...!t && { mandatory: m, label: c },
          helperMessage: i || "",
          disabled: a || l,
          ...f
        }
      )
    );
  }
};
export {
  W as daysOfWeekPickerStrategy
};
