"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.featureFlagsAdapter = void 0;
const FeatureFlagsPM_1 = require("../PMs/FeatureFlagsPM");
exports.featureFlagsAdapter = {
    defaultVM: [],
    subscribe: (appObjects, setVM) => {
        const pm = FeatureFlagsPM_1.FeatureFlagsPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("featureFlagsAdapter", "Unable to find FeatureFlagsPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        const pm = FeatureFlagsPM_1.FeatureFlagsPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("featureFlagsAdapter", "Unable to find FeatureFlagsPM");
            return;
        }
        pm.removeView(setVM);
    },
};
//# sourceMappingURL=featureFlagsAdapter.js.map