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