UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

27 lines 943 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var Actions = require("../actions"); exports.initialSmartMatchesState = {}; exports.jobSmartMatchesReducer = function (state, action) { if (state === void 0) { state = exports.initialSmartMatchesState; } switch (action.type) { case Actions.SET_SMART_MATCHES: { return setSmartMatches(state, action); } case Actions.SET_SMART_MATCHES_BATCH: { return setSmartMatchesBatch(state, action); } default: { return state; } } }; var setSmartMatches = function (state, action) { return (tslib_1.__assign({}, state, (_a = {}, _a[action.refId] = action.scrMatches, _a))); var _a; }; var setSmartMatchesBatch = function (state, action) { return (tslib_1.__assign({}, state, action.scrMatches)); }; //# sourceMappingURL=smart-matches.js.map