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