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