@hmcts/ccd-case-ui-toolkit 7.1.53-google-analytics → 7.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.mjs +13 -21
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +11 -19
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts +2 -4
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
@@ -39,30 +39,28 @@ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_co
|
|
|
39
39
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "or"));
|
|
40
40
|
} }
|
|
41
41
|
function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
43
42
|
i0.ɵɵelementContainerStart(0);
|
|
44
43
|
i0.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template, 4, 3, "ng-container", 0);
|
|
45
|
-
i0.ɵɵelementStart(2, "div", 10)
|
|
46
|
-
i0.ɵɵ
|
|
47
|
-
i0.ɵɵelementEnd();
|
|
44
|
+
i0.ɵɵelementStart(2, "div", 10);
|
|
45
|
+
i0.ɵɵelement(3, "input", 11);
|
|
48
46
|
i0.ɵɵelementStart(4, "label", 12);
|
|
49
47
|
i0.ɵɵtext(5);
|
|
50
48
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
51
49
|
i0.ɵɵelementEnd()();
|
|
52
50
|
i0.ɵɵelementContainerEnd();
|
|
53
51
|
} if (rf & 2) {
|
|
54
|
-
const
|
|
55
|
-
const
|
|
52
|
+
const qualifyingQuestion_r2 = ctx.$implicit;
|
|
53
|
+
const isLast_r3 = ctx.last;
|
|
56
54
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
57
55
|
i0.ɵɵadvance();
|
|
58
|
-
i0.ɵɵproperty("ngIf",
|
|
56
|
+
i0.ɵɵproperty("ngIf", isLast_r3);
|
|
59
57
|
i0.ɵɵadvance(2);
|
|
60
|
-
i0.ɵɵpropertyInterpolate("id",
|
|
61
|
-
i0.ɵɵproperty("formControl", ctx_r0.qualifyingQuestionsControl)("value",
|
|
58
|
+
i0.ɵɵpropertyInterpolate("id", qualifyingQuestion_r2.name);
|
|
59
|
+
i0.ɵɵproperty("formControl", ctx_r0.qualifyingQuestionsControl)("value", qualifyingQuestion_r2);
|
|
62
60
|
i0.ɵɵadvance();
|
|
63
|
-
i0.ɵɵproperty("for",
|
|
61
|
+
i0.ɵɵproperty("for", qualifyingQuestion_r2.name);
|
|
64
62
|
i0.ɵɵadvance();
|
|
65
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6,
|
|
63
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6, qualifyingQuestion_r2.name));
|
|
66
64
|
} }
|
|
67
65
|
function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
68
66
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -99,7 +97,6 @@ export class QualifyingQuestionOptionsComponent {
|
|
|
99
97
|
qualifyingQuestionService;
|
|
100
98
|
qualifyingQuestionsControl;
|
|
101
99
|
qualifyingQuestions$;
|
|
102
|
-
questionSelected = new EventEmitter();
|
|
103
100
|
qualifyingQuestionsErrorMessage = QualifyingQuestionsErrorMessage;
|
|
104
101
|
caseId;
|
|
105
102
|
constructor(route, router, qualifyingQuestionService) {
|
|
@@ -121,11 +118,8 @@ export class QualifyingQuestionOptionsComponent {
|
|
|
121
118
|
get displayError() {
|
|
122
119
|
return this.qualifyingQuestionsControl.touched && this.qualifyingQuestionsControl.hasError('required');
|
|
123
120
|
}
|
|
124
|
-
onSelectionChange(qualifyingQuestion) {
|
|
125
|
-
this.questionSelected.emit(qualifyingQuestion);
|
|
126
|
-
}
|
|
127
121
|
static ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.QualifyingQuestionService)); };
|
|
128
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" },
|
|
122
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], [1, "govuk-heading-m", "govuk-!-margin-top-10"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [1, "govuk-radios__divider"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
129
123
|
i0.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 14, 12, "ng-container", 0);
|
|
130
124
|
} if (rf & 2) {
|
|
131
125
|
i0.ɵɵproperty("ngIf", ctx.qualifyingQuestionsControl);
|
|
@@ -133,13 +127,11 @@ export class QualifyingQuestionOptionsComponent {
|
|
|
133
127
|
}
|
|
134
128
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionOptionsComponent, [{
|
|
135
129
|
type: Component,
|
|
136
|
-
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\"
|
|
130
|
+
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"{{qualifyingQuestion.name}}\" name=\"qualifyingQuestionOption\"\n type=\"radio\" [formControl]=\"qualifyingQuestionsControl\" [value]=\"qualifyingQuestion\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"qualifyingQuestion.name\">{{ qualifyingQuestion.name |\n rpxTranslate }}</label>\n </div>\n </ng-container>\n </div>\n </fieldset>\n </div>\n</ng-container>\n" }]
|
|
137
131
|
}], () => [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i2.QualifyingQuestionService }], { qualifyingQuestionsControl: [{
|
|
138
132
|
type: Input
|
|
139
133
|
}], qualifyingQuestions$: [{
|
|
140
134
|
type: Input
|
|
141
|
-
}], questionSelected: [{
|
|
142
|
-
type: Output
|
|
143
135
|
}] }); })();
|
|
144
136
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QualifyingQuestionOptionsComponent, { className: "QualifyingQuestionOptionsComponent", filePath: "lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component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nlpbmdRdWVzdGlvbk9wdGlvblwiXG4gICAgICAgICAgICAgIHR5cGU9XCJyYWRpb1wiIFtmb3JtQ29udHJvbF09XCJxdWFsaWZ5aW5nUXVlc3Rpb25zQ29udHJvbFwiIFt2YWx1ZV09XCJxdWFsaWZ5aW5nUXVlc3Rpb25cIj5cbiAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cImdvdnVrLWxhYmVsIGdvdnVrLXJhZGlvc19fbGFiZWxcIiBbZm9yXT1cInF1YWxpZnlpbmdRdWVzdGlvbi5uYW1lXCI+e3sgcXVhbGlmeWluZ1F1ZXN0aW9uLm5hbWUgfFxuICAgICAgICAgICAgICBycHhUcmFuc2xhdGUgfX08L2xhYmVsPlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgIDwvZGl2PlxuICAgIDwvZmllbGRzZXQ+XG4gIDwvZGl2PlxuPC9uZy1jb250YWluZXI+XG4iXX0=
|
|
@@ -20496,30 +20496,28 @@ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_co
|
|
|
20496
20496
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "or"));
|
|
20497
20497
|
} }
|
|
20498
20498
|
function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
20499
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
20500
20499
|
i0.ɵɵelementContainerStart(0);
|
|
20501
20500
|
i0.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template, 4, 3, "ng-container", 0);
|
|
20502
|
-
i0.ɵɵelementStart(2, "div", 10)
|
|
20503
|
-
i0.ɵɵ
|
|
20504
|
-
i0.ɵɵelementEnd();
|
|
20501
|
+
i0.ɵɵelementStart(2, "div", 10);
|
|
20502
|
+
i0.ɵɵelement(3, "input", 11);
|
|
20505
20503
|
i0.ɵɵelementStart(4, "label", 12);
|
|
20506
20504
|
i0.ɵɵtext(5);
|
|
20507
20505
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
20508
20506
|
i0.ɵɵelementEnd()();
|
|
20509
20507
|
i0.ɵɵelementContainerEnd();
|
|
20510
20508
|
} if (rf & 2) {
|
|
20511
|
-
const
|
|
20512
|
-
const
|
|
20509
|
+
const qualifyingQuestion_r2 = ctx.$implicit;
|
|
20510
|
+
const isLast_r3 = ctx.last;
|
|
20513
20511
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20514
20512
|
i0.ɵɵadvance();
|
|
20515
|
-
i0.ɵɵproperty("ngIf",
|
|
20513
|
+
i0.ɵɵproperty("ngIf", isLast_r3);
|
|
20516
20514
|
i0.ɵɵadvance(2);
|
|
20517
|
-
i0.ɵɵpropertyInterpolate("id",
|
|
20518
|
-
i0.ɵɵproperty("formControl", ctx_r0.qualifyingQuestionsControl)("value",
|
|
20515
|
+
i0.ɵɵpropertyInterpolate("id", qualifyingQuestion_r2.name);
|
|
20516
|
+
i0.ɵɵproperty("formControl", ctx_r0.qualifyingQuestionsControl)("value", qualifyingQuestion_r2);
|
|
20519
20517
|
i0.ɵɵadvance();
|
|
20520
|
-
i0.ɵɵproperty("for",
|
|
20518
|
+
i0.ɵɵproperty("for", qualifyingQuestion_r2.name);
|
|
20521
20519
|
i0.ɵɵadvance();
|
|
20522
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6,
|
|
20520
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6, qualifyingQuestion_r2.name));
|
|
20523
20521
|
} }
|
|
20524
20522
|
function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
20525
20523
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -20556,7 +20554,6 @@ class QualifyingQuestionOptionsComponent {
|
|
|
20556
20554
|
qualifyingQuestionService;
|
|
20557
20555
|
qualifyingQuestionsControl;
|
|
20558
20556
|
qualifyingQuestions$;
|
|
20559
|
-
questionSelected = new EventEmitter();
|
|
20560
20557
|
qualifyingQuestionsErrorMessage = QualifyingQuestionsErrorMessage;
|
|
20561
20558
|
caseId;
|
|
20562
20559
|
constructor(route, router, qualifyingQuestionService) {
|
|
@@ -20578,11 +20575,8 @@ class QualifyingQuestionOptionsComponent {
|
|
|
20578
20575
|
get displayError() {
|
|
20579
20576
|
return this.qualifyingQuestionsControl.touched && this.qualifyingQuestionsControl.hasError('required');
|
|
20580
20577
|
}
|
|
20581
|
-
onSelectionChange(qualifyingQuestion) {
|
|
20582
|
-
this.questionSelected.emit(qualifyingQuestion);
|
|
20583
|
-
}
|
|
20584
20578
|
static ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(QualifyingQuestionService)); };
|
|
20585
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" },
|
|
20579
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], [1, "govuk-heading-m", "govuk-!-margin-top-10"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [1, "govuk-radios__divider"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20586
20580
|
i0.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 14, 12, "ng-container", 0);
|
|
20587
20581
|
} if (rf & 2) {
|
|
20588
20582
|
i0.ɵɵproperty("ngIf", ctx.qualifyingQuestionsControl);
|
|
@@ -20590,13 +20584,11 @@ class QualifyingQuestionOptionsComponent {
|
|
|
20590
20584
|
}
|
|
20591
20585
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionOptionsComponent, [{
|
|
20592
20586
|
type: Component,
|
|
20593
|
-
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\"
|
|
20587
|
+
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"{{qualifyingQuestion.name}}\" name=\"qualifyingQuestionOption\"\n type=\"radio\" [formControl]=\"qualifyingQuestionsControl\" [value]=\"qualifyingQuestion\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"qualifyingQuestion.name\">{{ qualifyingQuestion.name |\n rpxTranslate }}</label>\n </div>\n </ng-container>\n </div>\n </fieldset>\n </div>\n</ng-container>\n" }]
|
|
20594
20588
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: QualifyingQuestionService }], { qualifyingQuestionsControl: [{
|
|
20595
20589
|
type: Input
|
|
20596
20590
|
}], qualifyingQuestions$: [{
|
|
20597
20591
|
type: Input
|
|
20598
|
-
}], questionSelected: [{
|
|
20599
|
-
type: Output
|
|
20600
20592
|
}] }); })();
|
|
20601
20593
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QualifyingQuestionOptionsComponent, { className: "QualifyingQuestionOptionsComponent", filePath: "lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.ts", lineNumber: 13 }); })();
|
|
20602
20594
|
|