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