@csmart/ngc-smart-victim 1.18.12 → 1.18.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/esm2022/csmart-ngc-smart-victim.mjs +5 -0
  2. package/esm2022/lib/caseNote/caseNote.component.mjs +194 -0
  3. package/esm2022/lib/common-dialog/common-dialog.component.mjs +23 -0
  4. package/esm2022/lib/common-dialog/common-dialog.module.mjs +34 -0
  5. package/esm2022/lib/common-dialog/common-dialog.service.mjs +33 -0
  6. package/esm2022/lib/contact/contact.component.mjs +140 -0
  7. package/esm2022/lib/email.services.mjs +42 -0
  8. package/esm2022/lib/intake.service.mjs +57 -0
  9. package/esm2022/lib/safetyPlan/serviceProvider.component.mjs +99 -0
  10. package/esm2022/lib/safetyPlan/victimSafetyPlan.component.mjs +116 -0
  11. package/esm2022/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +340 -0
  12. package/esm2022/lib/shared/app.shared.module.mjs +215 -0
  13. package/esm2022/lib/shared/validators/date.validator.mjs +59 -0
  14. package/esm2022/lib/shared/validators/index.mjs +2 -0
  15. package/esm2022/lib/smart-victim-delete-confirm.component.mjs +44 -0
  16. package/esm2022/lib/smart-victim-detail/smart-victim-detail.component.mjs +1155 -0
  17. package/esm2022/lib/smart-victim.component.mjs +317 -0
  18. package/esm2022/lib/smart-victim.model.mjs +142 -0
  19. package/esm2022/lib/smart-victim.module.mjs +128 -0
  20. package/esm2022/lib/smart-victim.service.mjs +370 -0
  21. package/esm2022/lib/victim-routing.module.mjs +41 -0
  22. package/esm2022/lib/victimSearch/VictimSearchFilter.mjs +3 -0
  23. package/esm2022/lib/victimSearch/victimSearchForm.component.mjs +38 -0
  24. package/esm2022/public-api.mjs +11 -0
  25. package/fesm2022/csmart-ngc-smart-victim.mjs +3342 -0
  26. package/fesm2022/csmart-ngc-smart-victim.mjs.map +1 -0
  27. package/index.d.ts +5 -0
  28. package/lib/caseNote/caseNote.component.d.ts +51 -0
  29. package/lib/common-dialog/common-dialog.component.d.ts +14 -0
  30. package/lib/common-dialog/common-dialog.module.d.ts +8 -0
  31. package/lib/common-dialog/common-dialog.service.d.ts +11 -0
  32. package/lib/contact/contact.component.d.ts +40 -0
  33. package/lib/email.services.d.ts +11 -0
  34. package/lib/intake.service.d.ts +57 -0
  35. package/lib/safetyPlan/serviceProvider.component.d.ts +19 -0
  36. package/lib/safetyPlan/victimSafetyPlan.component.d.ts +54 -0
  37. package/lib/safetyPlan/victimSafetyPlanDetail.component.d.ts +62 -0
  38. package/lib/shared/app.shared.module.d.ts +33 -0
  39. package/lib/shared/validators/date.validator.d.ts +9 -0
  40. package/lib/shared/validators/index.d.ts +1 -0
  41. package/lib/smart-victim-delete-confirm.component.d.ts +12 -0
  42. package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +129 -0
  43. package/lib/smart-victim.component.d.ts +69 -0
  44. package/lib/smart-victim.model.d.ts +211 -0
  45. package/lib/smart-victim.module.d.ts +49 -0
  46. package/lib/smart-victim.service.d.ts +71 -0
  47. package/lib/victim-routing.module.d.ts +7 -0
  48. package/{src/lib/victimSearch/VictimSearchFilter.ts → lib/victimSearch/VictimSearchFilter.d.ts} +7 -9
  49. package/lib/victimSearch/victimSearchForm.component.d.ts +14 -0
  50. package/package.json +21 -6
  51. package/{src/public-api.ts → public-api.d.ts} +7 -12
  52. package/karma.conf.js +0 -32
  53. package/ng-package.json +0 -7
  54. package/src/lib/caseNote/caseNote.component.css +0 -22
  55. package/src/lib/caseNote/caseNote.component.html +0 -188
  56. package/src/lib/caseNote/caseNote.component.ts +0 -265
  57. package/src/lib/common-dialog/common-dialog.component.css +0 -10
  58. package/src/lib/common-dialog/common-dialog.component.html +0 -23
  59. package/src/lib/common-dialog/common-dialog.component.spec.ts +0 -25
  60. package/src/lib/common-dialog/common-dialog.component.ts +0 -21
  61. package/src/lib/common-dialog/common-dialog.module.ts +0 -22
  62. package/src/lib/common-dialog/common-dialog.service.ts +0 -35
  63. package/src/lib/contact/contact.component.css +0 -22
  64. package/src/lib/contact/contact.component.html +0 -124
  65. package/src/lib/contact/contact.component.ts +0 -176
  66. package/src/lib/email-notification.service.ts +0 -42
  67. package/src/lib/email.services.ts +0 -51
  68. package/src/lib/http.service.ts +0 -34
  69. package/src/lib/intake.service.ts +0 -82
  70. package/src/lib/loader.service.ts +0 -11
  71. package/src/lib/safetyPlan/serviceProvider.component.ts +0 -94
  72. package/src/lib/safetyPlan/victimSafetyPlan.component.css +0 -27
  73. package/src/lib/safetyPlan/victimSafetyPlan.component.html +0 -85
  74. package/src/lib/safetyPlan/victimSafetyPlan.component.ts +0 -178
  75. package/src/lib/safetyPlan/victimSafetyPlanDetail.component.html +0 -234
  76. package/src/lib/safetyPlan/victimSafetyPlanDetail.component.ts +0 -492
  77. package/src/lib/shared/app.shared.module.ts +0 -111
  78. package/src/lib/shared/validators/date.validator.ts +0 -73
  79. package/src/lib/shared/validators/index.ts +0 -1
  80. package/src/lib/smart-victim-delete-confirm.component.ts +0 -35
  81. package/src/lib/smart-victim-detail/smart-victim-detail.component.css +0 -43
  82. package/src/lib/smart-victim-detail/smart-victim-detail.component.html +0 -876
  83. package/src/lib/smart-victim-detail/smart-victim-detail.component.spec.ts +0 -25
  84. package/src/lib/smart-victim-detail/smart-victim-detail.component.ts +0 -1469
  85. package/src/lib/smart-victim.component.css +0 -245
  86. package/src/lib/smart-victim.component.html +0 -132
  87. package/src/lib/smart-victim.component.spec.ts +0 -25
  88. package/src/lib/smart-victim.component.ts +0 -333
  89. package/src/lib/smart-victim.model.ts +0 -311
  90. package/src/lib/smart-victim.module.ts +0 -110
  91. package/src/lib/smart-victim.service.spec.ts +0 -12
  92. package/src/lib/smart-victim.service.ts +0 -576
  93. package/src/lib/victim-routing.module.ts +0 -36
  94. package/src/lib/victimSearch/victimSearchForm.component.html +0 -35
  95. package/src/lib/victimSearch/victimSearchForm.component.ts +0 -41
  96. package/src/test.ts +0 -16
  97. package/tsconfig.lib.json +0 -36
  98. package/tsconfig.spec.json +0 -17
  99. package/tslint.json +0 -17
