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