"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const tokens = require("../tokens.js");
const Vue = require("vue");
function useMapState() {
  var _a;
  const store = (_a = Vue.inject(tokens.TABLE_INJECTION_KEY)) == null ? void 0 : _a.store;
  return {
    leftFixedLeafCount: Vue.computed(() => {
      return (store == null ? void 0 : store.states.fixedLeafColumnsLength.value) ?? 0;
    }),
    rightFixedLeafCount: Vue.computed(() => {
      return (store == null ? void 0 : store.states.rightFixedColumns.value.length) ?? 0;
    }),
    columnsCount: Vue.computed(() => {
      return (store == null ? void 0 : store.states.columns.value.length) ?? 0;
    }),
    leftFixedCount: Vue.computed(() => {
      return (store == null ? void 0 : store.states.fixedColumns.value.length) ?? 0;
    }),
    rightFixedCount: Vue.computed(() => {
      return (store == null ? void 0 : store.states.rightFixedColumns.value.length) ?? 0;
    }),
    columns: Vue.computed(() => (store == null ? void 0 : store.states.columns.value) ?? [])
  };
}
exports.default = useMapState;
