var __read = (this && this.__read) || function (o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
};
var __spread = (this && this.__spread) || function () {
    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
    return ar;
};
var TapConfigProvider = /** @class */ (function () {
    function TapConfigProvider() {
        this.config = {
            version: '1.0.0'
        };
    }
    Object.defineProperty(TapConfigProvider.prototype, "bundles", {
        get: function () {
            var _a;
            return ((_a = this.config.data) === null || _a === void 0 ? void 0 : _a.bundles) || [];
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TapConfigProvider.prototype, "variables", {
        get: function () {
            return this.bundles.reduce(function (p, bundle) {
                p.push.apply(p, __spread((bundle.variables || [])));
                return p;
            }, []);
        },
        enumerable: true,
        configurable: true
    });
    return TapConfigProvider;
}());
export { TapConfigProvider };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFwLWNvbmZpZy1wcm92aWRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL2V4dC9jb25maWcvIiwic291cmNlcyI6WyJsaWIvdGFwLWNvbmZpZy1wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVBO0lBQUE7UUFFWSxXQUFNLEdBQWM7WUFDeEIsT0FBTyxFQUFFLE9BQU87U0FDbkIsQ0FBQztJQVlOLENBQUM7SUFWRyxzQkFBSSxzQ0FBTzthQUFYOztZQUNJLE9BQU8sT0FBQSxJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksMENBQUUsT0FBTyxLQUFJLEVBQUUsQ0FBQztRQUMzQyxDQUFDOzs7T0FBQTtJQUVELHNCQUFJLHdDQUFTO2FBQWI7WUFDSSxPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLFVBQUMsQ0FBQyxFQUFFLE1BQU07Z0JBQ2pDLENBQUMsQ0FBQyxJQUFJLE9BQU4sQ0FBQyxXQUFTLENBQUMsTUFBTSxDQUFDLFNBQVMsSUFBSSxFQUFFLENBQUMsR0FBRTtnQkFDcEMsT0FBTyxDQUFDLENBQUM7WUFDYixDQUFDLEVBQUUsRUFBc0IsQ0FBQyxDQUFDO1FBQy9CLENBQUM7OztPQUFBO0lBQ0wsd0JBQUM7QUFBRCxDQUFDLEFBaEJELElBZ0JDIn0=