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