"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.overlayColorAdapter = void 0;
const Entities_1 = require("../Entities");
const OverlayColorPM_1 = require("../PM/OverlayColorPM");
exports.overlayColorAdapter = {
    defaultVM: Entities_1.OverlayColorEnums.NONE,
    subscribe: (id, appObjects, setVM) => {
        const pm = OverlayColorPM_1.OverlayColorPM.getForID(id, appObjects);
        if (!pm) {
            appObjects.submitError("overlayColorAdapter", "Unable to find OverlayColorPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        const pm = OverlayColorPM_1.OverlayColorPM.getForID(id, appObjects);
        if (pm) {
            pm.removeView(setVM);
        }
    },
};
//# sourceMappingURL=overlayColorAdapter.js.map