import { FilterValueTotalState, } from './FilterValueTotalState';
export const initTabTotal = (props, params) => (state) => {
    return {
        init: () => {
            const disposers = props.data.map((value) => new FilterValueTotalState({
                ...params,
                filter: props.filter,
                value,
                collection: state.collection,
            }).init());
            return () => {
                disposers.forEach((d) => d());
            };
        },
        initTask: null,
    };
};
//# sourceMappingURL=initTabTotal.js.map