import { Component, Input } from '@angular/core';
import { FormGroup } from '@angular/forms';
import * as i0 from "@angular/core";
import * as i1 from "@angular/forms";
import * as i2 from "rpx-xui-translation";
export class CloseQueryComponent {
    formGroup;
    static ɵfac = function CloseQueryComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CloseQueryComponent)(); };
    static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CloseQueryComponent, selectors: [["ccd-close-query"]], inputs: { formGroup: "formGroup" }, decls: 19, vars: 11, consts: [[3, "formGroup"], [1, "govuk-heading-m"], [1, "govuk-checkboxes__item"], ["formControlName", "closeQuery", "id", "closeQuery", "name", "closeQuery", "type", "checkbox", 1, "govuk-checkboxes__input"], ["for", "closeQuery", 1, "govuk-label", "govuk-checkboxes__label"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-visually-hidden"], [1, "qm-service-message"]], template: function CloseQueryComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0)(1, "h2", 1);
            i0.ɵɵtext(2);
            i0.ɵɵpipe(3, "rpxTranslate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(4, "div", 2);
            i0.ɵɵelement(5, "input", 3);
            i0.ɵɵelementStart(6, "label", 4);
            i0.ɵɵtext(7);
            i0.ɵɵpipe(8, "rpxTranslate");
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(9, "div", 5)(10, "span", 6);
            i0.ɵɵtext(11, "!");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(12, "strong", 7)(13, "span", 8);
            i0.ɵɵtext(14, "Warning");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(15, "p", 9)(16, "strong");
            i0.ɵɵtext(17);
            i0.ɵɵpipe(18, "rpxTranslate");
            i0.ɵɵelementEnd()()()()();
        } if (rf & 2) {
            i0.ɵɵproperty("formGroup", ctx.formGroup);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 5, "Closing the query"));
            i0.ɵɵadvance(4);
            i0.ɵɵattribute("aria-labelledby", "closeQuery");
            i0.ɵɵadvance();
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 7, "I want to close this query"), " ");
            i0.ɵɵadvance(10);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 9, "Closing this query means the parties can no longer send messages in this thread."), " ");
        } }, dependencies: [i1.CheckboxControlValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.FormControlName, i2.RpxTranslatePipe], encapsulation: 2 });
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CloseQueryComponent, [{
        type: Component,
        args: [{ selector: 'ccd-close-query', template: "<div [formGroup]=\"formGroup\">\n    <h2 class=\"govuk-heading-m\">{{ 'Closing the query' | rpxTranslate }}</h2>\n    <div class=\"govuk-checkboxes__item\">\n        <input class=\"govuk-checkboxes__input\"\n            formControlName=\"closeQuery\" id=\"closeQuery\" name=\"closeQuery\" type=\"checkbox\" />\n        <label class=\"govuk-label govuk-checkboxes__label\" for=\"closeQuery\" [attr.aria-labelledby]=\"'closeQuery'\">\n        {{ 'I want to close this query' | rpxTranslate }}\n        </label>\n    </div>\n    <div class=\"govuk-warning-text\">\n        <span aria-hidden=\"true\" class=\"govuk-warning-text__icon\">!</span>\n        <strong class=\"govuk-warning-text__text\">\n        <span class=\"govuk-visually-hidden\">Warning</span>\n        <p class=\"qm-service-message\">\n            <strong>\n            {{ 'Closing this query means the parties can no longer send messages in this thread.' | rpxTranslate }}\n            </strong>\n        </p>\n        </strong>\n    </div>\n</div>" }]
    }], null, { formGroup: [{
            type: Input
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CloseQueryComponent, { className: "CloseQueryComponent", filePath: "lib/shared/components/palette/query-management/components/close-query/close-query.component.ts", lineNumber: 8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