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