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