"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = (module)=>{
        var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __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__, {
    TriggerIconWrapper: ()=>TriggerIconWrapper,
    TriggerContainer: ()=>TriggerContainer
});
const react_namespaceObject = require("@emotion/react");
const styled_namespaceObject = require("@emotion/styled");
var styled_default = /*#__PURE__*/ __webpack_require__.n(styled_namespaceObject);
const TriggerContainer = styled_default().div`
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--canvas-background);
  border: 1.5px solid var(--canvas-border-de-emp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  ${({ selected })=>selected ? (0, react_namespaceObject.css)`
          border-color: var(--canvas-primary);
          outline: 4px solid var(--canvas-secondary-pressed);
        ` : (0, react_namespaceObject.css)`
          &:hover {
            outline: 4px solid var(--canvas-secondary-pressed);
          }
        `}

  ${({ status })=>'Completed' === status && (0, react_namespaceObject.css)`
      border-color: var(--canvas-success-icon);
    `}

  ${({ status })=>'InProgress' === status && (0, react_namespaceObject.css)`
      border-color: var(--canvas-info-icon);
    `}

  ${({ status })=>'Paused' === status && (0, react_namespaceObject.css)`
      border-color: var(--canvas-warning-icon);
    `}

  ${({ status })=>'Failed' === status && (0, react_namespaceObject.css)`
      border-color: var(--canvas-error-icon);
    `}

  ${({ status })=>'NotExecuted' === status && (0, react_namespaceObject.css)`
      opacity: 0.8;
    `}
`;
const TriggerIconWrapper = styled_default().div`
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--canvas-foreground);
  background: var(--canvas-background-secondary);
  border-radius: 50%;

  width: ${({ nodeHeight })=>{
    const scaleFactor = nodeHeight ? nodeHeight / 96 : 1;
    return `${72 * scaleFactor}px`;
}};
  height: ${({ nodeHeight })=>{
    const scaleFactor = nodeHeight ? nodeHeight / 96 : 1;
    return `${72 * scaleFactor}px`;
}};

  ${({ status })=>'Completed' === status && (0, react_namespaceObject.css)`
      color: var(--canvas-success-icon);
    `}

  ${({ status })=>'InProgress' === status && (0, react_namespaceObject.css)`
      color: var(--canvas-info-icon);
    `}

  ${({ status })=>'Paused' === status && (0, react_namespaceObject.css)`
      color: var(--canvas-warning-icon);
    `}

  ${({ status })=>'Failed' === status && (0, react_namespaceObject.css)`
      color: var(--canvas-error-icon);
    `}

  svg {
    width: ${({ nodeHeight })=>{
    const scaleFactor = nodeHeight ? nodeHeight / 96 : 1;
    return `${40 * scaleFactor}px`;
}};
    height: ${({ nodeHeight })=>{
    const scaleFactor = nodeHeight ? nodeHeight / 96 : 1;
    return `${40 * scaleFactor}px`;
}};
  }
`;
exports.TriggerContainer = __webpack_exports__.TriggerContainer;
exports.TriggerIconWrapper = __webpack_exports__.TriggerIconWrapper;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "TriggerContainer",
    "TriggerIconWrapper"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
