"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDiskEncryptionEnabledOnStatus = exports.getStackTypeLabel = exports.getManagementType = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const common_1 = require("../../../../common");
const getManagementType = ({ userManagedNetworking }) => userManagedNetworking ? 'User-Managed networking' : 'Cluster-managed networking';
exports.getManagementType = getManagementType;
const getStackTypeLabel = (cluster) => (0, common_1.isDualStack)(cluster) ? 'Dual-stack' : 'IPv4';
exports.getStackTypeLabel = getStackTypeLabel;
const getDiskEncryptionEnabledOnStatus = (diskEncryption) => {
    let diskEncryptionType = null;
    switch (diskEncryption) {
        case undefined:
        case 'none':
            break;
        case 'all':
            diskEncryptionType = (react_1.default.createElement(react_1.default.Fragment, null,
                "Enabled on control plane nodes",
                react_1.default.createElement("br", null),
                "Enabled on workers"));
            break;
        case 'masters':
            diskEncryptionType = react_1.default.createElement(react_1.default.Fragment, null, "Enabled on control plane nodes");
            break;
        case 'workers':
            diskEncryptionType = react_1.default.createElement(react_1.default.Fragment, null, "Enabled on workers");
            break;
        case 'arbiters':
            diskEncryptionType = react_1.default.createElement(react_1.default.Fragment, null, "Enabled on arbiters");
            break;
        case 'masters,arbiters':
            diskEncryptionType = react_1.default.createElement(react_1.default.Fragment, null, "Enabled on control plane nodes and arbiters");
            break;
        case 'masters,workers':
            diskEncryptionType = react_1.default.createElement(react_1.default.Fragment, null, "Enabled on control plane nodes and workers");
            break;
        case 'arbiters,workers':
            diskEncryptionType = react_1.default.createElement(react_1.default.Fragment, null, "Enabled on arbiters and workers");
            break;
        case 'masters,arbiters,workers':
            diskEncryptionType = (react_1.default.createElement(react_1.default.Fragment, null,
                "Enabled on control plane nodes",
                react_1.default.createElement("br", null),
                "Enabled on arbiters",
                react_1.default.createElement("br", null),
                "Enabled on workers"));
            break;
        default: {
            const _exhaustive = diskEncryption;
            return _exhaustive;
        }
    }
    return diskEncryptionType;
};
exports.getDiskEncryptionEnabledOnStatus = getDiskEncryptionEnabledOnStatus;
//# sourceMappingURL=utils.js.map