import { ModelObjectsHaveOverlayPM } from "../PMs/ModelObjectsHaveOverlayPM";
export const modelObjectsHaveOverlayAdapter = {
    defaultVM: false,
    subscribe: (id, appObjects, setVM) => {
        if (!id)
            return;
        const pm = ModelObjectsHaveOverlayPM.get(id, appObjects);
        if (!pm) {
            appObjects.submitError("modelObjectsHaveOverlayAdapter", "Unable to find ModelObjectsHaveOverlayPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        if (!id)
            return;
        const pm = ModelObjectsHaveOverlayPM.get(id, appObjects);
        if (!pm) {
            appObjects.submitError("modelObjectsHaveOverlayAdapter", "Unable to find ModelObjectsHaveOverlayPM");
            return;
        }
        pm.removeView(setVM);
    },
};
//# sourceMappingURL=modelObjectsHaveOverlayAdapter.js.map