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