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