"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.agentStatus = exports.bmhStatus = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_core_1 = require("@patternfly/react-core");
const connected_icon_1 = require("@patternfly/react-icons/dist/js/icons/connected-icon");
const exclamation_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-circle-icon");
const common_1 = require("../../../common");
const bmhStatus = (t) => ({
    'bmh-error': {
        key: 'bmh-error',
        title: t('ai:Error'),
        category: 'Bare Metal Host related',
    },
    registering: {
        key: 'registering',
        title: t('ai:Registering'),
        category: 'Bare Metal Host related',
    },
    provisioning: {
        key: 'provisioning',
        title: t('ai:Provisioning'),
        category: 'Bare Metal Host related',
    },
    deleting: {
        key: 'deleting',
        title: t('ai:Deleting'),
        category: 'Bare Metal Host related',
    },
    provisioned: {
        key: 'provisioned',
        title: t('ai:Provisioned'),
        category: 'Bare Metal Host related',
    },
    deprovisioning: {
        key: 'deprovisioning',
        title: t('ai:Deprovisioning'),
        category: 'Bare Metal Host related',
    },
    inspecting: {
        key: 'inspecting',
        title: t('ai:Inspecting'),
        category: 'Bare Metal Host related',
    },
    pending: {
        key: 'pending',
        title: t('ai:Pending'),
        category: 'Bare Metal Host related',
    },
    'externally provisioned': {
        key: 'externally provisioned',
        title: t('ai:Externally provisioned'),
        category: 'Bare Metal Host related',
    },
});
exports.bmhStatus = bmhStatus;
const agentStatus = (t) => (Object.assign(Object.assign(Object.assign(Object.assign({}, (0, common_1.hostStatus)(t)), { discovered: {
        key: 'discovered',
        title: t('ai:Discovered'),
        icon: React.createElement(connected_icon_1.ConnectedIcon, null),
        noPopover: true,
        category: 'Discovery related',
        details: t('ai:The host has been discovered and needs to be approved to before further use.'),
    } }), (0, exports.bmhStatus)(t)), { specSyncErr: {
        key: 'specSyncErr',
        title: t('ai:Sync error'),
        icon: (React.createElement(react_core_1.Icon, { status: "danger" },
            React.createElement(exclamation_circle_icon_1.ExclamationCircleIcon, null))),
        category: 'Discovery related',
    } }));
exports.agentStatus = agentStatus;
//# sourceMappingURL=agentStatus.js.map