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