import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
function StepInfoControlComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 3);
    i0.ɵɵelement(1, "i", 5);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", ctx_r0.step.SubAgent, " ");
} }
function StepInfoControlComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 4);
    i0.ɵɵelement(1, "i", 6);
    i0.ɵɵtext(2, " Starting Step ");
    i0.ɵɵelementEnd();
} }
export class StepInfoControlComponent {
    getStepIcon() {
        switch (this.step.StepType?.toLowerCase()) {
            case 'action':
                return 'fa-bolt';
            case 'sub-agent':
                return 'fa-robot';
            case 'prompt':
                return 'fa-brain';
            case 'condition':
                return 'fa-code-branch';
            case 'loop':
                return 'fa-repeat';
            case 'parallel':
                return 'fa-random';
            default:
                return 'fa-cube';
        }
    }
    static { this.ɵfac = function StepInfoControlComponent_Factory(t) { return new (t || StepInfoControlComponent)(); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StepInfoControlComponent, selectors: [["mj-step-info-control"]], inputs: { step: "step" }, decls: 6, vars: 4, consts: [[1, "step-info-control"], [1, "step-type"], [1, "fa-solid", 3, "ngClass"], [1, "sub-agent"], [1, "step-order"], [1, "fa-solid", "fa-robot"], [1, "fa-solid", "fa-flag"]], template: function StepInfoControlComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
            i0.ɵɵelement(2, "i", 2);
            i0.ɵɵtext(3);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(4, StepInfoControlComponent_Conditional_4_Template, 3, 1, "div", 3)(5, StepInfoControlComponent_Conditional_5_Template, 3, 0, "div", 4);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngClass", ctx.getStepIcon());
            i0.ɵɵadvance();
            i0.ɵɵtextInterpolate1(" ", ctx.step.StepType || "Unknown Type", " ");
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.step.SubAgentID && ctx.step.SubAgent ? 4 : -1);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.step.StartingStep ? 5 : -1);
        } }, dependencies: [i1.NgClass], styles: [".step-info-control[_ngcontent-%COMP%] {\n            padding: 8px;\n            font-size: 0.875rem;\n        }\n        \n        .step-type[_ngcontent-%COMP%], \n   .sub-agent[_ngcontent-%COMP%], \n   .step-order[_ngcontent-%COMP%] {\n            display: flex;\n            align-items: center;\n            gap: 0.5rem;\n            margin-bottom: 0.25rem;\n        }\n        \n        .step-type[_ngcontent-%COMP%] {\n            font-weight: 500;\n            color: #333;\n        }\n        \n        .sub-agent[_ngcontent-%COMP%] {\n            color: #4a90e2;\n        }\n        \n        .step-order[_ngcontent-%COMP%] {\n            color: #666;\n            font-size: 0.75rem;\n        }\n        \n        i[_ngcontent-%COMP%] {\n            width: 16px;\n            text-align: center;\n        }"] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StepInfoControlComponent, [{
        type: Component,
        args: [{ selector: 'mj-step-info-control', template: `
        <div class="step-info-control">
            <div class="step-type">
                <i class="fa-solid" [ngClass]="getStepIcon()"></i>
                {{ step.StepType || 'Unknown Type' }}
            </div>
            @if (step.SubAgentID && step.SubAgent) {
                <div class="sub-agent">
                    <i class="fa-solid fa-robot"></i>
                    {{ step.SubAgent }}
                </div>
            }
            @if (step.StartingStep) {
                <div class="step-order">
                    <i class="fa-solid fa-flag"></i>
                    Starting Step
                </div>
            }
        </div>
    `, styles: ["\n        .step-info-control {\n            padding: 8px;\n            font-size: 0.875rem;\n        }\n        \n        .step-type,\n        .sub-agent,\n        .step-order {\n            display: flex;\n            align-items: center;\n            gap: 0.5rem;\n            margin-bottom: 0.25rem;\n        }\n        \n        .step-type {\n            font-weight: 500;\n            color: #333;\n        }\n        \n        .sub-agent {\n            color: #4a90e2;\n        }\n        \n        .step-order {\n            color: #666;\n            font-size: 0.75rem;\n        }\n        \n        i {\n            width: 16px;\n            text-align: center;\n        }\n    "] }]
    }], null, { step: [{
            type: Input
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StepInfoControlComponent, { className: "StepInfoControlComponent", filePath: "src/lib/custom/AIAgents/FlowAgentType/step-info-control.component.ts", lineNumber: 61 }); })();
//# sourceMappingURL=step-info-control.component.js.map