/**
 * @fileoverview Classify · No-Content-Types warning dialog.
 *
 * Presentational warning overlay shown when the user tries to create a content
 * source before any content type exists. Rendered by the HOST, which owns the
 * `Show` state and the cross-tab navigation logic. Intents bubble UP via
 * `(GoToTypes)` (close form + switch to the Types tab) and `(Dismissed)`.
 */
import { Component, Input, Output, EventEmitter } from '@angular/core';
import * as i0 from "@angular/core";
function ClassifyNoContentTypeWarningComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
    const _r1 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 1);
    i0.ɵɵlistener("click", function ClassifyNoContentTypeWarningComponent_Conditional_0_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.Dismissed.emit()); });
    i0.ɵɵelementStart(1, "div", 2);
    i0.ɵɵlistener("click", function ClassifyNoContentTypeWarningComponent_Conditional_0_Template_div_click_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView($event.stopPropagation()); });
    i0.ɵɵelementStart(2, "div", 3)(3, "span");
    i0.ɵɵelement(4, "i", 4);
    i0.ɵɵtext(5, " Content Type Required");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "button", 5);
    i0.ɵɵlistener("click", function ClassifyNoContentTypeWarningComponent_Conditional_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.Dismissed.emit()); });
    i0.ɵɵelement(7, "i", 6);
    i0.ɵɵelementEnd()();
    i0.ɵɵelementStart(8, "div", 7)(9, "p", 8);
    i0.ɵɵtext(10, " No content types have been configured yet. At least one content type is required before you can create a content source. ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "p", 9);
    i0.ɵɵtext(12, " Go to the ");
    i0.ɵɵelementStart(13, "strong");
    i0.ɵɵtext(14, "Content Types");
    i0.ɵɵelementEnd();
    i0.ɵɵtext(15, " tab to create one. ");
    i0.ɵɵelementEnd()();
    i0.ɵɵelementStart(16, "div", 10)(17, "button", 11);
    i0.ɵɵlistener("mousedown", function ClassifyNoContentTypeWarningComponent_Conditional_0_Template_button_mousedown_17_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.GoToTypes.emit()); });
    i0.ɵɵelement(18, "i", 12);
    i0.ɵɵtext(19, " Go to Content Types ");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(20, "button", 13);
    i0.ɵɵlistener("click", function ClassifyNoContentTypeWarningComponent_Conditional_0_Template_button_click_20_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.Dismissed.emit()); });
    i0.ɵɵtext(21, "Close");
    i0.ɵɵelementEnd()()()();
} }
export class ClassifyNoContentTypeWarningComponent {
    /** Whether the warning overlay is visible. */
    Show = false;
    /** Emitted when the user chooses to go to the Content Types tab. */
    GoToTypes = new EventEmitter();
    /** Emitted when the user dismisses the warning. */
    Dismissed = new EventEmitter();
    static ɵfac = function ClassifyNoContentTypeWarningComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ClassifyNoContentTypeWarningComponent)(); };
    static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ClassifyNoContentTypeWarningComponent, selectors: [["classify-no-content-type-warning"]], inputs: { Show: "Show" }, outputs: { GoToTypes: "GoToTypes", Dismissed: "Dismissed" }, standalone: false, decls: 1, vars: 1, consts: [[1, "at-schedule-dialog-overlay", 2, "z-index", "10001"], [1, "at-schedule-dialog-overlay", 2, "z-index", "10001", 3, "click"], [1, "at-schedule-dialog", 2, "max-width", "440px", "z-index", "10002", 3, "click"], [1, "at-schedule-dialog-header"], [1, "fa-solid", "fa-triangle-exclamation", 2, "color", "var(--mj-status-warning)", "margin-right", "8px"], ["aria-label", "Close warning", 1, "at-close-btn", 3, "click"], [1, "fa-solid", "fa-xmark"], [1, "at-schedule-dialog-body", 2, "text-align", "center", "padding", "24px"], [2, "color", "var(--mj-text-secondary)", "margin-bottom", "16px"], [2, "color", "var(--mj-text-muted)", "font-size", "13px"], [1, "at-schedule-dialog-footer"], [1, "at-action-btn", "at-primary-btn", 3, "mousedown"], [1, "fa-solid", "fa-arrow-right"], [1, "at-action-btn", "at-secondary-btn", 3, "click"]], template: function ClassifyNoContentTypeWarningComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵconditionalCreate(0, ClassifyNoContentTypeWarningComponent_Conditional_0_Template, 22, 0, "div", 0);
        } if (rf & 2) {
            i0.ɵɵconditional(ctx.Show ? 0 : -1);
        } }, encapsulation: 2 });
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClassifyNoContentTypeWarningComponent, [{
        type: Component,
        args: [{ standalone: false, selector: 'classify-no-content-type-warning', template: "<!-- No Content Types Warning Dialog (z-index above slide-in panel) -->\n@if (Show) {\n    <div class=\"at-schedule-dialog-overlay\" style=\"z-index: 10001;\" (click)=\"Dismissed.emit()\">\n        <div class=\"at-schedule-dialog\" style=\"max-width: 440px; z-index: 10002;\" (click)=\"$event.stopPropagation()\">\n            <div class=\"at-schedule-dialog-header\">\n                <span><i class=\"fa-solid fa-triangle-exclamation\" style=\"color: var(--mj-status-warning); margin-right: 8px;\"></i> Content Type Required</span>\n                <button class=\"at-close-btn\" aria-label=\"Close warning\" (click)=\"Dismissed.emit()\"><i class=\"fa-solid fa-xmark\"></i></button>\n            </div>\n            <div class=\"at-schedule-dialog-body\" style=\"text-align: center; padding: 24px;\">\n                <p style=\"color: var(--mj-text-secondary); margin-bottom: 16px;\">\n                    No content types have been configured yet. At least one content type is required before you can create a content source.\n                </p>\n                <p style=\"color: var(--mj-text-muted); font-size: 13px;\">\n                    Go to the <strong>Content Types</strong> tab to create one.\n                </p>\n            </div>\n            <div class=\"at-schedule-dialog-footer\">\n                <button class=\"at-action-btn at-primary-btn\" (mousedown)=\"GoToTypes.emit()\">\n                    <i class=\"fa-solid fa-arrow-right\"></i> Go to Content Types\n                </button>\n                <button class=\"at-action-btn at-secondary-btn\" (click)=\"Dismissed.emit()\">Close</button>\n            </div>\n        </div>\n    </div>\n}\n", styles: ["/*\n * No-Content-Types warning dialog styles.\n *\n * The host (AutotaggingPipelineResourceComponent) uses ViewEncapsulation.None,\n * so its `.at-*` rules are global and already style this dialog's markup while\n * it renders inside the host shell. No dialog-specific rules are needed today.\n */\n"] }]
    }], null, { Show: [{
            type: Input
        }], GoToTypes: [{
            type: Output
        }], Dismissed: [{
            type: Output
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ClassifyNoContentTypeWarningComponent, { className: "ClassifyNoContentTypeWarningComponent", filePath: "src/AI/components/autotagging/dialogs/no-content-type-warning.dialog.component.ts", lineNumber: 17 }); })();
//# sourceMappingURL=no-content-type-warning.dialog.component.js.map