"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.clearActiveObjectsOverlays = clearActiveObjectsOverlays;
const Entities_1 = require("../Entities");
const ClearModelObjectOverlaysUC_1 = require("../UC/ClearModelObjectOverlaysUC");
function clearActiveObjectsOverlays(appObjects) {
    const repo = Entities_1.ChannelModelRepo.get(appObjects);
    if (!repo) {
        appObjects.submitError("clearActiveObjectsOverlays", "Unable to find ChannelModelRepo");
        return;
    }
    if (!repo.activeModel) {
        appObjects.submitWarning("clearActiveObjectsOverlays", "No Model is Active");
        return;
    }
    const uc = ClearModelObjectOverlaysUC_1.ClearModelObjectOverlaysUC.get(repo.activeModel, appObjects);
    if (!uc) {
        appObjects.submitError("clearActiveObjectsOverlays", "Unable to find ClearModelObjectOverlaysUC");
        return;
    }
    uc.clearOverlays();
}
//# sourceMappingURL=clearActiveObjectsOverlays.js.map