"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    useExecutionStatusLabel: ()=>useExecutionStatusLabel
});
const external_react_namespaceObject = require("react");
const index_cjs_namespaceObject = require("../../../i18n/index.cjs");
function useExecutionStatusLabel() {
    const { _ } = (0, index_cjs_namespaceObject.useSafeLingui)();
    return (0, external_react_namespaceObject.useCallback)((status)=>{
        switch(status){
            case 'InProgress':
                return _({
                    id: 'stage-node.status.in-progress',
                    message: 'In progress'
                });
            case 'Completed':
                return _({
                    id: 'stage-node.status.completed',
                    message: 'Completed'
                });
            case 'Paused':
                return _({
                    id: 'stage-node.status.paused',
                    message: 'Paused'
                });
            case 'Failed':
                return _({
                    id: 'stage-node.status.failed',
                    message: 'Failed'
                });
            case 'Cancelled':
            case 'UserCancelled':
                return _({
                    id: 'stage-node.status.cancelled',
                    message: 'Cancelled'
                });
            case 'Terminated':
                return _({
                    id: 'stage-node.status.terminated',
                    message: 'Terminated'
                });
            case 'NotExecuted':
                return _({
                    id: 'stage-node.status.not-executed',
                    message: 'Not started'
                });
            case 'Warning':
                return _({
                    id: 'stage-node.status.warning',
                    message: 'Warning'
                });
            default:
                return '';
        }
    }, [
        _
    ]);
}
exports.useExecutionStatusLabel = __webpack_exports__.useExecutionStatusLabel;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "useExecutionStatusLabel"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
