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