"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ParseWhere = void 0;
var ParseWhere = function (filter, storage) {
    var skip = false;
    var filtersData = {};
    if (!storage)
        return {};
    if (!filter)
        return filtersData;
    for (var key in filter) {
        var filterKey = filter[key];
        var split = filterKey.split(/:/g);
        if (split.length < 2) {
            filtersData[key] = filterKey;
            continue;
        }
        else if (storage.getValue(split[split.length - 1]) === undefined) {
            skip = true;
            break;
        }
        ;
        filtersData[key] = storage.getValue(split[split.length - 1]);
    }
    ;
    if (skip)
        return filtersData;
    return filtersData;
};
exports.ParseWhere = ParseWhere;
//# sourceMappingURL=types.appendix.js.map