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