"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;
