"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "HidingMap", {
    enumerable: true,
    get: function() {
        return HidingMap;
    }
});
const _physicalIndexToValueMap = require("./physicalIndexToValueMap");
const _array = require("../../helpers/array");
class HidingMap extends _physicalIndexToValueMap.PhysicalIndexToValueMap {
    /**
   * Get physical indexes which are hidden.
   *
   * Note: Indexes marked as hidden are included in a {@link DataMap}, but aren't rendered.
   *
   * @returns {Array}
   */ getHiddenIndexes() {
        return (0, _array.arrayReduce)(this.getValues(), (indexesList, isHidden, physicalIndex)=>{
            if (isHidden) {
                indexesList.push(physicalIndex);
            }
            return indexesList;
        }, []);
    }
    constructor(initValueOrFn = false){
        super(initValueOrFn);
    }
}
