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