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