"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasStoredViewAdapter = void 0;
const HasStoredViewPM_1 = require("../PM/HasStoredViewPM");
exports.hasStoredViewAdapter = {
    defaultVM: false,
    subscribe: (appObjects, setVM) => {
        const pm = HasStoredViewPM_1.HasStoredViewPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("inspectorTabAdapter", "Unable to find HasStoredViewPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        HasStoredViewPM_1.HasStoredViewPM.get(appObjects)?.removeView(setVM);
    },
};
//# sourceMappingURL=hasStoredViewAdapter.js.map