import { OverlayColorEnums } from "../Entities";
import { OverlayColorPM } from "../PM/OverlayColorPM";
export const overlayColorAdapter = {
    defaultVM: OverlayColorEnums.NONE,
    subscribe: (id, appObjects, setVM) => {
        const pm = OverlayColorPM.getForID(id, appObjects);
        if (!pm) {
            appObjects.submitError("overlayColorAdapter", "Unable to find OverlayColorPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        const pm = OverlayColorPM.getForID(id, appObjects);
        if (pm) {
            pm.removeView(setVM);
        }
    },
};
//# sourceMappingURL=overlayColorAdapter.js.map