import { jsx as p } from "@emotion/react/jsx-runtime";
import { useModuleDictionary as _, useEnvironment as S } from "@m4l/core";
import { DICTIONARY as t } from "./dictionary.js";
import { DEFAULT_IMAGE_URL as A, NO_ITEM_PRIVILEGES_CLASSES as T } from "./constants.js";
import f from "clsx";
import { useComponentSize as u } from "../../hooks/useComponentSize/index.js";
import { NoItemPrivilegesRootStyled as N } from "./slots/NoItemPrivilegesSlots.js";
const b = (o) => {
  const { image: s, title: i, message: r, className: m, dataTestId: a, size: l } = o, { getLabel: e } = _(), { host_static_assets: n, environment_assets: c } = S(), E = s || `${n}/${c}/${A}`, g = i || e(t.LABEL_TITLE), I = r || e(t.LABEL_MESSAGE), { currentSize: L } = u(l);
  return /* @__PURE__ */ p(
    N,
    {
      imageUrl: E,
      title: g,
      message: I,
      size: L,
      className: f(T.root, m),
      dataTestId: a,
      role: "alert",
      "aria-label": "NoItemPrivileges",
      imageAriaLabel: "illustration no item privileges"
    }
  );
};
export {
  b as NoItemPrivileges
};
