import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import * as i0 from "@angular/core";
import * as i1 from "@angular/router";
import * as i2 from "rpx-xui-translation";
const _c0 = (a0, a1, a2) => ["/", "cases", "case-details", a0, a1, a2];
export class CaseChallengedAccessSuccessComponent {
    route;
    caseId;
    jurisdiction;
    caseType;
    constructor(route) {
        this.route = route;
    }
    ngOnInit() {
        this.caseId = this.route.snapshot.params.cid;
        this.jurisdiction = this.route.snapshot.params.jurisdiction;
        this.caseType = this.route.snapshot.params.caseType;
    }
    static ɵfac = function CaseChallengedAccessSuccessComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseChallengedAccessSuccessComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute)); };
    static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseChallengedAccessSuccessComponent, selectors: [["ccd-case-challenged-access-success"]], decls: 31, vars: 27, consts: [[1, "govuk-width-container"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-panel", "govuk-panel--confirmation"], [1, "govuk-panel__title"], [1, "govuk-panel__body"], [1, "govuk-heading-m"], [1, "govuk-body"], [3, "routerLink"]], template: function CaseChallengedAccessSuccessComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "h1", 4);
            i0.ɵɵtext(5);
            i0.ɵɵpipe(6, "rpxTranslate");
            i0.ɵɵelement(7, "br")(8, "br");
            i0.ɵɵelementStart(9, "div", 5);
            i0.ɵɵtext(10);
            i0.ɵɵpipe(11, "rpxTranslate");
            i0.ɵɵelement(12, "br");
            i0.ɵɵtext(13);
            i0.ɵɵelementEnd()()();
            i0.ɵɵelementStart(14, "h2", 6);
            i0.ɵɵtext(15);
            i0.ɵɵpipe(16, "rpxTranslate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(17, "p", 7);
            i0.ɵɵtext(18);
            i0.ɵɵpipe(19, "rpxTranslate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(20, "p", 7);
            i0.ɵɵtext(21);
            i0.ɵɵpipe(22, "rpxTranslate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(23, "p", 7);
            i0.ɵɵtext(24);
            i0.ɵɵpipe(25, "rpxTranslate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(26, "p", 7)(27, "a", 8);
            i0.ɵɵtext(28);
            i0.ɵɵpipe(29, "rpxTranslate");
            i0.ɵɵelementEnd();
            i0.ɵɵtext(30, ".");
            i0.ɵɵelementEnd()()()();
        } if (rf & 2) {
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 9, "Access successful"), "");
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 11, "Case reference:"), "");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", ctx.caseId, " ");
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 13, "What happens next"));
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 15, "You can access this case file until midnight tonight."), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(22, 17, "You'll need to request access again once this expires."), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 19, "Your request will be logged for auditing purposes."), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction3(23, _c0, ctx.jurisdiction, ctx.caseType, ctx.caseId));
            i0.ɵɵadvance();
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(29, 21, "View case file"));
        } }, dependencies: [i1.RouterLink, i2.RpxTranslatePipe], encapsulation: 2 });
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseChallengedAccessSuccessComponent, [{
        type: Component,
        args: [{ selector: 'ccd-case-challenged-access-success', template: "<div class=\"govuk-width-container\">\n  <div class=\"govuk-grid-row\">\n    <div class=\"govuk-grid-column-two-thirds\">\n      <div class=\"govuk-panel govuk-panel--confirmation\">\n        <h1 class=\"govuk-panel__title\">\n          {{'Access successful' | rpxTranslate}}<br><br>\n          <div class=\"govuk-panel__body\">\n            {{'Case reference:' | rpxTranslate}}<br>\n            {{caseId}}\n          </div>\n        </h1>\n      </div>\n      <h2 class=\"govuk-heading-m\">{{'What happens next' | rpxTranslate}}</h2>\n      <p class=\"govuk-body\">\n        {{'You can access this case file until midnight tonight.' | rpxTranslate}}\n      </p>\n      <p class=\"govuk-body\">\n        {{\"You'll need to request access again once this expires.\" | rpxTranslate}}\n      </p>\n      <p class=\"govuk-body\">\n        {{\"Your request will be logged for auditing purposes.\" | rpxTranslate}}\n      </p>\n      <p class=\"govuk-body\"><a [routerLink]=\"['/', 'cases', 'case-details', jurisdiction, caseType, caseId]\">{{\"View case file\" | rpxTranslate}}</a>.</p>\n    </div>\n  </div>\n</div>\n" }]
    }], () => [{ type: i1.ActivatedRoute }], null); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseChallengedAccessSuccessComponent, { className: "CaseChallengedAccessSuccessComponent", filePath: "lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.ts", lineNumber: 8 }); })();
//# sourceMappingURL=data:application/json;base64, 