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