import { jsx as o } from "@emotion/react/jsx-runtime";
import { useModuleDictionary as y, useEnvironment as M } from "@m4l/core";
import { pathIcons as I } from "../../../../icons.js";
import { LayoutDensityCompactOutlined as h, LayoutDensityStandardOutlined as S, LayoutDensityConfortableOutlined as C, SettingsConfigOutlined as v, MenuMoreVerticalOutlined as O } from "@m4l/icons";
import { useModalSettings as w } from "../../../../views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js";
import { useModalSettings as k } from "../../../../views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js";
import { useModalSettings as D } from "../../../../views/ListView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js";
import { useDataGrid as $ } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
import { useFilters as A } from "../../../../hooks/shared/useFilters/useFilters.js";
import { MenuActions as L } from "../../../../../MenuActions/MenuActions.js";
const T = (l) => {
  const { columns: e } = l, { getLabel: t } = y(), { host_static_assets: c, environment_assets: d } = M(), { currentRowHeightVariant: i, setRowHeightVariant: n, size: a, viewMode: s } = $(), { activeFilters: r, setActiveFilters: m } = A(), u = w(a, e), g = k(a, e), p = D(a, e), f = s === "cards" ? g : s === "list" ? p : u, b = () => {
    m(!r);
  }, _ = [
    {
      type: "menuItem",
      startIcon: /* @__PURE__ */ o(h, {}),
      onClick: () => n("compact"),
      disabled: i === "compact",
      label: t("data_grid.density_compact")
    },
    {
      type: "menuItem",
      startIcon: /* @__PURE__ */ o(S, {}),
      onClick: () => n("standard"),
      disabled: i === "standard",
      label: t("data_grid.density_standard")
    },
    {
      type: "menuItem",
      startIcon: /* @__PURE__ */ o(C, {}),
      onClick: () => n("confortable"),
      disabled: i === "confortable",
      label: t("data_grid.density_confortable")
    },
    {
      type: "menuItem",
      startIcon: `${c}/${d}/${I.filter}`,
      onClick: () => b(),
      label: t(r ? "data_grid.tooltip_filter_hide" : "data_grid.tooltip_filter_show")
    },
    {
      type: "menuItem",
      startIcon: /* @__PURE__ */ o(v, {}),
      onClick: () => f(),
      label: t("data_grid.tooltip_settings")
    }
  ];
  return /* @__PURE__ */ o(
    L,
    {
      className: "mobile-menu-actions",
      icon: /* @__PURE__ */ o(O, {}),
      arrowType: "no-arrow",
      anchorOrigin: { vertical: "bottom", horizontal: "right" },
      transformOrigin: { vertical: "top", horizontal: "right" },
      menuActions: _
    }
  );
};
export {
  T as MobileMenuActions
};
