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