@csmart/ngc-smart-victim 1.18.7 → 1.18.9
Sign up to get free protection for your applications and to get access to all the features.
- package/karma.conf.js +32 -0
- package/ng-package.json +7 -0
- package/package.json +6 -22
- package/src/lib/caseNote/caseNote.component.css +22 -0
- package/src/lib/caseNote/caseNote.component.html +188 -0
- package/src/lib/caseNote/caseNote.component.ts +265 -0
- package/src/lib/common-dialog/common-dialog.component.css +10 -0
- package/src/lib/common-dialog/common-dialog.component.html +23 -0
- package/src/lib/common-dialog/common-dialog.component.spec.ts +25 -0
- package/src/lib/common-dialog/common-dialog.component.ts +21 -0
- package/src/lib/common-dialog/common-dialog.module.ts +22 -0
- package/src/lib/common-dialog/common-dialog.service.ts +35 -0
- package/src/lib/contact/contact.component.css +22 -0
- package/src/lib/contact/contact.component.html +124 -0
- package/src/lib/contact/contact.component.ts +176 -0
- package/src/lib/email-notification.service.ts +42 -0
- package/src/lib/email.services.ts +51 -0
- package/src/lib/http.service.ts +34 -0
- package/src/lib/intake.service.ts +82 -0
- package/src/lib/loader.service.ts +11 -0
- package/src/lib/safetyPlan/serviceProvider.component.ts +94 -0
- package/src/lib/safetyPlan/victimSafetyPlan.component.css +27 -0
- package/src/lib/safetyPlan/victimSafetyPlan.component.html +85 -0
- package/src/lib/safetyPlan/victimSafetyPlan.component.ts +178 -0
- package/src/lib/safetyPlan/victimSafetyPlanDetail.component.html +234 -0
- package/src/lib/safetyPlan/victimSafetyPlanDetail.component.ts +492 -0
- package/src/lib/shared/app.shared.module.ts +111 -0
- package/src/lib/shared/validators/date.validator.ts +73 -0
- package/src/lib/shared/validators/index.ts +1 -0
- package/src/lib/smart-victim-delete-confirm.component.ts +35 -0
- package/src/lib/smart-victim-detail/smart-victim-detail.component.css +43 -0
- package/src/lib/smart-victim-detail/smart-victim-detail.component.html +869 -0
- package/src/lib/smart-victim-detail/smart-victim-detail.component.spec.ts +25 -0
- package/src/lib/smart-victim-detail/smart-victim-detail.component.ts +1387 -0
- package/src/lib/smart-victim.component.css +245 -0
- package/src/lib/smart-victim.component.html +132 -0
- package/src/lib/smart-victim.component.spec.ts +25 -0
- package/src/lib/smart-victim.component.ts +333 -0
- package/src/lib/smart-victim.model.ts +301 -0
- package/src/lib/smart-victim.module.ts +110 -0
- package/src/lib/smart-victim.service.spec.ts +12 -0
- package/src/lib/smart-victim.service.ts +557 -0
- package/src/lib/victim-routing.module.ts +35 -0
- package/{lib/victimSearch/VictimSearchFilter.d.ts → src/lib/victimSearch/VictimSearchFilter.ts} +9 -7
- package/src/lib/victimSearch/victimSearchForm.component.html +35 -0
- package/src/lib/victimSearch/victimSearchForm.component.ts +41 -0
- package/{public-api.d.ts → src/public-api.ts} +12 -7
- package/src/test.ts +16 -0
- package/tsconfig.lib.json +36 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/esm2022/csmart-ngc-smart-victim.mjs +0 -5
- package/esm2022/lib/caseNote/caseNote.component.mjs +0 -194
- package/esm2022/lib/common-dialog/common-dialog.component.mjs +0 -23
- package/esm2022/lib/common-dialog/common-dialog.module.mjs +0 -34
- package/esm2022/lib/common-dialog/common-dialog.service.mjs +0 -33
- package/esm2022/lib/contact/contact.component.mjs +0 -140
- package/esm2022/lib/email.services.mjs +0 -42
- package/esm2022/lib/intake.service.mjs +0 -57
- package/esm2022/lib/safetyPlan/serviceProvider.component.mjs +0 -99
- package/esm2022/lib/safetyPlan/victimSafetyPlan.component.mjs +0 -116
- package/esm2022/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +0 -340
- package/esm2022/lib/shared/app.shared.module.mjs +0 -215
- package/esm2022/lib/shared/validators/date.validator.mjs +0 -59
- package/esm2022/lib/shared/validators/index.mjs +0 -2
- package/esm2022/lib/smart-victim-delete-confirm.component.mjs +0 -44
- package/esm2022/lib/smart-victim-detail/smart-victim-detail.component.mjs +0 -1104
- package/esm2022/lib/smart-victim.component.mjs +0 -316
- package/esm2022/lib/smart-victim.model.mjs +0 -133
- package/esm2022/lib/smart-victim.module.mjs +0 -128
- package/esm2022/lib/smart-victim.service.mjs +0 -352
- package/esm2022/lib/victim-routing.module.mjs +0 -41
- package/esm2022/lib/victimSearch/VictimSearchFilter.mjs +0 -3
- package/esm2022/lib/victimSearch/victimSearchForm.component.mjs +0 -38
- package/esm2022/public-api.mjs +0 -11
- package/fesm2022/csmart-ngc-smart-victim.mjs +0 -3263
- package/fesm2022/csmart-ngc-smart-victim.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/caseNote/caseNote.component.d.ts +0 -51
- package/lib/common-dialog/common-dialog.component.d.ts +0 -14
- package/lib/common-dialog/common-dialog.module.d.ts +0 -8
- package/lib/common-dialog/common-dialog.service.d.ts +0 -11
- package/lib/contact/contact.component.d.ts +0 -40
- package/lib/email.services.d.ts +0 -11
- package/lib/intake.service.d.ts +0 -57
- package/lib/safetyPlan/serviceProvider.component.d.ts +0 -19
- package/lib/safetyPlan/victimSafetyPlan.component.d.ts +0 -54
- package/lib/safetyPlan/victimSafetyPlanDetail.component.d.ts +0 -62
- package/lib/shared/app.shared.module.d.ts +0 -33
- package/lib/shared/validators/date.validator.d.ts +0 -9
- package/lib/shared/validators/index.d.ts +0 -1
- package/lib/smart-victim-delete-confirm.component.d.ts +0 -12
- package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +0 -129
- package/lib/smart-victim.component.d.ts +0 -69
- package/lib/smart-victim.model.d.ts +0 -205
- package/lib/smart-victim.module.d.ts +0 -49
- package/lib/smart-victim.service.d.ts +0 -71
- package/lib/victim-routing.module.d.ts +0 -7
- package/lib/victimSearch/victimSearchForm.component.d.ts +0 -14
@@ -1,1104 +0,0 @@
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';
|
2
|
-
import { UntypedFormBuilder, UntypedFormControl, Validators } from '@angular/forms';
|
3
|
-
import { MatRadioGroup } from '@angular/material/radio';
|
4
|
-
import { NgcSmartVictimService } from '../smart-victim.service';
|
5
|
-
import { Router, ActivatedRoute } from '@angular/router';
|
6
|
-
import { CommonDialogService } from '.././common-dialog/common-dialog.service';
|
7
|
-
import { DatePipe, Location } from '@angular/common';
|
8
|
-
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
9
|
-
import { MatTableDataSource } from '@angular/material/table';
|
10
|
-
import { SmartAddressComponent } from '@csmart/ngc-smart-address';
|
11
|
-
import { MatDialog } from '@angular/material/dialog';
|
12
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
13
|
-
import { MatInput } from '@angular/material/input';
|
14
|
-
import { MatSelect } from '@angular/material/select';
|
15
|
-
import { ChangeDetectorRef, } from '@angular/core';
|
16
|
-
import * as i0 from "@angular/core";
|
17
|
-
import * as i1 from "@angular/common";
|
18
|
-
import * as i2 from "@angular/forms";
|
19
|
-
import * as i3 from "@angular/material/dialog";
|
20
|
-
import * as i4 from "@angular/router";
|
21
|
-
import * as i5 from "@angular/material/snack-bar";
|
22
|
-
import * as i6 from ".././common-dialog/common-dialog.service";
|
23
|
-
import * as i7 from "../smart-victim.service";
|
24
|
-
import * as i8 from "@angular/material/button";
|
25
|
-
import * as i9 from "@angular/material/checkbox";
|
26
|
-
import * as i10 from "@angular/material/radio";
|
27
|
-
import * as i11 from "@angular/material/slider";
|
28
|
-
import * as i12 from "@angular/material/card";
|
29
|
-
import * as i13 from "@angular/material/tabs";
|
30
|
-
import * as i14 from "@angular/material/input";
|
31
|
-
import * as i15 from "@angular/material/form-field";
|
32
|
-
import * as i16 from "@angular/material/datepicker";
|
33
|
-
import * as i17 from "@angular/material/select";
|
34
|
-
import * as i18 from "@angular/material/core";
|
35
|
-
import * as i19 from "@angular/material/table";
|
36
|
-
import * as i20 from "@csmart/ngc-smart-address";
|
37
|
-
import * as i21 from "@csmart/smart-ui";
|
38
|
-
export function conditionalValidator(predicate, validator, errorNamespace) {
|
39
|
-
return (formControl => {
|
40
|
-
if (!formControl.parent) {
|
41
|
-
return null;
|
42
|
-
}
|
43
|
-
let error = null;
|
44
|
-
if (predicate()) {
|
45
|
-
error = validator(formControl);
|
46
|
-
}
|
47
|
-
if (errorNamespace && error) {
|
48
|
-
const customError = {};
|
49
|
-
customError[errorNamespace] = error;
|
50
|
-
error = customError;
|
51
|
-
}
|
52
|
-
return error;
|
53
|
-
});
|
54
|
-
}
|
55
|
-
export function stringConditionalValidator(predicate, validator, errorNamespace) {
|
56
|
-
return (formControl => {
|
57
|
-
if (!formControl.parent) {
|
58
|
-
return null;
|
59
|
-
}
|
60
|
-
let error = null;
|
61
|
-
if (predicate() == 'YS') {
|
62
|
-
error = validator(formControl);
|
63
|
-
}
|
64
|
-
if (errorNamespace && error) {
|
65
|
-
const customError = {};
|
66
|
-
customError[errorNamespace] = error;
|
67
|
-
error = customError;
|
68
|
-
}
|
69
|
-
return error;
|
70
|
-
});
|
71
|
-
}
|
72
|
-
export class SmartVictimDetailComponent {
|
73
|
-
constructor(location, formBuilder, dialog, route, router, snackBar, commonDialogService, victimService, changeDetectorRefs) {
|
74
|
-
this.location = location;
|
75
|
-
this.formBuilder = formBuilder;
|
76
|
-
this.dialog = dialog;
|
77
|
-
this.route = route;
|
78
|
-
this.router = router;
|
79
|
-
this.snackBar = snackBar;
|
80
|
-
this.commonDialogService = commonDialogService;
|
81
|
-
this.victimService = victimService;
|
82
|
-
this.changeDetectorRefs = changeDetectorRefs;
|
83
|
-
this.victimDetail = {};
|
84
|
-
this.onSave = new EventEmitter();
|
85
|
-
this.onCancel = new EventEmitter();
|
86
|
-
this.hidden = true;
|
87
|
-
this.victimAdvocate = {};
|
88
|
-
this.victimGuardian = {};
|
89
|
-
this.guardianTabFlag = false;
|
90
|
-
this.advocateTabFlag = false;
|
91
|
-
this.commonChildrenDivFlag = false;
|
92
|
-
this.cpoExpirationDivFlag = false;
|
93
|
-
this.supportInPlaceDivFlag = false;
|
94
|
-
this.weaponInvolvedDivFlag = false;
|
95
|
-
this.drugUseDivFlag = false;
|
96
|
-
this.showDelete = false;
|
97
|
-
this.addressId = 0;
|
98
|
-
this.advocateAddressId = 0;
|
99
|
-
this.guardianAddressId = 0;
|
100
|
-
this.datePipe = new DatePipe('en-US');
|
101
|
-
this.emailPattern = "^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$";
|
102
|
-
this.phoneNumber = "\\d{10}";
|
103
|
-
this.editVictim = {};
|
104
|
-
this.otherWeaponFlag = false;
|
105
|
-
this.otherDrugFlag = false;
|
106
|
-
this.contactDataSource = new MatTableDataSource();
|
107
|
-
this.guardianPhoneExistFlag = false;
|
108
|
-
this.advocatePhoneExistFlag = false;
|
109
|
-
this.phoneValidationFlag = false;
|
110
|
-
this.guaridanNoPhoneChkFlag = true;
|
111
|
-
this.advocateNoPhoneChkFlag = true;
|
112
|
-
this.addressValidators = {
|
113
|
-
street: [],
|
114
|
-
street2: [],
|
115
|
-
city: [],
|
116
|
-
stateCode: [],
|
117
|
-
zipCode: [],
|
118
|
-
psaCode: [],
|
119
|
-
};
|
120
|
-
this.homePhoneControl = new UntypedFormControl();
|
121
|
-
this.cellPhoneControl = new UntypedFormControl();
|
122
|
-
this.workPhoneControl = new UntypedFormControl();
|
123
|
-
this.guardianHomePhoneControl = new UntypedFormControl();
|
124
|
-
this.guardianCellPhoneControl = new UntypedFormControl();
|
125
|
-
this.guardianWorkPhoneControl = new UntypedFormControl();
|
126
|
-
this.advocateHomePhoneControl = new UntypedFormControl();
|
127
|
-
this.advocateCellPhoneControl = new UntypedFormControl();
|
128
|
-
this.advocateWorkPhoneControl = new UntypedFormControl();
|
129
|
-
this.emergencyContactPhoneControl = new UntypedFormControl();
|
130
|
-
this.initForm();
|
131
|
-
}
|
132
|
-
initForm() {
|
133
|
-
this.victimForm = this.formBuilder.group({
|
134
|
-
underSupervisionFlag: new UntypedFormControl('', Validators.compose([Validators.required])),
|
135
|
-
victimOffenderRelationshipTypeId: new UntypedFormControl('', Validators.compose([Validators.required])),
|
136
|
-
lastName: new UntypedFormControl('', Validators.compose([Validators.required])),
|
137
|
-
firstName: new UntypedFormControl('', Validators.compose([Validators.required])),
|
138
|
-
middleName: new UntypedFormControl(''),
|
139
|
-
prefixId: new UntypedFormControl(''),
|
140
|
-
suffixId: new UntypedFormControl(''),
|
141
|
-
genderCode: new UntypedFormControl(''),
|
142
|
-
birthDate: new UntypedFormControl(''),
|
143
|
-
homePhone: new UntypedFormControl(''),
|
144
|
-
cellPhone: new UntypedFormControl(''),
|
145
|
-
workPhone: new UntypedFormControl(''),
|
146
|
-
email: new UntypedFormControl('', Validators.compose([Validators.pattern(this.emailPattern)])),
|
147
|
-
minorFlag: new UntypedFormControl('', Validators.compose([Validators.required])),
|
148
|
-
victimAdvocateFlag: new UntypedFormControl('', Validators.compose([Validators.required])),
|
149
|
-
guardianLastName: new UntypedFormControl('', stringConditionalValidator(() => this.victimForm.get('minorFlag').value, Validators.required, 'illuminatiError')),
|
150
|
-
guardianFirstName: new UntypedFormControl('', stringConditionalValidator(() => this.victimForm.get('minorFlag').value, Validators.required, 'illuminatiError')),
|
151
|
-
guardianPrefixId: new UntypedFormControl(''),
|
152
|
-
guardianSuffixId: new UntypedFormControl(''),
|
153
|
-
//guardianGender:new FormControl('', ),
|
154
|
-
guardianBirthDate: new UntypedFormControl(''),
|
155
|
-
guardianNoPhoneFlag: new UntypedFormControl(true),
|
156
|
-
guardianHomePhone: new UntypedFormControl(''),
|
157
|
-
guardianCellPhone: new UntypedFormControl(''),
|
158
|
-
guardianWorkPhone: new UntypedFormControl(''),
|
159
|
-
guardianEmail: new UntypedFormControl('', Validators.compose([Validators.pattern(this.emailPattern)])),
|
160
|
-
advocateNoPhoneFlag: new UntypedFormControl(true),
|
161
|
-
advocateWorkPhone: new UntypedFormControl(''),
|
162
|
-
advocateHomePhone: new UntypedFormControl(''),
|
163
|
-
advocateCellPhone: new UntypedFormControl(''),
|
164
|
-
advocateSuffixId: new UntypedFormControl(''),
|
165
|
-
advocatePrefixId: new UntypedFormControl(''),
|
166
|
-
advocateFirstName: new UntypedFormControl('', stringConditionalValidator(() => this.victimForm.get('victimAdvocateFlag').value, Validators.required, 'illuminatiError')),
|
167
|
-
advocateLastName: new UntypedFormControl('', stringConditionalValidator(() => this.victimForm.get('victimAdvocateFlag').value, Validators.required, 'illuminatiError')),
|
168
|
-
advocateEmail: new UntypedFormControl('', Validators.compose([Validators.pattern(this.emailPattern)])),
|
169
|
-
emergencyContact: new UntypedFormControl(''),
|
170
|
-
emergencyContactPhone: new UntypedFormControl(''),
|
171
|
-
emergencyChildren: new UntypedFormControl(''),
|
172
|
-
emergencyCpo: new UntypedFormControl(''),
|
173
|
-
emergencyDrug: new UntypedFormControl(''),
|
174
|
-
emergencySupport: new UntypedFormControl(''),
|
175
|
-
emergencyWeapon: new UntypedFormControl(''),
|
176
|
-
drug: new UntypedFormControl(''),
|
177
|
-
weapon: new UntypedFormControl(''),
|
178
|
-
support: new UntypedFormControl(''),
|
179
|
-
commonChildrenFlag: new UntypedFormControl(''),
|
180
|
-
commonChildrenNumber: new UntypedFormControl(''),
|
181
|
-
cpoExpirationFlag: new UntypedFormControl(''),
|
182
|
-
cpoExpirationDate: new UntypedFormControl(''),
|
183
|
-
accessRisk: new UntypedFormControl(''),
|
184
|
-
drugUseFlag: new UntypedFormControl(''),
|
185
|
-
supportInPlaceFlag: new UntypedFormControl(''),
|
186
|
-
weaponInvolvedFlag: new UntypedFormControl(''),
|
187
|
-
otherWeapon: new UntypedFormControl(''),
|
188
|
-
otherDrug: new UntypedFormControl(''),
|
189
|
-
alcoholUseFlag: new UntypedFormControl(''),
|
190
|
-
victimSupports: new UntypedFormControl(''),
|
191
|
-
victimWeaponUses: new UntypedFormControl(''),
|
192
|
-
victimDrugUses: new UntypedFormControl(''),
|
193
|
-
allowCsosaContactFlag: new UntypedFormControl(''),
|
194
|
-
liveWithOffenderFlag: new UntypedFormControl(''),
|
195
|
-
});
|
196
|
-
this.victimForm.markAsPristine();
|
197
|
-
this.victimForm.markAsUntouched();
|
198
|
-
}
|
199
|
-
_getVictim() {
|
200
|
-
if (this.victimId === 0) {
|
201
|
-
return;
|
202
|
-
}
|
203
|
-
;
|
204
|
-
if (this.editMode == true) {
|
205
|
-
console.log('find victim id inside getVictim');
|
206
|
-
console.log(this.victimId);
|
207
|
-
if (this.victimId === undefined) {
|
208
|
-
this.sub = this.route.params.subscribe(params => {
|
209
|
-
this.victimId = params['victimId'];
|
210
|
-
console.log('my this.victimId');
|
211
|
-
console.log(this.victimId);
|
212
|
-
});
|
213
|
-
}
|
214
|
-
this.victimService.getVictim(this.victimId)
|
215
|
-
.subscribe((victim) => {
|
216
|
-
console.log('victim data 1');
|
217
|
-
console.log(victim);
|
218
|
-
this.editVictim = victim;
|
219
|
-
var supportsData = [];
|
220
|
-
this.editVictim.victimSupports.forEach(t => { supportsData.push(t.victimSupportTypeId); });
|
221
|
-
const victimSupportsControl = this.victimForm.get('victimSupports');
|
222
|
-
victimSupportsControl.setValue(supportsData);
|
223
|
-
var weaponUsesData = [];
|
224
|
-
var otherWeapon = "";
|
225
|
-
this.editVictim.victimWeaponUses.forEach(t => {
|
226
|
-
weaponUsesData.push(t.weaponTypeId);
|
227
|
-
if (t.weaponTypeId == "OTHER") {
|
228
|
-
otherWeapon = t.otherWeapon;
|
229
|
-
this.otherWeaponFlag = true;
|
230
|
-
}
|
231
|
-
});
|
232
|
-
const victimWeaponUsesControl = this.victimForm.get('victimWeaponUses');
|
233
|
-
victimWeaponUsesControl.setValue(weaponUsesData);
|
234
|
-
const otherWeaponControl = this.victimForm.get('otherWeapon');
|
235
|
-
otherWeaponControl.setValue(otherWeapon);
|
236
|
-
var drugUseData = [];
|
237
|
-
var otherDrug = "";
|
238
|
-
console.log('load this.editVictim.victimDrugUses');
|
239
|
-
console.log(this.editVictim.victimDrugUses);
|
240
|
-
this.editVictim.victimDrugUses.forEach(t => {
|
241
|
-
if (t.drugTypeId === null) {
|
242
|
-
otherDrug = t.otherDrug;
|
243
|
-
this.otherDrugFlag = true;
|
244
|
-
t.drugTypeId = 'OTHER';
|
245
|
-
}
|
246
|
-
drugUseData.push(t.drugTypeId);
|
247
|
-
});
|
248
|
-
console.log('this.editVictim.victimDrugUses after push');
|
249
|
-
console.log(drugUseData);
|
250
|
-
if (drugUseData) {
|
251
|
-
const victimDrugUsesControl = this.victimForm.get('victimDrugUses');
|
252
|
-
victimDrugUsesControl.setValue(drugUseData);
|
253
|
-
}
|
254
|
-
if (otherDrug) {
|
255
|
-
const otherDrugControl = this.victimForm.get('otherDrug');
|
256
|
-
otherDrugControl.setValue(otherDrug);
|
257
|
-
}
|
258
|
-
//contact
|
259
|
-
this.victimService.getContacts(this.victimId).subscribe(contactList => {
|
260
|
-
console.log('contactList');
|
261
|
-
console.log(contactList);
|
262
|
-
this.contactList = contactList;
|
263
|
-
this.contactDataSource.data = this.contactList;
|
264
|
-
});
|
265
|
-
//no phone field
|
266
|
-
if (this.editVictim.guardianNoPhoneFlag === false) {
|
267
|
-
this.victimForm.patchValue({ guardianNoPhoneFlag: false });
|
268
|
-
}
|
269
|
-
if (this.editVictim.advocateNoPhoneFlag === false) {
|
270
|
-
this.victimForm.patchValue({ advocateNoPhoneFlag: false });
|
271
|
-
}
|
272
|
-
this.homePhoneControl.setValue(!this.editVictim.homePhone ? "" : this.editVictim.homePhone);
|
273
|
-
this.cellPhoneControl.setValue(!this.editVictim.cellPhone ? "" : this.editVictim.cellPhone);
|
274
|
-
this.workPhoneControl.setValue(!this.editVictim.workPhone ? "" : this.editVictim.workPhone);
|
275
|
-
this.guardianHomePhoneControl.setValue(!this.editVictim.guardianHomePhone ? "" : this.editVictim.guardianHomePhone);
|
276
|
-
this.guardianCellPhoneControl.setValue(!this.editVictim.guardianCellPhone ? "" : this.editVictim.guardianCellPhone);
|
277
|
-
this.guardianWorkPhoneControl.setValue(!this.editVictim.guardianWorkPhone ? "" : this.editVictim.guardianWorkPhone);
|
278
|
-
this.advocateHomePhoneControl.setValue(!this.editVictim.advocateHomePhone ? "" : this.editVictim.advocateHomePhone);
|
279
|
-
this.advocateCellPhoneControl.setValue(!this.editVictim.advocateCellPhone ? "" : this.editVictim.advocateCellPhone);
|
280
|
-
this.advocateWorkPhoneControl.setValue(!this.editVictim.advocateWorkPhone ? "" : this.editVictim.advocateWorkPhone);
|
281
|
-
this.emergencyContactPhoneControl.setValue(!this.editVictim.emergencyContactPhone ? "" : this.editVictim.emergencyContactPhone);
|
282
|
-
}, error => {
|
283
|
-
this.snackBar.open("Error occured while retriving Victim Information. Please try again.");
|
284
|
-
});
|
285
|
-
return;
|
286
|
-
}
|
287
|
-
else {
|
288
|
-
//new
|
289
|
-
}
|
290
|
-
}
|
291
|
-
ngOnChanges() {
|
292
|
-
}
|
293
|
-
onClear() {
|
294
|
-
if (this.addressComponent)
|
295
|
-
this.addressComponent.reset();
|
296
|
-
}
|
297
|
-
showAddress(value) {
|
298
|
-
if (value.checked) {
|
299
|
-
this.victimService.getCurrentHousing(this.offenderId).subscribe((item) => {
|
300
|
-
this.addressId = item.housing.addressId;
|
301
|
-
this.victimForm.patchValue({ addressId: this.addressId });
|
302
|
-
});
|
303
|
-
}
|
304
|
-
else {
|
305
|
-
this.addressComponent.reset();
|
306
|
-
this.editVictim.allowCsosaContactFlag = false;
|
307
|
-
this.addressId = null;
|
308
|
-
}
|
309
|
-
}
|
310
|
-
onAddressChange(addressId) {
|
311
|
-
this.victimForm.patchValue({ addressId: addressId });
|
312
|
-
this.addressId = addressId;
|
313
|
-
}
|
314
|
-
onGuardianAddressChange(MyGuardianAddressId) {
|
315
|
-
this.victimForm.patchValue({ guardianAddressId: MyGuardianAddressId });
|
316
|
-
this.guardianAddressId = MyGuardianAddressId;
|
317
|
-
}
|
318
|
-
onAdvocateAddressChange(MyAdvocateAddressId) {
|
319
|
-
this.victimForm.patchValue({ advocateAddressId: MyAdvocateAddressId });
|
320
|
-
this.advocateAddressId = MyAdvocateAddressId;
|
321
|
-
}
|
322
|
-
cancel() {
|
323
|
-
this.victimForm.reset();
|
324
|
-
}
|
325
|
-
ngOnInit() {
|
326
|
-
this.homePhoneControl.valueChanges.subscribe((hpn) => {
|
327
|
-
const newValue = hpn.replace(/\D/g, '');
|
328
|
-
this.editVictim.homePhone = newValue;
|
329
|
-
});
|
330
|
-
this.cellPhoneControl.valueChanges.subscribe((hpn) => {
|
331
|
-
const newValue = hpn.replace(/\D/g, '');
|
332
|
-
this.editVictim.cellPhone = newValue;
|
333
|
-
});
|
334
|
-
this.workPhoneControl.valueChanges.subscribe((hpn) => {
|
335
|
-
const newValue = hpn.replace(/\D/g, '');
|
336
|
-
this.editVictim.workPhone = newValue;
|
337
|
-
});
|
338
|
-
this.guardianHomePhoneControl.valueChanges.subscribe((hpn) => {
|
339
|
-
const newValue = hpn.replace(/\D/g, '');
|
340
|
-
this.editVictim.guardianHomePhone = newValue;
|
341
|
-
});
|
342
|
-
this.guardianCellPhoneControl.valueChanges.subscribe((hpn) => {
|
343
|
-
const newValue = hpn.replace(/\D/g, '');
|
344
|
-
this.editVictim.guardianCellPhone = newValue;
|
345
|
-
});
|
346
|
-
this.guardianWorkPhoneControl.valueChanges.subscribe((hpn) => {
|
347
|
-
const newValue = hpn.replace(/\D/g, '');
|
348
|
-
this.editVictim.guardianWorkPhone = newValue;
|
349
|
-
});
|
350
|
-
this.advocateHomePhoneControl.valueChanges.subscribe((hpn) => {
|
351
|
-
const newValue = hpn.replace(/\D/g, '');
|
352
|
-
this.editVictim.advocateHomePhone = newValue;
|
353
|
-
});
|
354
|
-
this.advocateCellPhoneControl.valueChanges.subscribe((hpn) => {
|
355
|
-
const newValue = hpn.replace(/\D/g, '');
|
356
|
-
this.editVictim.advocateCellPhone = newValue;
|
357
|
-
});
|
358
|
-
this.advocateWorkPhoneControl.valueChanges.subscribe((hpn) => {
|
359
|
-
const newValue = hpn.replace(/\D/g, '');
|
360
|
-
this.editVictim.advocateWorkPhone = newValue;
|
361
|
-
});
|
362
|
-
this.emergencyContactPhoneControl.valueChanges.subscribe((hpn) => {
|
363
|
-
const newValue = hpn.replace(/\D/g, '');
|
364
|
-
this.editVictim.emergencyContactPhone = newValue;
|
365
|
-
});
|
366
|
-
console.log('show offenderId');
|
367
|
-
console.log(this.offenderId);
|
368
|
-
console.log('show staffId');
|
369
|
-
console.log(this.staffId);
|
370
|
-
console.log('show isIntake');
|
371
|
-
console.log(this.isIntake);
|
372
|
-
//required field
|
373
|
-
const requiredImplementation = { get: function () {
|
374
|
-
if (this._required) {
|
375
|
-
return this._required;
|
376
|
-
}
|
377
|
-
if (this.ngControl && this.ngControl.control && this.ngControl.control.validator) {
|
378
|
-
const emptyValueControl = Object.assign({}, this.ngControl.control);
|
379
|
-
emptyValueControl.value = null;
|
380
|
-
return ('required' in (this.ngControl.control.validator(emptyValueControl) || {}));
|
381
|
-
}
|
382
|
-
return false;
|
383
|
-
}, set: function (value) { this._required = coerceBooleanProperty(value); }, };
|
384
|
-
Object.defineProperty(MatInput.prototype, 'required', requiredImplementation);
|
385
|
-
Object.defineProperty(MatSelect.prototype, 'required', requiredImplementation);
|
386
|
-
Object.defineProperty(MatRadioGroup.prototype, 'required', requiredImplementation);
|
387
|
-
//required field end
|
388
|
-
if (this.victimDetail != null) {
|
389
|
-
// edit record
|
390
|
-
this.editMode = true;
|
391
|
-
this.showDelete = true;
|
392
|
-
this.victimId = this.victimDetail.victimId;
|
393
|
-
this.guardianTabFlag = this.victimDetail.minorFlag;
|
394
|
-
if (this.victimDetail.victimAdvocateFlag == 'YS') {
|
395
|
-
this.advocateTabFlag = true;
|
396
|
-
}
|
397
|
-
if (this.otherWeaponFlag == true) {
|
398
|
-
const otherWeaponControl = this.victimForm.get('otherWeapon');
|
399
|
-
otherWeaponControl.setValidators(Validators.required);
|
400
|
-
}
|
401
|
-
if (this.otherDrugFlag == true) {
|
402
|
-
const otherDrugControl = this.victimForm.get('otherDrug');
|
403
|
-
otherDrugControl.setValidators(Validators.required);
|
404
|
-
}
|
405
|
-
this.cpoExpirationDivFlag = this.victimDetail.cpoExpirationFlag;
|
406
|
-
this.commonChildrenDivFlag = this.victimDetail.commonChildrenFlag;
|
407
|
-
this.supportInPlaceDivFlag = this.victimDetail.supportInPlaceFlag;
|
408
|
-
this.weaponInvolvedDivFlag = this.victimDetail.weaponInvolvedFlag;
|
409
|
-
this.drugUseDivFlag = this.victimDetail.drugUseFlag;
|
410
|
-
this.addressId = this.victimDetail.addressId;
|
411
|
-
this.guardianAddressId = this.victimDetail.guardianAddressId;
|
412
|
-
this.advocateAddressId = this.victimDetail.advocateAddressId;
|
413
|
-
this._getVictim();
|
414
|
-
}
|
415
|
-
else {
|
416
|
-
//add new record
|
417
|
-
this.victimForm.patchValue({ guardianNoPhoneFlag: true });
|
418
|
-
this.victimForm.patchValue({ advocateNoPhoneFlag: true });
|
419
|
-
}
|
420
|
-
this.victimService.getFlagOptionYesNoUnknowns().subscribe((items) => {
|
421
|
-
this.flagOption = items;
|
422
|
-
});
|
423
|
-
this.victimService.getGenders().subscribe((items) => {
|
424
|
-
this.genders = items;
|
425
|
-
});
|
426
|
-
this.victimService.getPrefixes().subscribe((items) => {
|
427
|
-
this.prefixes = items;
|
428
|
-
});
|
429
|
-
this.victimService.getSuffixes().subscribe((items) => {
|
430
|
-
this.suffixes = items;
|
431
|
-
});
|
432
|
-
this.victimService.getRelationshipTypes().subscribe((items) => {
|
433
|
-
this.relationshipTypes = items.filter((y) => (y.relationshipCategoryId === 'ST' || y.relationshipCategoryId === 'FM'));
|
434
|
-
});
|
435
|
-
this.victimService.getSupportTypes().subscribe((items) => {
|
436
|
-
this.victimSupportTypes = items;
|
437
|
-
});
|
438
|
-
this.victimService.getWeaponTypes().subscribe((items) => {
|
439
|
-
this.weaponTypes = items;
|
440
|
-
});
|
441
|
-
this.victimService.getDrugsTypes().subscribe((items) => {
|
442
|
-
console.log('drug lookup items');
|
443
|
-
console.log(items);
|
444
|
-
this.drugs = items;
|
445
|
-
this.drugs.push({ drugTypeId: 'OTHER', name: 'Other' });
|
446
|
-
console.log(this.drugs);
|
447
|
-
});
|
448
|
-
// this.victimService.getDocketList(this.offenderId).subscribe(
|
449
|
-
// (items: any) => {
|
450
|
-
// this.docketlist = items;
|
451
|
-
// }
|
452
|
-
// );
|
453
|
-
this.victimForm.get('minorFlag').valueChanges
|
454
|
-
.subscribe(value => {
|
455
|
-
this.victimForm.get('guardianFirstName').updateValueAndValidity();
|
456
|
-
this.victimForm.get('guardianLastName').updateValueAndValidity();
|
457
|
-
this.victimForm.get('guardianWorkPhone').updateValueAndValidity();
|
458
|
-
this.victimForm.get('guardianHomePhone').updateValueAndValidity();
|
459
|
-
this.victimForm.get('guardianCellPhone').updateValueAndValidity();
|
460
|
-
});
|
461
|
-
this.victimForm.get('victimAdvocateFlag').valueChanges
|
462
|
-
.subscribe(value => {
|
463
|
-
this.victimForm.get('advocateFirstName').updateValueAndValidity();
|
464
|
-
this.victimForm.get('advocateLastName').updateValueAndValidity();
|
465
|
-
this.victimForm.get('advocateWorkPhone').updateValueAndValidity();
|
466
|
-
this.victimForm.get('advocateHomePhone').updateValueAndValidity();
|
467
|
-
this.victimForm.get('advocateCellPhone').updateValueAndValidity();
|
468
|
-
});
|
469
|
-
}
|
470
|
-
back() {
|
471
|
-
//this.onSave.emit(this.victimDetail);
|
472
|
-
this.router.navigate(['victimList']);
|
473
|
-
}
|
474
|
-
deleteVictim() {
|
475
|
-
this.commonDialogService
|
476
|
-
.confirm('', 'Do you want to delete this Victim?', 'Yes', 'No')
|
477
|
-
.subscribe(res => {
|
478
|
-
this.result = res;
|
479
|
-
if (this.result) {
|
480
|
-
this.victimService.deleteVictims(this.victimDetail.victimId, this.staffId)
|
481
|
-
.subscribe(result => {
|
482
|
-
this.snackBar.open('Delete Successfully!', '', {
|
483
|
-
duration: 3000,
|
484
|
-
});
|
485
|
-
});
|
486
|
-
// this.onSave.emit(this.victimDetail);
|
487
|
-
// this.router.navigate(['victim']);
|
488
|
-
setTimeout(() => {
|
489
|
-
window.location.reload();
|
490
|
-
}, 1500);
|
491
|
-
}
|
492
|
-
});
|
493
|
-
}
|
494
|
-
radioMinorChange($event) {
|
495
|
-
if ($event.value === true) {
|
496
|
-
this.guardianTabFlag = true;
|
497
|
-
}
|
498
|
-
else {
|
499
|
-
this.guardianTabFlag = false;
|
500
|
-
}
|
501
|
-
}
|
502
|
-
radioAdvocateChange($event) {
|
503
|
-
const advocateLastNameControl = this.victimForm.get('advocateLastName');
|
504
|
-
const advocateFirstNameControl = this.victimForm.get('advocateFirstName');
|
505
|
-
if ($event.value === "YS") {
|
506
|
-
this.advocateTabFlag = true;
|
507
|
-
advocateLastNameControl.setValidators(Validators.required);
|
508
|
-
advocateFirstNameControl.setValidators(Validators.required);
|
509
|
-
}
|
510
|
-
else {
|
511
|
-
this.advocateTabFlag = false;
|
512
|
-
advocateLastNameControl.clearValidators();
|
513
|
-
advocateFirstNameControl.clearValidators();
|
514
|
-
}
|
515
|
-
advocateLastNameControl.updateValueAndValidity();
|
516
|
-
advocateFirstNameControl.updateValueAndValidity();
|
517
|
-
}
|
518
|
-
radioCicChange($event) {
|
519
|
-
if ($event.value === true) {
|
520
|
-
this.commonChildrenDivFlag = true;
|
521
|
-
// requrie field
|
522
|
-
this.setValidators('commonChildren');
|
523
|
-
}
|
524
|
-
else {
|
525
|
-
this.commonChildrenDivFlag = false;
|
526
|
-
}
|
527
|
-
}
|
528
|
-
setValidators(type) {
|
529
|
-
if (type == 'commonChildren') {
|
530
|
-
this.victimForm.get('commonChildrenNumber').clearValidators();
|
531
|
-
this.victimForm.get('commonChildrenNumber').setValidators(Validators.required);
|
532
|
-
}
|
533
|
-
else if (type == 'cpo') {
|
534
|
-
this.victimForm.get('cpoExpirationDate').clearValidators();
|
535
|
-
this.victimForm.get('cpoExpirationDate').setValidators(Validators.required);
|
536
|
-
}
|
537
|
-
}
|
538
|
-
radioSupportChange($event) {
|
539
|
-
if ($event.value === true) {
|
540
|
-
this.supportInPlaceDivFlag = true;
|
541
|
-
}
|
542
|
-
else {
|
543
|
-
this.supportInPlaceDivFlag = false;
|
544
|
-
}
|
545
|
-
}
|
546
|
-
radioWeaponChange($event) {
|
547
|
-
if ($event.value === true) {
|
548
|
-
this.weaponInvolvedDivFlag = true;
|
549
|
-
}
|
550
|
-
else {
|
551
|
-
this.weaponInvolvedDivFlag = false;
|
552
|
-
}
|
553
|
-
}
|
554
|
-
radioDrugChange($event) {
|
555
|
-
if ($event.value === true) {
|
556
|
-
this.drugUseDivFlag = true;
|
557
|
-
}
|
558
|
-
else {
|
559
|
-
this.drugUseDivFlag = false;
|
560
|
-
}
|
561
|
-
}
|
562
|
-
radioCpoChange($event) {
|
563
|
-
if ($event.value === true) {
|
564
|
-
this.cpoExpirationDivFlag = true;
|
565
|
-
this.setValidators('cpo');
|
566
|
-
}
|
567
|
-
else {
|
568
|
-
this.cpoExpirationDivFlag = false;
|
569
|
-
}
|
570
|
-
}
|
571
|
-
handleDOBChange($event) {
|
572
|
-
var ageDifMs = Date.now() - $event.value;
|
573
|
-
var ageDate = new Date(ageDifMs);
|
574
|
-
if (Math.abs(ageDate.getUTCFullYear() - 1970) <= 18) {
|
575
|
-
this.snackBar.open('Victim is a Minor. This information is a sensitive and should not be disclosed to any unauthorized parties. Contact the legal guardian.', '', {
|
576
|
-
duration: 6000,
|
577
|
-
});
|
578
|
-
const minorControl = this.victimForm.get('minorFlag');
|
579
|
-
minorControl.setValue(true);
|
580
|
-
this.guardianTabFlag = true;
|
581
|
-
}
|
582
|
-
}
|
583
|
-
checkOtherWeapon(WeaponUse) {
|
584
|
-
const otherWeaponControl = this.victimForm.get('otherWeapon');
|
585
|
-
if (WeaponUse.includes("OTHER")) {
|
586
|
-
this.otherWeaponFlag = true;
|
587
|
-
otherWeaponControl.setValidators(Validators.required);
|
588
|
-
}
|
589
|
-
else {
|
590
|
-
this.otherWeaponFlag = false;
|
591
|
-
otherWeaponControl.clearValidators();
|
592
|
-
}
|
593
|
-
otherWeaponControl.updateValueAndValidity();
|
594
|
-
}
|
595
|
-
checkOtherDrug(DrugUse) {
|
596
|
-
const otherDrugControl = this.victimForm.get('otherDrug');
|
597
|
-
if (DrugUse.includes("OTHER")) {
|
598
|
-
this.otherDrugFlag = true;
|
599
|
-
otherDrugControl.setValidators(Validators.required);
|
600
|
-
}
|
601
|
-
else {
|
602
|
-
this.otherDrugFlag = false;
|
603
|
-
otherDrugControl.clearValidators();
|
604
|
-
}
|
605
|
-
otherDrugControl.updateValueAndValidity();
|
606
|
-
}
|
607
|
-
//#region "save victim"
|
608
|
-
saveVictim() {
|
609
|
-
//guardian phone logic
|
610
|
-
if (!this.victimForm.value.guardianNoPhoneFlag) {
|
611
|
-
if (this.guardianHomePhoneControl.value) {
|
612
|
-
if (this.guardianHomePhoneControl.value !== null) {
|
613
|
-
if (this.guardianHomePhoneControl.value !== "") {
|
614
|
-
this.guardianPhoneExistFlag = true;
|
615
|
-
}
|
616
|
-
}
|
617
|
-
}
|
618
|
-
if (this.guardianWorkPhoneControl.value !== undefined) {
|
619
|
-
if (this.guardianWorkPhoneControl.value !== null) {
|
620
|
-
if (this.guardianWorkPhoneControl.value !== "") {
|
621
|
-
this.guardianPhoneExistFlag = true;
|
622
|
-
}
|
623
|
-
}
|
624
|
-
}
|
625
|
-
if (this.guardianCellPhoneControl.value) {
|
626
|
-
if (this.guardianCellPhoneControl.value !== null) {
|
627
|
-
if (this.guardianCellPhoneControl.value !== "") {
|
628
|
-
this.guardianPhoneExistFlag = true;
|
629
|
-
}
|
630
|
-
}
|
631
|
-
}
|
632
|
-
}
|
633
|
-
console.log('this.victimForm.value.guardianNoPhoneFlag');
|
634
|
-
console.log(this.victimForm.value.guardianNoPhoneFlag);
|
635
|
-
console.log('this.guardianPhoneExistFlag');
|
636
|
-
console.log(this.guardianPhoneExistFlag);
|
637
|
-
if (this.guardianPhoneExistFlag === false && this.victimForm.value.guardianNoPhoneFlag === false) {
|
638
|
-
this.phoneValidationFlag = true;
|
639
|
-
this.commonDialogService
|
640
|
-
.warning('', 'Please check the guardian phone field. You have to fill one of the three phone fileds.', 'Ok')
|
641
|
-
.subscribe(res => {
|
642
|
-
this.result = res;
|
643
|
-
});
|
644
|
-
}
|
645
|
-
console.log('this.phoneValidationFlag');
|
646
|
-
console.log(this.phoneValidationFlag);
|
647
|
-
//advocate phone logic
|
648
|
-
if (!this.victimForm.value.advocateNoPhoneFlag) {
|
649
|
-
if (this.advocateHomePhoneControl.value) {
|
650
|
-
if (this.advocateHomePhoneControl.value !== null) {
|
651
|
-
if (this.advocateHomePhoneControl.value !== "") {
|
652
|
-
this.advocatePhoneExistFlag = true;
|
653
|
-
}
|
654
|
-
}
|
655
|
-
}
|
656
|
-
if (this.advocateWorkPhoneControl.value !== undefined) {
|
657
|
-
if (this.advocateWorkPhoneControl.value !== null) {
|
658
|
-
if (this.advocateWorkPhoneControl.value !== "") {
|
659
|
-
this.advocatePhoneExistFlag = true;
|
660
|
-
}
|
661
|
-
}
|
662
|
-
}
|
663
|
-
if (this.advocateCellPhoneControl.value) {
|
664
|
-
if (this.advocateCellPhoneControl.value !== null) {
|
665
|
-
if (this.advocateCellPhoneControl.value !== "") {
|
666
|
-
this.advocatePhoneExistFlag = true;
|
667
|
-
}
|
668
|
-
}
|
669
|
-
}
|
670
|
-
}
|
671
|
-
console.log('this.victimForm.value.advocateNoPhoneFlag');
|
672
|
-
console.log(this.victimForm.value.advocateNoPhoneFlag);
|
673
|
-
console.log('this.advocatePhoneExistFlag');
|
674
|
-
console.log(this.advocatePhoneExistFlag);
|
675
|
-
if (this.advocatePhoneExistFlag === false && this.victimForm.value.advocateNoPhoneFlag === false) {
|
676
|
-
this.phoneValidationFlag = true;
|
677
|
-
this.commonDialogService
|
678
|
-
.warning('', 'Please check the advocate phone field. You have to fill one of the three phone fileds.', 'Ok')
|
679
|
-
.subscribe(res => {
|
680
|
-
this.result = res;
|
681
|
-
});
|
682
|
-
}
|
683
|
-
if (this.homePhoneControl.value) {
|
684
|
-
this.victimForm.value.homePhone = this.homePhoneControl.value.replace(/[()\s-]/g, '');
|
685
|
-
}
|
686
|
-
else {
|
687
|
-
this.victimForm.value.homePhone = null;
|
688
|
-
}
|
689
|
-
if (this.cellPhoneControl.value) {
|
690
|
-
this.victimForm.value.cellPhone = this.cellPhoneControl.value.replace(/[()\s-]/g, '');
|
691
|
-
}
|
692
|
-
else {
|
693
|
-
this.victimForm.value.cellPhone = null;
|
694
|
-
}
|
695
|
-
if (this.workPhoneControl.value) {
|
696
|
-
this.victimForm.value.workPhone = this.workPhoneControl.value.replace(/[()\s-]/g, '');
|
697
|
-
}
|
698
|
-
else {
|
699
|
-
this.victimForm.value.workPhone = null;
|
700
|
-
}
|
701
|
-
if (this.guardianHomePhoneControl.value) {
|
702
|
-
this.victimForm.value.guardianHomePhone = this.guardianHomePhoneControl.value.replace(/[()\s-]/g, '');
|
703
|
-
}
|
704
|
-
else {
|
705
|
-
this.victimForm.value.guardianHomePhone = null;
|
706
|
-
}
|
707
|
-
if (this.guardianCellPhoneControl.value) {
|
708
|
-
this.victimForm.value.guardianCellPhone = this.guardianCellPhoneControl.value.replace(/[()\s-]/g, '');
|
709
|
-
}
|
710
|
-
else {
|
711
|
-
this.victimForm.value.guardianCellPhone = null;
|
712
|
-
}
|
713
|
-
if (this.guardianWorkPhoneControl.value) {
|
714
|
-
this.victimForm.value.guardianWorkPhone = this.guardianWorkPhoneControl.value.replace(/[()\s-]/g, '');
|
715
|
-
}
|
716
|
-
else {
|
717
|
-
this.victimForm.value.guardianWorkPhone = null;
|
718
|
-
}
|
719
|
-
if (this.advocateHomePhoneControl.value) {
|
720
|
-
this.victimForm.value.advocateHomePhone = this.advocateHomePhoneControl.value.replace(/[()\s-]/g, '');
|
721
|
-
}
|
722
|
-
else {
|
723
|
-
this.victimForm.value.advocateHomePhone = null;
|
724
|
-
}
|
725
|
-
if (this.advocateCellPhoneControl.value) {
|
726
|
-
this.victimForm.value.advocateCellPhone = this.advocateCellPhoneControl.value.replace(/[()\s-]/g, '');
|
727
|
-
}
|
728
|
-
else {
|
729
|
-
this.victimForm.value.advocateCellPhone = null;
|
730
|
-
}
|
731
|
-
if (this.advocateWorkPhoneControl.value) {
|
732
|
-
this.victimForm.value.advocateWorkPhone = this.advocateWorkPhoneControl.value.replace(/[()\s-]/g, '');
|
733
|
-
}
|
734
|
-
else {
|
735
|
-
this.victimForm.value.advocateWorkPhone = null;
|
736
|
-
}
|
737
|
-
if (this.emergencyContactPhoneControl.value) {
|
738
|
-
this.victimForm.value.emergencyContactPhone = this.emergencyContactPhoneControl.value.replace(/[()\s-]/g, '');
|
739
|
-
}
|
740
|
-
else {
|
741
|
-
this.victimForm.value.emergencyContactPhone = null;
|
742
|
-
}
|
743
|
-
//data process
|
744
|
-
console.log('this.phoneValidationFlag 1');
|
745
|
-
console.log(this.phoneValidationFlag);
|
746
|
-
if (this.phoneValidationFlag === false) {
|
747
|
-
if (this.victimDetail === null) {
|
748
|
-
//insert new victim
|
749
|
-
var myVictimSupports = [];
|
750
|
-
if (this.victimForm.value.victimSupports) {
|
751
|
-
this.victimForm.value.victimSupports.forEach(element => {
|
752
|
-
const victimSupport = {};
|
753
|
-
victimSupport.victimId = this.victimForm.value.victimId;
|
754
|
-
victimSupport.victimSupportTypeId = element;
|
755
|
-
victimSupport.modifiedBy = this.staffId;
|
756
|
-
myVictimSupports.push(victimSupport);
|
757
|
-
});
|
758
|
-
}
|
759
|
-
var myVictimDrugUses = [];
|
760
|
-
console.log('this.victimForm.value.victimDrugUses during save');
|
761
|
-
console.log(this.victimForm.value.victimDrugUses);
|
762
|
-
if (this.victimForm.value.victimDrugUses) {
|
763
|
-
this.victimForm.value.victimDrugUses.forEach(element => {
|
764
|
-
const victimDrugUse = {};
|
765
|
-
victimDrugUse.drugTypeId = element;
|
766
|
-
if (element === "OTHER" || element === "" || element === null) {
|
767
|
-
victimDrugUse.drugTypeId = null;
|
768
|
-
victimDrugUse.otherDrug = this.victimForm.value.otherDrug;
|
769
|
-
}
|
770
|
-
else {
|
771
|
-
victimDrugUse.drugTypeId = element;
|
772
|
-
victimDrugUse.otherDrug = null;
|
773
|
-
}
|
774
|
-
victimDrugUse.modifiedBy = this.staffId;
|
775
|
-
victimDrugUse.victimId = this.victimForm.value.victimId;
|
776
|
-
myVictimDrugUses.push(victimDrugUse);
|
777
|
-
});
|
778
|
-
}
|
779
|
-
console.log('this.victimForm.value.victimDrugUses during save 1');
|
780
|
-
console.log(this.victimForm.value.victimDrugUses);
|
781
|
-
var myVictimWeaponUses = [];
|
782
|
-
if (this.victimForm.value.victimWeaponUses) {
|
783
|
-
this.victimForm.value.victimWeaponUses.forEach(element => {
|
784
|
-
const victimWeaponUse = {};
|
785
|
-
victimWeaponUse.victimId = this.victimForm.value.victimId;
|
786
|
-
victimWeaponUse.weaponTypeId = element;
|
787
|
-
if (element == "OTHER") {
|
788
|
-
victimWeaponUse.otherWeapon = this.victimForm.value.otherWeapon;
|
789
|
-
}
|
790
|
-
else {
|
791
|
-
victimWeaponUse.otherWeapon = null;
|
792
|
-
}
|
793
|
-
victimWeaponUse.modifiedBy = this.staffId;
|
794
|
-
myVictimWeaponUses.push(victimWeaponUse);
|
795
|
-
});
|
796
|
-
}
|
797
|
-
const newVictim = {
|
798
|
-
victimId: 0,
|
799
|
-
offenderId: this.offenderId,
|
800
|
-
victimOffenderRelationshipTypeId: this.victimForm.value.victimOffenderRelationshipTypeId,
|
801
|
-
lastName: this.victimForm.value.lastName,
|
802
|
-
firstName: this.victimForm.value.firstName,
|
803
|
-
middleName: this.victimForm.value.middleName
|
804
|
-
? this.victimForm.value.middleName
|
805
|
-
: null,
|
806
|
-
prefixId: this.victimForm.value.prefixId
|
807
|
-
? this.victimForm.value.prefixId
|
808
|
-
: null,
|
809
|
-
suffixId: this.victimForm.value.suffixId
|
810
|
-
? this.victimForm.value.suffixId
|
811
|
-
: null,
|
812
|
-
birthDate: this.victimForm.value.birthDate
|
813
|
-
? this.victimForm.value.birthDate
|
814
|
-
: null,
|
815
|
-
genderCode: this.victimForm.value.genderCode
|
816
|
-
? this.victimForm.value.genderCode
|
817
|
-
: null,
|
818
|
-
underSupervisionFlag: this.victimForm.value.underSupervisionFlag,
|
819
|
-
minorFlag: this.victimForm.value.minorFlag,
|
820
|
-
victimAdvocateFlag: this.victimForm.value.victimAdvocateFlag,
|
821
|
-
homePhone: this.victimForm.value.homePhone,
|
822
|
-
workPhone: this.victimForm.value.workPhone,
|
823
|
-
cellPhone: this.victimForm.value.cellPhone,
|
824
|
-
email: this.victimForm.value.email ? this.victimForm.value.email : null,
|
825
|
-
addressId: this.victimForm.value.addressId
|
826
|
-
? this.victimForm.value.addressId
|
827
|
-
: 1,
|
828
|
-
emergencyContact: this.victimForm.value.emergencyContact
|
829
|
-
? this.victimForm.value.emergencyContact
|
830
|
-
: null,
|
831
|
-
emergencyContactPhone: this.victimForm.value.emergencyContactPhone,
|
832
|
-
commonChildrenFlag: this.victimForm.value.commonChildrenFlag,
|
833
|
-
commonChildrenNumber: this.victimForm.value.commonChildrenNumber,
|
834
|
-
cpoExpirationFlag: this.victimForm.value.cpoExpirationFlag,
|
835
|
-
cpoExpirationDate: this.victimForm.value.cpoExpirationDate
|
836
|
-
? this.datePipe.transform(this.victimForm.value.cpoExpirationDate, "short")
|
837
|
-
: null,
|
838
|
-
supportInPlaceFlag: this.victimForm.value.supportInPlaceFlag,
|
839
|
-
weaponInvolvedFlag: this.victimForm.value.weaponInvolvedFlag,
|
840
|
-
drugUseFlag: this.victimForm.value.drugUseFlag,
|
841
|
-
alcoholUseFlag: this.victimForm.value.alcoholUseFlag,
|
842
|
-
accessRisk: this.victimForm.value.accessRisk,
|
843
|
-
modifiedBy: this.staffId,
|
844
|
-
vVictimAdvocate: null,
|
845
|
-
vVictimGuardian: null,
|
846
|
-
victimDrugUses: myVictimDrugUses,
|
847
|
-
victimSupports: myVictimSupports,
|
848
|
-
victimWeaponUses: myVictimWeaponUses,
|
849
|
-
advocateFirstName: null,
|
850
|
-
advocateLastName: null,
|
851
|
-
advocateEmail: null,
|
852
|
-
advocatePrefixId: null,
|
853
|
-
advocateSuffixId: null,
|
854
|
-
advocateNoPhoneFlag: null,
|
855
|
-
advocateHomePhone: null,
|
856
|
-
advocateWorkPhone: null,
|
857
|
-
advocateCellPhone: null,
|
858
|
-
advocateAddressId: null,
|
859
|
-
guardianFirstName: null,
|
860
|
-
guardianLastName: null,
|
861
|
-
guardianEmail: null,
|
862
|
-
guardianPrefixId: null,
|
863
|
-
guardianSuffixId: null,
|
864
|
-
guardianNoPhoneFlag: null,
|
865
|
-
guardianHomePhone: null,
|
866
|
-
guardianWorkPhone: null,
|
867
|
-
guardianCellPhone: null,
|
868
|
-
guardianAddressId: null,
|
869
|
-
guardianBirthDate: null,
|
870
|
-
relationship: null,
|
871
|
-
//relationship: this.victimForm.value.victimOffenderRelationshipTypeId? this.victimForm.value.victimOffenderRelationshipTypeId : null,
|
872
|
-
allowCsosaContactFlag: this.victimForm.value.allowCsosaContactFlag
|
873
|
-
? this.victimForm.value.allowCsosaContactFlag
|
874
|
-
: null,
|
875
|
-
liveWithOffenderFlag: this.victimForm.value.liveWithOffenderFlag
|
876
|
-
? this.victimForm.value.liveWithOffenderFlag
|
877
|
-
: null,
|
878
|
-
};
|
879
|
-
if (this.addressId == 0) {
|
880
|
-
newVictim.addressId = null;
|
881
|
-
}
|
882
|
-
else {
|
883
|
-
newVictim.addressId = this.addressId;
|
884
|
-
}
|
885
|
-
newVictim.advocateAddressId = this.advocateAddressId;
|
886
|
-
newVictim.guardianAddressId = this.guardianAddressId;
|
887
|
-
console.log('newVictim');
|
888
|
-
console.log(newVictim);
|
889
|
-
this.victimService.postVictims(newVictim).subscribe((items) => {
|
890
|
-
const id = items ? items.victimId : '';
|
891
|
-
if (this.victimForm.value.victimAdvocateFlag == "YS") {
|
892
|
-
console.log('add advocate');
|
893
|
-
const victimAdvocate = {
|
894
|
-
victimAdvocateId: id,
|
895
|
-
lastName: this.victimForm.value.advocateLastName,
|
896
|
-
firstName: this.victimForm.value.advocateFirstName,
|
897
|
-
prefixId: this.victimForm.value.advocatePrefixId,
|
898
|
-
suffixId: this.victimForm.value.advocateSuffixId,
|
899
|
-
addressId: this.advocateAddressId ? this.advocateAddressId : null,
|
900
|
-
noPhoneFlag: this.victimForm.value.advocateNoPhoneFlag ? this.victimForm.value.advocateNoPhoneFlag : null,
|
901
|
-
homePhone: this.victimForm.value.advocateHomePhone,
|
902
|
-
workPhone: this.victimForm.value.advocateWorkPhone,
|
903
|
-
cellPhone: this.victimForm.value.advocateCellPhone,
|
904
|
-
email: this.victimForm.value.advocateEmail,
|
905
|
-
modifiedBy: this.staffId
|
906
|
-
};
|
907
|
-
this.victimService.postVictimAdvocate(id, victimAdvocate).subscribe();
|
908
|
-
}
|
909
|
-
if (this.victimForm.value.minorFlag == true) {
|
910
|
-
const victimGuardian = {
|
911
|
-
victimGuardianId: id,
|
912
|
-
lastName: this.victimForm.value.guardianLastName,
|
913
|
-
firstName: this.victimForm.value.guardianFirstName,
|
914
|
-
prefixId: this.victimForm.value.guardianPrefixId,
|
915
|
-
suffixId: this.victimForm.value.guardianSuffixId,
|
916
|
-
birthDate: this.victimForm.value.guardianBirthDate,
|
917
|
-
addressId: this.guardianAddressId ? this.guardianAddressId : null,
|
918
|
-
noPhoneFlag: this.victimForm.value.guardianNoPhoneFlag ? this.victimForm.value.guardianNoPhoneFlag : null,
|
919
|
-
homePhone: this.victimForm.value.guardianHomePhone,
|
920
|
-
workPhone: this.victimForm.value.guardianWorkPhone,
|
921
|
-
cellPhone: this.victimForm.value.guardianCellPhone,
|
922
|
-
email: this.victimForm.value.guardianEmail,
|
923
|
-
modifiedBy: this.staffId
|
924
|
-
};
|
925
|
-
this.victimService.postVictimGuardian(id, victimGuardian).subscribe();
|
926
|
-
}
|
927
|
-
this.snackBar.open('Add Victim Successfully!', '', {
|
928
|
-
duration: 3000,
|
929
|
-
});
|
930
|
-
//insert new
|
931
|
-
if (this.isIntake === true) {
|
932
|
-
this.router.navigate(['victimHome']);
|
933
|
-
}
|
934
|
-
else {
|
935
|
-
this.router.navigate(['victimList']);
|
936
|
-
}
|
937
|
-
//this.onSave.emit(this.victimDetail);
|
938
|
-
});
|
939
|
-
}
|
940
|
-
else {
|
941
|
-
//update victim
|
942
|
-
this.victimDetail.underSupervisionFlag = this.victimForm.value.underSupervisionFlag;
|
943
|
-
this.victimDetail.victimOffenderRelationshipTypeId = this.victimForm.value.victimOffenderRelationshipTypeId;
|
944
|
-
this.victimDetail.lastName = this.victimForm.value.lastName;
|
945
|
-
this.victimDetail.firstName = this.victimForm.value.firstName;
|
946
|
-
this.victimDetail.middleName = this.victimForm.value.middleName;
|
947
|
-
this.victimDetail.prefixId = this.victimForm.value.prefixId ? this.victimForm.value.prefixId : null;
|
948
|
-
this.victimDetail.suffixId = this.victimForm.value.suffixId ? this.victimForm.value.suffixId : null;
|
949
|
-
this.victimDetail.birthDate = this.victimForm.value.birthDate;
|
950
|
-
this.victimDetail.genderCode = this.victimForm.value.genderCode;
|
951
|
-
this.victimDetail.minorFlag = this.victimForm.value.minorFlag;
|
952
|
-
this.victimDetail.homePhone = this.victimForm.value.homePhone;
|
953
|
-
this.victimDetail.workPhone = this.victimForm.value.workPhone;
|
954
|
-
this.victimDetail.cellPhone = this.victimForm.value.cellPhone;
|
955
|
-
this.victimDetail.email = this.victimForm.value.email;
|
956
|
-
this.victimDetail.victimAdvocateFlag = this.victimForm.value.victimAdvocateFlag;
|
957
|
-
this.victimDetail.emergencyContact = this.victimForm.value.emergencyContact;
|
958
|
-
this.victimDetail.emergencyContactPhone = this.victimForm.value.emergencyContactPhone;
|
959
|
-
this.victimDetail.commonChildrenFlag = this.victimForm.value.commonChildrenFlag;
|
960
|
-
this.victimDetail.commonChildrenNumber = this.victimForm.value.commonChildrenNumber;
|
961
|
-
this.victimDetail.cpoExpirationDate = this.victimForm.value.cpoExpirationDate;
|
962
|
-
this.victimDetail.cpoExpirationFlag = this.victimForm.value.cpoExpirationFlag;
|
963
|
-
this.victimDetail.supportInPlaceFlag = this.victimForm.value.supportInPlaceFlag;
|
964
|
-
this.victimDetail.weaponInvolvedFlag = this.victimForm.value.weaponInvolvedFlag;
|
965
|
-
this.victimDetail.drugUseFlag = this.victimForm.value.drugUseFlag;
|
966
|
-
this.victimDetail.alcoholUseFlag = this.victimForm.value.alcoholUseFlag;
|
967
|
-
this.victimDetail.accessRisk = this.victimForm.value.accessRisk;
|
968
|
-
this.victimDetail.addressId = this.addressId;
|
969
|
-
this.victimDetail.allowCsosaContactFlag = this.victimForm.value.allowCsosaContactFlag;
|
970
|
-
this.victimDetail.liveWithOffenderFlag = this.victimForm.value.liveWithOffenderFlag;
|
971
|
-
this.victimDetail.victimSupports = [];
|
972
|
-
this.victimForm.value.victimSupports.forEach(element => {
|
973
|
-
const victimSupport = {};
|
974
|
-
victimSupport.victimId = this.victimDetail.victimId;
|
975
|
-
victimSupport.victimSupportTypeId = element;
|
976
|
-
victimSupport.modifiedBy = this.staffId;
|
977
|
-
this.victimDetail.victimSupports.push(victimSupport);
|
978
|
-
});
|
979
|
-
this.victimDetail.victimDrugUses = [];
|
980
|
-
this.victimForm.value.victimDrugUses.forEach(element => {
|
981
|
-
const victimDrugUse = {};
|
982
|
-
victimDrugUse.drugTypeId = element;
|
983
|
-
console.log('this.victimForm.value.victimDrugUses before');
|
984
|
-
console.log(this.victimForm.value.victimDrugUses);
|
985
|
-
if (element === "OTHER" || element === "") {
|
986
|
-
victimDrugUse.drugTypeId = null;
|
987
|
-
victimDrugUse.otherDrug = this.victimForm.value.otherDrug;
|
988
|
-
}
|
989
|
-
else {
|
990
|
-
victimDrugUse.drugTypeId = element;
|
991
|
-
victimDrugUse.otherDrug = null;
|
992
|
-
}
|
993
|
-
victimDrugUse.modifiedBy = this.staffId;
|
994
|
-
victimDrugUse.victimId = this.victimDetail.victimId;
|
995
|
-
this.victimDetail.victimDrugUses.push(victimDrugUse);
|
996
|
-
});
|
997
|
-
this.victimForm.value.victimDrugUses.filter(word => (!(word.drugTypeId === null && word.otherDrug === null)));
|
998
|
-
this.victimDetail.victimWeaponUses = [];
|
999
|
-
this.victimForm.value.victimWeaponUses.forEach(element => {
|
1000
|
-
const victimWeaponUse = {};
|
1001
|
-
victimWeaponUse.victimId = this.victimDetail.victimId;
|
1002
|
-
victimWeaponUse.weaponTypeId = element;
|
1003
|
-
if (element == "OTHER") {
|
1004
|
-
victimWeaponUse.otherWeapon = this.victimForm.value.otherWeapon;
|
1005
|
-
}
|
1006
|
-
else {
|
1007
|
-
victimWeaponUse.otherWeapon = null;
|
1008
|
-
}
|
1009
|
-
victimWeaponUse.modifiedBy = this.staffId;
|
1010
|
-
this.victimDetail.victimWeaponUses.push(victimWeaponUse);
|
1011
|
-
});
|
1012
|
-
console.log('this.victimDetail before emit');
|
1013
|
-
console.log(this.victimDetail);
|
1014
|
-
this.victimService.putVictims(this.victimDetail.victimId, this.victimDetail).subscribe((items) => {
|
1015
|
-
this.snackBar.open('Update Successfully!', '', {
|
1016
|
-
duration: 3000,
|
1017
|
-
});
|
1018
|
-
//Advocate section
|
1019
|
-
this.victimAdvocate.victimAdvocateId = this.victimDetail.victimId;
|
1020
|
-
this.victimAdvocate.lastName = this.victimForm.value.advocateLastName;
|
1021
|
-
this.victimAdvocate.firstName = this.victimForm.value.advocateFirstName;
|
1022
|
-
this.victimAdvocate.prefixId = this.victimForm.value.advocatePrefixId ? this.victimForm.value.advocatePrefixId : null;
|
1023
|
-
this.victimAdvocate.suffixId = this.victimForm.value.advocateSuffixId ? this.victimForm.value.advocateSuffixId : null;
|
1024
|
-
this.victimAdvocate.addressId = this.advocateAddressId ? this.advocateAddressId : null;
|
1025
|
-
this.victimAdvocate.noPhoneFlag = this.victimForm.value.advocateNoPhoneFlag ? true : false;
|
1026
|
-
this.victimAdvocate.homePhone = this.victimForm.value.advocateHomePhone;
|
1027
|
-
this.victimAdvocate.workPhone = this.victimForm.value.advocateWorkPhone;
|
1028
|
-
this.victimAdvocate.cellPhone = this.victimForm.value.advocateCellPhone;
|
1029
|
-
this.victimAdvocate.email = this.victimForm.value.advocateEmail ? this.victimForm.value.advocateEmail : null;
|
1030
|
-
this.victimAdvocate.modifiedBy = this.staffId;
|
1031
|
-
console.log('work on advocate part');
|
1032
|
-
if (this.victimDetail.victimAdvocateFlag == 'YS') {
|
1033
|
-
console.log('work on advocate flag is YS ');
|
1034
|
-
if (this.victimDetail.advocateFirstName != null) {
|
1035
|
-
console.log('check advocate fisrt name ');
|
1036
|
-
console.log(this.victimDetail.advocateFirstName);
|
1037
|
-
this.victimService.putVictimAdvocate(this.victimDetail.victimId, this.victimAdvocate).subscribe(resp => { });
|
1038
|
-
}
|
1039
|
-
else {
|
1040
|
-
console.log('add advocate');
|
1041
|
-
console.log(this.victimAdvocate);
|
1042
|
-
this.victimService.postVictimAdvocate(this.victimDetail.victimId, this.victimAdvocate).subscribe();
|
1043
|
-
}
|
1044
|
-
}
|
1045
|
-
// guardian section
|
1046
|
-
this.victimGuardian.victimGuardianId = this.victimDetail.victimId;
|
1047
|
-
this.victimGuardian.lastName = this.victimForm.value.guardianLastName;
|
1048
|
-
this.victimGuardian.firstName = this.victimForm.value.guardianFirstName;
|
1049
|
-
this.victimGuardian.prefixId = this.victimForm.value.guardianPrefixId ? this.victimForm.value.guardianPrefixId : null;
|
1050
|
-
this.victimGuardian.suffixId = this.victimForm.value.guardianSuffixId ? this.victimForm.value.guardianSuffixId : null;
|
1051
|
-
this.victimGuardian.addressId = this.guardianAddressId ? this.guardianAddressId : null;
|
1052
|
-
this.victimGuardian.noPhoneFlag = this.victimForm.value.guardianNoPhoneFlag ? true : false;
|
1053
|
-
this.victimGuardian.homePhone = this.victimForm.value.guardianHomePhone;
|
1054
|
-
this.victimGuardian.workPhone = this.victimForm.value.guardianWorkPhone;
|
1055
|
-
this.victimGuardian.cellPhone = this.victimForm.value.guardianCellPhone;
|
1056
|
-
this.victimGuardian.email = this.victimForm.value.guardianEmail ? this.victimForm.value.guardianEmail : null;
|
1057
|
-
this.victimGuardian.modifiedBy = this.staffId;
|
1058
|
-
if (this.victimDetail.minorFlag == true) {
|
1059
|
-
if (this.victimDetail.guardianFirstName != null)
|
1060
|
-
this.victimService.putVictimGuardian(this.victimDetail.victimId, this.victimGuardian).subscribe(resp => {
|
1061
|
-
});
|
1062
|
-
else {
|
1063
|
-
console.log('add gurdian');
|
1064
|
-
console.log(this.victimGuardian);
|
1065
|
-
this.victimService.postVictimGuardian(this.victimDetail.victimId, this.victimGuardian).subscribe();
|
1066
|
-
}
|
1067
|
-
}
|
1068
|
-
});
|
1069
|
-
}
|
1070
|
-
} //end of this.phoneValidationFlag = false
|
1071
|
-
console.log('this.victimDetail');
|
1072
|
-
console.log(this.victimDetail);
|
1073
|
-
this.onSave.emit(this.victimDetail);
|
1074
|
-
}
|
1075
|
-
//#endregion "save victim"
|
1076
|
-
addContact() {
|
1077
|
-
this.router.navigate(['victimContact', this.victimId]);
|
1078
|
-
}
|
1079
|
-
formatLabel(value) {
|
1080
|
-
return value;
|
1081
|
-
}
|
1082
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: SmartVictimDetailComponent, deps: [{ token: i1.Location }, { token: i2.UntypedFormBuilder }, { token: i3.MatDialog }, { token: i4.ActivatedRoute }, { token: i4.Router }, { token: i5.MatSnackBar }, { token: i6.CommonDialogService }, { token: i7.NgcSmartVictimService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
1083
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0", type: SmartVictimDetailComponent, selector: "csmart-victim-detail", inputs: { victimDetail: "victimDetail", staffId: "staffId", offenderId: "offenderId", isIntake: "isIntake" }, outputs: { onSave: "onSave", onCancel: "onCancel" }, providers: [CommonDialogService], viewQueries: [{ propertyName: "addressComponent", first: true, predicate: ["addressComponent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<mat-card>\r\n <mat-card-content>\r\n\r\n <div [formGroup]=\"victimForm\">\r\n\r\n <mat-tab-group dynamicHeight mat-stretch-tabs>\r\n <mat-tab label=\"Victim Detail\" >\r\n <div class='container'>\r\n\r\n <mat-form-field>\r\n <mat-label>Is victim a minor?<font color=\"red\">* </font></mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"minorFlag\" (change)=\"radioMinorChange($event)\" [(ngModel)]=\"editVictim.minorFlag\" >\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('minorFlag').errors\r\n && (victimForm.get('minorFlag').dirty || victimForm.get('minorFlag').touched)\">\r\n <mat-error>If victim a minor field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Does the Victim have a Victim Advocate or Social Worker with <br>whom CSOSA should maintain contact?<font color=\"red\">* </font></mat-label>\r\n <br>\r\n <br>\r\n <mat-radio-group class = \"tp-radio-group\" formControlName=\"victimAdvocateFlag\" (change)=\"radioAdvocateChange($event)\" [(ngModel)]=\"editVictim.victimAdvocateFlag\">\r\n <mat-radio-button color=\"primary\" *ngFor=\"let item of flagOption\" [value]=\"item.flagOptionYesNoUnknownId\">{{item.name}} </mat-radio-button> \r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('victimAdvocateFlag').errors\r\n && (victimForm.get('victimAdvocateFlag').dirty || victimForm.get('victimAdvocateFlag').touched)\">\r\n <mat-error>If victim has advocate field is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Currently Under Supervision:</mat-label>\r\n <mat-select formControlName=\"underSupervisionFlag\" name=\"supervision\" [(ngModel)]=\"editVictim.underSupervisionFlag\" >\r\n <mat-option *ngFor=\"let item of flagOption\" [value]=\"item.flagOptionYesNoUnknownId\" >\r\n {{item.name}}</mat-option>\r\n </mat-select>\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('underSupervisionFlag').errors\r\n && (victimForm.get('underSupervisionFlag').dirty || victimForm.get('underSupervisionFlag').touched)\">\r\n <mat-error>under supervision field is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n\r\n <mat-form-field>\r\n <mat-label>Relationship to Offender:</mat-label>\r\n <mat-select formControlName=\"victimOffenderRelationshipTypeId\" [(ngModel)]=\"editVictim.victimOffenderRelationshipTypeId\" >\r\n <mat-option *ngFor=\"let item of relationshipTypes\" [value]=\"item.relationshipTypeId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('victimOffenderRelationshipTypeId').errors\r\n && (victimForm.get('victimOffenderRelationshipTypeId').dirty || victimForm.get('victimOffenderRelationshipTypeId').touched)\">\r\n <mat-error>relationship is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Last Name:</mat-label>\r\n <input matInput formControlName=\"lastName\" [(ngModel)]=\"editVictim.lastName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('lastName').errors\r\n && (victimForm.get('lastName').dirty || victimForm.get('lastName').touched)\">\r\n <mat-error>victim last name is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim First Name: </mat-label>\r\n <input matInput formControlName=\"firstName\" [(ngModel)]=\"editVictim.firstName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('firstName').errors\r\n && (victimForm.get('firstName').dirty || victimForm.get('firstName').touched)\">\r\n <mat-error>victim first name is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Middle Name:</mat-label>\r\n <input matInput formControlName=\"middleName\" [(ngModel)]=\"editVictim.middleName\">\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Prefix:</mat-label>\r\n <mat-select formControlName=\"prefixId\" [(ngModel)]=\"editVictim.prefixId\">\r\n <mat-option *ngFor=\"let item of prefixes\" [value]=\"item.prefixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Suffix:</mat-label>\r\n <mat-select formControlName=\"suffixId\" [(ngModel)]=\"editVictim.suffixId\">\r\n <mat-option *ngFor=\"let item of suffixes\" [value]=\"item.suffixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Gender:</mat-label>\r\n <mat-select formControlName=\"genderCode\" [(ngModel)]=\"editVictim.genderCode\">\r\n <mat-option *ngFor=\"let item of genders\" [value]=\"item.genderCode\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Date of Birth:</mat-label>\r\n <input matInput\r\n [matDatepicker]=\"victimBirthRef\"\r\n formControlName=\"birthDate\"\r\n [(ngModel)]=\"editVictim.birthDate\"\r\n (click)=\"victimBirthRef.open()\"\r\n (dateChange)=\"handleDOBChange($event)\"\r\n >\r\n <mat-datepicker-toggle [for]=\"victimBirthRef\" matSuffix></mat-datepicker-toggle>\r\n <mat-datepicker #victimBirthRef></mat-datepicker>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Home Phone:</mat-label>\r\n <input\r\n id=\"tel\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.homePhone\"\r\n [phoneControl]=\"homePhoneControl\"\r\n [formControl]=\"homePhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('homePhone').errors\r\n && (victimForm.get('homePhone').dirty || victimForm.get('homePhone').touched)\">\r\n <mat-error><strong>Home phone number format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field >\r\n <mat-label>Victim Cell Phone:</mat-label>\r\n <input\r\n id=\"tel1\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.cellPhone\"\r\n [phoneControl]=\"cellPhoneControl\"\r\n [formControl]=\"cellPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('cellPhone').errors\r\n && (victimForm.get('cellPhone').dirty || victimForm.get('cellPhone').touched)\">\r\n <mat-error><strong>Cell phone number format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n\r\n <mat-form-field >\r\n <mat-label>Victim Work Phone:</mat-label>\r\n <input\r\n id=\"tel2\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.workPhone\"\r\n [phoneControl]=\"workPhoneControl\"\r\n [formControl]=\"workPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('workPhone').errors\r\n && (victimForm.get('workPhone').dirty || victimForm.get('workPhone').touched)\">\r\n <mat-error><strong>Work phone number format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field >\r\n <mat-label>Victim Email:</mat-label>\r\n <input matInput formControlName=\"email\" [(ngModel)]=\"editVictim.email\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('email').errors\r\n && (victimForm.get('email').dirty || victimForm.get('email').touched)\">\r\n <mat-error><strong>victim email format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <div></div>\r\n <app-smart-address\r\n [modifiedBy]=\"staffId\"\r\n [id]=\"addressId\"\r\n [outline]=\"true\"\r\n [showPsa]=\"true\"\r\n [addressValidators]=\"addressValidators\"\r\n [readonly]=\"false\"\r\n (addressIdChange)=\"onAddressChange($event)\"\r\n #addressComponent >\r\n\r\n </app-smart-address>\r\n\r\n\r\n <!-- Docket:\r\n <div>\r\n <div *ngFor=\"let docket of docketlist; let i=index\">\r\n <mat-checkbox >{{docket.docketNumber}}</mat-checkbox>\r\n </div>\r\n </div> -->\r\n <div>\r\n <mat-checkbox color=\"primary\" formControlName=\"liveWithOffenderFlag\" name=\"liveWithOffenderFlag\" [(ngModel)]=\"editVictim.liveWithOffenderFlag\" (change)=\"showAddress($event)\" >victim live with offender</mat-checkbox>\r\n <br>\r\n <mat-checkbox color=\"primary\" formControlName=\"allowCsosaContactFlag\" name=\"allowCsosaContactFlag\" [(ngModel)]=\"editVictim.allowCsosaContactFlag\">victim wants to be contacted by CSOSA</mat-checkbox>\r\n </div>\r\n\r\n </div>\r\n\r\n <mat-card>\r\n <mat-form-field>\r\n <mat-label> Children in Common</mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"commonChildrenFlag\" [(ngModel)]=\"editVictim.commonChildrenFlag\" (change)=\"radioCicChange($event)\">\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"commonChildrenDivFlag\">\r\n\r\n <mat-form-field >\r\n <mat-label>\r\n Children number\r\n </mat-label>\r\n <input matInput formControlName=\"commonChildrenNumber\" [(ngModel)]=\"editVictim.commonChildrenNumber\" >\r\n </mat-form-field>\r\n\r\n </div>\r\n\r\n <mat-form-field>\r\n <mat-label>CPO: </mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"cpoExpirationFlag\" [(ngModel)]=\"editVictim.cpoExpirationFlag\" (change)=\"radioCpoChange($event)\">\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"cpoExpirationDivFlag\">\r\n <mat-form-field>\r\n <mat-label>Expiration Date: </mat-label>\r\n <input matInput\r\n [matDatepicker]=\"cpoDateRef\"\r\n formControlName=\"cpoExpirationDate\"\r\n (click)=\"cpoDateRef.open()\"\r\n [(ngModel)]=\"editVictim.cpoExpirationDate\" >\r\n <mat-datepicker-toggle [for]=\"cpoDateRef\" matSuffix></mat-datepicker-toggle>\r\n <mat-datepicker #cpoDateRef></mat-datepicker>\r\n </mat-form-field>\r\n\r\n </div>\r\n\r\n <br>\r\n <br>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim has a Support System in Place? </mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"supportInPlaceFlag\" [(ngModel)]=\"editVictim.supportInPlaceFlag\" (change)=\"radioSupportChange($event)\">\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"supportInPlaceDivFlag\">\r\n <mat-form-field>\r\n <mat-label>Support type? </mat-label>\r\n <mat-select #supportSel formControlName=\"victimSupports\" [(ngModel)]=\"editVictim.victimSupports\" multiple>\r\n <div (mouseleave)=\"supportSel.close()\">\r\n <mat-option color=\"primary\" *ngFor=\"let item of victimSupportTypes\" [value]=\"item.victimSupportTypeId\">\r\n {{item.name}}\r\n </mat-option>\r\n </div>\r\n </mat-select>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n </div>\r\n\r\n <br>\r\n <br>\r\n\r\n <mat-form-field>\r\n <mat-label>Weapons Involved?</mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"weaponInvolvedFlag\" (change)=\"radioWeaponChange($event)\" [(ngModel)]=\"editVictim.weaponInvolvedFlag\" >\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n\r\n <div *ngIf=\"weaponInvolvedDivFlag\">\r\n <mat-form-field>\r\n <mat-label>Weapon Type</mat-label>\r\n <mat-select #weaponSel formControlName=\"victimWeaponUses\" multiple [(ngModel)]=\"editVictim.victimWeaponUses\" (selectionChange)=\"checkOtherWeapon($event.value)\" >\r\n <div (mouseleave)=\"weaponSel.close()\">\r\n <mat-option color=\"primary\" *ngFor=\"let item of weaponTypes\" [value]=\"item.weaponTypeId\">\r\n {{item.name}}\r\n </mat-option>\r\n </div>\r\n </mat-select>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n </div>\r\n\r\n <div *ngIf=\"otherWeaponFlag\">\r\n <mat-form-field>\r\n <mat-label>Other Weapon:* </mat-label>\r\n <input matInput formControlName=\"otherWeapon\" >\r\n </mat-form-field>\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('otherWeapon').errors\r\n && (victimForm.get('otherWeapon').dirty || victimForm.get('otherWeapon').touched)\">\r\n <mat-error><strong>Other weapon is required.</strong></mat-error>\r\n </div>\r\n </div>\r\n\r\n\r\n <br>\r\n <br>\r\n\r\n <mat-form-field>\r\n <mat-label>Was Offender under the influence of alcohol at the time of the offense?</mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"alcoholUseFlag\" [(ngModel)]=\"editVictim.alcoholUseFlag\" >\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n <br>\r\n <br>\r\n\r\n <mat-form-field>\r\n <mat-label>Was Offender under the influence of drugs at the time of the offense?</mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"drugUseFlag\" (change)=\"radioDrugChange($event)\" [(ngModel)]=\"editVictim.drugUseFlag\" >\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"drugUseDivFlag\">\r\n <mat-form-field>\r\n <mat-label>Drug:</mat-label>\r\n <mat-select #drugSel formControlName=\"victimDrugUses\" multiple (selectionChange)=\"checkOtherDrug($event.value)\" >\r\n <div (mouseleave)=\"drugSel.close()\">\r\n <mat-option color=\"primary\" *ngFor=\"let item of drugs\" [value]=\"item.drugTypeId\">\r\n {{item.name}}\r\n </mat-option>\r\n\r\n </div>\r\n </mat-select>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n </div>\r\n\r\n <div *ngIf=\"otherDrugFlag\">\r\n <mat-form-field>\r\n <mat-label>Other Drug:* </mat-label>\r\n <input matInput formControlName=\"otherDrug\" >\r\n </mat-form-field>\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('otherDrug').errors\r\n && (victimForm.get('otherDrug').dirty || victimForm.get('otherDrug').touched)\">\r\n <mat-error><strong>Other drug is required.</strong></mat-error>\r\n </div>\r\n </div>\r\n <br>\r\n <br>\r\n\r\n <div>\r\n <div>\r\n <mat-label>\r\n Access Risk: 1 thru 10 (10 greatest risk): <b> {{editVictim.accessRisk}}</b>\r\n </mat-label>\r\n </div>\r\n <div>\r\n\r\n <mat-slider\r\n formControlName=\"accessRisk\"\r\n thumbLabel=\"true\"\r\n [displayWith]=\"formatLabel\"\r\n min=\"1\"\r\n max=\"10\"\r\n [(ngModel)]=\"editVictim.accessRisk\"\r\n ><input matSliderThumb /></mat-slider>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </mat-card>\r\n\r\n\r\n <br><br><br>\r\n </mat-tab>\r\n\r\n <mat-tab *ngIf=\"guardianTabFlag\" label=\"Legal Guardian\">\r\n <div class='container'>\r\n <mat-form-field>\r\n <mat-label>Guardian Last Name:</mat-label>\r\n <input matInput formControlName=\"guardianLastName\" [(ngModel)]=\"editVictim.guardianLastName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianLastName').errors \">\r\n <mat-error>Guardian last name is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Guardian First Name:</mat-label>\r\n <input matInput formControlName=\"guardianFirstName\" [(ngModel)]=\"editVictim.guardianFirstName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianFirstName').errors \">\r\n <mat-error>Guardian first name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Guardian Prefix:</mat-label>\r\n <mat-select formControlName=\"guardianPrefixId\" [(ngModel)]=\"editVictim.guardianPrefixId\" >\r\n <mat-option *ngFor=\"let item of prefixes\" [value]=\"item.prefixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Guardian Suffix:</mat-label>\r\n <mat-select formControlName=\"guardianSuffixId\" [(ngModel)]=\"editVictim.guardianSuffixId\" >\r\n <mat-option *ngFor=\"let item of suffixes\" [value]=\"item.suffixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n\r\n <!-- <mat-form-field>\r\n <mat-select placeholder=\"Choose\" formControlName=\"guardianGender\" [(ngModel)]=\"editVictim.guardianGender\">\r\n <mat-option *ngFor=\"let item of genders\" [value]=\"item.genderCode\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field> -->\r\n\r\n\r\n <mat-form-field>\r\n <mat-label>Date of Birth:</mat-label>\r\n <input matInput\r\n [matDatepicker]=\"guardianDateRef\"\r\n formControlName=\"guardianBirthDate\"\r\n [(ngModel)]=\"editVictim.guardianBirthDate\"\r\n (click)=\"guardianDateRef.open()\"\r\n >\r\n <mat-datepicker-toggle [for]=\"guardianDateRef\" matSuffix></mat-datepicker-toggle>\r\n <mat-datepicker #guardianDateRef></mat-datepicker>\r\n </mat-form-field>\r\n\r\n <div></div>\r\n <mat-form-field >\r\n <mat-checkbox\r\n color = \"primary\"\r\n formControlName=\"guardianNoPhoneFlag\">\r\n No Phone (If there is no phone, the phone fields are no longer required)</mat-checkbox>\r\n <input matInput placeholder=\"\" style=\"display: none;\">\r\n </mat-form-field>\r\n\r\n\r\n <div></div>\r\n <mat-card>\r\n <mat-form-field >\r\n <mat-label>Guardian Home Phone:</mat-label>\r\n <input\r\n id=\"tel\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.guardianHomePhone\"\r\n [phoneControl]=\"guardianHomePhoneControl\"\r\n [formControl]=\"guardianHomePhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianHomePhone').errors\r\n && (victimForm.get('guardianHomePhone').dirty || victimForm.get('guardianHomePhone').touched)\">\r\n <mat-error><strong>Guardian home phone number format is not correct.</strong></mat-error>\r\n </div>\r\n\r\n\r\n </mat-form-field>\r\n\r\n <mat-form-field >\r\n <mat-label>Guardian Cell Phone:</mat-label>\r\n <input\r\n id=\"tel4\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.guardianCellPhone\"\r\n [phoneControl]=\"guardianCellPhoneControl\"\r\n [formControl]=\"guardianCellPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianCellPhone').errors\r\n && (victimForm.get('guardianCellPhone').dirty || victimForm.get('guardianCellPhone').touched)\">\r\n <mat-error><strong>Guardian Cell phone number format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field >\r\n <mat-label>Guardian Work Phone:</mat-label>\r\n\r\n <input\r\n id=\"tel5\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.guardianWorkPhone\"\r\n [phoneControl]=\"guardianWorkPhoneControl\"\r\n [formControl]=\"guardianWorkPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianWorkPhone').errors\r\n && (victimForm.get('guardianWorkPhone').dirty || victimForm.get('guardianWorkPhone').touched)\">\r\n <mat-error><strong>Guardian work phone number format is not correct.</strong></mat-error>\r\n </div>\r\n\r\n\r\n </mat-form-field>\r\n </mat-card>\r\n\r\n <div></div>\r\n\r\n <mat-form-field>\r\n <mat-label>Guardian Email:</mat-label>\r\n <input matInput formControlName=\"guardianEmail\" [(ngModel)]=\"editVictim.guardianEmail\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianEmail').errors\r\n && (victimForm.get('guardianEmail').dirty || victimForm.get('guardianEmail').touched)\">\r\n <mat-error><strong>Guardian email format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <div></div>\r\n\r\n <div>\r\n <app-smart-address\r\n\r\n [showPsa]=\"true\"\r\n [modifiedBy]=\"staffId\"\r\n [id]=\"guardianAddressId\"\r\n (addressIdChange)=\"onGuardianAddressChange($event)\"\r\n [outline]=\"true\"\r\n readonly=\"false\"\r\n [rowHeight]=\"80\"\r\n (isValid)=\"false\"\r\n [addressValidators]=\"addressValidators\"\r\n #guardianAddressComponent\r\n >\r\n </app-smart-address>\r\n </div>\r\n </div>\r\n\r\n <br><br><br>\r\n </mat-tab>\r\n\r\n <!--advocate-->\r\n\r\n <mat-tab *ngIf=\"advocateTabFlag\" label=\"Advocate\" >\r\n <div class='container'>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Last Name:</mat-label>\r\n <input matInput formControlName=\"advocateLastName\" [(ngModel)]=\"editVictim.advocateLastName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateLastName').errors \">\r\n <mat-error>Advocate last name is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate First Name:</mat-label>\r\n <input matInput formControlName=\"advocateFirstName\" [(ngModel)]=\"editVictim.advocateFirstName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateFirstName').errors \">\r\n <mat-error>Advocate first name is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Prefix:</mat-label>\r\n <mat-select formControlName=\"advocatePrefixId\" [(ngModel)]=\"editVictim.advocatePrefixId\" >\r\n <mat-option *ngFor=\"let item of prefixes\" [value]=\"item.prefixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Suffix:</mat-label>\r\n <mat-select formControlName=\"advocateSuffixId\" [(ngModel)]=\"editVictim.advocateSuffixId\" >\r\n <mat-option *ngFor=\"let item of suffixes\" [value]=\"item.suffixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n\r\n <mat-form-field>\r\n <mat-checkbox\r\n color = \"primary\"\r\n formControlName=\"advocateNoPhoneFlag\"\r\n\r\n [(ngModel)]=\"editVictim.advocateNoPhoneFlag\" >\r\n No Phone (If there is no phone, the phone fields are no longer required)</mat-checkbox>\r\n <input matInput placeholder=\"\" style=\"display: none;\">\r\n </mat-form-field>\r\n\r\n <div></div>\r\n <mat-card>\r\n <mat-form-field >\r\n <mat-label>Advocate Home Phone:</mat-label>\r\n <input\r\n id=\"tel\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.advocateHomePhone\"\r\n [phoneControl]=\"advocateHomePhoneControl\"\r\n [formControl]=\"advocateHomePhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateHomePhone').errors\r\n && (victimForm.get('advocateHomePhone').dirty || victimForm.get('advocateHomePhone').touched)\">\r\n <mat-error><strong>Advocate home number format is not correct.</strong></mat-error>\r\n </div>\r\n\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Cell Phone:</mat-label>\r\n <input\r\n id=\"tel7\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.advocateCellPhone\"\r\n [phoneControl]=\"advocateCellPhoneControl\"\r\n [formControl]=\"advocateCellPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateCellPhone').errors\r\n && (victimForm.get('advocateCellPhone').dirty || victimForm.get('advocateCellPhone').touched)\">\r\n <mat-error><strong>Advocate cell number format is not correct.</strong></mat-error>\r\n </div>\r\n\r\n\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Work Phone:</mat-label>\r\n <input\r\n id=\"tel8\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.advocateWorkPhone\"\r\n [phoneControl]=\"advocateWorkPhoneControl\"\r\n [formControl]=\"advocateWorkPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateWorkPhone').errors\r\n && (victimForm.get('advocateWorkPhone').dirty || victimForm.get('advocateWorkPhone').touched)\">\r\n <mat-error><strong>Advocate work number format is not correct.</strong></mat-error>\r\n </div>\r\n\r\n </mat-form-field>\r\n </mat-card>\r\n\r\n <div></div>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Email:</mat-label>\r\n <input matInput formControlName=\"advocateEmail\" [(ngModel)]=\"editVictim.advocateEmail\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateEmail').errors\r\n && (victimForm.get('advocateEmail').dirty || victimForm.get('advocateEmail').touched)\">\r\n <mat-error><strong>Advocate email format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <div></div>\r\n\r\n\r\n <div >\r\n <app-smart-address\r\n [showPsa]=\"true\"\r\n [modifiedBy]=\"staffId\"\r\n [id]=\"advocateAddressId\"\r\n (addressIdChange)=\"onAdvocateAddressChange($event)\"\r\n [outline]=\"true\"\r\n readonly=\"false\"\r\n [rowHeight]=\"80\"\r\n (isValid)=\"false\"\r\n [addressValidators]=\"addressValidators\"\r\n #advocateAddressComponent >\r\n </app-smart-address>\r\n </div>\r\n </div>\r\n <br><br><br>\r\n </mat-tab>\r\n\r\n\r\n <mat-tab label=\"Emergency Contact\">\r\n <div class='container'>\r\n\r\n <mat-form-field>\r\n <mat-label>Emergency Contact Name:</mat-label>\r\n <input matInput formControlName=\"emergencyContact\" [(ngModel)]=\"editVictim.emergencyContact\" >\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Emergency Phone Number:</mat-label>\r\n\r\n <input\r\n id=\"tel\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.emergencyContactPhone\"\r\n [phoneControl]=\"emergencyContactPhoneControl\"\r\n [formControl]=\"emergencyContactPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('emergencyContactPhone').errors\r\n && (victimForm.get('emergencyContactPhone').dirty || victimForm.get('emergencyContactPhone').touched)\">\r\n <mat-error><strong>Emergency contact number format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n </div>\r\n <br><br><br>\r\n </mat-tab>\r\n\r\n </mat-tab-group>\r\n <div class='outer'>\r\n <div>\r\n All buttons apply to all tabs. If save button is grey, please check each tab to make sure the required field is filled.<br><br>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('minorFlag').errors\r\n && (victimForm.get('minorFlag').dirty || victimForm.get('minorFlag').touched)\">\r\n <mat-error>If victim a minor field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('victimAdvocateFlag').errors\r\n && (victimForm.get('victimAdvocateFlag').dirty || victimForm.get('victimAdvocateFlag').touched)\">\r\n <mat-error>If victim has advocate field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('underSupervisionFlag').errors\r\n && (victimForm.get('underSupervisionFlag').dirty || victimForm.get('underSupervisionFlag').touched)\">\r\n <mat-error>Under supervision field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('victimOffenderRelationshipTypeId').errors\r\n && (victimForm.get('victimOffenderRelationshipTypeId').dirty || victimForm.get('victimOffenderRelationshipTypeId').touched)\">\r\n <mat-error>Relationship is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('lastName').errors\r\n && (victimForm.get('lastName').dirty || victimForm.get('lastName').touched)\">\r\n <mat-error>Victim last name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('firstName').errors\r\n && (victimForm.get('firstName').dirty || victimForm.get('firstName').touched)\">\r\n <mat-error>victim first name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianFirstName').errors\r\n && (victimForm.get('guardianFirstName').dirty || victimForm.get('guardianFirstName').touched)\">\r\n <mat-error>Guardian first name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianLastName').errors\r\n && (victimForm.get('guardianLastName').dirty || victimForm.get('guardianLastName').touched)\" >\r\n <mat-error>Guardian last name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateLastName').errors\r\n && (victimForm.get('advocateLastName').dirty || victimForm.get('advocateLastName').touched)\" >\r\n <mat-error>Advocate last name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateFirstName').errors\r\n && (victimForm.get('advocateFirstName').dirty || victimForm.get('advocateFirstName').touched)\">\r\n <mat-error>Advocate first name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('otherWeapon').errors\r\n && (victimForm.get('otherWeapon').dirty || victimForm.get('otherWeapon').touched)\">\r\n <mat-error>Other weapon field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('otherDrug').errors\r\n && (victimForm.get('otherDrug').dirty || victimForm.get('otherDrug').touched)\">\r\n <mat-error>Other drug field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n <div class=\"inner\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"saveVictim()\" [disabled]=\"!victimForm.valid\" >Save </button>\r\n </div>\r\n \r\n <div *ngIf=\"showDelete\" class=\"inner\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"deleteVictim()\">Delete </button>\r\n </div>\r\n \r\n <div class=\"inner\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"cancel()\">Clear </button>\r\n </div>\r\n \r\n <button mat-stroked-button color=\"primary\" (click)=\"back()\">Back</button>\r\n\r\n </div>\r\n\r\n </div>\r\n <br>\r\n <br>\r\n\r\n <div align=\"right\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"addContact()\" >Add victim contact</button>\r\n </div>\r\n\r\n <div>\r\n\r\n <mat-table #table [dataSource]=\"contactDataSource\" class=\"example-table\">\r\n <ng-container matColumnDef=\"contactDate\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\">Contact Date</mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\"> {{row.contactDate | date}} </mat-cell>\r\n </ng-container>\r\n\r\n\r\n <ng-container matColumnDef=\"victimContactMethod\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\">Contact Method</mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\"> {{row.victimContactMethod}} </mat-cell>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"nextContactDate\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\">Next Contact Date</mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\"> {{row.nextContactDate | date}} </mat-cell>\r\n </ng-container>\r\n\r\n\r\n <ng-container matColumnDef=\"staff\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\">Contact By</mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\"> {{row.staff}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"comment\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\">Comment</mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\"> {{row.comment}} </mat-cell>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"contactId\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\"></mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\">\r\n\r\n </mat-cell>\r\n </ng-container>\r\n\r\n <mat-header-row *matHeaderRowDef=\"['contactDate', 'victimContactMethod','nextContactDate', 'staff', 'comment', 'contactId']\" class=\"example-header-row\"></mat-header-row>\r\n <mat-row *matRowDef=\"let row; columns:['contactDate', 'victimContactMethod','nextContactDate', 'staff', 'comment', 'contactId'];\" class=\"example-row\"></mat-row>\r\n </mat-table>\r\n\r\n\r\n </div>\r\n\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["mat-form-field{width:100%}.container{margin:16px;display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px;grid-auto-rows:minmax(50px,auto);justify-items:stretch}@media only screen and (max-width: 1120px){.container{display:grid;grid-template-columns:1fr 1fr;grid-row-gap:15px}}@media only screen and (max-width: 675px){.container{display:flex;flex-direction:column}}#outer{width:100%;text-align:center}.inner{display:inline-block}.tp-radio-group{display:flex;justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i10.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i10.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i11.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i11.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }, { kind: "component", type: i12.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i12.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i13.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "component", type: i13.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "directive", type: i14.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i15.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i15.MatLabel, selector: "mat-label" }, { kind: "directive", type: i15.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i15.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i16.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i16.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i16.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i17.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i18.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i19.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i19.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i19.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i19.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i19.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i19.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i19.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i19.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i19.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i19.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i20.SmartAddressComponent, selector: "app-smart-address", inputs: ["showPsa", "housingTypeId", "modifiedBy", "rowHeight", "id", "outline", "readonly", "addressValidators"], outputs: ["isValid", "addressIdChange"] }, { kind: "directive", type: i21.PhoneMaskDirective, selector: "[phoneMask]", inputs: ["phoneControl", "preValue"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }] }); }
|
1084
|
-
}
|
1085
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: SmartVictimDetailComponent, decorators: [{
|
1086
|
-
type: Component,
|
1087
|
-
args: [{ selector: 'csmart-victim-detail', providers: [CommonDialogService], template: "<mat-card>\r\n <mat-card-content>\r\n\r\n <div [formGroup]=\"victimForm\">\r\n\r\n <mat-tab-group dynamicHeight mat-stretch-tabs>\r\n <mat-tab label=\"Victim Detail\" >\r\n <div class='container'>\r\n\r\n <mat-form-field>\r\n <mat-label>Is victim a minor?<font color=\"red\">* </font></mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"minorFlag\" (change)=\"radioMinorChange($event)\" [(ngModel)]=\"editVictim.minorFlag\" >\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('minorFlag').errors\r\n && (victimForm.get('minorFlag').dirty || victimForm.get('minorFlag').touched)\">\r\n <mat-error>If victim a minor field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Does the Victim have a Victim Advocate or Social Worker with <br>whom CSOSA should maintain contact?<font color=\"red\">* </font></mat-label>\r\n <br>\r\n <br>\r\n <mat-radio-group class = \"tp-radio-group\" formControlName=\"victimAdvocateFlag\" (change)=\"radioAdvocateChange($event)\" [(ngModel)]=\"editVictim.victimAdvocateFlag\">\r\n <mat-radio-button color=\"primary\" *ngFor=\"let item of flagOption\" [value]=\"item.flagOptionYesNoUnknownId\">{{item.name}} </mat-radio-button> \r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('victimAdvocateFlag').errors\r\n && (victimForm.get('victimAdvocateFlag').dirty || victimForm.get('victimAdvocateFlag').touched)\">\r\n <mat-error>If victim has advocate field is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Currently Under Supervision:</mat-label>\r\n <mat-select formControlName=\"underSupervisionFlag\" name=\"supervision\" [(ngModel)]=\"editVictim.underSupervisionFlag\" >\r\n <mat-option *ngFor=\"let item of flagOption\" [value]=\"item.flagOptionYesNoUnknownId\" >\r\n {{item.name}}</mat-option>\r\n </mat-select>\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('underSupervisionFlag').errors\r\n && (victimForm.get('underSupervisionFlag').dirty || victimForm.get('underSupervisionFlag').touched)\">\r\n <mat-error>under supervision field is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n\r\n <mat-form-field>\r\n <mat-label>Relationship to Offender:</mat-label>\r\n <mat-select formControlName=\"victimOffenderRelationshipTypeId\" [(ngModel)]=\"editVictim.victimOffenderRelationshipTypeId\" >\r\n <mat-option *ngFor=\"let item of relationshipTypes\" [value]=\"item.relationshipTypeId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('victimOffenderRelationshipTypeId').errors\r\n && (victimForm.get('victimOffenderRelationshipTypeId').dirty || victimForm.get('victimOffenderRelationshipTypeId').touched)\">\r\n <mat-error>relationship is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Last Name:</mat-label>\r\n <input matInput formControlName=\"lastName\" [(ngModel)]=\"editVictim.lastName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('lastName').errors\r\n && (victimForm.get('lastName').dirty || victimForm.get('lastName').touched)\">\r\n <mat-error>victim last name is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim First Name: </mat-label>\r\n <input matInput formControlName=\"firstName\" [(ngModel)]=\"editVictim.firstName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('firstName').errors\r\n && (victimForm.get('firstName').dirty || victimForm.get('firstName').touched)\">\r\n <mat-error>victim first name is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Middle Name:</mat-label>\r\n <input matInput formControlName=\"middleName\" [(ngModel)]=\"editVictim.middleName\">\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Prefix:</mat-label>\r\n <mat-select formControlName=\"prefixId\" [(ngModel)]=\"editVictim.prefixId\">\r\n <mat-option *ngFor=\"let item of prefixes\" [value]=\"item.prefixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Suffix:</mat-label>\r\n <mat-select formControlName=\"suffixId\" [(ngModel)]=\"editVictim.suffixId\">\r\n <mat-option *ngFor=\"let item of suffixes\" [value]=\"item.suffixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Gender:</mat-label>\r\n <mat-select formControlName=\"genderCode\" [(ngModel)]=\"editVictim.genderCode\">\r\n <mat-option *ngFor=\"let item of genders\" [value]=\"item.genderCode\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Date of Birth:</mat-label>\r\n <input matInput\r\n [matDatepicker]=\"victimBirthRef\"\r\n formControlName=\"birthDate\"\r\n [(ngModel)]=\"editVictim.birthDate\"\r\n (click)=\"victimBirthRef.open()\"\r\n (dateChange)=\"handleDOBChange($event)\"\r\n >\r\n <mat-datepicker-toggle [for]=\"victimBirthRef\" matSuffix></mat-datepicker-toggle>\r\n <mat-datepicker #victimBirthRef></mat-datepicker>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim Home Phone:</mat-label>\r\n <input\r\n id=\"tel\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.homePhone\"\r\n [phoneControl]=\"homePhoneControl\"\r\n [formControl]=\"homePhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('homePhone').errors\r\n && (victimForm.get('homePhone').dirty || victimForm.get('homePhone').touched)\">\r\n <mat-error><strong>Home phone number format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field >\r\n <mat-label>Victim Cell Phone:</mat-label>\r\n <input\r\n id=\"tel1\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.cellPhone\"\r\n [phoneControl]=\"cellPhoneControl\"\r\n [formControl]=\"cellPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('cellPhone').errors\r\n && (victimForm.get('cellPhone').dirty || victimForm.get('cellPhone').touched)\">\r\n <mat-error><strong>Cell phone number format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n\r\n <mat-form-field >\r\n <mat-label>Victim Work Phone:</mat-label>\r\n <input\r\n id=\"tel2\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.workPhone\"\r\n [phoneControl]=\"workPhoneControl\"\r\n [formControl]=\"workPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('workPhone').errors\r\n && (victimForm.get('workPhone').dirty || victimForm.get('workPhone').touched)\">\r\n <mat-error><strong>Work phone number format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field >\r\n <mat-label>Victim Email:</mat-label>\r\n <input matInput formControlName=\"email\" [(ngModel)]=\"editVictim.email\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('email').errors\r\n && (victimForm.get('email').dirty || victimForm.get('email').touched)\">\r\n <mat-error><strong>victim email format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <div></div>\r\n <app-smart-address\r\n [modifiedBy]=\"staffId\"\r\n [id]=\"addressId\"\r\n [outline]=\"true\"\r\n [showPsa]=\"true\"\r\n [addressValidators]=\"addressValidators\"\r\n [readonly]=\"false\"\r\n (addressIdChange)=\"onAddressChange($event)\"\r\n #addressComponent >\r\n\r\n </app-smart-address>\r\n\r\n\r\n <!-- Docket:\r\n <div>\r\n <div *ngFor=\"let docket of docketlist; let i=index\">\r\n <mat-checkbox >{{docket.docketNumber}}</mat-checkbox>\r\n </div>\r\n </div> -->\r\n <div>\r\n <mat-checkbox color=\"primary\" formControlName=\"liveWithOffenderFlag\" name=\"liveWithOffenderFlag\" [(ngModel)]=\"editVictim.liveWithOffenderFlag\" (change)=\"showAddress($event)\" >victim live with offender</mat-checkbox>\r\n <br>\r\n <mat-checkbox color=\"primary\" formControlName=\"allowCsosaContactFlag\" name=\"allowCsosaContactFlag\" [(ngModel)]=\"editVictim.allowCsosaContactFlag\">victim wants to be contacted by CSOSA</mat-checkbox>\r\n </div>\r\n\r\n </div>\r\n\r\n <mat-card>\r\n <mat-form-field>\r\n <mat-label> Children in Common</mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"commonChildrenFlag\" [(ngModel)]=\"editVictim.commonChildrenFlag\" (change)=\"radioCicChange($event)\">\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"commonChildrenDivFlag\">\r\n\r\n <mat-form-field >\r\n <mat-label>\r\n Children number\r\n </mat-label>\r\n <input matInput formControlName=\"commonChildrenNumber\" [(ngModel)]=\"editVictim.commonChildrenNumber\" >\r\n </mat-form-field>\r\n\r\n </div>\r\n\r\n <mat-form-field>\r\n <mat-label>CPO: </mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"cpoExpirationFlag\" [(ngModel)]=\"editVictim.cpoExpirationFlag\" (change)=\"radioCpoChange($event)\">\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"cpoExpirationDivFlag\">\r\n <mat-form-field>\r\n <mat-label>Expiration Date: </mat-label>\r\n <input matInput\r\n [matDatepicker]=\"cpoDateRef\"\r\n formControlName=\"cpoExpirationDate\"\r\n (click)=\"cpoDateRef.open()\"\r\n [(ngModel)]=\"editVictim.cpoExpirationDate\" >\r\n <mat-datepicker-toggle [for]=\"cpoDateRef\" matSuffix></mat-datepicker-toggle>\r\n <mat-datepicker #cpoDateRef></mat-datepicker>\r\n </mat-form-field>\r\n\r\n </div>\r\n\r\n <br>\r\n <br>\r\n\r\n <mat-form-field>\r\n <mat-label>Victim has a Support System in Place? </mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"supportInPlaceFlag\" [(ngModel)]=\"editVictim.supportInPlaceFlag\" (change)=\"radioSupportChange($event)\">\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"supportInPlaceDivFlag\">\r\n <mat-form-field>\r\n <mat-label>Support type? </mat-label>\r\n <mat-select #supportSel formControlName=\"victimSupports\" [(ngModel)]=\"editVictim.victimSupports\" multiple>\r\n <div (mouseleave)=\"supportSel.close()\">\r\n <mat-option color=\"primary\" *ngFor=\"let item of victimSupportTypes\" [value]=\"item.victimSupportTypeId\">\r\n {{item.name}}\r\n </mat-option>\r\n </div>\r\n </mat-select>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n </div>\r\n\r\n <br>\r\n <br>\r\n\r\n <mat-form-field>\r\n <mat-label>Weapons Involved?</mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"weaponInvolvedFlag\" (change)=\"radioWeaponChange($event)\" [(ngModel)]=\"editVictim.weaponInvolvedFlag\" >\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n\r\n <div *ngIf=\"weaponInvolvedDivFlag\">\r\n <mat-form-field>\r\n <mat-label>Weapon Type</mat-label>\r\n <mat-select #weaponSel formControlName=\"victimWeaponUses\" multiple [(ngModel)]=\"editVictim.victimWeaponUses\" (selectionChange)=\"checkOtherWeapon($event.value)\" >\r\n <div (mouseleave)=\"weaponSel.close()\">\r\n <mat-option color=\"primary\" *ngFor=\"let item of weaponTypes\" [value]=\"item.weaponTypeId\">\r\n {{item.name}}\r\n </mat-option>\r\n </div>\r\n </mat-select>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n </div>\r\n\r\n <div *ngIf=\"otherWeaponFlag\">\r\n <mat-form-field>\r\n <mat-label>Other Weapon:* </mat-label>\r\n <input matInput formControlName=\"otherWeapon\" >\r\n </mat-form-field>\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('otherWeapon').errors\r\n && (victimForm.get('otherWeapon').dirty || victimForm.get('otherWeapon').touched)\">\r\n <mat-error><strong>Other weapon is required.</strong></mat-error>\r\n </div>\r\n </div>\r\n\r\n\r\n <br>\r\n <br>\r\n\r\n <mat-form-field>\r\n <mat-label>Was Offender under the influence of alcohol at the time of the offense?</mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"alcoholUseFlag\" [(ngModel)]=\"editVictim.alcoholUseFlag\" >\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n <br>\r\n <br>\r\n\r\n <mat-form-field>\r\n <mat-label>Was Offender under the influence of drugs at the time of the offense?</mat-label>\r\n <br>\r\n <mat-radio-group formControlName=\"drugUseFlag\" (change)=\"radioDrugChange($event)\" [(ngModel)]=\"editVictim.drugUseFlag\" >\r\n <mat-radio-button color=\"primary\" [value]=\"true\">Yes</mat-radio-button> \r\n <mat-radio-button color=\"primary\" [value]=\"false\">No</mat-radio-button>\r\n </mat-radio-group>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"drugUseDivFlag\">\r\n <mat-form-field>\r\n <mat-label>Drug:</mat-label>\r\n <mat-select #drugSel formControlName=\"victimDrugUses\" multiple (selectionChange)=\"checkOtherDrug($event.value)\" >\r\n <div (mouseleave)=\"drugSel.close()\">\r\n <mat-option color=\"primary\" *ngFor=\"let item of drugs\" [value]=\"item.drugTypeId\">\r\n {{item.name}}\r\n </mat-option>\r\n\r\n </div>\r\n </mat-select>\r\n <input matInput placeholder=\"\" style=\"display: none\">\r\n </mat-form-field>\r\n\r\n </div>\r\n\r\n <div *ngIf=\"otherDrugFlag\">\r\n <mat-form-field>\r\n <mat-label>Other Drug:* </mat-label>\r\n <input matInput formControlName=\"otherDrug\" >\r\n </mat-form-field>\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('otherDrug').errors\r\n && (victimForm.get('otherDrug').dirty || victimForm.get('otherDrug').touched)\">\r\n <mat-error><strong>Other drug is required.</strong></mat-error>\r\n </div>\r\n </div>\r\n <br>\r\n <br>\r\n\r\n <div>\r\n <div>\r\n <mat-label>\r\n Access Risk: 1 thru 10 (10 greatest risk): <b> {{editVictim.accessRisk}}</b>\r\n </mat-label>\r\n </div>\r\n <div>\r\n\r\n <mat-slider\r\n formControlName=\"accessRisk\"\r\n thumbLabel=\"true\"\r\n [displayWith]=\"formatLabel\"\r\n min=\"1\"\r\n max=\"10\"\r\n [(ngModel)]=\"editVictim.accessRisk\"\r\n ><input matSliderThumb /></mat-slider>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </mat-card>\r\n\r\n\r\n <br><br><br>\r\n </mat-tab>\r\n\r\n <mat-tab *ngIf=\"guardianTabFlag\" label=\"Legal Guardian\">\r\n <div class='container'>\r\n <mat-form-field>\r\n <mat-label>Guardian Last Name:</mat-label>\r\n <input matInput formControlName=\"guardianLastName\" [(ngModel)]=\"editVictim.guardianLastName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianLastName').errors \">\r\n <mat-error>Guardian last name is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Guardian First Name:</mat-label>\r\n <input matInput formControlName=\"guardianFirstName\" [(ngModel)]=\"editVictim.guardianFirstName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianFirstName').errors \">\r\n <mat-error>Guardian first name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Guardian Prefix:</mat-label>\r\n <mat-select formControlName=\"guardianPrefixId\" [(ngModel)]=\"editVictim.guardianPrefixId\" >\r\n <mat-option *ngFor=\"let item of prefixes\" [value]=\"item.prefixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Guardian Suffix:</mat-label>\r\n <mat-select formControlName=\"guardianSuffixId\" [(ngModel)]=\"editVictim.guardianSuffixId\" >\r\n <mat-option *ngFor=\"let item of suffixes\" [value]=\"item.suffixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n\r\n <!-- <mat-form-field>\r\n <mat-select placeholder=\"Choose\" formControlName=\"guardianGender\" [(ngModel)]=\"editVictim.guardianGender\">\r\n <mat-option *ngFor=\"let item of genders\" [value]=\"item.genderCode\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field> -->\r\n\r\n\r\n <mat-form-field>\r\n <mat-label>Date of Birth:</mat-label>\r\n <input matInput\r\n [matDatepicker]=\"guardianDateRef\"\r\n formControlName=\"guardianBirthDate\"\r\n [(ngModel)]=\"editVictim.guardianBirthDate\"\r\n (click)=\"guardianDateRef.open()\"\r\n >\r\n <mat-datepicker-toggle [for]=\"guardianDateRef\" matSuffix></mat-datepicker-toggle>\r\n <mat-datepicker #guardianDateRef></mat-datepicker>\r\n </mat-form-field>\r\n\r\n <div></div>\r\n <mat-form-field >\r\n <mat-checkbox\r\n color = \"primary\"\r\n formControlName=\"guardianNoPhoneFlag\">\r\n No Phone (If there is no phone, the phone fields are no longer required)</mat-checkbox>\r\n <input matInput placeholder=\"\" style=\"display: none;\">\r\n </mat-form-field>\r\n\r\n\r\n <div></div>\r\n <mat-card>\r\n <mat-form-field >\r\n <mat-label>Guardian Home Phone:</mat-label>\r\n <input\r\n id=\"tel\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.guardianHomePhone\"\r\n [phoneControl]=\"guardianHomePhoneControl\"\r\n [formControl]=\"guardianHomePhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianHomePhone').errors\r\n && (victimForm.get('guardianHomePhone').dirty || victimForm.get('guardianHomePhone').touched)\">\r\n <mat-error><strong>Guardian home phone number format is not correct.</strong></mat-error>\r\n </div>\r\n\r\n\r\n </mat-form-field>\r\n\r\n <mat-form-field >\r\n <mat-label>Guardian Cell Phone:</mat-label>\r\n <input\r\n id=\"tel4\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.guardianCellPhone\"\r\n [phoneControl]=\"guardianCellPhoneControl\"\r\n [formControl]=\"guardianCellPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianCellPhone').errors\r\n && (victimForm.get('guardianCellPhone').dirty || victimForm.get('guardianCellPhone').touched)\">\r\n <mat-error><strong>Guardian Cell phone number format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field >\r\n <mat-label>Guardian Work Phone:</mat-label>\r\n\r\n <input\r\n id=\"tel5\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.guardianWorkPhone\"\r\n [phoneControl]=\"guardianWorkPhoneControl\"\r\n [formControl]=\"guardianWorkPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianWorkPhone').errors\r\n && (victimForm.get('guardianWorkPhone').dirty || victimForm.get('guardianWorkPhone').touched)\">\r\n <mat-error><strong>Guardian work phone number format is not correct.</strong></mat-error>\r\n </div>\r\n\r\n\r\n </mat-form-field>\r\n </mat-card>\r\n\r\n <div></div>\r\n\r\n <mat-form-field>\r\n <mat-label>Guardian Email:</mat-label>\r\n <input matInput formControlName=\"guardianEmail\" [(ngModel)]=\"editVictim.guardianEmail\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianEmail').errors\r\n && (victimForm.get('guardianEmail').dirty || victimForm.get('guardianEmail').touched)\">\r\n <mat-error><strong>Guardian email format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <div></div>\r\n\r\n <div>\r\n <app-smart-address\r\n\r\n [showPsa]=\"true\"\r\n [modifiedBy]=\"staffId\"\r\n [id]=\"guardianAddressId\"\r\n (addressIdChange)=\"onGuardianAddressChange($event)\"\r\n [outline]=\"true\"\r\n readonly=\"false\"\r\n [rowHeight]=\"80\"\r\n (isValid)=\"false\"\r\n [addressValidators]=\"addressValidators\"\r\n #guardianAddressComponent\r\n >\r\n </app-smart-address>\r\n </div>\r\n </div>\r\n\r\n <br><br><br>\r\n </mat-tab>\r\n\r\n <!--advocate-->\r\n\r\n <mat-tab *ngIf=\"advocateTabFlag\" label=\"Advocate\" >\r\n <div class='container'>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Last Name:</mat-label>\r\n <input matInput formControlName=\"advocateLastName\" [(ngModel)]=\"editVictim.advocateLastName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateLastName').errors \">\r\n <mat-error>Advocate last name is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate First Name:</mat-label>\r\n <input matInput formControlName=\"advocateFirstName\" [(ngModel)]=\"editVictim.advocateFirstName\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateFirstName').errors \">\r\n <mat-error>Advocate first name is <strong>required</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Prefix:</mat-label>\r\n <mat-select formControlName=\"advocatePrefixId\" [(ngModel)]=\"editVictim.advocatePrefixId\" >\r\n <mat-option *ngFor=\"let item of prefixes\" [value]=\"item.prefixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Suffix:</mat-label>\r\n <mat-select formControlName=\"advocateSuffixId\" [(ngModel)]=\"editVictim.advocateSuffixId\" >\r\n <mat-option *ngFor=\"let item of suffixes\" [value]=\"item.suffixId\">{{item.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n\r\n <mat-form-field>\r\n <mat-checkbox\r\n color = \"primary\"\r\n formControlName=\"advocateNoPhoneFlag\"\r\n\r\n [(ngModel)]=\"editVictim.advocateNoPhoneFlag\" >\r\n No Phone (If there is no phone, the phone fields are no longer required)</mat-checkbox>\r\n <input matInput placeholder=\"\" style=\"display: none;\">\r\n </mat-form-field>\r\n\r\n <div></div>\r\n <mat-card>\r\n <mat-form-field >\r\n <mat-label>Advocate Home Phone:</mat-label>\r\n <input\r\n id=\"tel\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.advocateHomePhone\"\r\n [phoneControl]=\"advocateHomePhoneControl\"\r\n [formControl]=\"advocateHomePhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateHomePhone').errors\r\n && (victimForm.get('advocateHomePhone').dirty || victimForm.get('advocateHomePhone').touched)\">\r\n <mat-error><strong>Advocate home number format is not correct.</strong></mat-error>\r\n </div>\r\n\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Cell Phone:</mat-label>\r\n <input\r\n id=\"tel7\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.advocateCellPhone\"\r\n [phoneControl]=\"advocateCellPhoneControl\"\r\n [formControl]=\"advocateCellPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateCellPhone').errors\r\n && (victimForm.get('advocateCellPhone').dirty || victimForm.get('advocateCellPhone').touched)\">\r\n <mat-error><strong>Advocate cell number format is not correct.</strong></mat-error>\r\n </div>\r\n\r\n\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Work Phone:</mat-label>\r\n <input\r\n id=\"tel8\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.advocateWorkPhone\"\r\n [phoneControl]=\"advocateWorkPhoneControl\"\r\n [formControl]=\"advocateWorkPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateWorkPhone').errors\r\n && (victimForm.get('advocateWorkPhone').dirty || victimForm.get('advocateWorkPhone').touched)\">\r\n <mat-error><strong>Advocate work number format is not correct.</strong></mat-error>\r\n </div>\r\n\r\n </mat-form-field>\r\n </mat-card>\r\n\r\n <div></div>\r\n\r\n <mat-form-field>\r\n <mat-label>Advocate Email:</mat-label>\r\n <input matInput formControlName=\"advocateEmail\" [(ngModel)]=\"editVictim.advocateEmail\" >\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateEmail').errors\r\n && (victimForm.get('advocateEmail').dirty || victimForm.get('advocateEmail').touched)\">\r\n <mat-error><strong>Advocate email format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n <div></div>\r\n\r\n\r\n <div >\r\n <app-smart-address\r\n [showPsa]=\"true\"\r\n [modifiedBy]=\"staffId\"\r\n [id]=\"advocateAddressId\"\r\n (addressIdChange)=\"onAdvocateAddressChange($event)\"\r\n [outline]=\"true\"\r\n readonly=\"false\"\r\n [rowHeight]=\"80\"\r\n (isValid)=\"false\"\r\n [addressValidators]=\"addressValidators\"\r\n #advocateAddressComponent >\r\n </app-smart-address>\r\n </div>\r\n </div>\r\n <br><br><br>\r\n </mat-tab>\r\n\r\n\r\n <mat-tab label=\"Emergency Contact\">\r\n <div class='container'>\r\n\r\n <mat-form-field>\r\n <mat-label>Emergency Contact Name:</mat-label>\r\n <input matInput formControlName=\"emergencyContact\" [(ngModel)]=\"editVictim.emergencyContact\" >\r\n </mat-form-field>\r\n\r\n <mat-form-field>\r\n <mat-label>Emergency Phone Number:</mat-label>\r\n\r\n <input\r\n id=\"tel\"\r\n matInput\r\n phoneMask\r\n [preValue]=\"editVictim.emergencyContactPhone\"\r\n [phoneControl]=\"emergencyContactPhoneControl\"\r\n [formControl]=\"emergencyContactPhoneControl\"\r\n maxlength=\"14\"/>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('emergencyContactPhone').errors\r\n && (victimForm.get('emergencyContactPhone').dirty || victimForm.get('emergencyContactPhone').touched)\">\r\n <mat-error><strong>Emergency contact number format is not correct.</strong></mat-error>\r\n </div>\r\n </mat-form-field>\r\n\r\n </div>\r\n <br><br><br>\r\n </mat-tab>\r\n\r\n </mat-tab-group>\r\n <div class='outer'>\r\n <div>\r\n All buttons apply to all tabs. If save button is grey, please check each tab to make sure the required field is filled.<br><br>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('minorFlag').errors\r\n && (victimForm.get('minorFlag').dirty || victimForm.get('minorFlag').touched)\">\r\n <mat-error>If victim a minor field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('victimAdvocateFlag').errors\r\n && (victimForm.get('victimAdvocateFlag').dirty || victimForm.get('victimAdvocateFlag').touched)\">\r\n <mat-error>If victim has advocate field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('underSupervisionFlag').errors\r\n && (victimForm.get('underSupervisionFlag').dirty || victimForm.get('underSupervisionFlag').touched)\">\r\n <mat-error>Under supervision field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('victimOffenderRelationshipTypeId').errors\r\n && (victimForm.get('victimOffenderRelationshipTypeId').dirty || victimForm.get('victimOffenderRelationshipTypeId').touched)\">\r\n <mat-error>Relationship is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('lastName').errors\r\n && (victimForm.get('lastName').dirty || victimForm.get('lastName').touched)\">\r\n <mat-error>Victim last name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('firstName').errors\r\n && (victimForm.get('firstName').dirty || victimForm.get('firstName').touched)\">\r\n <mat-error>victim first name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianFirstName').errors\r\n && (victimForm.get('guardianFirstName').dirty || victimForm.get('guardianFirstName').touched)\">\r\n <mat-error>Guardian first name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('guardianLastName').errors\r\n && (victimForm.get('guardianLastName').dirty || victimForm.get('guardianLastName').touched)\" >\r\n <mat-error>Guardian last name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateLastName').errors\r\n && (victimForm.get('advocateLastName').dirty || victimForm.get('advocateLastName').touched)\" >\r\n <mat-error>Advocate last name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('advocateFirstName').errors\r\n && (victimForm.get('advocateFirstName').dirty || victimForm.get('advocateFirstName').touched)\">\r\n <mat-error>Advocate first name is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('otherWeapon').errors\r\n && (victimForm.get('otherWeapon').dirty || victimForm.get('otherWeapon').touched)\">\r\n <mat-error>Other weapon field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('otherDrug').errors\r\n && (victimForm.get('otherDrug').dirty || victimForm.get('otherDrug').touched)\">\r\n <mat-error>Other drug field is <strong>required</strong></mat-error>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n <div class=\"inner\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"saveVictim()\" [disabled]=\"!victimForm.valid\" >Save </button>\r\n </div>\r\n \r\n <div *ngIf=\"showDelete\" class=\"inner\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"deleteVictim()\">Delete </button>\r\n </div>\r\n \r\n <div class=\"inner\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"cancel()\">Clear </button>\r\n </div>\r\n \r\n <button mat-stroked-button color=\"primary\" (click)=\"back()\">Back</button>\r\n\r\n </div>\r\n\r\n </div>\r\n <br>\r\n <br>\r\n\r\n <div align=\"right\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"addContact()\" >Add victim contact</button>\r\n </div>\r\n\r\n <div>\r\n\r\n <mat-table #table [dataSource]=\"contactDataSource\" class=\"example-table\">\r\n <ng-container matColumnDef=\"contactDate\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\">Contact Date</mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\"> {{row.contactDate | date}} </mat-cell>\r\n </ng-container>\r\n\r\n\r\n <ng-container matColumnDef=\"victimContactMethod\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\">Contact Method</mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\"> {{row.victimContactMethod}} </mat-cell>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"nextContactDate\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\">Next Contact Date</mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\"> {{row.nextContactDate | date}} </mat-cell>\r\n </ng-container>\r\n\r\n\r\n <ng-container matColumnDef=\"staff\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\">Contact By</mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\"> {{row.staff}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"comment\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\">Comment</mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\"> {{row.comment}} </mat-cell>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"contactId\">\r\n <mat-header-cell *matHeaderCellDef class=\"example-header-cell\"></mat-header-cell>\r\n <mat-cell *matCellDef=\"let row\" class=\"example-cell\">\r\n\r\n </mat-cell>\r\n </ng-container>\r\n\r\n <mat-header-row *matHeaderRowDef=\"['contactDate', 'victimContactMethod','nextContactDate', 'staff', 'comment', 'contactId']\" class=\"example-header-row\"></mat-header-row>\r\n <mat-row *matRowDef=\"let row; columns:['contactDate', 'victimContactMethod','nextContactDate', 'staff', 'comment', 'contactId'];\" class=\"example-row\"></mat-row>\r\n </mat-table>\r\n\r\n\r\n </div>\r\n\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["mat-form-field{width:100%}.container{margin:16px;display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px;grid-auto-rows:minmax(50px,auto);justify-items:stretch}@media only screen and (max-width: 1120px){.container{display:grid;grid-template-columns:1fr 1fr;grid-row-gap:15px}}@media only screen and (max-width: 675px){.container{display:flex;flex-direction:column}}#outer{width:100%;text-align:center}.inner{display:inline-block}.tp-radio-group{display:flex;justify-content:space-between}\n"] }]
|
1088
|
-
}], ctorParameters: () => [{ type: i1.Location }, { type: i2.UntypedFormBuilder }, { type: i3.MatDialog }, { type: i4.ActivatedRoute }, { type: i4.Router }, { type: i5.MatSnackBar }, { type: i6.CommonDialogService }, { type: i7.NgcSmartVictimService }, { type: i0.ChangeDetectorRef }], propDecorators: { victimDetail: [{
|
1089
|
-
type: Input
|
1090
|
-
}], staffId: [{
|
1091
|
-
type: Input
|
1092
|
-
}], offenderId: [{
|
1093
|
-
type: Input
|
1094
|
-
}], isIntake: [{
|
1095
|
-
type: Input
|
1096
|
-
}], onSave: [{
|
1097
|
-
type: Output
|
1098
|
-
}], onCancel: [{
|
1099
|
-
type: Output
|
1100
|
-
}], addressComponent: [{
|
1101
|
-
type: ViewChild,
|
1102
|
-
args: ["addressComponent"]
|
1103
|
-
}] } });
|
1104
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtdmljdGltLWRldGFpbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ2Mtc21hcnQtdmljdGltL3NyYy9saWIvc21hcnQtdmljdGltLWRldGFpbC9zbWFydC12aWN0aW0tZGV0YWlsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25nYy1zbWFydC12aWN0aW0vc3JjL2xpYi9zbWFydC12aWN0aW0tZGV0YWlsL3NtYXJ0LXZpY3RpbS1kZXRhaWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBcUIsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JHLE9BQU8sRUFBRSxrQkFBa0IsRUFBb0Isa0JBQWtCLEVBQUMsVUFBVSxFQUFjLE1BQU0sZ0JB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YXBvbjtcclxuICAgICAgICAgICAgdGhpcy5vdGhlcldlYXBvbkZsYWcgPSB0cnVlO1xyXG4gICAgICAgICAgfVxyXG5cclxuICAgICAgICB9ICApXHJcblxyXG5cclxuICAgICAgICBjb25zdCB2aWN0aW1XZWFwb25Vc2VzQ29udHJvbCA9IHRoaXMudmljdGltRm9ybS5nZXQoJ3ZpY3RpbVdlYXBvblVzZXMnKTtcclxuICAgICAgICB2aWN0aW1XZWFwb25Vc2VzQ29udHJvbC5zZXRWYWx1ZSh3ZWFwb25Vc2VzRGF0YSk7XHJcblxyXG4gICAgICAgIGNvbnN0IG90aGVyV2VhcG9uQ29udHJvbCA9IHRoaXMudmljdGltRm9ybS5nZXQoJ290aGVyV2VhcG9uJyk7XHJcbiAgICAgICAgb3RoZXJXZWFwb25Db250cm9sLnNldFZhbHVlKG90aGVyV2VhcG9uKTtcclxuXHJcbiAgICAgICAgdmFyIGRydWdVc2VEYXRhID1bXTtcclxuICAgICAgICB2YXIgb3RoZXJEcnVnID0gXCJcIjtcclxuXHJcbiAgICAgICAgY29uc29sZS5sb2coJ2xvYWQgdGhpcy5lZGl0VmljdGltLnZpY3RpbURydWdVc2VzJyk7XHJcbiAgICAgICAgY29uc29sZS5sb2codGhpcy5lZGl0VmljdGltLnZpY3RpbURydWdVc2VzKTtcclxuICAgICAgICB0aGlzLmVkaXRWaWN0aW0udmljdGltRHJ1Z1VzZXMuZm9yRWFjaCggdD0+e1xyXG5cclxuICAgICAgICAgIGlmICh0LmRydWdUeXBlSWQgPT09IG51bGwpe1xyXG4gICAgICAgICAgICBvdGhlckRydWcgPSB0Lm90aGVyRHJ1ZztcclxuICAgICAgICAgICAgdGhpcy5vdGhlckRydWdGbGFnID0gdHJ1ZTtcclxuICAgICAgICAgICAgdC5kcnVnVHlwZUlkID0nT1RIRVInO1xyXG4gICAgICAgICAgfVxyXG4gICAgICAgICAgZHJ1Z1VzZURhdGEucHVzaCh0LmRydWdUeXBlSWQpO1xyXG5cclxuICAgICAgICB9ICApXHJcblxyXG4gICAgICAgIGNvbnNvbGUubG9nKCd0aGlzLmVkaXRWaWN0aW0udmljdGltRHJ1Z1VzZXMgYWZ0ZXIgcHVzaCcpO1xyXG4gICAgICAgIGNvbnNvbGUubG9nKGRydWdVc2VEYXRhKTtcclxuXHJcblxyXG4gICAgICAgIGlmIChkcnVnVXNlRGF0YSl7XHJcbiAgICAgICAgICBjb25zdCB2aWN0aW1EcnVnVXNlc0NvbnRyb2wgPSB0aGlzLnZpY3RpbUZvcm0uZ2V0KCd2aWN0aW1EcnVnVXNlcycpO1xyXG4gICAgICAgICAgdmljdGltRHJ1Z1VzZXNDb250cm9sLnNldFZhbHVlKGRydWdVc2VEYXRhKTtcclxuXHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAob3RoZXJEcnVnKXtcclxuICAgICAgICAgIGNvbnN0IG90aGVyRHJ1Z0NvbnRyb2wgPSB0aGlzLnZpY3RpbUZvcm0uZ2V0KCdvdGhlckRydWcnKTtcclxuICAgICAgICAgIG90aGVyRHJ1Z0NvbnRyb2wuc2V0VmFsdWUob3RoZXJEcnVnKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIC8vY29udGFjdFxyXG4gICAgICAgIHRoaXMudmljdGltU2VydmljZS5nZXRDb250YWN0cyh0aGlzLnZpY3RpbUlkKS5zdWJzY3JpYmUoXHJcbiAgICAgICAgICBjb250YWN0TGlzdCA9PiB7XHJcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKCdjb250YWN0TGlzdCcpO1xyXG4gICAgICAgICAgICBjb25zb2xlLmxvZyhjb250YWN0TGlzdCk7XHJcbiAgICAgICAgICAgIHRoaXMuY29udGFjdExpc3QgPSBjb250YWN0TGlzdDtcclxuICAgICAgICAgICAgdGhpcy5jb250YWN0RGF0YVNvdXJjZS5kYXRhID0gdGhpcy5jb250YWN0TGlzdDtcclxuICAgICAgICAgIH1cclxuICAgICAgICApO1xyXG5cclxuICAgICAgICAvL25vIHBob25l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ybS52YWx1ZS52aWN0aW1EcnVnVXNlcy5maWx0ZXIod29yZCA9PiAoICEod29yZC5kcnVnVHlwZUlkID09PSBudWxsICAmJiB3b3JkLm90aGVyRHJ1ZyA9PT0gbnVsbCkgICAgKSk7XHJcblxyXG4gICAgIHRoaXMudmljdGltRGV0YWlsLnZpY3RpbVdlYXBvblVzZXMgPSBbXTtcclxuICAgICB0aGlzLnZpY3RpbUZvcm0udmFsdWUudmljdGltV2VhcG9uVXNlcy5mb3JFYWNoKGVsZW1lbnQgPT4ge1xyXG4gICAgICAgICAgY29uc3QgdmljdGltV2VhcG9uVXNlID0gPFZpY3RpbVdlYXBvblVzZT57fTtcclxuICAgICAgICAgIHZpY3RpbVdlYXBvblVzZS52aWN0aW1JZD0gdGhpcy52aWN0aW1EZXRhaWwudmljdGltSWQ7XHJcbiAgICAgICAgICB2aWN0aW1XZWFwb25Vc2Uud2VhcG9uVHlwZUlkPSBlbGVtZW50O1xyXG5cclxuICAgICAgICAgaWYgKGVsZW1lbnQgPT1cIk9USEVSXCIpe1xyXG4gICAgICAgICAgdmljdGltV2VhcG9uVXNlLm90aGVyV2VhcG9uPXRoaXMudmljdGltRm9ybS52YWx1ZS5vdGhlcldlYXBvbjtcclxuICAgICAgICAgfVxyXG4gICAgICAgICBlbHNle1xyXG4gICAgICAgICAgdmljdGltV2VhcG9uVXNlLm90aGVyV2VhcG9uID0gbnVsbDtcclxuICAgICAgICAgfVxyXG5cclxuICAgICAgICAgIHZpY3RpbVdlYXBvblVzZS5tb2RpZmllZEJ5PSB0aGlzLnN0YWZmSWQ7XHJcbiAgICAgICAgICB0aGlzLnZpY3RpbURldGFpbC52aWN0aW1XZWFwb25Vc2VzLnB1c2godmljdGltV2VhcG9uVXNlKTtcclxuXHJcbiAgICAgIH0pO1xyXG5cclxuICAgICAgY29uc29sZS5sb2coJ3RoaXMudmljdGltRGV0YWlsIGJlZm9yZSBlbWl0Jyk7XHJcbiAgICAgIGNvbnNvbGUubG9nKHRoaXMud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kVtYWlsIDogbnVsbDtcclxuICAgIHRoaXMudmljdGltR3VhcmRpYW4ubW9kaWZpZWRCeSA9IHRoaXMuc3RhZmZJZDtcclxuXHJcbiAgICBpZiAodGhpcy52aWN0aW1EZXRhaWwubWlub3JGbGFnID09IHRydWUpXHJcbiAgICB7XHJcbiAgICAgICBpZih0aGlzLnZpY3RpbURldGFpbC5ndWFyZGlhbkZpcnN0TmFtZSAhPSBudWxsIClcclxuICAgICAgICB0aGlzLnZpY3RpbVNlcnZpY2UucHV0VmljdGltR3VhcmRpYW4odGhpcy52aWN0aW1EZXRhaWwudmljdGltSWQsdGhpcy52aWN0aW1HdWFyZGlhbikuc3Vic2NyaWJlKFxyXG4gICAgICAgIHJlc3A9PntcclxuICAgICAgICAgICAgICB9XHJcbiAgICAgICAgKTtcclxuICAgICAgICBlbHNlXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgY29uc29sZS5sb2coJ2FkZCBndXJkaWFuJyk7XHJcbiAgICAgICAgICBjb25zb2xlLmxvZyh0aGlzLnZpY3RpbUd1YXJkaWFuKTtcclxuICAgICAgICAgdGhpcy52aWN0aW1TZXJ2aWNlLnBvc3RWaWN0aW1HdWFyZGlhbih0aGlzLnZpY3RpbURldGFpbC52aWN0aW1JZCwgdGhpcy52aWN0aW1HdWFyZGlhbikuc3Vic2NyaWJlKCk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgKTtcclxuXHJcbiAgICB9XHJcbiAgfS8vZW5kIG9mIHRoaXMucGhvbmVWYWxpZGF0aW9uRmxhZyA9IGZhbHNlXHJcblxyXG4gICAgY29uc29sZS5sb2coJ3RoaXMudmljdGltRGV0YWlsJyk7XHJcbiAgICBjb25zb2xlLmxvZyh0aGlzLnZpY3RpbURldGFpbCk7XHJcbiAgICB0aGlzLm9uU2F2ZS5lbWl0KHRoaXMudmljdGltRGV0YWlsKTtcclxuICAgICAgfVxyXG5cclxuICAvLyNlbmRyZWdpb24gXCJzYXZlIHZpY3RpbVwiXHJcbiAgICAgIGFkZENvbnRhY3QoKXtcclxuICAgICAgICAgIHRoaXMucm91dGVyLm5hdmlnYXRlKFsndmljdGltQ29udGFjdCcsdGhpcy52aWN0aW1JZF0pO1xyXG4gICAgICB9XHJcbiAgICAgIGZvcm1hdExhYmVsKHZhbHVlOiBudW1iZXIpIHtcclxuICAgICAgICByZXR1cm4gdmFsdWU7XHJcbiAgICAgIH1cclxuXHJcblxyXG59XHJcbiIsIjxtYXQtY2FyZD5cclxuICA8bWF0LWNhcmQtY29udGVudD5cclxuXHJcbiAgICAgICAgPGRpdiAgW2Zvcm1Hcm91cF09XCJ2aWN0aW1Gb3JtXCI+XHJcblxyXG4gICAgICAgICAgPG1hdC10YWItZ3JvdXAgZHluYW1pY0hlaWdodCAgbWF0LXN0cmV0Y2gtdGFicz5cclxuICAgICAgICAgICAgPG1hdC10YWIgbGFiZWw9XCJWaWN0aW0gRGV0YWlsXCIgPlxyXG4gICAgICAgICAgICAgIDxkaXYgY2xhc3M9J2NvbnRhaW5lcic+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+SXMgdmljdGltIGEgbWlub3I/PGZvbnQgY29sb3I9XCJyZWRcIj4qIDwvZm9udD48L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgIDxicj5cclxuICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tZ3JvdXAgIGZvcm1Db250cm9sTmFtZT1cIm1pbm9yRmxhZ1wiICAoY2hhbmdlKT1cInJhZGlvTWlub3JDaGFuZ2UoJGV2ZW50KVwiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5taW5vckZsYWdcIiA+XHJcbiAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIiBbdmFsdWVdPVwidHJ1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WyhuZ01vZGVsKV09XCJlZGl0VmljdGltLmdlbmRlckNvZGVcIj5cclxuICAgICAgICAgICAgICAgICAgICA8bWF0LW9wdGlvbiAqbmdGb3I9XCJsZXQgaXRlbSBvZiBnZW5kZXJzXCIgW3ZhbHVlXT1cIml0ZW0uZ2VuZGVyQ29kZVwiPnt7aXRlbS5uYW1lfX08L21hdC1vcHRpb24+XHJcbiAgICAgICAgICAgICAgICAgIDwvbWF0LXNlbGVjdD5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkRhdGUgb2YgQmlydGg6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXRcclxuICAgICAgICAgICAgICAgICAgIFttYXREYXRlcGlja2VyXT1cInZpY3RpbUJpcnRoUmVmXCJcclxuICAgICAgICAgICAgICAgICAgIGZvcm1Db250cm9sTmFtZT1cImJpcnRoRGF0ZVwiXHJcbiAgICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5iaXJ0aERhdGVcIlxyXG4gICAgICAgICAgICAgICAgICAoY2xpY2spPVwidmljdGltQmlydGhSZWYub3BlbigpXCJcclxuICAgICAgICAgICAgICAgICAgKGRhdGVDaGFuZ2UpPVwiaGFuZGxlRE9CQ2hhbmdlKCRldmVudClcIlxyXG4gICAgICAgICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1kYXRlcGlja2VyLXRvZ2dsZSBbZm9yXT1cInZpY3RpbUJpcnRoUmVmXCIgbWF0U3VmZml4PjwvbWF0LWRhdGVwaWNrZXItdG9nZ2xlPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWRhdGVwaWNrZXIgI3ZpY3RpbUJpcnRoUmVmPjwvbWF0LWRhdGVwaWNrZXI+XHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5WaWN0aW0gSG9tZSBQaG9uZTo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBpZD1cInRlbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgbWF0SW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBwaG9uZU1hc2tcclxuICAgICAgICAgICAgICAgICAgICBbcHJlVmFsdWVdPVwiZWRpdFZpY3RpbS5ob21lUGhvbmVcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtwaG9uZUNvbnRyb2xdPVwiaG9tZVBob25lQ29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cImhvbWVQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgIG1heGxlbmd0aD1cIjE0XCIvPlxyXG5cclxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCdob21lUGhvbmUnKS5lcnJvcnNcclxuICAgICAgICAgICAgICAgICAgJiYgKHZpY3RpbUZvcm0uZ2V0KCdob21lUGhvbmUnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnaG9tZVBob25lJykudG91Y2hlZClcIj5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPkhvbWUgcGhvbmUgbnVtYmVyIGZvcm1hdCBpcyBub3QgY29ycmVjdC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZCA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+VmljdGltIENlbGwgUGhvbmU6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgIDxpbnB1dFxyXG4gICAgICAgICAgICAgICAgICBpZD1cInRlbDFcIlxyXG4gICAgICAgICAgICAgICAgICBtYXRJbnB1dFxyXG4gICAgICAgICAgICAgICAgICBwaG9uZU1hc2tcclxuICAgICAgICAgICAgICAgICAgW3ByZVZhbHVlXT1cImVkaXRWaWN0aW0uY2VsbFBob25lXCJcclxuICAgICAgICAgICAgICAgICAgW3Bob25lQ29udHJvbF09XCJjZWxsUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cImNlbGxQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICBtYXhsZW5ndGg9XCIxNFwiLz5cclxuXHJcbiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJoZWxwLWJsb2NrXCIgKm5nSWY9XCJ2aWN0aW1Gb3JtLmdldCgnY2VsbFBob25lJykuZXJyb3JzXHJcbiAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgnY2VsbFBob25lJykuZGlydHkgfHwgdmljdGltRm9ybS5nZXQoJ2NlbGxQaG9uZScpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yPjxzdHJvbmc+Q2VsbCBwaG9uZSBudW1iZXIgZm9ybWF0IGlzIG5vdCBjb3JyZWN0Ljwvc3Ryb25nPjwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcblxyXG4gICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkID5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5WaWN0aW0gV29yayBQaG9uZTo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgPGlucHV0XHJcbiAgICAgICAgICAgICAgICAgIGlkPVwidGVsMlwiXHJcbiAgICAgICAgICAgICAgICAgIG1hdElucHV0XHJcbiAgICAgICAgICAgICAgICAgIHBob25lTWFza1xyXG4gICAgICAgICAgICAgICAgICBbcHJlVmFsdWVdPVwiZWRpdFZpY3RpbS53b3JrUGhvbmVcIlxyXG4gICAgICAgICAgICAgICAgICBbcGhvbmVDb250cm9sXT1cIndvcmtQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xdPVwid29ya1Bob25lQ29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICAgIG1heGxlbmd0aD1cIjE0XCIvPlxyXG5cclxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCd3b3JrUGhvbmUnKS5lcnJvcnNcclxuICAgICAgICAgICAgICAgICAgJiYgKHZpY3RpbUZvcm0uZ2V0KCd3b3JrUGhvbmUnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnd29ya1Bob25lJykudG91Y2hlZClcIj5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPldvcmsgcGhvbmUgbnVtYmVyIGZvcm1hdCBpcyBub3QgY29ycmVjdC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZCA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+VmljdGltIEVtYWlsOjwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0ICBmb3JtQ29udHJvbE5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JveD5cclxuICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgPG1hdC1jYXJkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPiBDaGlsZHJlbiBpbiBDb21tb248L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWdyb3VwIGZvcm1Db250cm9sTmFtZT1cImNvbW1vbkNoaWxkcmVuRmxhZ1wiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5jb21tb25DaGlsZHJlbkZsYWdcIiAgKGNoYW5nZSk9XCJyYWRpb0NpY0NoYW5nZSgkZXZlbnQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIiBbdmFsdWVdPVwidHJ1ZVwiPlllczwvbWF0LXJhZGlvLWJ1dHRvbj4mbmJzcDtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIFt2YWx1ZV09XCJmYWxzZVwiPk5vPC9tYXQtcmFkaW8tYnV0dG9uPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LXJhZGlvLWdyb3VwPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBwbGFjZWhvbGRlcj1cIlwiIHN0eWxlPVwiZGlzcGxheTogbm9uZVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICA8ZGl2ICAqbmdJZj1cImNvbW1vbkNoaWxkcmVuRGl2RmxhZ1wiPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ2hpbGRyZW4gbnVtYmVyXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCAgZm9ybUNvbnRyb2xOYW1lPVwiY29tbW9uQ2hpbGRyZW5OdW1iZXJcIiBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uY29tbW9uQ2hpbGRyZW5OdW1iZXJcIiA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkNQTzogPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWdyb3VwIGZvcm1Db250cm9sTmFtZT1cImNwb0V4cGlyYXRpb25GbGFnXCIgIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5jcG9FeHBpcmF0aW9uRmxhZ1wiIChjaGFuZ2UpPVwicmFkaW9DcG9DaGFuZ2UoJGV2ZW50KVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIiBbdmFsdWVdPVwidHJ1ZVwiPlllczwvbWF0LXJhZGlvLWJ1dHRvbj4mbmJzcDtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1idXR0b24gY29sb3I9XCJwcmltYXJ5XCIgW3ZhbHVlXT1cImZhbHNlXCI+Tm88L21hdC1yYWRpby1idXR0b24+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1yYWRpby1ncm91cD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBwbGFjZWhvbGRlcj1cIlwiIHN0eWxlPVwiZGlzcGxheTogbm9uZVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgPGRpdiAqbmdJZj1cImNwb0V4cGlyYXRpb25EaXZGbGFnXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5FeHBpcmF0aW9uIERhdGU6IDwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbWF0RGF0ZXBpY2tlcl09XCJjcG9EYXRlUmVmXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1Db250cm9sTmFtZT1cImNwb0V4cGlyYXRpb25EYXRlXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cImNwb0RhdGVSZWYub3BlbigpXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgWyhuZ01vZGVsKV09XCJlZGl0VmljdGltLmNwb0V4cGlyYXRpb25EYXRlXCIgID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1kYXRlcGlja2VyLXRvZ2dsZSBbZm9yXT1cImNwb0RhdGVSZWZcIiBtYXRTdWZmaXg+PC9tYXQtZGF0ZXBpY2tlci10b2dnbGU+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZGF0ZXBpY2tlciAjY3BvRGF0ZVJlZj48L21hdC1kYXRlcGlja2VyPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG4gICAgICAgICAgICAgICAgICAgIDxicj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5WaWN0aW0gaGFzIGEgU3VwcG9ydCBTeXN0ZW0gaW4gUGxhY2U/IDwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tZ3JvdXAgZm9ybUNvbnRyb2xOYW1lPVwic3VwcG9ydEluUGxhY2VGbGFnXCIgWyhuZ01vZGVsKV09XCJlZGl0VmljdGltLnN1cHBvcnRJblBsYWNlRmxhZ1wiICAoY2hhbmdlKT1cInJhZGlvU3VwcG9ydENoYW5nZSgkZXZlbnQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1idXR0b24gY29sb3I9XCJwcmltYXJ5XCIgW3ZhbHVlXT1cInRydWVcIj5ZZXM8L21hdC1yYWRpby1idXR0b24+Jm5ic3A7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1idXR0b24gY29sb3I9XCJwcmltYXJ5XCIgW3ZhbHVlXT1cImZhbHNlXCI+Tm88L21hdC1yYWRpby1idXR0b24+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LXJhZGlvLWdyb3VwPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgcGxhY2Vob2xkZXI9XCJcIiBzdHlsZT1cImRpc3BsYXk6IG5vbmVcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2ICpuZ0lmPVwic3VwcG9ydEluUGxhY2VEaXZGbGFnXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+U3VwcG9ydCB0eXBlPyA8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXNlbGVjdCAjc3VwcG9ydFNlbCBmb3JtQ29udHJvbE5hbWU9XCJ2aWN0aW1TdXBwb3J0c1wiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS52aWN0aW1TdXBwb3J0c1wiIG11bHRpcGxlPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiAobW91c2VsZWF2ZSk9XCJzdXBwb3J0U2VsLmNsb3NlKClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1vcHRpb24gY29sb3I9XCJwcmltYXJ5XCIgKm5nRm9yPVwibGV0IGl0ZW0gb2YgdmljdGltU3VwcG9ydFR5cGVzXCIgW3ZhbHVlXT1cIml0ZW0udmljdGltU3VwcG9ydFR5cGVJZFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7aXRlbS5uYW1lfX1cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtb3B0aW9uPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1zZWxlY3Q+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IHBsYWNlaG9sZGVyPVwiXCIgc3R5bGU9XCJkaXNwbGF5OiBub25lXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICA8YnI+XHJcbiAgICAgICAgICAgICAgICAgICAgICA8YnI+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPldlYXBvbnMgSW52b2x2ZWQ/PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1ncm91cCBmb3JtQ29udHJvbE5hbWU9XCJ3ZWFwb25JbnZvbHZlZEZsYWdcIiAoY2hhbmdlKT1cInJhZGlvV2VhcG9uQ2hhbmdlKCRldmVudClcIiBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0ud2VhcG9uSW52b2x2ZWRGbGFnXCIgPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1idXR0b24gY29sb3I9XCJwcmltYXJ5XCIgW3ZhbHVlXT1cInRydWVcIj5ZZXM8L21hdC1yYWRpby1idXR0b24+Jm5ic3A7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIiBbdmFsdWVdPVwiZmFsc2VcIj5ObzwvbWF0LXJhZGlvLWJ1dHRvbj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1yYWRpby1ncm91cD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgcGxhY2Vob2xkZXI9XCJcIiBzdHlsZT1cImRpc3BsYXk6IG5vbmVcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2ICpuZ0lmPVwid2VhcG9uSW52b2x2ZWREaXZGbGFnXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPldlYXBvbiBUeXBlPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXNlbGVjdCAgI3dlYXBvblNlbCBmb3JtQ29udHJvbE5hbWU9XCJ2aWN0aW1XZWFwb25Vc2VzXCIgbXVsdGlwbGUgWyhuZ01vZGVsKV09XCJlZGl0VmljdGltLnZpY3RpbVdlYXBvblVzZXNcIiAoc2VsZWN0aW9uQ2hhbmdlKT1cImNoZWNrT3RoZXJXZWFwb24oJGV2ZW50LnZhbHVlKVwiID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiAobW91c2VsZWF2ZSk9XCJ3ZWFwb25TZWwuY2xvc2UoKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtb3B0aW9uIGNvbG9yPVwicHJpbWFyeVwiICpuZ0Zvcj1cImxldCBpdGVtIG9mIHdlYXBvblR5cGVzXCIgW3ZhbHVlXT1cIml0ZW0ud2VhcG9uVHlwZUlkXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7e2l0ZW0ubmFtZX19XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtb3B0aW9uPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LXNlbGVjdD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBwbGFjZWhvbGRlcj1cIlwiIHN0eWxlPVwiZGlzcGxheTogbm9uZVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgKm5nSWY9XCJvdGhlcldlYXBvbkZsYWdcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+T3RoZXIgV2VhcG9uOiogPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCAgZm9ybUNvbnRyb2xOYW1lPVwib3RoZXJXZWFwb25cIiA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJoZWxwLWJsb2NrXCIgKm5nSWY9XCJ2aWN0aW1Gb3JtLmdldCgnb3RoZXJXZWFwb24nKS5lcnJvcnNcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJiYgKHZpY3RpbUZvcm0uZ2V0KCdvdGhlcldlYXBvbicpLmRpcnR5IHx8IHZpY3RpbUZvcm0uZ2V0KCdvdGhlcldlYXBvbicpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3I+PHN0cm9uZz5PdGhlciB3ZWFwb24gaXMgcmVxdWlyZWQuPC9zdHJvbmc+PC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+V2FzIE9mZmVuZGVyIHVuZGVyIHRoZSBpbmZsdWVuY2Ugb2YgYWxjb2hvbCBhdCB0aGUgdGltZSBvZiB0aGUgb2ZmZW5zZT88L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1ncm91cCBmb3JtQ29udHJvbE5hbWU9XCJhbGNvaG9sVXNlRmxhZ1wiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5hbGNvaG9sVXNlRmxhZ1wiID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1idXR0b24gY29sb3I9XCJwcmltYXJ5XCIgW3ZhbHVlXT1cInRydWVcIj5ZZXM8L21hdC1yYWRpby1idXR0b24+Jm5ic3A7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIFt2YWx1ZV09XCJmYWxzZVwiPk5vPC9tYXQtcmFkaW8tYnV0dG9uPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtcmFkaW8tZ3JvdXA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgcGxhY2Vob2xkZXI9XCJcIiBzdHlsZT1cImRpc3BsYXk6IG5vbmVcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPldhcyBPZmZlbmRlciB1bmRlciB0aGUgaW5mbHVlbmNlIG9mIGRydWdzIGF0IHRoZSB0aW1lIG9mIHRoZSBvZmZlbnNlPzwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1ncm91cCBmb3JtQ29udHJvbE5hbWU9XCJkcnVnVXNlRmxhZ1wiIChjaGFuZ2UpPVwicmFkaW9EcnVnQ2hhbmdlKCRldmVudClcIiBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uZHJ1Z1VzZUZsYWdcIiAgPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIFt2YWx1ZV09XCJ0cnVlXCI+WWVzPC9tYXQtcmFkaW8tYnV0dG9uPiZuYnNwO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIFt2YWx1ZV09XCJmYWxzZVwiPk5vPC9tYXQtcmFkaW8tYnV0dG9uPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1yYWRpby1ncm91cD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IHBsYWNlaG9sZGVyPVwiXCIgc3R5bGU9XCJkaXNwbGF5OiBub25lXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiAqbmdJZj1cImRydWdVc2VEaXZGbGFnXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+RHJ1Zzo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXNlbGVjdCAgI2RydWdTZWwgZm9ybUNvbnRyb2xOYW1lPVwidmljdGltRHJ1Z1VzZXNcIiBtdWx0aXBsZSAgIChzZWxlY3Rpb25DaGFuZ2UpPVwiY2hlY2tPdGhlckRydWcoJGV2ZW50LnZhbHVlKVwiID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgKG1vdXNlbGVhdmUpPVwiZHJ1Z1NlbC5jbG9zZSgpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1vcHRpb24gY29sb3I9XCJwcmltYXJ5XCIgKm5nRm9yPVwibGV0IGl0ZW0gb2YgZHJ1Z3NcIiBbdmFsdWVdPVwiaXRlbS5kcnVnVHlwZUlkXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3tpdGVtLm5hbWV9fVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1vcHRpb24+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtc2VsZWN0PlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBwbGFjZWhvbGRlcj1cIlwiIHN0eWxlPVwiZGlzcGxheTogbm9uZVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2ICpuZ0lmPVwib3RoZXJEcnVnRmxhZ1wiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5PdGhlciBEcnVnOiogPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCAgZm9ybUNvbnRyb2xOYW1lPVwib3RoZXJEcnVnXCIgPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaGVscC1ibG9ja1wiICpuZ0lmPVwidmljdGltRm9ybS5nZXQoJ290aGVyRHJ1ZycpLmVycm9yc1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAmJiAodmljdGltRm9ybS5nZXQoJ290aGVyRHJ1ZycpLmRpcnR5IHx8IHZpY3RpbUZvcm0uZ2V0KCdvdGhlckRydWcnKS50b3VjaGVkKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yPjxzdHJvbmc+T3RoZXIgZHJ1ZyBpcyByZXF1aXJlZC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2PlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBY2Nlc3MgUmlzazogMSB0aHJ1IDEwICgxMCBncmVhdGVzdCByaXNrKTogJm5ic3A7PGI+IHt7ZWRpdFZpY3RpbS5hY2Nlc3NSaXNrfX08L2I+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtc2xpZGVyXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1Db250cm9sTmFtZT1cImFjY2Vzc1Jpc2tcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHVtYkxhYmVsPVwidHJ1ZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtkaXNwbGF5V2l0aF09XCJmb3JtYXRMYWJlbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1pbj1cIjFcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXg9XCIxMFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5hY2Nlc3NSaXNrXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPjxpbnB1dCBtYXRTbGlkZXJUaHVtYiAvPjwvbWF0LXNsaWRlcj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWNhcmQ+XHJcblxyXG5cclxuICAgICAgICAgICAgICA8YnI+PGJyPjxicj5cclxuICAgICAgICAgICAgPC9tYXQtdGFiPlxyXG5cclxuICAgICAgICAgICA8bWF0LXRhYiAgKm5nSWY9XCJndWFyZGlhblRhYkZsYWdcIiBsYWJlbD1cIkxlZ2FsIEd1YXJkaWFuXCI+XHJcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9J2NvbnRhaW5lcic+XHJcbiAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkd1YXJkaWFuIExhc3QgTmFtZTo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IGZvcm1Db250cm9sTmFtZT1cImd1YXJkaWFuTGFzdE5hbWVcIiBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uZ3VhcmRpYW5MYXN0TmFtZVwiID5cclxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ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FuR2VuZGVyXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICA8bWF0LW9wdGlvbiAqbmdGb3I9XCJsZXQgaXRlbSBvZiBnZW5kZXJzXCIgW3ZhbHVlXT1cIml0ZW0uZ2VuZGVyQ29kZVwiPnt7aXRlbS5uYW1lfX08L21hdC1vcHRpb24+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9tYXQtc2VsZWN0PlxyXG4gICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPiAtLT5cclxuXHJcblxyXG4gICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkRhdGUgb2YgQmlydGg6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgICBbbWF0RGF0ZXBpY2tlcl09XCJndWFyZGlhbkRhdGVSZWZcIlxyXG4gICAgICAgICAgICAgICAgICAgICBmb3JtQ29udHJvbE5hbWU9XCJndWFyZGlhbkJpcnRoRGF0ZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5ndWFyZGlhbkJpcnRoRGF0ZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJndWFyZGlhbkRhdGVSZWYub3BlbigpXCJcclxuICAgICAgICAgICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICAgICAgPG1hdC1kYXRlcGlja2VyLXRvZ2dsZSBbZm9yXT1cImd1YXJkaWFuRGF0ZVJlZlwiIG1hdFN1ZmZpeD48L21hdC1kYXRlcGlja2VyLXRvZ2dsZT5cclxuICAgICAgICAgICAgICAgICAgICA8bWF0LWRhdGVwaWNrZXIgI2d1YXJkaWFuRGF0ZVJlZj48L21hdC1kYXRlcGlja2VyPlxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICA8ZGl2PjwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWNoZWNrYm94XHJcbiAgICAgICAgICAgICAgICAgIGNvbG9yID0gXCJwcmltYXJ5XCJcclxuICAgICAgICAgICAgICAgICAgZm9ybUNvbnRyb2xOYW1lPVwiZ3VhcmRpYW5Ob1Bob25lRmxhZ1wiPlxyXG4gICAgICAgICAgICAgICAgICBObyBQaG9uZSAoSWYgdGhlcmUgaXMgbm8gcGhvbmUsIHRoZSBwaG9uZSBmaWVsZHMgYXJlIG5vIGxvbmdlciByZXF1aXJlZCk8L21hdC1jaGVja2JveD5cclxuICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IHBsYWNlaG9sZGVyPVwiXCIgc3R5bGU9XCJkaXNwbGF5OiBub25lO1wiPlxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcblxyXG4gICAgICAgICAgICAgICAgPGRpdj48L2Rpdj5cclxuICAgICAgICAgICAgICAgIDxtYXQtY2FyZD5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZCA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+R3VhcmRpYW4gSG9tZSBQaG9uZTo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBpZD1cInRlbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgbWF0SW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBwaG9uZU1hc2tcclxuICAgICAgICAgICAgICAgICAgICBbcHJlVmFsdWVdPVwiZWRpdFZpY3RpbS5ndWFyZGlhbkhvbWVQaG9uZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgW3Bob25lQ29udHJvbF09XCJndWFyZGlhbkhvbWVQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJndWFyZGlhbkhvbWVQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgIG1heGxlbmd0aD1cIjE0XCIvPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaGVscC1ibG9ja1wiICpuZ0lmPVwidmljdGltRm9ybS5nZXQoJ2d1YXJkaWFuSG9tZVBob25lJykuZXJyb3JzXHJcbiAgICAgICAgICAgICAgICAgICAgJiYgKHZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbkhvbWVQaG9uZScpLmRpcnR5IHx8IHZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbkhvbWVQaG9uZScpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPkd1YXJkaWFuIGhvbWUgcGhvbmUgbnVtYmVyIGZvcm1hdCBpcyBub3QgY29ycmVjdC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkID5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5HdWFyZGlhbiBDZWxsIFBob25lOjwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgPGlucHV0XHJcbiAgICAgICAgICAgICAgICAgICBpZD1cInRlbDRcIlxyXG4gICAgICAgICAgICAgICAgICAgbWF0SW5wdXRcclxuICAgICAgICAgICAgICAgICAgIHBob25lTWFza1xyXG4gICAgICAgICAgICAgICAgICAgW3ByZVZhbHVlXT1cImVkaXRWaWN0aW0uZ3VhcmRpYW5DZWxsUGhvbmVcIlxyXG4gICAgICAgICAgICAgICAgICAgW3Bob25lQ29udHJvbF09XCJndWFyZGlhbkNlbGxQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cImd1YXJkaWFuQ2VsbFBob25lQ29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICAgICBtYXhsZW5ndGg9XCIxNFwiLz5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbkNlbGxQaG9uZScpLmVycm9yc1xyXG4gICAgICAgICAgICAgICAgICAgICAmJiAodmljdGltRm9ybS5nZXQoJ2d1YXJkaWFuQ2VsbFBob25lJykuZGlydHkgfHwgdmljdGltRm9ybS5nZXQoJ2d1YXJkaWFuQ2VsbFBob25lJykudG91Y2hlZClcIj5cclxuICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yPjxzdHJvbmc+R3VhcmRpYW4gQ2VsbCBwaG9uZSBudW1iZXIgZm9ybWF0IGlzIG5vdCBjb3JyZWN0Ljwvc3Ryb25nPjwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkd1YXJkaWFuIFdvcmsgUGhvbmU6PC9tYXQtbGFiZWw+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIDxpbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgIGlkPVwidGVsNVwiXHJcbiAgICAgICAgICAgICAgICAgICAgbWF0SW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBwaG9uZU1hc2tcclxuICAgICAgICAgICAgICAgICAgICBbcHJlVmFsdWVdPVwiZWRpdFZpY3RpbS5ndWFyZGlhbldvcmtQaG9uZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgW3Bob25lQ29udHJvbF09XCJndWFyZGlhbldvcmtQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJndWFyZGlhbldvcmtQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgIG1heGxlbmd0aD1cIjE0XCIvPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaGVscC1ibG9ja1wiICpuZ0lmPVwidmljdGltRm9ybS5nZXQoJ2d1YXJkaWFuV29ya1Bob25lJykuZXJyb3JzXHJcbiAgICAgICAgICAgICAgICAgICAgICAgJiYgKHZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbldvcmtQaG9uZScpLmRpcnR5IHx8IHZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbldvcmtQaG9uZScpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPkd1YXJkaWFuIHdvcmsgcGhvbmUgbnVtYmVyIGZvcm1hdCBpcyBub3QgY29ycmVjdC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuXHJcblxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICA8L21hdC1jYXJkPlxyXG5cclxuICAgICAgICAgICAgICA8ZGl2PjwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5HdWFyZGlhbiBFbWFpbDo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgZm9ybUNvbnRyb2xOYW1lPVwiZ3VhcmRpYW5FbWFpbFwiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5ndWFyZGlhbkVtYWlsXCIgID5cclxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaGVscC1ibG9ja1wiICpuZ0lmPVwidmljdGltRm9ybS5nZXQoJ2d1YXJkaWFuRW1haWwnKS5lcnJvcnNcclxuICAgICAgICAgICAgICAgICAgICAmJiAodmljdGltRm9ybS5nZXQoJ2d1YXJkaWFuRW1haWwnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnZ3VhcmRpYW5FbWFpbCcpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yPjxzdHJvbmc+R3VhcmRpYW4gZW1haWwgZm9ybWF0IGlzIG5vdCBjb3JyZWN0Ljwvc3Ryb25nPjwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDxkaXY+PC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgPGRpdj5cclxuICAgICAgICAgICAgICAgIDxhcHAtc21hcnQtYWRkcmVzc1xyXG5cclxuICAgICAgICAgICAgICAgIFtzaG93UHNhXT1cInRydWVcIlxyXG4gICAgICAgICAgICAgICAgW21vZGlmaWVkQnldPVwic3RhZmZJZFwiXHJcbiAgICAgICAgICAgICAgICBbaWRdPVwiZ3VhcmRpYW5BZGRyZXNzSWRcIlxyXG4gICAgICAgICAgICAgICAgKGFkZHJlc3NJZENoYW5nZSk9XCJvbkd1YXJkaWFuQWRkcmVzc0NoYW5nZSgkZXZlbnQpXCJcclxuICAgICAgICAgICAgICAgIFtvdXRsaW5lXT1cInRydWVcIlxyXG4gICAgICAgICAgICAgICAgcmVhZG9ubHk9XCJmYWxzZVwiXHJcbiAgICAgICAgICAgICAgICBbcm93SGVpZ2h0XT1cIjgwXCJcclxuICAgICAgICAgICAgICAgIChpc1ZhbGlkKT1cImZhbHNlXCJcclxuICAgICAgICAgIC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gaXRlbSBvZiBwcmVmaXhlc1wiIFt2YWx1ZV09XCJpdGVtLnByZWZpeElkXCI+e3tpdGVtLm5hbWV9fTwvbWF0LW9wdGlvbj5cclxuICAgICAgICAgICAgICAgICAgICA8L21hdC1zZWxlY3Q+XHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5BZHZvY2F0ZSBTdWZmaXg6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgPG1hdC1zZWxlY3QgIGZvcm1Db250cm9sTmFtZT1cImFkdm9jYXRlU3VmZml4SWRcIiBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uYWR2b2NhdGVTdWZmaXhJZFwiICA+XHJcbiAgICAgICAgICAgICAgICAgICAgICA8bWF0LW9wdGlvbiAqbmdGb3I9XCJsZXQgaXRlbSBvZiBzdWZmaXhlc1wiIFt2YWx1ZV09XCJpdGVtLnN1ZmZpeElkXCI+e3tpdGVtLm5hbWV9fTwvbWF0LW9wdGlvbj5cclxuICAgICAgICAgICAgICAgICAgICA8L21hdC1zZWxlY3Q+XHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuXHJcbiAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtY2hlY2tib3hcclxuICAgICAgICAgICAgICAgICAgY29sb3IgPSBcInByaW1hcnlcIlxyXG4gICAgICAgICAgICAgICAgICBmb3JtQ29udHJvbE5hbWU9XCJhZHZvY2F0ZU5vUGhvbmVGbGFnXCJcclxuXHJcbiAgICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5hZHZvY2F0ZU5vUGhvbmVGbGFnXCIgPlxyXG4gICAgICAgICAgICAgICAgICBObyBQaG9uZSAoSWYgdGhlcmUgaXMgbm8gcGhvbmUsIHRoZSBwaG9uZSBmaWVsZHMgYXJlIG5vIGxvbmdlciByZXF1aXJlZCk8L21hdC1jaGVja2JveD5cclxuICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IHBsYWNlaG9sZGVyPVwiXCIgc3R5bGU9XCJkaXNwbGF5OiBub25lO1wiPlxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICA8ZGl2PjwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPG1hdC1jYXJkPlxyXG4gICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkID5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5BZHZvY2F0ZSBIb21lIFBob25lOjwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgIDxpbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgIGlkPVwidGVsXCJcclxuICAgICAgICAgICAgICAgICAgICBtYXRJbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgIHBob25lTWFza1xyXG4gICAgICAgICAgICAgICAgICAgIFtwcmVWYWx1ZV09XCJlZGl0VmljdGltLmFkdm9jYXRlSG9tZVBob25lXCJcclxuICAgICAgICAgICAgICAgICAgICBbcGhvbmVDb250cm9sXT1cImFkdm9jYXRlSG9tZVBob25lQ29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cImFkdm9jYXRlSG9tZVBob25lQ29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgbWF4bGVuZ3RoPVwiMTRcIi8+XHJcblxyXG5cclxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaGVscC1ibG9ja1wiICpuZ0lmPVwidmljdGltRm9ybS5nZXQoJ2Fkdm9jYXRlSG9tZVBob25lJykuZXJyb3JzXHJcbiAgICAgICAgICAgICAgICAgICAgJiYgKHZpY3RpbUZvcm0uZ2V0KCdhZHZvY2F0ZUhvbWVQaG9uZScpLmRpcnR5IHx8IHZpY3RpbUZvcm0uZ2V0KCdhZHZvY2F0ZUhvbWVQaG9uZScpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPkFkdm9jYXRlIGhvbWUgbnVtYmVyIGZvcm1hdCBpcyBub3QgY29ycmVjdC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+QWR2b2NhdGUgQ2VsbCBQaG9uZTo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBpZD1cInRlbDdcIlxyXG4gICAgICAgICAgICAgICAgICAgIG1hdElucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgcGhvbmVNYXNrXHJcbiAgICAgICAgICAgICAgICAgICAgW3ByZVZhbHVlXT1cImVkaXRWaWN0aW0uYWR2b2NhdGVDZWxsUGhvbmVcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtwaG9uZUNvbnRyb2xdPVwiYWR2b2NhdGVDZWxsUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xdPVwiYWR2b2NhdGVDZWxsUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICBtYXhsZW5ndGg9XCIxNFwiLz5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCdhZHZvY2F0ZUNlbGxQaG9uZScpLmVycm9yc1xyXG4gICAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgnYWR2b2NhdGVDZWxsUGhvbmUnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnYWR2b2NhdGVDZWxsUGhvbmUnKS50b3VjaGVkKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3I+PHN0cm9uZz5BZHZvY2F0ZSBjZWxsIG51bWJlciBmb3JtYXQgaXMgbm90IGNvcnJlY3QuPC9zdHJvbmc+PC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuXHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5BZHZvY2F0ZSBXb3JrIFBob25lOjwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgIDxpbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgIGlkPVwidGVsOFwiXHJcbiAgICAgICAgICAgICAgICAgICAgbWF0SW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBwaG9uZU1hc2tcclxuICAgICAgICAgICAgICAgICAgICBbcHJlVmFsdWVdPVwiZWRpdFZpY3RpbS5hZHZvY2F0ZVdvcmtQaG9uZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgW3Bob25lQ29udHJvbF09XCJhZHZvY2F0ZVdvcmtQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJhZHZvY2F0ZVdvcmtQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgIG1heGxlbmd0aD1cIjE0XCIvPlxyXG5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3Rp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j5cclxuICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yPjxzdHJvbmc+QWR2b2NhdGUgZW1haWwgZm9ybWF0IGlzIG5vdCBjb3JyZWN0Ljwvc3Ryb25nPjwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgPGRpdj48L2Rpdj5cclxuXHJcblxyXG4gICAgICAgICAgICAgIDxkaXYgPlxyXG4gICAgICAgICAgICAgIDxhcHAtc21hcnQtYWRkcmVzc1xyXG4gICAgICAgICAgICAgIFtzaG93UHNhXT1cInRydWVcIlxyXG4gICAgICAgICAgICAgIFttb2RpZmllZEJ5XT1cInN0YWZmSWRcIlxyXG4gICAgICAgICAgICAgIFtpZF09XCJhZHZvY2F0ZUFkZHJlc3NJZFwiXHJcbiAgICAgICAgICAgICAgKGFkZHJlc3NJZENoYW5nZSk9XCJvbkFkdm9jYXRlQWRkcmVzc0NoYW5nZSgkZXZlbnQpXCJcclxuICAgICAgICAgICAgICBbb3V0bGluZV09XCJ0cnVlXCJcclxuICAgICAgICAgICAgICByZWFkb25seT1cImZhbHNlXCJcclxuICAgICAgICAgICAgICBbcm93SGVpZ2h0XT1cIjgwXCJcclxuICAgICAgICAgICAgICAoaXNWYWxpZCk9XCJmYWxzZVwiXHJcbiAgICAgICAgICAgICAgW2FkZHJlc3NWYWxpZGF0b3JzXT1cImFkZHJlc3NWYWxpZGF0b3JzXCJcclxuICAgICAgICAgICAgICAjYWR2b2NhdGVBZGRyZXNzQ29tcG9uZW50ID5cclxuICAgICAgICAgICAgICA8L2FwcC1zbWFydC1hZGRyZXNzPlxyXG4gICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgIDxicj48YnI+PGJyPlxyXG4gICAgICAgICAgICA8L21hdC10YWI+XHJcblxyXG5cclxuICAgICAgICAgICAgIDxtYXQtdGFiICBsYWJlbD1cIkVtZXJnZW5jeSBDb250YWN0XCI+XHJcbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSdjb250YWluZXInPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+RW1lcmdlbmN5IENvbnRhY3QgTmFtZTo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCAgZm9ybUNvbnRyb2xOYW1lPVwiZW1lcmdlbmN5Q29udGFjdFwiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5lbWVyZ2VuY3lDb250YWN0XCIgID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkVtZXJnZW5jeSBQaG9uZSBOdW1iZXI6PC9tYXQtbGFiZWw+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZD1cInRlbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXRJbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGhvbmVNYXNrXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbcHJlVmFsdWVdPVwiZWRpdFZpY3RpbS5lbWVyZ2VuY3lDb250YWN0UGhvbmVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3Bob25lQ29udHJvbF09XCJlbWVyZ2VuY3lDb250YWN0UGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJlbWVyZ2VuY3lDb250YWN0UGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1heGxlbmd0aD1cIjE0XCIvPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCdlbWVyZ2VuY3lDb250YWN0UGhvbmUnKS5lcnJvcnNcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJiYgKHZpY3RpbUZvcm0uZ2V0KCdlbWVyZ2VuY3lDb250YWN0UGhvbmUnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnZW1lcmdlbmN5Q29udGFjdFBob25lJykudG91Y2hlZClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPkVtZXJnZW5jeSBjb250YWN0IG51bWJlciBmb3JtYXQgaXMgbm90IGNvcnJlY3QuPC9zdHJvbmc+PC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8YnI+PGJyPjxicj5cclxuICAgICAgICAgICAgPC9tYXQtdGFiPlxyXG5cclxuICAgICAgICAgIDwvbWF0LXRhYi1ncm91cD5cclxuICAgICAgICAgIDxkaXYgY2xhc3M9J291dGVyJz5cclxuICAgICAgICAgICAgPGRpdj5cclxuICAgICAgICAgICAgICAgQWxsIGJ1dHRvbnMgYXBwbHkgdG8gYWxsIHRhYnMuIElmIHNhdmUgYnV0dG9uIGlzIGdyZXksIHBsZWFzZSBjaGVjayBlYWNoIHRhYiB0byBtYWtlIHN1cm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hdmljdGltRm9ybS52YWxpZFwiICA+U2F2ZSA8L2J1dHRvbj5cclxuICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICZuYnNwOyZuYnNwO1xyXG4gICAgICAgICAgICAgICAgICA8ZGl2ICpuZ0lmPVwic2hvd0RlbGV0ZVwiIGNsYXNzPVwiaW5uZXJcIj5cclxuICAgICAgICAgICAgICAgICAgPGJ1dHRvbiAgbWF0LXN0cm9rZWQtYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIChjbGljayk9XCJkZWxldGVWaWN0aW0oKVwiPkRlbGV0ZSA8L2J1dHRvbj5cclxuICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgJm5ic3A7Jm5ic3A7XHJcbiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJpbm5lclwiPlxyXG4gICAgICAgICAgICAgICAgICA8YnV0dG9uICBtYXQtc3Ryb2tlZC1idXR0b24gY29sb3I9XCJwcmltYXJ5XCIgKGNsaWNrKT1cImNhbmNlbCgpXCI+Q2xlYXIgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgJm5ic3A7Jm5ic3A7XHJcbiAgICAgICAgICAgICAgICAgIDxidXR0b24gbWF0LXN0cm9rZWQtYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiICAoY2xpY2spPVwiYmFjaygpXCI+QmFjazwvYnV0dG9uPlxyXG5cclxuICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgIDwvZGl2PlxyXG4gICAgICAgIDxicj5cclxuICAgICAgICA8YnI+XHJcblxyXG4gICAgICAgIDxkaXYgYWxpZ249XCJyaWdodFwiPlxyXG4gICAgICAgICAgPGJ1dHRvbiBtYXQtc3Ryb2tlZC1idXR0b24gY29sb3I9XCJwcmltYXJ5XCIgIChjbGljayk9XCJhZGRDb250YWN0KClcIiAgPkFkZCB2aW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8bmctY29udGFpbmVyIG1hdENvbHVtbkRlZj1cIm5leHRDb250YWN0RGF0ZVwiPlxyXG4gICAgICAgICAgICAgIDxtYXQtaGVhZGVyLWNlbGwgKm1hdEhlYWRlckNlbGxEZWYgY2xhc3M9XCJleGFtcGxlLWhlYWRlci1jZWxsXCI+TmV4dCBDb250YWN0IERhdGU8L21hdC1oZWFkZXItY2VsbD5cclxuICAgICAgICAgICAgICA8bWF0LWNlbGwgKm1hdENlbGxEZWY9XCJsZXQgcm93XCIgY2xhc3M9XCJleGFtcGxlLWNlbGxcIj4ge3tyb3cubmV4dENvbnRhY3REYXRlIHwgZGF0ZX19IDwvbWF0LWNlbGw+XHJcbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxyXG5cclxuXHJcbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgbWF0Q29sdW1uRGVmPVwic3RhZmZcIj5cclxuICAgICAgICAgICAgICAgICAgICA8bWF0LWhlYWRlci1jZWxsICptYXRIZWFkZXJDZWxsRGVmIGNsYXNzPVwiZXhhbXBsZS1oZWFkZXItY2VsbFwiPkNvbnRhY3QgQnk8L21hdC1oZWFkZXItY2VsbD5cclxuICAgICAgICAgICAgICAgICAgICA8bWF0LWNlbGwgKm1hdENlbGxEZWY9XCJsZXQgcm93XCIgY2xhc3M9XCJleGFtcGxlLWNlbGxcIj4ge3tyb3cuc3RhZmZ9fSA8L21hdC1jZWxsPlxyXG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciBtYXRDb2x1bW5EZWY9XCJjb21tZW50XCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWhlYWRlci1jZWxsICptYXRIZWFkZXJDZWxsRGVmIGNsYXNzPVwiZXhhbXBsZS1oZWFkZXItY2VsbFwiPkNvbW1lbnQ8L21hdC1oZWFkZXItY2VsbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtY2VsbCAqbWF0Q2VsbERlZj1cImxldCByb3dcIiBjbGFzcz1cImV4YW1wbGUtY2VsbFwiPiB7e3Jvdy5jb21tZW50fX0gPC9tYXQtY2VsbD5cclxuICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuXHJcbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgbWF0Q29sdW1uRGVmPVwiY29udGFjdElkXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPG1hdC1oZWFkZXItY2VsbCAqbWF0SGVhZGVyQ2VsbERlZiBjbGFzcz1cImV4YW1wbGUtaGVhZGVyLWNlbGxcIj48L21hdC1oZWFkZXItY2VsbD5cclxuICAgICAgICAgICAgICAgIDxtYXQtY2VsbCAqbWF0Q2VsbERlZj1cImxldCByb3dcIiBjbGFzcz1cImV4YW1wbGUtY2VsbFwiPlxyXG5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWNlbGw+XHJcbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxyXG5cclxuICAgICAgICAgICAgPG1hdC1oZWFkZXItcm93ICptYXRIZWFkZXJSb3dEZWY9XCJbJ2NvbnRhY3REYXRlJywgJ3ZpY3RpbUNvbnRhY3RNZXRob2QnLCduZXh0Q29udGFjdERhdGUnLCAnc3RhZmYnLCAnY29tbWVudCcsICdjb250YWN0SWQnXVwiIGNsYXNzPVwiZXhhbXBsZS1oZWFkZXItcm93XCI+PC9tYXQtaGVhZGVyLXJvdz5cclxuICAgICAgICAgICAgPG1hdC1yb3cgKm1hdFJvd0RlZj1cImxldCByb3c7IGNvbHVtbnM6Wydjb250YWN0RGF0ZScsICd2aWN0aW1Db250YWN0TWV0aG9kJywnbmV4dENvbnRhY3REYXRlJywgJ3N0YWZmJywgJ2NvbW1lbnQnLCAnY29udGFjdElkJ107XCIgY2xhc3M9XCJleGFtcGxlLXJvd1wiPjwvbWF0LXJvdz5cclxuICAgICAgICAgICAgPC9tYXQtdGFibGU+XHJcblxyXG5cclxuICAgICAgICA8L2Rpdj5cclxuXHJcbiAgPC9tYXQtY2FyZC1jb250ZW50PlxyXG48L21hdC1jYXJkPlxyXG4iXX0=
|