import { DICCTIONARY as o } from "../../dictionary.js";
import { useDynamicFilterStore as i } from "../../store/useDynamicFilterStore.js";
function C() {
  const r = i((t) => t.automatic), e = i((t) => t.ownerState?.isValid), l = i((t) => t.ownerState?.isDirty), s = i((t) => t.ownerState?.inEdition), n = i((t) => t.appliedFilters), { clearFilters: a, fireOnChangeFilters: c } = i(
    (t) => t.actions
  );
  function d() {
    a();
  }
  const f = n.findIndex((t) => !t.fixed) > -1, p = n.length > 0, u = e ? l ? o.filter_tooltip_dirty : o.filter_tooltip_refresh : o.filter_tooltip_invalid;
  return {
    automatic: r,
    canShowRemoveAction: f,
    hasAppliedFilters: p,
    onClickClearFilters: d,
    onClickFilter: c,
    filterButtonDictionaryTooltip: u,
    ownerState: { isValid: e, inEdition: s }
  };
}
export {
  C as default
};
