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