"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__, {
    getExecutionStatusBorder: ()=>getExecutionStatusBorder,
    pulseAnimation: ()=>pulseAnimation
});
const react_namespaceObject = require("@emotion/react");
const pulseAnimation = (cssVar)=>(0, react_namespaceObject.keyframes)`
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(${cssVar}) 20%, transparent);
  }
  70% {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(${cssVar}) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(${cssVar}) 0%, transparent);
  }
`;
const getExecutionStatusBorder = (executionStatus)=>{
    switch(executionStatus){
        case 'NotExecuted':
        case 'INFO':
            return (0, react_namespaceObject.css)`
        border-color: var(--canvas-border-de-emp);
      `;
        case 'InProgress':
            return (0, react_namespaceObject.css)`
        border-color: var(--canvas-info-icon);
        animation: ${pulseAnimation('--canvas-info-icon')} 2s infinite;
      `;
        case 'Completed':
            return (0, react_namespaceObject.css)`
        border-color: var(--canvas-success-icon);
      `;
        case 'ActionNeeded':
        case 'Paused':
        case 'Warning':
        case 'WARNING':
            return (0, react_namespaceObject.css)`
        border-color: var(--canvas-warning-icon);
        animation: ${pulseAnimation('--canvas-warning-icon')} 2s infinite;
      `;
        case 'Cancelled':
        case 'Failed':
        case 'Terminated':
        case 'ERROR':
        case 'CRITICAL':
            return (0, react_namespaceObject.css)`
        border-color: var(--canvas-error-icon);
        background: var(--canvas-error-background);
        animation: ${pulseAnimation('--canvas-error-icon')} 2s infinite;
      `;
        default:
            return (0, react_namespaceObject.css)`
        border-color: var(--canvas-border-de-emp);
      `;
    }
};
exports.getExecutionStatusBorder = __webpack_exports__.getExecutionStatusBorder;
exports.pulseAnimation = __webpack_exports__.pulseAnimation;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "getExecutionStatusBorder",
    "pulseAnimation"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
