"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.labelDropDragItemAdapter = void 0;
const LabelDropDragItemPM_1 = require("../PM/LabelDropDragItemPM");
exports.labelDropDragItemAdapter = {
    defaultVM: LabelDropDragItemPM_1.defaultLabelDropDragItemVM,
    subscribe: (appObjects, setVM) => {
        const pm = LabelDropDragItemPM_1.LabelDropDragItemPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("labelDropDragItemAdapter", "Unable to find LabelDropDragItemPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        LabelDropDragItemPM_1.LabelDropDragItemPM.get(appObjects)?.removeView(setVM);
    },
};
//# sourceMappingURL=labelDropDragItemAdapter.js.map