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