@@ -0,0 +1,1155 @@
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
+ victimRelationships: 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 relationshipsData = [];
224
+ this.editVictim.victimRelationships.forEach(t => { relationshipsData.push(t.victimOffenderRelationshipTypeId); });
225
+ const victimOffenderRelationshipControl = this.victimForm.get('victimRelationships');
226
+ victimOffenderRelationshipControl.setValue(relationshipsData);
227
+ var weaponUsesData = [];
228
+ var otherWeapon = "";
229
+ this.editVictim.victimWeaponUses.forEach(t => {
230
+ weaponUsesData.push(t.weaponTypeId);
231
+ if (t.weaponTypeId == "OTHER") {
232
+ otherWeapon = t.otherWeapon;
233
+ this.otherWeaponFlag = true;
234
+ }
235
+ });
236
+ const victimWeaponUsesControl = this.victimForm.get('victimWeaponUses');
237
+ victimWeaponUsesControl.setValue(weaponUsesData);
238
+ const otherWeaponControl = this.victimForm.get('otherWeapon');
239
+ otherWeaponControl.setValue(otherWeapon);
240
+ var drugUseData = [];
241
+ var otherDrug = "";
242
+ console.log('load this.editVictim.victimDrugUses');
243
+ console.log(this.editVictim.victimDrugUses);
244
+ this.editVictim.victimDrugUses.forEach(t => {
245
+ if (t.drugTypeId === null) {
246
+ otherDrug = t.otherDrug;
247
+ this.otherDrugFlag = true;
248
+ t.drugTypeId = 'OTHER';
249
+ }
250
+ drugUseData.push(t.drugTypeId);
251
+ });
252
+ console.log('this.editVictim.victimDrugUses after push');
253
+ console.log(drugUseData);
254
+ if (drugUseData) {
255
+ const victimDrugUsesControl = this.victimForm.get('victimDrugUses');
256
+ victimDrugUsesControl.setValue(drugUseData);
257
+ }
258
+ if (otherDrug) {
259
+ const otherDrugControl = this.victimForm.get('otherDrug');
260
+ otherDrugControl.setValue(otherDrug);
261
+ }
262
+ //contact
263
+ this.victimService.getContacts(this.victimId).subscribe(contactList => {
264
+ console.log('contactList');
265
+ console.log(contactList);
266
+ this.contactList = contactList;
267
+ this.contactDataSource.data = this.contactList;
268
+ });
269
+ //no phone field
270
+ if (this.editVictim.guardianNoPhoneFlag === false) {
271
+ this.victimForm.patchValue({ guardianNoPhoneFlag: false });
272
+ }
273
+ if (this.editVictim.advocateNoPhoneFlag === false) {
274
+ this.victimForm.patchValue({ advocateNoPhoneFlag: false });
275
+ }
276
+ this.homePhoneControl.setValue(!this.editVictim.homePhone ? "" : this.editVictim.homePhone);
277
+ this.cellPhoneControl.setValue(!this.editVictim.cellPhone ? "" : this.editVictim.cellPhone);
278
+ this.workPhoneControl.setValue(!this.editVictim.workPhone ? "" : this.editVictim.workPhone);
279
+ this.guardianHomePhoneControl.setValue(!this.editVictim.guardianHomePhone ? "" : this.editVictim.guardianHomePhone);
280
+ this.guardianCellPhoneControl.setValue(!this.editVictim.guardianCellPhone ? "" : this.editVictim.guardianCellPhone);
281
+ this.guardianWorkPhoneControl.setValue(!this.editVictim.guardianWorkPhone ? "" : this.editVictim.guardianWorkPhone);
282
+ this.advocateHomePhoneControl.setValue(!this.editVictim.advocateHomePhone ? "" : this.editVictim.advocateHomePhone);
283
+ this.advocateCellPhoneControl.setValue(!this.editVictim.advocateCellPhone ? "" : this.editVictim.advocateCellPhone);
284
+ this.advocateWorkPhoneControl.setValue(!this.editVictim.advocateWorkPhone ? "" : this.editVictim.advocateWorkPhone);
285
+ this.emergencyContactPhoneControl.setValue(!this.editVictim.emergencyContactPhone ? "" : this.editVictim.emergencyContactPhone);
286
+ }, error => {
287
+ this.snackBar.open("Error occured while retriving Victim Information. Please try again.");
288
+ });
289
+ return;
290
+ }
291
+ else {
292
+ //new
293
+ }
294
+ }
295
+ ngOnChanges() {
296
+ }
297
+ onClear() {
298
+ if (this.addressComponent)
299
+ this.addressComponent.reset();
300
+ }
301
+ showAddress(value) {
302
+ if (value.checked) {
303
+ this.victimService.getCurrentHousing(this.offenderId).subscribe((item) => {
304
+ this.addressId = item.housing.addressId;
305
+ this.victimForm.patchValue({ addressId: this.addressId });
306
+ });
307
+ }
308
+ else {
309
+ this.addressComponent.reset();
310
+ this.editVictim.allowCsosaContactFlag = false;
311
+ this.addressId = null;
312
+ }
313
+ }
314
+ onAddressChange(addressId) {
315
+ this.victimForm.patchValue({ addressId: addressId });
316
+ this.addressId = addressId;
317
+ }
318
+ onGuardianAddressChange(MyGuardianAddressId) {
319
+ this.victimForm.patchValue({ guardianAddressId: MyGuardianAddressId });
320
+ this.guardianAddressId = MyGuardianAddressId;
321
+ }
322
+ onAdvocateAddressChange(MyAdvocateAddressId) {
323
+ this.victimForm.patchValue({ advocateAddressId: MyAdvocateAddressId });
324
+ this.advocateAddressId = MyAdvocateAddressId;
325
+ }
326
+ cancel() {
327
+ this.victimForm.reset();
328
+ }
329
+ ngOnInit() {
330
+ this.homePhoneControl.valueChanges.subscribe((hpn) => {
331
+ const newValue = hpn.replace(/\D/g, '');
332
+ this.editVictim.homePhone = newValue;
333
+ });
334
+ this.cellPhoneControl.valueChanges.subscribe((hpn) => {
335
+ const newValue = hpn.replace(/\D/g, '');
336
+ this.editVictim.cellPhone = newValue;
337
+ });
338
+ this.workPhoneControl.valueChanges.subscribe((hpn) => {
339
+ const newValue = hpn.replace(/\D/g, '');
340
+ this.editVictim.workPhone = newValue;
341
+ });
342
+ this.guardianHomePhoneControl.valueChanges.subscribe((hpn) => {
343
+ const newValue = hpn.replace(/\D/g, '');
344
+ this.editVictim.guardianHomePhone = newValue;
345
+ });
346
+ this.guardianCellPhoneControl.valueChanges.subscribe((hpn) => {
347
+ const newValue = hpn.replace(/\D/g, '');
348
+ this.editVictim.guardianCellPhone = newValue;
349
+ });
350
+ this.guardianWorkPhoneControl.valueChanges.subscribe((hpn) => {
351
+ const newValue = hpn.replace(/\D/g, '');
352
+ this.editVictim.guardianWorkPhone = newValue;
353
+ });
354
+ this.advocateHomePhoneControl.valueChanges.subscribe((hpn) => {
355
+ const newValue = hpn.replace(/\D/g, '');
356
+ this.editVictim.advocateHomePhone = newValue;
357
+ });
358
+ this.advocateCellPhoneControl.valueChanges.subscribe((hpn) => {
359
+ const newValue = hpn.replace(/\D/g, '');
360
+ this.editVictim.advocateCellPhone = newValue;
361
+ });
362
+ this.advocateWorkPhoneControl.valueChanges.subscribe((hpn) => {
363
+ const newValue = hpn.replace(/\D/g, '');
364
+ this.editVictim.advocateWorkPhone = newValue;
365
+ });
366
+ this.emergencyContactPhoneControl.valueChanges.subscribe((hpn) => {
367
+ const newValue = hpn.replace(/\D/g, '');
368
+ this.editVictim.emergencyContactPhone = newValue;
369
+ });
370
+ // this.offenderId = 219151;
371
+ // this.staffId = 2929;
372
+ console.log('show offenderId');
373
+ console.log(this.offenderId);
374
+ console.log('show staffId');
375
+ console.log(this.staffId);
376
+ console.log('show isIntake');
377
+ console.log(this.isIntake);
378
+ //required field
379
+ const requiredImplementation = { get: function () {
380
+ if (this._required) {
381
+ return this._required;
382
+ }
383
+ if (this.ngControl && this.ngControl.control && this.ngControl.control.validator) {
384
+ const emptyValueControl = Object.assign({}, this.ngControl.control);
385
+ emptyValueControl.value = null;
386
+ return ('required' in (this.ngControl.control.validator(emptyValueControl) || {}));
387
+ }
388
+ return false;
389
+ }, set: function (value) { this._required = coerceBooleanProperty(value); }, };
390
+ Object.defineProperty(MatInput.prototype, 'required', requiredImplementation);
391
+ Object.defineProperty(MatSelect.prototype, 'required', requiredImplementation);
392
+ Object.defineProperty(MatRadioGroup.prototype, 'required', requiredImplementation);
393
+ //required field end
394
+ if (this.victimDetail != null) {
395
+ // edit record
396
+ this.editMode = true;
397
+ this.showDelete = true;
398
+ this.victimId = this.victimDetail.victimId;
399
+ this.guardianTabFlag = this.victimDetail.minorFlag;
400
+ if (this.victimDetail.victimAdvocateFlag == 'YS') {
401
+ this.advocateTabFlag = true;
402
+ }
403
+ if (this.otherWeaponFlag == true) {
404
+ const otherWeaponControl = this.victimForm.get('otherWeapon');
405
+ otherWeaponControl.setValidators(Validators.required);
406
+ }
407
+ if (this.otherDrugFlag == true) {
408
+ const otherDrugControl = this.victimForm.get('otherDrug');
409
+ otherDrugControl.setValidators(Validators.required);
410
+ }
411
+ this.cpoExpirationDivFlag = this.victimDetail.cpoExpirationFlag;
412
+ this.commonChildrenDivFlag = this.victimDetail.commonChildrenFlag;
413
+ this.supportInPlaceDivFlag = this.victimDetail.supportInPlaceFlag;
414
+ this.weaponInvolvedDivFlag = this.victimDetail.weaponInvolvedFlag;
415
+ this.drugUseDivFlag = this.victimDetail.drugUseFlag;
416
+ this.addressId = this.victimDetail.addressId;
417
+ this.guardianAddressId = this.victimDetail.guardianAddressId;
418
+ this.advocateAddressId = this.victimDetail.advocateAddressId;
419
+ this._getVictim();
420
+ }
421
+ else {
422
+ //add new record
423
+ this.victimForm.patchValue({ guardianNoPhoneFlag: true });
424
+ this.victimForm.patchValue({ advocateNoPhoneFlag: true });
425
+ }
426
+ this.victimService.getFlagOptionYesNoUnknowns().subscribe((items) => {
427
+ this.flagOption = items;
428
+ });
429
+ this.victimService.getGenders().subscribe((items) => {
430
+ this.genders = items;
431
+ });
432
+ this.victimService.getPrefixes().subscribe((items) => {
433
+ this.prefixes = items;
434
+ });
435
+ this.victimService.getSuffixes().subscribe((items) => {
436
+ this.suffixes = items;
437
+ });
438
+ this.victimService.getRelationshipTypes().subscribe((items) => {
439
+ this.relationshipTypes = items.filter((y) => ((y.relationshipCategoryId === 'ST' || y.relationshipCategoryId === 'FM')
440
+ && y.relationship !== 'AY'
441
+ && y.relationship !== 'VT'
442
+ && y.relationship !== 'CME'
443
+ && y.relationship !== 'HH'
444
+ && y.relationship !== 'NC'
445
+ && y.relationship !== 'CL'
446
+ && y.relationship !== 'OP'));
447
+ });
448
+ this.victimService.getSupportTypes().subscribe((items) => {
449
+ this.victimSupportTypes = items;
450
+ });
451
+ this.victimService.getWeaponTypes().subscribe((items) => {
452
+ this.weaponTypes = items;
453
+ });
454
+ this.victimService.getDrugsTypes().subscribe((items) => {
455
+ console.log('drug lookup items');
456
+ console.log(items);
457
+ this.drugs = items;
458
+ this.drugs.push({ drugTypeId: 'OTHER', name: 'Other' });
459
+ console.log(this.drugs);
460
+ });
461
+ // this.victimService.getDocketList(this.offenderId).subscribe(
462
+ // (items: any) => {
463
+ // this.docketlist = items;
464
+ // }
465
+ // );
466
+ this.victimForm.get('minorFlag').valueChanges
467
+ .subscribe(value => {
468
+ this.victimForm.get('guardianFirstName').updateValueAndValidity();
469
+ this.victimForm.get('guardianLastName').updateValueAndValidity();
470
+ this.victimForm.get('guardianWorkPhone').updateValueAndValidity();
471
+ this.victimForm.get('guardianHomePhone').updateValueAndValidity();
472
+ this.victimForm.get('guardianCellPhone').updateValueAndValidity();
473
+ });
474
+ this.victimForm.get('victimAdvocateFlag').valueChanges
475
+ .subscribe(value => {
476
+ this.victimForm.get('advocateFirstName').updateValueAndValidity();
477
+ this.victimForm.get('advocateLastName').updateValueAndValidity();
478
+ this.victimForm.get('advocateWorkPhone').updateValueAndValidity();
479
+ this.victimForm.get('advocateHomePhone').updateValueAndValidity();
480
+ this.victimForm.get('advocateCellPhone').updateValueAndValidity();
481
+ });
482
+ }
483
+ back() {
484
+ //this.onSave.emit(this.victimDetail);
485
+ this.router.navigate(['victimList']);
486
+ }
487
+ deleteVictim() {
488
+ this.commonDialogService
489
+ .confirm('', 'Do you want to delete this Victim?', 'Yes', 'No')
490
+ .subscribe(res => {
491
+ this.result = res;
492
+ if (this.result) {
493
+ this.victimService.deleteVictims(this.victimDetail.victimId, this.staffId)
494
+ .subscribe(result => {
495
+ this.snackBar.open('Delete Successfully!', '', {
496
+ duration: 3000,
497
+ });
498
+ });
499
+ // this.onSave.emit(this.victimDetail);
500
+ // this.router.navigate(['victim']);
501
+ setTimeout(() => {
502
+ window.location.reload();
503
+ }, 1500);
504
+ }
505
+ });
506
+ }
507
+ radioMinorChange($event) {
508
+ if ($event.value === true) {
509
+ this.guardianTabFlag = true;
510
+ }
511
+ else {
512
+ this.guardianTabFlag = false;
513
+ }
514
+ }
515
+ radioAdvocateChange($event) {
516
+ const advocateLastNameControl = this.victimForm.get('advocateLastName');
517
+ const advocateFirstNameControl = this.victimForm.get('advocateFirstName');
518
+ if ($event.value === "YS") {
519
+ this.advocateTabFlag = true;
520
+ advocateLastNameControl.setValidators(Validators.required);
521
+ advocateFirstNameControl.setValidators(Validators.required);
522
+ }
523
+ else {
524
+ this.advocateTabFlag = false;
525
+ advocateLastNameControl.clearValidators();
526
+ advocateFirstNameControl.clearValidators();
527
+ }
528
+ advocateLastNameControl.updateValueAndValidity();
529
+ advocateFirstNameControl.updateValueAndValidity();
530
+ }
531
+ radioCicChange($event) {
532
+ if ($event.value === true) {
533
+ this.commonChildrenDivFlag = true;
534
+ // requrie field
535
+ this.setValidators('commonChildren');
536
+ }
537
+ else {
538
+ this.commonChildrenDivFlag = false;
539
+ }
540
+ }
541
+ setValidators(type) {
542
+ if (type == 'commonChildren') {
543
+ this.victimForm.get('commonChildrenNumber').clearValidators();
544
+ this.victimForm.get('commonChildrenNumber').setValidators(Validators.required);
545
+ }
546
+ else if (type == 'cpo') {
547
+ this.victimForm.get('cpoExpirationDate').clearValidators();
548
+ this.victimForm.get('cpoExpirationDate').setValidators(Validators.required);
549
+ }
550
+ }
551
+ radioSupportChange($event) {
552
+ if ($event.value === true) {
553
+ this.supportInPlaceDivFlag = true;
554
+ }
555
+ else {
556
+ this.supportInPlaceDivFlag = false;
557
+ }
558
+ }
559
+ radioWeaponChange($event) {
560
+ if ($event.value === true) {
561
+ this.weaponInvolvedDivFlag = true;
562
+ }
563
+ else {
564
+ this.weaponInvolvedDivFlag = false;
565
+ }
566
+ }
567
+ radioDrugChange($event) {
568
+ if ($event.value === true) {
569
+ this.drugUseDivFlag = true;
570
+ }
571
+ else {
572
+ this.drugUseDivFlag = false;
573
+ }
574
+ }
575
+ radioCpoChange($event) {
576
+ if ($event.value === true) {
577
+ this.cpoExpirationDivFlag = true;
578
+ this.setValidators('cpo');
579
+ }
580
+ else {
581
+ this.cpoExpirationDivFlag = false;
582
+ }
583
+ }
584
+ handleDOBChange($event) {
585
+ var ageDifMs = Date.now() - $event.value;
586
+ var ageDate = new Date(ageDifMs);
587
+ if (Math.abs(ageDate.getUTCFullYear() - 1970) <= 18) {
588
+ 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.', '', {
589
+ duration: 6000,
590
+ });
591
+ const minorControl = this.victimForm.get('minorFlag');
592
+ minorControl.setValue(true);
593
+ this.guardianTabFlag = true;
594
+ }
595
+ }
596
+ checkOtherWeapon(WeaponUse) {
597
+ const otherWeaponControl = this.victimForm.get('otherWeapon');
598
+ if (WeaponUse.includes("OTHER")) {
599
+ this.otherWeaponFlag = true;
600
+ otherWeaponControl.setValidators(Validators.required);
601
+ }
602
+ else {
603
+ this.otherWeaponFlag = false;
604
+ otherWeaponControl.clearValidators();
605
+ }
606
+ otherWeaponControl.updateValueAndValidity();
607
+ }
608
+ checkOtherDrug(DrugUse) {
609
+ const otherDrugControl = this.victimForm.get('otherDrug');
610
+ if (DrugUse.includes("OTHER")) {
611
+ this.otherDrugFlag = true;
612
+ otherDrugControl.setValidators(Validators.required);
613
+ }
614
+ else {
615
+ this.otherDrugFlag = false;
616
+ otherDrugControl.clearValidators();
617
+ }
618
+ otherDrugControl.updateValueAndValidity();
619
+ }
620
+ //#region "save victim"
621
+ saveVictim() {
622
+ //guardian phone logic
623
+ if (!this.victimForm.value.guardianNoPhoneFlag) {
624
+ if (this.guardianHomePhoneControl.value) {
625
+ if (this.guardianHomePhoneControl.value !== null) {
626
+ if (this.guardianHomePhoneControl.value !== "") {
627
+ this.guardianPhoneExistFlag = true;
628
+ }
629
+ }
630
+ }
631
+ if (this.guardianWorkPhoneControl.value !== undefined) {
632
+ if (this.guardianWorkPhoneControl.value !== null) {
633
+ if (this.guardianWorkPhoneControl.value !== "") {
634
+ this.guardianPhoneExistFlag = true;
635
+ }
636
+ }
637
+ }
638
+ if (this.guardianCellPhoneControl.value) {
639
+ if (this.guardianCellPhoneControl.value !== null) {
640
+ if (this.guardianCellPhoneControl.value !== "") {
641
+ this.guardianPhoneExistFlag = true;
642
+ }
643
+ }
644
+ }
645
+ }
646
+ console.log('this.victimForm.value.guardianNoPhoneFlag');
647
+ console.log(this.victimForm.value.guardianNoPhoneFlag);
648
+ console.log('this.guardianPhoneExistFlag');
649
+ console.log(this.guardianPhoneExistFlag);
650
+ if (this.guardianPhoneExistFlag === false && this.victimForm.value.guardianNoPhoneFlag === false) {
651
+ this.phoneValidationFlag = true;
652
+ this.commonDialogService
653
+ .warning('', 'Please check the guardian phone field. You have to fill one of the three phone fileds.', 'Ok')
654
+ .subscribe(res => {
655
+ this.result = res;
656
+ });
657
+ }
658
+ console.log('this.phoneValidationFlag');
659
+ console.log(this.phoneValidationFlag);
660
+ //advocate phone logic
661
+ if (!this.victimForm.value.advocateNoPhoneFlag) {
662
+ if (this.advocateHomePhoneControl.value) {
663
+ if (this.advocateHomePhoneControl.value !== null) {
664
+ if (this.advocateHomePhoneControl.value !== "") {
665
+ this.advocatePhoneExistFlag = true;
666
+ }
667
+ }
668
+ }
669
+ if (this.advocateWorkPhoneControl.value !== undefined) {
670
+ if (this.advocateWorkPhoneControl.value !== null) {
671
+ if (this.advocateWorkPhoneControl.value !== "") {
672
+ this.advocatePhoneExistFlag = true;
673
+ }
674
+ }
675
+ }
676
+ if (this.advocateCellPhoneControl.value) {
677
+ if (this.advocateCellPhoneControl.value !== null) {
678
+ if (this.advocateCellPhoneControl.value !== "") {
679
+ this.advocatePhoneExistFlag = true;
680
+ }
681
+ }
682
+ }
683
+ }
684
+ console.log('this.victimForm.value.advocateNoPhoneFlag');
685
+ console.log(this.victimForm.value.advocateNoPhoneFlag);
686
+ console.log('this.advocatePhoneExistFlag');
687
+ console.log(this.advocatePhoneExistFlag);
688
+ if (this.advocatePhoneExistFlag === false && this.victimForm.value.advocateNoPhoneFlag === false) {
689
+ this.phoneValidationFlag = true;
690
+ this.commonDialogService
691
+ .warning('', 'Please check the advocate phone field. You have to fill one of the three phone fileds.', 'Ok')
692
+ .subscribe(res => {
693
+ this.result = res;
694
+ });
695
+ }
696
+ if (this.homePhoneControl.value) {
697
+ this.victimForm.value.homePhone = this.homePhoneControl.value.replace(/[()\s-]/g, '');
698
+ }
699
+ else {
700
+ this.victimForm.value.homePhone = null;
701
+ }
702
+ if (this.cellPhoneControl.value) {
703
+ this.victimForm.value.cellPhone = this.cellPhoneControl.value.replace(/[()\s-]/g, '');
704
+ }
705
+ else {
706
+ this.victimForm.value.cellPhone = null;
707
+ }
708
+ if (this.workPhoneControl.value) {
709
+ this.victimForm.value.workPhone = this.workPhoneControl.value.replace(/[()\s-]/g, '');
710
+ }
711
+ else {
712
+ this.victimForm.value.workPhone = null;
713
+ }
714
+ if (this.guardianHomePhoneControl.value) {
715
+ this.victimForm.value.guardianHomePhone = this.guardianHomePhoneControl.value.replace(/[()\s-]/g, '');
716
+ }
717
+ else {
718
+ this.victimForm.value.guardianHomePhone = null;
719
+ }
720
+ if (this.guardianCellPhoneControl.value) {
721
+ this.victimForm.value.guardianCellPhone = this.guardianCellPhoneControl.value.replace(/[()\s-]/g, '');
722
+ }
723
+ else {
724
+ this.victimForm.value.guardianCellPhone = null;
725
+ }
726
+ if (this.guardianWorkPhoneControl.value) {
727
+ this.victimForm.value.guardianWorkPhone = this.guardianWorkPhoneControl.value.replace(/[()\s-]/g, '');
728
+ }
729
+ else {
730
+ this.victimForm.value.guardianWorkPhone = null;
731
+ }
732
+ if (this.advocateHomePhoneControl.value) {
733
+ this.victimForm.value.advocateHomePhone = this.advocateHomePhoneControl.value.replace(/[()\s-]/g, '');
734
+ }
735
+ else {
736
+ this.victimForm.value.advocateHomePhone = null;
737
+ }
738
+ if (this.advocateCellPhoneControl.value) {
739
+ this.victimForm.value.advocateCellPhone = this.advocateCellPhoneControl.value.replace(/[()\s-]/g, '');
740
+ }
741
+ else {
742
+ this.victimForm.value.advocateCellPhone = null;
743
+ }
744
+ if (this.advocateWorkPhoneControl.value) {
745
+ this.victimForm.value.advocateWorkPhone = this.advocateWorkPhoneControl.value.replace(/[()\s-]/g, '');
746
+ }
747
+ else {
748
+ this.victimForm.value.advocateWorkPhone = null;
749
+ }
750
+ if (this.emergencyContactPhoneControl.value) {
751
+ this.victimForm.value.emergencyContactPhone = this.emergencyContactPhoneControl.value.replace(/[()\s-]/g, '');
752
+ }
753
+ else {
754
+ this.victimForm.value.emergencyContactPhone = null;
755
+ }
756
+ //data process
757
+ console.log('this.phoneValidationFlag 1');
758
+ console.log(this.phoneValidationFlag);
759
+ if (this.phoneValidationFlag === false) {
760
+ if (this.victimDetail === null) {
761
+ //insert new victim
762
+ var myVictimRelationships = [];
763
+ console.log('this.victimForm.value.victimRelationships' + this.victimForm.value.victimRelationships);
764
+ if (this.victimForm.value.victimRelationships) {
765
+ console.log('this.victimForm.value.victimRelationships 1' + this.victimForm.value.victimRelationships);
766
+ this.victimForm.value.victimRelationships.forEach(element => {
767
+ const victimRelationship = {};
768
+ victimRelationship.victimId = this.victimForm.value.victimId;
769
+ victimRelationship.victimOffenderRelationshipTypeId = element;
770
+ victimRelationship.modifiedBy = this.staffId;
771
+ myVictimRelationships.push(victimRelationship);
772
+ console.log('this.victimForm.value.victimRelationships 2' + this.victimForm.value.victimId);
773
+ console.log('this.victimForm.value.victimRelationships 3' + this.staffId);
774
+ console.log('this.victimForm.value.victimRelationships 4' + element);
775
+ });
776
+ }
777
+ console.log('myVictimRelationships' + myVictimRelationships);
778
+ var myVictimSupports = [];
779
+ if (this.victimForm.value.victimSupports) {
780
+ this.victimForm.value.victimSupports.forEach(element => {
781
+ const victimSupport = {};
782
+ victimSupport.victimId = this.victimForm.value.victimId;
783
+ victimSupport.victimSupportTypeId = element;
784
+ victimSupport.modifiedBy = this.staffId;
785
+ myVictimSupports.push(victimSupport);
786
+ });
787
+ }
788
+ var myVictimDrugUses = [];
789
+ console.log('this.victimForm.value.victimDrugUses during save');
790
+ console.log(this.victimForm.value.victimDrugUses);
791
+ if (this.victimForm.value.victimDrugUses) {
792
+ this.victimForm.value.victimDrugUses.forEach(element => {
793
+ const victimDrugUse = {};
794
+ victimDrugUse.drugTypeId = element;
795
+ if (element === "OTHER" || element === "" || element === null) {
796
+ victimDrugUse.drugTypeId = null;
797
+ victimDrugUse.otherDrug = this.victimForm.value.otherDrug;
798
+ }
799
+ else {
800
+ victimDrugUse.drugTypeId = element;
801
+ victimDrugUse.otherDrug = null;
802
+ }
803
+ victimDrugUse.modifiedBy = this.staffId;
804
+ victimDrugUse.victimId = this.victimForm.value.victimId;
805
+ myVictimDrugUses.push(victimDrugUse);
806
+ });
807
+ }
808
+ console.log('this.victimForm.value.victimDrugUses during save 1');
809
+ console.log(this.victimForm.value.victimDrugUses);
810
+ var myVictimWeaponUses = [];
811
+ if (this.victimForm.value.victimWeaponUses) {
812
+ this.victimForm.value.victimWeaponUses.forEach(element => {
813
+ const victimWeaponUse = {};
814
+ victimWeaponUse.victimId = this.victimForm.value.victimId;
815
+ victimWeaponUse.weaponTypeId = element;
816
+ if (element == "OTHER") {
817
+ victimWeaponUse.otherWeapon = this.victimForm.value.otherWeapon;
818
+ }
819
+ else {
820
+ victimWeaponUse.otherWeapon = null;
821
+ }
822
+ victimWeaponUse.modifiedBy = this.staffId;
823
+ myVictimWeaponUses.push(victimWeaponUse);
824
+ });
825
+ }
826
+ const newVictim = {
827
+ victimId: 0,
828
+ offenderId: this.offenderId,
829
+ // victimOffenderRelationshipTypeId:
830
+ // this.victimForm.value.victimOffenderRelationshipTypeId,
831
+ lastName: this.victimForm.value.lastName,
832
+ firstName: this.victimForm.value.firstName,
833
+ middleName: this.victimForm.value.middleName
834
+ ? this.victimForm.value.middleName
835
+ : null,
836
+ prefixId: this.victimForm.value.prefixId
837
+ ? this.victimForm.value.prefixId
838
+ : null,
839
+ suffixId: this.victimForm.value.suffixId
840
+ ? this.victimForm.value.suffixId
841
+ : null,
842
+ birthDate: this.victimForm.value.birthDate
843
+ ? this.victimForm.value.birthDate
844
+ : null,
845
+ genderCode: this.victimForm.value.genderCode
846
+ ? this.victimForm.value.genderCode
847
+ : null,
848
+ underSupervisionFlag: this.victimForm.value.underSupervisionFlag,
849
+ minorFlag: this.victimForm.value.minorFlag,
850
+ victimAdvocateFlag: this.victimForm.value.victimAdvocateFlag,
851
+ homePhone: this.victimForm.value.homePhone,
852
+ workPhone: this.victimForm.value.workPhone,
853
+ cellPhone: this.victimForm.value.cellPhone,
854
+ email: this.victimForm.value.email ? this.victimForm.value.email : null,
855
+ addressId: this.victimForm.value.addressId
856
+ ? this.victimForm.value.addressId
857
+ : 1,
858
+ emergencyContact: this.victimForm.value.emergencyContact
859
+ ? this.victimForm.value.emergencyContact
860
+ : null,
861
+ emergencyContactPhone: this.victimForm.value.emergencyContactPhone,
862
+ commonChildrenFlag: this.victimForm.value.commonChildrenFlag,
863
+ commonChildrenNumber: this.victimForm.value.commonChildrenNumber,
864
+ cpoExpirationFlag: this.victimForm.value.cpoExpirationFlag,
865
+ cpoExpirationDate: this.victimForm.value.cpoExpirationDate
866
+ ? this.datePipe.transform(this.victimForm.value.cpoExpirationDate, "short")
867
+ : null,
868
+ supportInPlaceFlag: this.victimForm.value.supportInPlaceFlag,
869
+ weaponInvolvedFlag: this.victimForm.value.weaponInvolvedFlag,
870
+ drugUseFlag: this.victimForm.value.drugUseFlag,
871
+ alcoholUseFlag: this.victimForm.value.alcoholUseFlag,
872
+ accessRisk: this.victimForm.value.accessRisk,
873
+ modifiedBy: this.staffId,
874
+ vVictimAdvocate: null,
875
+ vVictimGuardian: null,
876
+ victimDrugUses: myVictimDrugUses,
877
+ victimSupports: myVictimSupports,
878
+ victimOffenderRelationships: myVictimRelationships,
879
+ victimWeaponUses: myVictimWeaponUses,
880
+ advocateFirstName: null,
881
+ advocateLastName: null,
882
+ advocateEmail: null,
883
+ advocatePrefixId: null,
884
+ advocateSuffixId: null,
885
+ advocateNoPhoneFlag: null,
886
+ advocateHomePhone: null,
887
+ advocateWorkPhone: null,
888
+ advocateCellPhone: null,
889
+ advocateAddressId: null,
890
+ guardianFirstName: null,
891
+ guardianLastName: null,
892
+ guardianEmail: null,
893
+ guardianPrefixId: null,
894
+ guardianSuffixId: null,
895
+ guardianNoPhoneFlag: null,
896
+ guardianHomePhone: null,
897
+ guardianWorkPhone: null,
898
+ guardianCellPhone: null,
899
+ guardianAddressId: null,
900
+ guardianBirthDate: null,
901
+ //relationship: null,
902
+ //relationship: this.victimForm.value.victimOffenderRelationshipTypeId? this.victimForm.value.victimOffenderRelationshipTypeId : null,
903
+ allowCsosaContactFlag: this.victimForm.value.allowCsosaContactFlag
904
+ ? this.victimForm.value.allowCsosaContactFlag
905
+ : null,
906
+ liveWithOffenderFlag: this.victimForm.value.liveWithOffenderFlag
907
+ ? this.victimForm.value.liveWithOffenderFlag
908
+ : null,
909
+ };
910
+ if (this.addressId == 0) {
911
+ newVictim.addressId = null;
912
+ }
913
+ else {
914
+ newVictim.addressId = this.addressId;
915
+ }
916
+ newVictim.advocateAddressId = this.advocateAddressId;
917
+ newVictim.guardianAddressId = this.guardianAddressId;
918
+ console.log('newVictim');
919
+ console.log(newVictim);
920
+ this.victimService.postVictims(newVictim).subscribe((items) => {
921
+ const id = items ? items.victimId : '';
922
+ if (this.victimForm.value.victimAdvocateFlag == "YS") {
923
+ console.log('add advocate');
924
+ const victimAdvocate = {
925
+ victimAdvocateId: id,
926
+ lastName: this.victimForm.value.advocateLastName,
927
+ firstName: this.victimForm.value.advocateFirstName,
928
+ prefixId: this.victimForm.value.advocatePrefixId,
929
+ suffixId: this.victimForm.value.advocateSuffixId,
930
+ addressId: this.advocateAddressId ? this.advocateAddressId : null,
931
+ noPhoneFlag: this.victimForm.value.advocateNoPhoneFlag ? this.victimForm.value.advocateNoPhoneFlag : null,
932
+ homePhone: this.victimForm.value.advocateHomePhone,
933
+ workPhone: this.victimForm.value.advocateWorkPhone,
934
+ cellPhone: this.victimForm.value.advocateCellPhone,
935
+ email: this.victimForm.value.advocateEmail,
936
+ modifiedBy: this.staffId
937
+ };
938
+ this.victimService.postVictimAdvocate(id, victimAdvocate).subscribe();
939
+ }
940
+ if (this.victimForm.value.minorFlag == true) {
941
+ const victimGuardian = {
942
+ victimGuardianId: id,
943
+ lastName: this.victimForm.value.guardianLastName,
944
+ firstName: this.victimForm.value.guardianFirstName,
945
+ prefixId: this.victimForm.value.guardianPrefixId,
946
+ suffixId: this.victimForm.value.guardianSuffixId,
947
+ birthDate: this.victimForm.value.guardianBirthDate,
948
+ addressId: this.guardianAddressId ? this.guardianAddressId : null,
949
+ noPhoneFlag: this.victimForm.value.guardianNoPhoneFlag ? this.victimForm.value.guardianNoPhoneFlag : null,
950
+ homePhone: this.victimForm.value.guardianHomePhone,
951
+ workPhone: this.victimForm.value.guardianWorkPhone,
952
+ cellPhone: this.victimForm.value.guardianCellPhone,
953
+ email: this.victimForm.value.guardianEmail,
954
+ modifiedBy: this.staffId
955
+ };
956
+ this.victimService.postVictimGuardian(id, victimGuardian).subscribe();
957
+ }
958
+ this.snackBar.open('Add Victim Successfully!', '', {
959
+ duration: 3000,
960
+ });
961
+ //insert new
962
+ if (this.isIntake === true) {
963
+ this.router.navigate(['victimHome']);
964
+ }
965
+ else {
966
+ this.router.navigate(['victimList']);
967
+ }
968
+ //this.onSave.emit(this.victimDetail);
969
+ });
970
+ }
971
+ else {
972
+ //update victim
973
+ this.victimDetail.underSupervisionFlag = this.victimForm.value.underSupervisionFlag;
974
+ //this.victimDetail.victimOffenderRelationshipTypeId = this.victimForm.value.victimOffenderRelationshipTypeId;
975
+ this.victimDetail.lastName = this.victimForm.value.lastName;
976
+ this.victimDetail.firstName = this.victimForm.value.firstName;
977
+ this.victimDetail.middleName = this.victimForm.value.middleName;
978
+ this.victimDetail.prefixId = this.victimForm.value.prefixId ? this.victimForm.value.prefixId : null;
979
+ this.victimDetail.suffixId = this.victimForm.value.suffixId ? this.victimForm.value.suffixId : null;
980
+ this.victimDetail.birthDate = this.victimForm.value.birthDate;
981
+ this.victimDetail.genderCode = this.victimForm.value.genderCode;
982
+ this.victimDetail.minorFlag = this.victimForm.value.minorFlag;
983
+ this.victimDetail.homePhone = this.victimForm.value.homePhone;
984
+ this.victimDetail.workPhone = this.victimForm.value.workPhone;
985
+ this.victimDetail.cellPhone = this.victimForm.value.cellPhone;
986
+ this.victimDetail.email = this.victimForm.value.email;
987
+ this.victimDetail.victimAdvocateFlag = this.victimForm.value.victimAdvocateFlag;
988
+ this.victimDetail.emergencyContact = this.victimForm.value.emergencyContact;
989
+ this.victimDetail.emergencyContactPhone = this.victimForm.value.emergencyContactPhone;
990
+ this.victimDetail.commonChildrenFlag = this.victimForm.value.commonChildrenFlag;
991
+ this.victimDetail.commonChildrenNumber = this.victimForm.value.commonChildrenNumber;
992
+ this.victimDetail.cpoExpirationDate = this.victimForm.value.cpoExpirationDate;
993
+ this.victimDetail.cpoExpirationFlag = this.victimForm.value.cpoExpirationFlag;
994
+ this.victimDetail.supportInPlaceFlag = this.victimForm.value.supportInPlaceFlag;
995
+ this.victimDetail.weaponInvolvedFlag = this.victimForm.value.weaponInvolvedFlag;
996
+ this.victimDetail.drugUseFlag = this.victimForm.value.drugUseFlag;
997
+ this.victimDetail.alcoholUseFlag = this.victimForm.value.alcoholUseFlag;
998
+ this.victimDetail.accessRisk = this.victimForm.value.accessRisk;
999
+ this.victimDetail.addressId = this.addressId;
1000
+ this.victimDetail.allowCsosaContactFlag = this.victimForm.value.allowCsosaContactFlag;
1001
+ this.victimDetail.liveWithOffenderFlag = this.victimForm.value.liveWithOffenderFlag;
1002
+ this.victimDetail.victimSupports = [];
1003
+ this.victimForm.value.victimSupports.forEach(element => {
1004
+ const victimSupport = {};
1005
+ victimSupport.victimId = this.victimDetail.victimId;
1006
+ victimSupport.victimSupportTypeId = element;
1007
+ victimSupport.modifiedBy = this.staffId;
1008
+ this.victimDetail.victimSupports.push(victimSupport);
1009
+ });
1010
+ this.victimDetail.victimRelationships = [];
1011
+ this.victimForm.value.victimRelationships.forEach(element => {
1012
+ const victimRelationship = {};
1013
+ victimRelationship.victimId = this.victimDetail.victimId;
1014
+ victimRelationship.victimOffenderRelationshipTypeId = element;
1015
+ victimRelationship.modifiedBy = this.staffId;
1016
+ this.victimDetail.victimRelationships.push(victimRelationship);
1017
+ });
1018
+ this.victimDetail.victimDrugUses = [];
1019
+ this.victimForm.value.victimDrugUses.forEach(element => {
1020
+ const victimDrugUse = {};
1021
+ victimDrugUse.drugTypeId = element;
1022
+ console.log('this.victimForm.value.victimDrugUses before');
1023
+ console.log(this.victimForm.value.victimDrugUses);
1024
+ if (element === "OTHER" || element === "") {
1025
+ victimDrugUse.drugTypeId = null;
1026
+ victimDrugUse.otherDrug = this.victimForm.value.otherDrug;
1027
+ }
1028
+ else {
1029
+ victimDrugUse.drugTypeId = element;
1030
+ victimDrugUse.otherDrug = null;
1031
+ }
1032
+ victimDrugUse.modifiedBy = this.staffId;
1033
+ victimDrugUse.victimId = this.victimDetail.victimId;
1034
+ this.victimDetail.victimDrugUses.push(victimDrugUse);
1035
+ });
1036
+ this.victimForm.value.victimDrugUses.filter(word => (!(word.drugTypeId === null && word.otherDrug === null)));
1037
+ this.victimDetail.victimWeaponUses = [];
1038
+ this.victimForm.value.victimWeaponUses.forEach(element => {
1039
+ const victimWeaponUse = {};
1040
+ victimWeaponUse.victimId = this.victimDetail.victimId;
1041
+ victimWeaponUse.weaponTypeId = element;
1042
+ if (element == "OTHER") {
1043
+ victimWeaponUse.otherWeapon = this.victimForm.value.otherWeapon;
1044
+ }
1045
+ else {
1046
+ victimWeaponUse.otherWeapon = null;
1047
+ }
1048
+ victimWeaponUse.modifiedBy = this.staffId;
1049
+ this.victimDetail.victimWeaponUses.push(victimWeaponUse);
1050
+ });
1051
+ console.log('this.victimDetail before emit');
1052
+ console.log(this.victimDetail);
1053
+ this.victimService.putVictims(this.victimDetail.victimId, this.victimDetail).subscribe((items) => {
1054
+ this.snackBar.open('Update Successfully!', '', {
1055
+ duration: 3000,
1056
+ });
1057
+ //Advocate section
1058
+ this.victimAdvocate.victimAdvocateId = this.victimDetail.victimId;
1059
+ this.victimAdvocate.lastName = this.victimForm.value.advocateLastName;
1060
+ this.victimAdvocate.firstName = this.victimForm.value.advocateFirstName;
1061
+ this.victimAdvocate.prefixId = this.victimForm.value.advocatePrefixId ? this.victimForm.value.advocatePrefixId : null;
1062
+ this.victimAdvocate.suffixId = this.victimForm.value.advocateSuffixId ? this.victimForm.value.advocateSuffixId : null;
1063
+ this.victimAdvocate.addressId = this.advocateAddressId ? this.advocateAddressId : null;
1064
+ this.victimAdvocate.noPhoneFlag = this.victimForm.value.advocateNoPhoneFlag ? true : false;
1065
+ this.victimAdvocate.homePhone = this.victimForm.value.advocateHomePhone;
1066
+ this.victimAdvocate.workPhone = this.victimForm.value.advocateWorkPhone;
1067
+ this.victimAdvocate.cellPhone = this.victimForm.value.advocateCellPhone;
1068
+ this.victimAdvocate.email = this.victimForm.value.advocateEmail ? this.victimForm.value.advocateEmail : null;
1069
+ this.victimAdvocate.modifiedBy = this.staffId;
1070
+ console.log('work on advocate part');
1071
+ if (this.victimDetail.victimAdvocateFlag == 'YS') {
1072
+ console.log('work on advocate flag is YS ');
1073
+ if (this.victimDetail.advocateFirstName != null) {
1074
+ console.log('check advocate fisrt name ');
1075
+ console.log(this.victimDetail.advocateFirstName);
1076
+ this.victimService.putVictimAdvocate(this.victimDetail.victimId, this.victimAdvocate).subscribe(resp => { });
1077
+ }
1078
+ else {
1079
+ console.log('add advocate');
1080
+ console.log(this.victimAdvocate);
1081
+ this.victimService.postVictimAdvocate(this.victimDetail.victimId, this.victimAdvocate).subscribe();
1082
+ }
1083
+ }
1084
+ // guardian section
1085
+ this.victimGuardian.victimGuardianId = this.victimDetail.victimId;
1086
+ this.victimGuardian.lastName = this.victimForm.value.guardianLastName;
1087
+ this.victimGuardian.firstName = this.victimForm.value.guardianFirstName;
1088
+ this.victimGuardian.prefixId = this.victimForm.value.guardianPrefixId ? this.victimForm.value.guardianPrefixId : null;
1089
+ this.victimGuardian.suffixId = this.victimForm.value.guardianSuffixId ? this.victimForm.value.guardianSuffixId : null;
1090
+ this.victimGuardian.addressId = this.guardianAddressId ? this.guardianAddressId : null;
1091
+ this.victimGuardian.noPhoneFlag = this.victimForm.value.guardianNoPhoneFlag ? true : false;
1092
+ this.victimGuardian.homePhone = this.victimForm.value.guardianHomePhone;
1093
+ this.victimGuardian.workPhone = this.victimForm.value.guardianWorkPhone;
1094
+ this.victimGuardian.cellPhone = this.victimForm.value.guardianCellPhone;
1095
+ this.victimGuardian.email = this.victimForm.value.guardianEmail ? this.victimForm.value.guardianEmail : null;
1096
+ this.victimGuardian.modifiedBy = this.staffId;
1097
+ if (this.victimDetail.minorFlag == true) {
1098
+ if (this.victimDetail.guardianFirstName != null)
1099
+ this.victimService.putVictimGuardian(this.victimDetail.victimId, this.victimGuardian).subscribe(resp => {
1100
+ });
1101
+ else {
1102
+ console.log('add gurdian');
1103
+ console.log(this.victimGuardian);
1104
+ this.victimService.postVictimGuardian(this.victimDetail.victimId, this.victimGuardian).subscribe();
1105
+ }
1106
+ }
1107
+ });
1108
+ }
1109
+ } //end of this.phoneValidationFlag = false
1110
+ console.log('this.victimDetail');
1111
+ console.log(this.victimDetail);
1112
+ this.onSave.emit(this.victimDetail);
1113
+ }
1114
+ //#endregion "save victim"
1115
+ addContact() {
1116
+ this.router.navigate(['victimContact', this.victimId]);
1117
+ }
1118
+ formatLabel(value) {
1119
+ return value;
1120
+ }
1121
+ update() {
1122
+ // this.task.update(task => {
1123
+ // if (index === undefined) {
1124
+ // task.completed = completed;
1125
+ // task.subtasks?.forEach(t => (t.completed = completed));
1126
+ // } else {
1127
+ // task.subtasks![index].completed = completed;
1128
+ // task.completed = task.subtasks?.every(t => t.completed) ?? true;
1129
+ // }
1130
+ // return {...task};
1131
+ // });
1132
+ }
1133
+ /** @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 }); }
1134
+ /** @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>&nbsp;\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>&nbsp;\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 \r\n <mat-select #relationShipSel multiple formControlName=\"victimRelationships\" [(ngModel)]=\"editVictim.victimOffenderRelationshipTypeId\" >\r\n <div (mouseleave)=\"relationShipSel.close()\">\r\n <mat-option color=\"primary\" *ngFor=\"let item of relationshipTypes\" [value]=\"item.relationshipTypeId\">\r\n {{item.name}}\r\n </mat-option>\r\n </div>\r\n </mat-select>\r\n\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('victimRelationships').errors\r\n && (victimForm.get('victimRelationships').dirty || victimForm.get('victimRelationships').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>&nbsp;\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>&nbsp;\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>&nbsp;\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>&nbsp;\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>&nbsp;\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>&nbsp;\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): &nbsp;<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('victimRelationships').errors\r\n && (victimForm.get('victimRelationships').dirty || victimForm.get('victimRelationships').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 &nbsp;&nbsp;\r\n <div *ngIf=\"showDelete\" class=\"inner\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"deleteVictim()\">Delete </button>\r\n </div>\r\n &nbsp;&nbsp;\r\n <div class=\"inner\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"cancel()\">Clear </button>\r\n </div>\r\n &nbsp;&nbsp;\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" }] }); }
1135
+ }
1136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: SmartVictimDetailComponent, decorators: [{
1137
+ type: Component,
1138
+ 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>&nbsp;\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>&nbsp;\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 \r\n <mat-select #relationShipSel multiple formControlName=\"victimRelationships\" [(ngModel)]=\"editVictim.victimOffenderRelationshipTypeId\" >\r\n <div (mouseleave)=\"relationShipSel.close()\">\r\n <mat-option color=\"primary\" *ngFor=\"let item of relationshipTypes\" [value]=\"item.relationshipTypeId\">\r\n {{item.name}}\r\n </mat-option>\r\n </div>\r\n </mat-select>\r\n\r\n\r\n <div class=\"help-block\" *ngIf=\"victimForm.get('victimRelationships').errors\r\n && (victimForm.get('victimRelationships').dirty || victimForm.get('victimRelationships').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>&nbsp;\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>&nbsp;\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>&nbsp;\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>&nbsp;\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>&nbsp;\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>&nbsp;\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): &nbsp;<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('victimRelationships').errors\r\n && (victimForm.get('victimRelationships').dirty || victimForm.get('victimRelationships').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 &nbsp;&nbsp;\r\n <div *ngIf=\"showDelete\" class=\"inner\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"deleteVictim()\">Delete </button>\r\n </div>\r\n &nbsp;&nbsp;\r\n <div class=\"inner\">\r\n <button mat-stroked-button color=\"primary\" (click)=\"cancel()\">Clear </button>\r\n </div>\r\n &nbsp;&nbsp;\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"] }]
1139
+ }], 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: [{
1140
+ type: Input
1141
+ }], staffId: [{
1142
+ type: Input
1143
+ }], offenderId: [{
1144
+ type: Input
1145
+ }], isIntake: [{
1146
+ type: Input
1147
+ }], onSave: [{
1148
+ type: Output
1149
+ }], onCancel: [{
1150
+ type: Output
1151
+ }], addressComponent: [{
1152
+ type: ViewChild,
1153
+ args: ["addressComponent"]
1154
+ }] } });
1155
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtdmljdGltLWRldGFpbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ2Mtc21hcnQtdmljdGltL3NyYy9saWIvc21hcnQtdmljdGltLWRldGFpbC9zbWFydC12aWN0aW0tZGV0YWlsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25nYy1zbWFydC12aWN0aW0vc3JjL2xpYi9zbWFydC12aWN0aW0tZGV0YWlsL3NtYXJ0LXZpY3RpbS1kZXRhaWwuY29tcG9uZW50Lmh0b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AgICAgICAgICAgIG90aGVyV2VhcG9uID0gdC5vdGhlcldlYXBvbjtcclxuICAgICAgICAgICAgdGhpcy5vdGhlcldlYXBvbkZsYWcgPSB0cnVlO1xyXG4gICAgICAgICAgfVxyXG5cclxuICAgICAgICB9ICApXHJcblxyXG5cclxuICAgICAgICBjb25zdCB2aWN0aW1XZWFwb25Vc2VzQ29udHJvbCA9IHRoaXMudmljdGltRm9ybS5nZXQoJ3ZpY3RpbVdlYXBvblVzZXMnKTtcclxuICAgICAgICB2aWN0aW1XZWFwb25Vc2VzQ29udHJvbC5zZXRWYWx1ZSh3ZWFwb25Vc2VzRGF0YSk7XHJcblxyXG4gICAgICAgIGNvbnN0IG90aGVyV2VhcG9uQ29udHJvbCA9IHRoaXMudmljdGltRm9ybS5nZXQoJ290aGVyV2VhcG9uJyk7XHJcbiAgICAgICAgb3RoZXJXZWFwb25Db250cm9sLnNldFZhbHVlKG90aGVyV2VhcG9uKTtcclxuXHJcbiAgICAgICAgdmFyIGRydWdVc2VEYXRhID1bXTtcclxuICAgICAgICB2YXIgb3RoZXJEcnVnID0gXCJcIjtcclxuXHJcbiAgICAgICAgY29uc29sZS5sb2coJ2xvYWQgdGhpcy5lZGl0VmljdGltLnZpY3RpbURydWdVc2VzJyk7XHJcbiAgICAgICAgY29uc29sZS5sb2codGhpcy5lZGl0VmljdGltLnZpY3RpbURydWdVc2VzKTtcclxuICAgICAgICB0aGlzLmVkaXRWaWN0aW0udmljdGltRHJ1Z1VzZXMuZm9yRWFjaCggdD0+e1xyXG5cclxuICAgICAgICAgIGlmICh0LmRydWdUeXBlSWQgPT09IG51bGwpe1xyXG4gICAgICAgICAgICBvdGhlckRydWcgPSB0Lm90aGVyRHJ1ZztcclxuICAgICAgICAgICAgdGhpcy5vdGhlckRydWdGbGFnID0gdHJ1ZTtcclxuICAgICAgICAgICAgdC5kcnVnVHlwZUlkID0nT1RIRVInO1xyXG4gICAgICAgICAgfVxyXG4gICAgICAgICAgZHJ1Z1VzZURhdGEucHVzaCh0LmRydWdUeXBlSWQpO1xyXG5cclxuICAgICAgICB9ICApXHJcblxyXG4gICAgICAgIGNvbnNvbGUubG9nKCd0aGlzLmVkaXRWaWN0aW0udmljdGltRHJ1Z1VzZXMgYWZ0ZXIgcHVzaCcpO1xyXG4gICAgICAgIGNvbnNvbGUubG9nKGRydWdVc2VEYXRhKTtcclxuXHJcblxyXG4gICAgICAgIGlmIChkcnVnVXNlRGF0YSl7XHJcbiAgICAgICAgICBjb25zdCB2aWN0aW1EcnVnVXNlc0NvbnRyb2wgPSB0aGlzLnZpY3RpbUZvcm0uZ2V0KCd2aWN0aW1EcnVnVXNlcycpO1xyXG4gICAgICAgICAgdmljdGltRHJ1Z1VzZXNDb250cm9sLnNldFZhbHVlKGRydWdVc2VEYXRhKTtcclxuXHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAob3RoZXJEcnVnKXtcclxuICAgICAgICAgIGNvbnN0IG90aGVyRHJ1Z0NvbnRyb2wgPSB0aGlzLnZpY3RpbUZvcm0uZ2V0KCdvdGhlckRydWcnKTtcclxuICAgICAgICAgIG90aGVyRHJ1Z0NvbnRyb2wuc2V0VmFsdWUob3RoZXJEcnVnKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIC8vY29udGFjdFxyXG4gICAgICAgIHRoaXMudmljdGltU2VydmljZS5nZXRDb250YWN0cyh0aGlzLnZpY3RpbUlkKS5zdWJzY3JpYmUoXHJcbiAgICAgICAgICBjb250YWN0TGlzdCA9PiB7XHJcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKCdjb250YWN0TGlzdCcpO1xyXG4gICAgICAgICAgICBjb25zb2xlLmxvZyhjb250YWN0TGlzdCk7XHJcbiAgICAgICAgICAgIHRoaXMuY29udGFjdExpc3QgPSBjb250YWN0TGlzdDtcclxuICAgICAgICAgICAgdGhpcy5jb250YWN0RGF0YVNvdXJjZS5kYXRhID0gdGhpcy5jb250YWN0TGlzdDtcclxuICAgICAgICAgIH1c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VzZS5vdGhlcldlYXBvbj10aGlzLnZpY3RpbUZvcm0udmFsdWUub3RoZXJXZWFwb247XHJcbiAgICAgICAgIH1cclxuICAgICAgICAgZWxzZXtcclxuICAgICAgICAgIHZpY3RpbVdlYXBvblVzZS5vdGhlcldlYXBvbiA9IG51bGw7XHJcbiAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICB2aWN0aW1XZWFwb25Vc2UubW9kaWZpZWRCeT0gdGhpcy5zdGFmZklkO1xyXG4gICAgICAgICAgdGhpcy52aWN0aW1EZXRhaWwudmljdGltV2VhcG9uVXNlcy5wdXNoKHZpY3RpbVdlYXBvblVzZSk7XHJcblxyXG4gICAgICB9KTtcclxuXHJcbiAgICAgIGNvbnNvbGUubG9nKCd0aGlzLnZpY3RpbURldGFpbCBiZWZvcmUgZW1pdCcpO1xyXG4gICAgICBjb25zb2xlLmxvZyh0aGlzLnZpY3RpbURldGFpbCk7XHJcblxyXG5cclxuICAgICAgdGhpcy52aWN0aW1TZXJ2aWNlLnB1dFZpY3RpbXModGhpcy52aWN0aW1EZXRhaWwudmljdGltSWQsdGhpcy52aWN0aW1EZXRhaWwpLnN1YnNjcmliZShcclxuICAgICAgICAoaXRlbXM6IGFueSkgPT4ge1xyXG4gICAgICAgICAgdGhpcy5zbmFja0Jhci5vcGVuKCdVcGRhdGUgU3VjY2Vzc2Z1bGx5IScsICcnLCB7XHJcbiAgICAgICAgICAgICAgICAgZHVyYXRpb246IDMwMDAsXHJcbiAgICAgICAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgLy9BZHZvY2F0ZSBzZWN0aW9uXHJcbiAgICAgICAgICB0aGlzLnZpY3RpbUFkdm9jYXRlLnZpY3RpbUFkdm9jYXRlSWQgPSB0aGlzLnZpY3RpbURldGFpbC52aWN0aW1JZDtcclxuICAgICAgICAgIHRoaXMudmljdGltQWR2b2NhdGUubGFzdE5hbWU9IHRoaXMudmljdGltRm9ybS52YWx1ZS5hZHZvY2F0ZUxhc3ROYW1lO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AgICAgLy8gICAgIHRhc2suc3VidGFza3MhW2luZGV4XS5jb21wbGV0ZWQgPSBjb21wbGV0ZWQ7XHJcbiAgICAgICAgLy8gICAgIHRhc2suY29tcGxldGVkID0gdGFzay5zdWJ0YXNrcz8uZXZlcnkodCA9PiB0LmNvbXBsZXRlZCkgPz8gdHJ1ZTtcclxuICAgICAgICAvLyAgIH1cclxuICAgICAgICAvLyAgIHJldHVybiB7Li4udGFza307XHJcbiAgICAgICAgLy8gfSk7XHJcbiAgICAgIH1cclxuXHJcblxyXG59XHJcbiIsIjxtYXQtY2FyZD5cclxuICA8bWF0LWNhcmQtY29udGVudD5cclxuXHJcbiAgICAgICAgPGRpdiAgW2Zvcm1Hcm91cF09XCJ2aWN0aW1Gb3JtXCI+XHJcblxyXG4gICAgICAgICAgPG1hdC10YWItZ3JvdXAgZHluYW1pY0hlaWdodCAgbWF0LXN0cmV0Y2gtdGFicz5cclxuICAgICAgICAgICAgPG1hdC10YWIgbGFiZWw9XCJWaWN0aW0gRGV0YWlsXCIgPlxyXG4gICAgICAgICAgICAgIDxkaXYgY2xhc3M9J2NvbnRhaW5lcic+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+SXMgdmljdGltIGEgbWlub3I/PGZvbnQgY29sb3I9XCJyZWRcIj4qIDwvZm9udD48L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgIDxicj5cclxuICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tZ3JvdXAgIGZvcm1Db250cm9sTmFtZT1cIm1pbm9yRmxhZ1wiICAoY2hhbmdlKT1cInJhZGlvTWlub3JDaGFuZ2UoJGV2ZW50KVwiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5taW5vckZsYWdcIiA+XHJcbiAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWJ1dHRvbiBjb2xvc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yXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJoZWxwLWJsb2NrXCIgKm5nSWY9XCJ2aWN0aW1Gb3JtLmdldCgndmljdGltUmVsYXRpb25zaGlwcycpLmVycm9yc1xyXG4gICAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgndmljdGltUmVsYXRpb25zaGlwcycpLmRpcnR5IHx8IHZpY3RpbUZvcm0uZ2V0KCd2aWN0aW1SZWxhdGlvbnNoaXBzJykudG91Y2hlZClcIj5cclxuICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yPnJlbGF0aW9uc2hpcCBpcyA8c3Ryb25nPnJlcXVpcmVkPC9zdHJvbmc+PC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuXHJcbiAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+VmljdGltIExhc3QgTmFtZTo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IGZvcm1Db250cm9sTmFtZT1cImxhc3ROYW1lXCIgIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5sYXN0TmFtZVwiID5cclxuICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCdsYXN0TmFtZScpLmVycm9yc1xyXG4gICAgICAgICAgICAgICAgICAmJiAodmljdGltRm9ybS5nZXQoJ2xhc3ROYW1lJykuZGlydHkgfHwgdmljdGltRm9ybS5nZXQoJ2xhc3ROYW1lJykudG91Y2hlZClcIj5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj52aWN0aW0gbGFzdCBuYW1lIGlzIDxzdHJvbmc+cmVxdWlyZWQ8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LWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5WaWN0aW0gR2VuZGVyOjwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LXNlbGVjdCAgZm9ybUNvbnRyb2xOYW1lPVwiZ2VuZGVyQ29kZVwiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5nZW5kZXJDb2RlXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPG1hdC1vcHRpb24gKm5nRm9yPVwibGV0IGl0ZW0gb2YgZ2VuZGVyc1wiIFt2YWx1ZV09XCJpdGVtLmdlbmRlckNvZGVcIj57e2l0ZW0ubmFtZX19PC9tYXQtb3B0aW9uPlxyXG4gICAgICAgICAgICAgICAgICA8L21hdC1zZWxlY3Q+XHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5EYXRlIG9mIEJpcnRoOjwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0XHJcbiAgICAgICAgICAgICAgICAgICBbbWF0RGF0ZXBpY2tlcl09XCJ2aWN0aW1CaXJ0aFJlZlwiXHJcbiAgICAgICAgICAgICAgICAgICBmb3JtQ29udHJvbE5hbWU9XCJiaXJ0aERhdGVcIlxyXG4gICAgICAgICAgICAgICAgICBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uYmlydGhEYXRlXCJcclxuICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cInZpY3RpbUJpcnRoUmVmLm9wZW4oKVwiXHJcbiAgICAgICAgICAgICAgICAgIChkYXRlQ2hhbmdlKT1cImhhbmRsZURPQkNoYW5nZSgkZXZlbnQpXCJcclxuICAgICAgICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtZGF0ZXBpY2tlci10b2dnbGUgW2Zvcl09XCJ2aWN0aW1CaXJ0aFJlZlwiIG1hdFN1ZmZpeD48L21hdC1kYXRlcGlja2VyLXRvZ2dsZT5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1kYXRlcGlja2VyICN2aWN0aW1CaXJ0aFJlZj48L21hdC1kYXRlcGlja2VyPlxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+VmljdGltIEhvbWUgUGhvbmU6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgPGlucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgaWQ9XCJ0ZWxcIlxyXG4gICAgICAgICAgICAgICAgICAgIG1hdElucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgcGhvbmVNYXNrXHJcbiAgICAgICAgICAgICAgICAgICAgW3ByZVZhbHVlXT1cImVkaXRWaWN0aW0uaG9tZVBob25lXCJcclxuICAgICAgICAgICAgICAgICAgICBbcGhvbmVDb250cm9sXT1cImhvbWVQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJob21lUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICBtYXhsZW5ndGg9XCIxNFwiLz5cclxuXHJcbiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJoZWxwLWJsb2NrXCIgKm5nSWY9XCJ2aWN0aW1Gb3JtLmdldCgnaG9tZVBob25lJykuZXJyb3JzXHJcbiAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgnaG9tZVBob25lJykuZGlydHkgfHwgdmljdGltRm9ybS5nZXQoJ2hvbWVQaG9uZScpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3I+PHN0cm9uZz5Ib21lIHBob25lIG51bWJlciBmb3JtYXQgaXMgbm90IGNvcnJlY3QuPC9zdHJvbmc+PC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPlZpY3RpbSBDZWxsIFBob25lOjwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgICAgICAgaWQ9XCJ0ZWwxXCJcclxuICAgICAgICAgICAgICAgICAgbWF0SW5wdXRcclxuICAgICAgICAgICAgICAgICAgcGhvbmVNYXNrXHJcbiAgICAgICAgICAgICAgICAgIFtwcmVWYWx1ZV09XCJlZGl0VmljdGltLmNlbGxQaG9uZVwiXHJcbiAgICAgICAgICAgICAgICAgIFtwaG9uZUNvbnRyb2xdPVwiY2VsbFBob25lQ29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJjZWxsUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgbWF4bGVuZ3RoPVwiMTRcIi8+XHJcblxyXG4gICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaGVscC1ibG9ja1wiICpuZ0lmPVwidmljdGltRm9ybS5nZXQoJ2NlbGxQaG9uZScpLmVycm9yc1xyXG4gICAgICAgICAgICAgICAgICAmJiAodmljdGltRm9ybS5nZXQoJ2NlbGxQaG9uZScpLmRpcnR5IHx8IHZpY3RpbUZvcm0uZ2V0KCdjZWxsUGhvbmUnKS50b3VjaGVkKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPkNlbGwgcGhvbmUgbnVtYmVyIGZvcm1hdCBpcyBub3QgY29ycmVjdC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZCA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+VmljdGltIFdvcmsgUGhvbmU6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgIDxpbnB1dFxyXG4gICAgICAgICAgICAgICAgICBpZD1cInRlbDJcIlxyXG4gICAgICAgICAgICAgICAgICBtYXRJbnB1dFxyXG4gICAgICAgICAgICAgICAgICBwaG9uZU1hc2tcclxuICAgICAgICAgICAgICAgICAgW3ByZVZhbHVlXT1cImVkaXRWaWN0aW0ud29ya1Bob25lXCJcclxuICAgICAgICAgICAgICAgICAgW3Bob25lQ29udHJvbF09XCJ3b3JrUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cIndvcmtQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICBtYXhsZW5ndGg9XCIxNFwiLz5cclxuXHJcbiAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJoZWxwLWJsb2NrXCIgKm5nSWY9XCJ2aWN0aW1Gb3JtLmdldCgnd29ya1Bob25lJykuZXJyb3JzXHJcbiAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgnd29ya1Bob25lJykuZGlydHkgfHwgdmljdGltRm9ybS5nZXQoJ3dvcmtQaG9uZScpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3I+PHN0cm9uZz5Xb3JrIHBob25lIG51bWJlciBmb3JtYXQgaXMgbm90IGNvcnJlY3QuPC9zdHJvbmc+PC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPlZpY3RpbSBFbWFpbDo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCAgZm9ybUNvbnRyb2xOYW1lPVwiZW1haWxcIiBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uZW1haWxcIiA+XHJcbiAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaGVscC1ibG9ja1wiICpuZ0lmPVwidmljdGltRm9ybS5nZXQoJ2VtYWlsJykuZXJyb3JzXHJcbiAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgnZW1haWwnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnZW1haWwnKS50b3VjaGVkKVwiPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWVycm9yPjxzdHJvbmc+dmljdGltIGVtYWlsIGZvcm1hdCBpcyBub3QgY29ycmVjdC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgPGRpdj48L2Rpdj5cclxuICAgICAgICAgICAgICAgIDxhcHAtc21hcnQtYWRkcmVzc1xyXG4gICAgICAgICAgICAgICAgW21vZGlmaWVkQnldPVwic3RhZmZJZFwiXHJcbiAgICAgICAgICAgICAgICBbaWRdPVwiYWRkcmVzc0lkXCJcclxuICAgICAgICAgICAgICAgIFtvdXRsaW5lXT1cInRydWVcIlxyXG4gICAgICAgICAgICAgICAgW3Nob3dQc2FdPVwidHJ1ZVwiXHJcbiAgICAgICAgICAgICAgICBbYWRkcmVzc1ZhbGlkYXRvcnNdPVwiYWRkcmVzc1ZhbGlkYXRvcnNcIlxyXG4gICAgICAgICAgICAgICAgW3JlYWRvbmx5XT1cImZhbHNlXCJcclxuICAgICAgICAgICAgICAgIChhZGRyZXNzSWRDaGFuZ2UpPVwib25BZGRyZXNzQ2hhbmdlKCRldmVudClcIlxyXG4gICAgICAgICAgICAgICAgI2FkZHJlc3NDb21wb25lbnQgPlxyXG5cclxuICAgICAgICAgICAgICAgIDwvYXBwLXNtYXJ0LWFkZHJlc3M+XHJcblxyXG5cclxuICAgICAgICAgICAgICAgICAgPCEtLSBEb2NrZXQ6XHJcbiAgICAgICAgICAgICAgICAgIDxkaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiAgKm5nRm9yPVwibGV0IGRvY2tldCBvZiBkb2NrZXRsaXN0OyBsZXQgaT1pbmRleFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgPG1hdC1jaGVja2JveCA+e3tkb2NrZXQuZG9ja2V0TnVtYmVyfX08L21hdC1jaGVja2JveD5cclxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgPC9kaXY+IC0tPlxyXG4gICAgICAgICAgICAgICAgICA8ZGl2PlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWNoZWNrYm94ICBjb2xvcj1cInByaW1hcnlcIiBmb3JtQ29udHJvbE5hbWU9XCJsaXZlV2l0aE9mZmVuZGVyRmxhZ1wiIG5hbWU9XCJsaXZlV2l0aE9mZmVuZGVyRmxhZ1wiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5saXZlV2l0aE9mZmVuZGVyRmxhZ1wiICAgKGNoYW5nZSk9XCJzaG93QWRkcmVzcygkZXZlbnQpXCIgID52aWN0aW0gbGl2ZSB3aXRoIG9mZmVuZGVyPC9tYXQtY2hlY2tib3g+XHJcbiAgICAgICAgICAgICAgICAgIDxicj5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1jaGVja2JveCAgY29sb3I9XCJ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WRpby1ncm91cD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgcGxhY2Vob2xkZXI9XCJcIiBzdHlsZT1cImRpc3BsYXk6IG5vbmVcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgPGRpdiAgKm5nSWY9XCJjb21tb25DaGlsZHJlbkRpdkZsYWdcIj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENoaWxkcmVuIG51bWJlclxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgIGZvcm1Db250cm9sTmFtZT1cImNvbW1vbkNoaWxkcmVuTnVtYmVyXCIgWyhuZ01vZGVsKV09XCJlZGl0VmljdGltLmNvbW1vbkNoaWxkcmVuTnVtYmVyXCIgPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5DUE86IDwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8YnI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1ncm91cCBmb3JtQ29udHJvbE5hbWU9XCJjcG9FeHBpcmF0aW9uRmxhZ1wiICBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uY3BvRXhwaXJhdGlvbkZsYWdcIiAoY2hhbmdlKT1cInJhZGlvQ3BvQ2hhbmdlKCRldmVudClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1idXR0b24gY29sb3I9XCJwcmltYXJ5XCIgW3ZhbHVlXT1cInRydWVcIj5ZZXM8L21hdC1yYWRpby1idXR0b24+Jm5ic3A7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIFt2YWx1ZV09XCJmYWxzZVwiPk5vPC9tYXQtcmFkaW8tYnV0dG9uPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtcmFkaW8tZ3JvdXA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgcGxhY2Vob2xkZXI9XCJcIiBzdHlsZT1cImRpc3BsYXk6IG5vbmVcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgIDxkaXYgKm5nSWY9XCJjcG9FeHBpcmF0aW9uRGl2RmxhZ1wiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+RXhwaXJhdGlvbiBEYXRlOiA8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW21hdERhdGVwaWNrZXJdPVwiY3BvRGF0ZVJlZlwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3JtQ29udHJvbE5hbWU9XCJjcG9FeHBpcmF0aW9uRGF0ZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJjcG9EYXRlUmVmLm9wZW4oKVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5jcG9FeHBpcmF0aW9uRGF0ZVwiICA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZGF0ZXBpY2tlci10b2dnbGUgW2Zvcl09XCJjcG9EYXRlUmVmXCIgbWF0U3VmZml4PjwvbWF0LWRhdGVwaWNrZXItdG9nZ2xlPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWRhdGVwaWNrZXIgI2Nwb0RhdGVSZWY+PC9tYXQtZGF0ZXBpY2tlcj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIDxicj5cclxuICAgICAgICAgICAgICAgICAgICA8YnI+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+VmljdGltIGhhcyBhIFN1cHBvcnQgU3lzdGVtIGluIFBsYWNlPyA8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWdyb3VwIGZvcm1Db250cm9sTmFtZT1cInN1cHBvcnRJblBsYWNlRmxhZ1wiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5zdXBwb3J0SW5QbGFjZUZsYWdcIiAgKGNoYW5nZSk9XCJyYWRpb1N1cHBvcnRDaGFuZ2UoJGV2ZW50KVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIFt2YWx1ZV09XCJ0cnVlXCI+WWVzPC9tYXQtcmFkaW8tYnV0dG9uPiZuYnNwO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIFt2YWx1ZV09XCJmYWxzZVwiPk5vPC9tYXQtcmFkaW8tYnV0dG9uPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1yYWRpby1ncm91cD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IHBsYWNlaG9sZGVyPVwiXCIgc3R5bGU9XCJkaXNwbGF5OiBub25lXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiAqbmdJZj1cInN1cHBvcnRJblBsYWNlRGl2RmxhZ1wiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPlN1cHBvcnQgdHlwZT8gPC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1zZWxlY3QgI3N1cHBvcnRTZWwgZm9ybUNvbnRyb2xOYW1lPVwidmljdGltU3VwcG9ydHNcIiBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0udmljdGltU3VwcG9ydHNcIiBtdWx0aXBsZT5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgKG1vdXNlbGVhdmUpPVwic3VwcG9ydFNlbC5jbG9zZSgpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtb3B0aW9uIGNvbG9yPVwicHJpbWFyeVwiICpuZ0Zvcj1cImxldCBpdGVtIG9mIHZpY3RpbVN1cHBvcnRUeXBlc1wiIFt2YWx1ZV09XCJpdGVtLnZpY3RpbVN1cHBvcnRUeXBlSWRcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7e2l0ZW0ubmFtZX19XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LW9wdGlvbj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtc2VsZWN0PlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBwbGFjZWhvbGRlcj1cIlwiIHN0eWxlPVwiZGlzcGxheTogbm9uZVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG4gICAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5XZWFwb25zIEludm9sdmVkPzwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tZ3JvdXAgZm9ybUNvbnRyb2xOYW1lPVwid2VhcG9uSW52b2x2ZWRGbGFnXCIgKGNoYW5nZSk9XCJyYWRpb1dlYXBvbkNoYW5nZSgkZXZlbnQpXCIgWyhuZ01vZGVsKV09XCJlZGl0VmljdGltLndlYXBvbkludm9sdmVkRmxhZ1wiID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIFt2YWx1ZV09XCJ0cnVlXCI+WWVzPC9tYXQtcmFkaW8tYnV0dG9uPiZuYnNwO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1yYWRpby1idXR0b24gY29sb3I9XCJwcmltYXJ5XCIgW3ZhbHVlXT1cImZhbHNlXCI+Tm88L21hdC1yYWRpby1idXR0b24+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtcmFkaW8tZ3JvdXA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IHBsYWNlaG9sZGVyPVwiXCIgc3R5bGU9XCJkaXNwbGF5OiBub25lXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiAqbmdJZj1cIndlYXBvbkludm9sdmVkRGl2RmxhZ1wiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5XZWFwb24gVHlwZTwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1zZWxlY3QgICN3ZWFwb25TZWwgZm9ybUNvbnRyb2xOYW1lPVwidmljdGltV2VhcG9uVXNlc1wiIG11bHRpcGxlIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS52aWN0aW1XZWFwb25Vc2VzXCIgKHNlbGVjdGlvbkNoYW5nZSk9XCJjaGVja090aGVyV2VhcG9uKCRldmVudC52YWx1ZSlcIiA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgKG1vdXNlbGVhdmUpPVwid2VhcG9uU2VsLmNsb3NlKClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LW9wdGlvbiBjb2xvcj1cInByaW1hcnlcIiAqbmdGb3I9XCJsZXQgaXRlbSBvZiB3ZWFwb25UeXBlc1wiIFt2YWx1ZV09XCJpdGVtLndlYXBvblR5cGVJZFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3tpdGVtLm5hbWV9fVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LW9wdGlvbj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1zZWxlY3Q+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgcGxhY2Vob2xkZXI9XCJcIiBzdHlsZT1cImRpc3BsYXk6IG5vbmVcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2ICpuZ0lmPVwib3RoZXJXZWFwb25GbGFnXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPk90aGVyIFdlYXBvbjoqIDwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgIGZvcm1Db250cm9sTmFtZT1cIm90aGVyV2VhcG9uXCIgPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaGVscC1ibG9ja1wiICpuZ0lmPVwidmljdGltRm9ybS5nZXQoJ290aGVyV2VhcG9uJykuZXJyb3JzXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgnb3RoZXJXZWFwb24nKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnb3RoZXJXZWFwb24nKS50b3VjaGVkKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yPjxzdHJvbmc+T3RoZXIgd2VhcG9uIGlzIHJlcXVpcmVkLjwvc3Ryb25nPjwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuXHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8YnI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPldhcyBPZmZlbmRlciB1bmRlciB0aGUgaW5mbHVlbmNlIG9mIGFsY29ob2wgYXQgdGhlIHRpbWUgb2YgdGhlIG9mZmVuc2U/PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tZ3JvdXAgZm9ybUNvbnRyb2xOYW1lPVwiYWxjb2hvbFVzZUZsYWdcIiBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uYWxjb2hvbFVzZUZsYWdcIiA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIFt2YWx1ZV09XCJ0cnVlXCI+WWVzPC9tYXQtcmFkaW8tYnV0dG9uPiZuYnNwO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIiBbdmFsdWVdPVwiZmFsc2VcIj5ObzwvbWF0LXJhZGlvLWJ1dHRvbj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LXJhZGlvLWdyb3VwPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IHBsYWNlaG9sZGVyPVwiXCIgc3R5bGU9XCJkaXNwbGF5OiBub25lXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5XYXMgT2ZmZW5kZXIgdW5kZXIgdGhlIGluZmx1ZW5jZSBvZiBkcnVncyBhdCB0aGUgdGltZSBvZiB0aGUgb2ZmZW5zZT88L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtcmFkaW8tZ3JvdXAgZm9ybUNvbnRyb2xOYW1lPVwiZHJ1Z1VzZUZsYWdcIiAoY2hhbmdlKT1cInJhZGlvRHJ1Z0NoYW5nZSgkZXZlbnQpXCIgWyhuZ01vZGVsKV09XCJlZGl0VmljdGltLmRydWdVc2VGbGFnXCIgID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIiBbdmFsdWVdPVwidHJ1ZVwiPlllczwvbWF0LXJhZGlvLWJ1dHRvbj4mbmJzcDtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXJhZGlvLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIiBbdmFsdWVdPVwiZmFsc2VcIj5ObzwvbWF0LXJhZGlvLWJ1dHRvbj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtcmFkaW8tZ3JvdXA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBwbGFjZWhvbGRlcj1cIlwiIHN0eWxlPVwiZGlzcGxheTogbm9uZVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgKm5nSWY9XCJkcnVnVXNlRGl2RmxhZ1wiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkRydWc6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1zZWxlY3QgICNkcnVnU2VsIGZvcm1Db250cm9sTmFtZT1cInZpY3RpbURydWdVc2VzXCIgbXVsdGlwbGUgICAoc2VsZWN0aW9uQ2hhbmdlKT1cImNoZWNrT3RoZXJEcnVnKCRldmVudC52YWx1ZSlcIiA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IChtb3VzZWxlYXZlKT1cImRydWdTZWwuY2xvc2UoKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtb3B0aW9uIGNvbG9yPVwicHJpbWFyeVwiICpuZ0Zvcj1cImxldCBpdGVtIG9mIGRydWdzXCIgW3ZhbHVlXT1cIml0ZW0uZHJ1Z1R5cGVJZFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7aXRlbS5uYW1lfX1cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtb3B0aW9uPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LXNlbGVjdD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgcGxhY2Vob2xkZXI9XCJcIiBzdHlsZT1cImRpc3BsYXk6IG5vbmVcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiAqbmdJZj1cIm90aGVyRHJ1Z0ZsYWdcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+T3RoZXIgRHJ1ZzoqIDwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgIGZvcm1Db250cm9sTmFtZT1cIm90aGVyRHJ1Z1wiID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCdvdGhlckRydWcnKS5lcnJvcnNcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJiYgKHZpY3RpbUZvcm0uZ2V0KCdvdGhlckRydWcnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnb3RoZXJEcnVnJykudG91Y2hlZClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPk90aGVyIGRydWcgaXMgcmVxdWlyZWQuPC9zdHJvbmc+PC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJyPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQWNjZXNzIFJpc2s6IDEgdGhydSAxMCAoMTAgZ3JlYXRlc3Qgcmlzayk6ICZuYnNwOzxiPiB7e2VkaXRWaWN0aW0uYWNjZXNzUmlza319PC9iPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LXNsaWRlclxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3JtQ29udHJvbE5hbWU9XCJhY2Nlc3NSaXNrXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGh1bWJMYWJlbD1cInRydWVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZGlzcGxheVdpdGhdPVwiZm9ybWF0TGFiZWxcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtaW49XCIxXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4PVwiMTBcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uYWNjZXNzUmlza1wiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID48aW5wdXQgbWF0U2xpZGVyVGh1bWIgLz48L21hdC1zbGlkZXI+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1jYXJkPlxyXG5cclxuXHJcbiAgICAgICAgICAgICAgPGJyPjxicj48YnI+XHJcbiAgICAgICAgICAgIDwvbWF0LXRhYj5cclxuXHJcbiAgICAgICAgICAgPG1hdC10YWIgICpuZ0lmPVwiZ3VhcmRpYW5UYWJGbGFnXCIgbGFiZWw9XCJMZWdhbCBHdWFyZGlhblwiPlxyXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPSdjb250YWluZXInPlxyXG4gICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5HdWFyZGlhbiBMYXN0IE5hbWU6PC9tYXQtbGFiZWw+XHJcbiAgICAgICA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uXHJcblxyXG4gICAgICAgICAgICAgICAgPCEtLSA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgICAgPG1hdC1zZWxlY3QgcGxhY2Vob2xkZXI9XCJDaG9vc2VcIiBmb3JtQ29udHJvbE5hbWU9XCJndWFyZGlhbkdlbmRlclwiIFsobmdNb2RlbCldPVwiZWRpdFZpY3RpbS5ndWFyZGlhbkdlbmRlclwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgPG1hdC1vcHRpb24gKm5nRm9yPVwibGV0IGl0ZW0gb2YgZ2VuZGVyc1wiIFt2YWx1ZV09XCJpdGVtLmdlbmRlckNvZGVcIj57e2l0ZW0ubmFtZX19PC9tYXQtb3B0aW9uPlxyXG4gICAgICAgICAgICAgICAgICAgIDwvbWF0LXNlbGVjdD5cclxuICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD4gLS0+XHJcblxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5EYXRlIG9mIEJpcnRoOjwvbWF0LWxhYmVsPlxyXG4gICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXRcclxuICAgICAgICAgICAgICAgICAgICAgW21hdERhdGVwaWNrZXJdPVwiZ3VhcmRpYW5EYXRlUmVmXCJcclxuICAgICAgICAgICAgICAgICAgICAgZm9ybUNvbnRyb2xOYW1lPVwiZ3VhcmRpYW5CaXJ0aERhdGVcIlxyXG4gICAgICAgICAgICAgICAgICAgICBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uZ3VhcmRpYW5CaXJ0aERhdGVcIlxyXG4gICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwiZ3VhcmRpYW5EYXRlUmVmLm9wZW4oKVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgICAgICAgIDxtYXQtZGF0ZXBpY2tlci10b2dnbGUgW2Zvcl09XCJndWFyZGlhbkRhdGVSZWZcIiBtYXRTdWZmaXg+PC9tYXQtZGF0ZXBpY2tlci10b2dnbGU+XHJcbiAgICAgICAgICAgICAgICAgICAgPG1hdC1kYXRlcGlja2VyICNndWFyZGlhbkRhdGVSZWY+PC9tYXQtZGF0ZXBpY2tlcj5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgPGRpdj48L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkID5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1jaGVja2JveFxyXG4gICAgICAgICAgICAgICAgICBjb2xvciA9IFwicHJpbWFyeVwiXHJcbiAgICAgICAgICAgICAgICAgIGZvcm1Db250cm9sTmFtZT1cImd1YXJkaWFuTm9QaG9uZUZsYWdcIj5cclxuICAgICAgICAgICAgICAgICAgTm8gUGhvbmUgKElmIHRoZXJlIGlzIG5vIHBob25lLCB0aGUgcGhvbmUgZmllbGRzIGFyZSBubyBsb25nZXIgcmVxdWlyZWQpPC9tYXQtY2hlY2tib3g+XHJcbiAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBwbGFjZWhvbGRlcj1cIlwiIHN0eWxlPVwiZGlzcGxheTogbm9uZTtcIj5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG5cclxuICAgICAgICAgICAgICAgIDxkaXY+PC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8bWF0LWNhcmQ+XHJcbiAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQgPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkd1YXJkaWFuIEhvbWUgUGhvbmU6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgPGlucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgaWQ9XCJ0ZWxcIlxyXG4gICAgICAgICAgICAgICAgICAgIG1hdElucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgcGhvbmVNYXNrXHJcbiAgICAgICAgICAgICAgICAgICAgW3ByZVZhbHVlXT1cImVkaXRWaWN0aW0uZ3VhcmRpYW5Ib21lUGhvbmVcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtwaG9uZUNvbnRyb2xdPVwiZ3VhcmRpYW5Ib21lUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xdPVwiZ3VhcmRpYW5Ib21lUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICBtYXhsZW5ndGg9XCIxNFwiLz5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbkhvbWVQaG9uZScpLmVycm9yc1xyXG4gICAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgnZ3VhcmRpYW5Ib21lUGhvbmUnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnZ3VhcmRpYW5Ib21lUGhvbmUnKS50b3VjaGVkKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3I+PHN0cm9uZz5HdWFyZGlhbiBob21lIHBob25lIG51bWJlciBmb3JtYXQgaXMgbm90IGNvcnJlY3QuPC9zdHJvbmc+PC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuXHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZCA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+R3VhcmRpYW4gQ2VsbCBQaG9uZTo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgIDxpbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgaWQ9XCJ0ZWw0XCJcclxuICAgICAgICAgICAgICAgICAgIG1hdElucHV0XHJcbiAgICAgICAgICAgICAgICAgICBwaG9uZU1hc2tcclxuICAgICAgICAgICAgICAgICAgIFtwcmVWYWx1ZV09XCJlZGl0VmljdGltLmd1YXJkaWFuQ2VsbFBob25lXCJcclxuICAgICAgICAgICAgICAgICAgIFtwaG9uZUNvbnRyb2xdPVwiZ3VhcmRpYW5DZWxsUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJndWFyZGlhbkNlbGxQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgbWF4bGVuZ3RoPVwiMTRcIi8+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJoZWxwLWJsb2NrXCIgKm5nSWY9XCJ2aWN0aW1Gb3JtLmdldCgnZ3VhcmRpYW5DZWxsUGhvbmUnKS5lcnJvcnNcclxuICAgICAgICAgICAgICAgICAgICAgJiYgKHZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbkNlbGxQaG9uZScpLmRpcnR5IHx8IHZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbkNlbGxQaG9uZScpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPkd1YXJkaWFuIENlbGwgcGhvbmUgbnVtYmVyIGZvcm1hdCBpcyBub3QgY29ycmVjdC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkID5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5HdWFyZGlhbiBXb3JrIFBob25lOjwvbWF0LWxhYmVsPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBpZD1cInRlbDVcIlxyXG4gICAgICAgICAgICAgICAgICAgIG1hdElucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgcGhvbmVNYXNrXHJcbiAgICAgICAgICAgICAgICAgICAgW3ByZVZhbHVlXT1cImVkaXRWaWN0aW0uZ3VhcmRpYW5Xb3JrUGhvbmVcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtwaG9uZUNvbnRyb2xdPVwiZ3VhcmRpYW5Xb3JrUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xdPVwiZ3VhcmRpYW5Xb3JrUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICBtYXhsZW5ndGg9XCIxNFwiLz5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbldvcmtQaG9uZScpLmVycm9yc1xyXG4gICAgICAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgnZ3VhcmRpYW5Xb3JrUGhvbmUnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnZ3VhcmRpYW5Xb3JrUGhvbmUnKS50b3VjaGVkKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3I+PHN0cm9uZz5HdWFyZGlhbiB3b3JrIHBob25lIG51bWJlciBmb3JtYXQgaXMgbm90IGNvcnJlY3QuPC9zdHJvbmc+PC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcblxyXG5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgPC9tYXQtY2FyZD5cclxuXHJcbiAgICAgICAgICAgICAgPGRpdj48L2Rpdj5cclxuXHJcbiAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+R3VhcmRpYW4gRW1haWw6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0IGZvcm1Db250cm9sTmFtZT1cImd1YXJkaWFuRW1haWxcIiBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uZ3VhcmRpYW5FbWFpbFwiICA+XHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbkVtYWlsJykuZXJyb3JzXHJcbiAgICAgICAgICAgICAgICAgICAgJiYgKHZpY3RpbUZvcm0uZ2V0KCdndWFyZGlhbkVtYWlsJykuZGlydHkgfHwgdmljdGltRm9ybS5nZXQoJ2d1YXJkaWFuRW1haWwnKS50b3VjaGVkKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPkd1YXJkaWFuIGVtYWlsIGZvcm1hdCBpcyBub3QgY29ycmVjdC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICA8ZGl2PjwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICAgIDxkaXY+XHJcbiAgICAgICAgICAgICAgICA8YXBwLXNtYXJ0LWFkZHJlc3NcclxuXHJcbiAgICAgICAgICAgICAgICBbc2hvd1BzYV09XCJ0cnVlXCJcclxuICAgICAgICAgICAgICAgIFttb2RpZmllZEJ5XT1cInN0YWZmSWRcIlxyXG4gICAgICAgICAgICAgICAgW2lkXT1cImd1YXJkaWFuQWRkcmVzc0lkXCJcclxuICAgICAgICAgICAgICAgIChhZGRyZXNzSWRDaGFuZ2UpPVwib25HdWFyZGlhbkFkZHJlc3NDaGFuZ2UoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgICBbb3V0bGluZV09XCJ0cnVlXCJcclxuICAgICAgICAgICAgICAgIHJlYWRvbmx5PVwiZmFsc2VcIlxyXG4gICAgICAgICAgICAgICAgW3Jvd0hlaWdodF09XCI4MFwiXHJcbiAgICAgICAgICAgICAgICAoaXNWYWxpZCk9XCJmYWxzZVwiXHJcbiAgICAgICAgICAgICAgICBbYWRkcmVzc1ZhbGlkYXRvcnNdPVwiYWRkcmVzc1ZhbGlkYXRvcnNcIlxyXG4gICAgICAgICAgICAgICAgI2d1YXJkaWFuQWRkcmVzc0NvbXBvbmVudFxyXG4gICAgICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgICAgPC9hcHAtc21hcnQtYWRkcmVzcz5cclxuICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICA8YnI+PGJyPjxicj5cclxuICAgICAgICAgICAgPC9tYXQtdGFiPlxyXG5cclxuICAgICAgICAgICAgPCEtLWFkdm9jYXRlLS0+XHJcblxyXG4gICAgICAgICAgICAgIDxtYXQtdGFiICAqbmdJZj1cImFkdm9jYXRlVGFiRmxhZ1wiIGxhYmVsPVwiQWR2b2NhdGVcIiA+XHJcbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSdjb250YWluZXInPlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5BZHZvY2F0ZSBMYXN0IE5hbWU6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgPGlucHV0IG1hdElucHV0ICBmb3JtQ29udHJvbE5hbWU9XCJhZHZvY2F0ZUxhc3ROYW1lXCIgWyhuZ01vZGVsKV09XCJlZGl0VmljdGltLmFkdm9jYXRlT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AgICAgICAgICA8bWF0LWNoZWNrYm94XHJcbiAgICAgICAgICAgICAgICAgIGNvbG9yID0gXCJwcmltYXJ5XCJcclxuICAgICAgICAgICAgICAgICAgZm9ybUNvbnRyb2xOYW1lPVwiYWR2b2NhdGVOb1Bob25lRmxhZ1wiXHJcblxyXG4gICAgICAgICAgICAgICAgICBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uYWR2b2NhdGVOb1Bob25lRmxhZ1wiID5cclxuICAgICAgICAgICAgICAgICAgTm8gUGhvbmUgKElmIHRoZXJlIGlzIG5vIHBob25lLCB0aGUgcGhvbmUgZmllbGRzIGFyZSBubyBsb25nZXIgcmVxdWlyZWQpPC9tYXQtY2hlY2tib3g+XHJcbiAgICAgICAgICAgICAgICAgIDxpbnB1dCBtYXRJbnB1dCBwbGFjZWhvbGRlcj1cIlwiIHN0eWxlPVwiZGlzcGxheTogbm9uZTtcIj5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgPGRpdj48L2Rpdj5cclxuICAgICAgICAgICAgICAgIDxtYXQtY2FyZD5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZCA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+QWR2b2NhdGUgSG9tZSBQaG9uZTo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBpZD1cInRlbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgbWF0SW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBwaG9uZU1hc2tcclxuICAgICAgICAgICAgICAgICAgICBbcHJlVmFsdWVdPVwiZWRpdFZpY3RpbS5hZHZvY2F0ZUhvbWVQaG9uZVwiXHJcbiAgICAgICAgICAgICAgICAgICAgW3Bob25lQ29udHJvbF09XCJhZHZvY2F0ZUhvbWVQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbF09XCJhZHZvY2F0ZUhvbWVQaG9uZUNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICAgIG1heGxlbmd0aD1cIjE0XCIvPlxyXG5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImhlbHAtYmxvY2tcIiAqbmdJZj1cInZpY3RpbUZvcm0uZ2V0KCdhZHZvY2F0ZUhvbWVQaG9uZScpLmVycm9yc1xyXG4gICAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgnYWR2b2NhdGVIb21lUGhvbmUnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnYWR2b2NhdGVIb21lUGhvbmUnKS50b3VjaGVkKVwiPlxyXG4gICAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3I+PHN0cm9uZz5BZHZvY2F0ZSBob21lIG51bWJlciBmb3JtYXQgaXMgbm90IGNvcnJlY3QuPC9zdHJvbmc+PC9tYXQtZXJyb3I+XHJcbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICAgIDwvbWF0LWZvcm0tZmllbGQ+XHJcblxyXG4gICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkFkdm9jYXRlIENlbGwgUGhvbmU6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgPGlucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgaWQ9XCJ0ZWw3XCJcclxuICAgICAgICAgICAgICAgICAgICBtYXRJbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgIHBob25lTWFza1xyXG4gICAgICAgICAgICAgICAgICAgIFtwcmVWYWx1ZV09XCJlZGl0VmljdGltLmFkdm9jYXRlQ2VsbFBob25lXCJcclxuICAgICAgICAgICAgICAgICAgICBbcGhvbmVDb250cm9sXT1cImFkdm9jYXRlQ2VsbFBob25lQ29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cImFkdm9jYXRlQ2VsbFBob25lQ29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgbWF4bGVuZ3RoPVwiMTRcIi8+XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJoZWxwLWJsb2NrXCIgKm5nSWY9XCJ2aWN0aW1Gb3JtLmdldCgnYWR2b2NhdGVDZWxsUGhvbmUnKS5lcnJvcnNcclxuICAgICAgICAgICAgICAgICAgICAmJiAodmljdGltRm9ybS5nZXQoJ2Fkdm9jYXRlQ2VsbFBob25lJykuZGlydHkgfHwgdmljdGltRm9ybS5nZXQoJ2Fkdm9jYXRlQ2VsbFBob25lJykudG91Y2hlZClcIj5cclxuICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yPjxzdHJvbmc+QWR2b2NhdGUgY2VsbCBudW1iZXIgZm9ybWF0IGlzIG5vdCBjb3JyZWN0Ljwvc3Ryb25nPjwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuXHJcblxyXG4gICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICA8bWF0LWZvcm0tZmllbGQ+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtbGFiZWw+QWR2b2NhdGUgV29yayBQaG9uZTo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICA8aW5wdXRcclxuICAgICAgICAgICAgICAgICAgICBpZD1cInRlbDhcIlxyXG4gICAgICAgICAgICAgICAgICAgIG1hdElucHV0XHJcbiAgICAgICAgICAgICAgICAgICAgcGhvbmVNYXNrXHJcbiAgICAgICAgICAgICAgICAgICAgW3ByZVZhbHVlXT1cImVkaXRWaWN0aW0uYWR2b2NhdGVXb3JrUGhvbmVcIlxyXG4gICAgICAgICAgICAgICAgICAgIFtwaG9uZUNvbnRyb2xdPVwiYWR2b2NhdGVXb3JrUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xdPVwiYWR2b2NhdGVXb3JrUGhvbmVDb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgICBtYXhsZW5ndGg9XCIxNFwiLz5cclxuXHJcblxyXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJoZWxwLWJsb2NrXCIgKm5nSWY9XCJ2aWN0aW1Gb3JtLmdldCgnYWR2b2NhdGVXb3JrUGhvbmUnKS5lcnJvcnNcclxuICAgICAgICAgICAgICAgICAgICAmJiAodmljdGltRm9ybS5nZXQoJ2Fkdm9jYXRlV29ya1Bob25lJykuZGlydHkgfHwgdmljdGltRm9ybS5nZXQoJ2Fkdm9jYXRlV29ya1Bob25lJykudG91Y2hlZClcIj5cclxuICAgICAgICAgICAgICAgICAgICA8bWF0LWVycm9yPjxzdHJvbmc+QWR2b2NhdGUgd29yayBudW1iZXIgZm9ybWF0IGlzIG5vdCBjb3JyZWN0Ljwvc3Ryb25nPjwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuXHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgPC9tYXQtY2FyZD5cclxuXHJcbiAgICAgICAgICAgICAgICA8ZGl2PjwvZGl2PlxyXG5cclxuICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5BZHZvY2F0ZSBFbWFpbDo8L21hdC1sYWJlbD5cclxuICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgZm9ybUNvbnRyb2xOYW1lPVwiYWR2b2NhdGVFbWFpbFwiICBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uYWR2b2NhdGVFbWFpbFwiID5cclxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaGVscC1ibG9ja1wiICpuZ0lmPVwidmljdGltRm9ybS5nZXQoJ2Fkdm9jYXRlRW1haWwnKS5lcnJvcnNcclxuICAgICAgICAgICAgICAgICAgICAmJiAodmljdGltRm9ybS5nZXQoJ2Fkdm9jYXRlRW1haWwnKS5kaXJ0eSB8fCB2aWN0aW1Gb3JtLmdldCgnYWR2b2NhdGVFbWFpbCcpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPG1hdC1lcnJvcj48c3Ryb25nPkFkdm9jYXRlIGVtYWlsIGZvcm1hdCBpcyBub3QgY29ycmVjdC48L3N0cm9uZz48L21hdC1lcnJvcj5cclxuICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDxkaXY+PC9kaXY+XHJcblxyXG5cclxuICAgICAgICAgICAgICA8ZGl2ID5cclxuICAgICAgICAgICAgICA8YXBwLXNtYXJ0LWFkZHJlc3NcclxuICAgICAgICAgICAgICBbc2hvd1BzYV09XCJ0cnVlXCJcclxuICAgICAgICAgICAgICBbbW9kaWZpZWRCeV09XCJzdGFmZklkXCJcclxuICAgICAgICAgICAgICBbaWRdPVwiYWR2b2NhdGVBZGRyZXNzSWRcIlxyXG4gICAgICAgICAgICAgIChhZGRyZXNzSWRDaGFuZ2UpPVwib25BZHZvY2F0ZUFkZHJlc3NDaGFuZ2UoJGV2ZW50KVwiXHJcbiAgICAgICAgICAgICAgW291dGxpbmVdPVwidHJ1ZVwiXHJcbiAgICAgICAgICAgICAgcmVhZG9ubHk9XCJmYWxzZVwiXHJcbiAgICAgICAgICAgICAgW3Jvd0hlaWdodF09XCI4MFwiXHJcbiAgICAgICAgICAgICAgKGlzVmFsaWQpPVwiZmFsc2VcIlxyXG4gICAgICAgICAgICAgIFthZGRyZXNzVmFsaWRhdG9yc109XCJhZGRyZXNzVmFsaWRhdG9yc1wiXHJcbiAgICAgICAgICAgICAgI2Fkdm9jYXRlQWRkcmVzc0NvbXBvbmVudCA+XHJcbiAgICAgICAgICAgICAgPC9hcHAtc21hcnQtYWRkcmVzcz5cclxuICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICA8YnI+PGJyPjxicj5cclxuICAgICAgICAgICAgPC9tYXQtdGFiPlxyXG5cclxuXHJcbiAgICAgICAgICAgICA8bWF0LXRhYiAgbGFiZWw9XCJFbWVyZ2VuY3kgQ29udGFjdFwiPlxyXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz0nY29udGFpbmVyJz5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZm9ybS1maWVsZD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWxhYmVsPkVtZXJnZW5jeSBDb250YWN0IE5hbWU6PC9tYXQtbGFiZWw+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgbWF0SW5wdXQgIGZvcm1Db250cm9sTmFtZT1cImVtZXJnZW5jeUNvbnRhY3RcIiBbKG5nTW9kZWwpXT1cImVkaXRWaWN0aW0uZW1lcmdlbmN5Q29udGFjdFwiICA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtZm9ybS1maWVsZD5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1mb3JtLWZpZWxkPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1sYWJlbD5FbWVyZ2VuY3kgUGhvbmUgTnVtYmVyOjwvbWF0LWxhYmVsPlxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ9XCJ0ZWxcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF0SW5wdXRcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBob25lTWFza1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3ByZVZhbHVlXT1cImVkaXRWaWN0aW0uZW1lcmdlbmN5Q29udGFjdFBob25lXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtwaG9uZUNvbnRyb2xdPVwiZW1lcmdlbmN5Q29udGFjdFBob25lQ29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xdPVwiZW1lcmdlbmN5Q29udGFjdFBob25lQ29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhsZW5ndGg9XCIxNFwiLz5cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJoZWxwLWJsb2NrXCIgKm5nSWY9XCJ2aWN0aW1Gb3JtLmdldCgnZW1lcmdlbmN5Q29udGFjdFBob25lJykuZXJyb3JzXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICYmICh2aWN0aW1Gb3JtLmdldCgnZW1lcmdlbmN5Q29udGFjdFBob25lJykuZGlydHkgfHwgdmljdGltRm9ybS5nZXQoJ2VtZXJnZW5jeUNvbnRhY3RQaG9uZScpLnRvdWNoZWQpXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtZXJyb3I+PHN0cm9uZz5FbWVyZ2VuY3kgY29udGFjdCBudW1iZXIgZm9ybWF0IGlzIG5vdCBjb3JyZWN0Ljwvc3Ryb25nPjwvbWF0LWVycm9yPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG5cclxuICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPGJyPjxicj48YnI+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XHJcblxyXG5cclxuICAgICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaW5uZXJcIj5cclxuICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiAgbWF0LXN0cm9rZWQtYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIChjbGljayk9XCJzYXZlVmljdGltKClcIiBbZGlzYWJsZWRdPVwiIXZpY3RpbUZvcm0udmFsaWRcIiAgPlNhdmUgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICAmbmJzcDsmbmJzcDtcclxuICAgICAgICAgICAgICAgICAgPGRpdiAqbmdJZj1cInNob3dEZWxldGVcIiBjbGFzcz1cImlubmVyXCI+XHJcbiAgICAgICAgICAgICAgICAgIDxidXR0b24gIG1hdC1zdHJva2VkLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIiAoY2xpY2spPVwiZGVsZXRlVmljdGltKClcIj5EZWxldGUgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICZuYnNwOyZuYnNwO1xyXG4gICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaW5uZXJcIj5cclxuICAgICAgICAgICAgICAgICAgPGJ1dHRvbiAgbWF0LXN0cm9rZWQtYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIChjbGljayk9XCJjYW5jZWwoKVwiPkNsZWFyIDwvYnV0dG9uPlxyXG4gICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICZuYnNwOyZuYnNwO1xyXG4gICAgICAgICAgICAgICAgICA8YnV0dG9uIG1hdC1zdHJva2VkLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIiAgKGNsaWNrKT1cImJhY2soKVwiPkJhY2s8L2J1dHRvbj5cclxuXHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG5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XQgcm93OyBjb2x1bW5zOlsnY29udGFjdERhdGUnLCAndmljdGltQ29udGFjdE1ldGhvZCcsJ25leHRDb250YWN0RGF0ZScsICdzdGFmZicsICdjb21tZW50JywgJ2NvbnRhY3RJZCddO1wiIGNsYXNzPVwiZXhhbXBsZS1yb3dcIj48L21hdC1yb3c+XHJcbiAgICAgICAgICAgIDwvbWF0LXRhYmxlPlxyXG5cclxuXHJcbiAgICAgICAgPC9kaXY+XHJcblxyXG4gIDwvbWF0LWNhcmQtY29udGVudD5cclxuPC9tYXQtY2FyZD5cclxuIl19