"use strict";

exports.__esModule = true;
exports.initTabTotal = void 0;
var _FilterValueTotalState = require("./FilterValueTotalState");
const initTabTotal = (props, params) => state => {
  return {
    init: () => {
      const disposers = props.data.map(value => new _FilterValueTotalState.FilterValueTotalState({
        ...params,
        filter: props.filter,
        value,
        collection: state.collection
      }).init());
      return () => {
        disposers.forEach(d => d());
      };
    },
    initTask: null
  };
};
exports.initTabTotal = initTabTotal;
//# sourceMappingURL=initTabTotal.js.map