import { AllowHoverLabelPM } from "../PM/AllowHoverLabelPM";
export const allowHoverLabelAdapter = {
    defaultVM: true,
    subscribe: (appObjects, setVM) => {
        const pm = AllowHoverLabelPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("allowHoverLabelAdapter", "Unable to find AllowHoverLabelPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        const pm = AllowHoverLabelPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("allowHoverLabelAdapter", "Unable to find AllowHoverLabelPM");
            return;
        }
        pm.removeView(setVM);
    },
};
//# sourceMappingURL=allowHoverLabelAdapter.js.map