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