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