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