vcomply-workflow-engine 6.1.3 → 6.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.mjs +34 -7
- package/esm2022/lib/constants/api.constants.mjs +1 -6
- package/esm2022/lib/constants/assets.constants.mjs +2 -1
- package/esm2022/lib/constants/policy.constant.mjs +6 -0
- package/esm2022/lib/constants/regix.constants.mjs +4 -0
- package/esm2022/lib/constants/responsibility.mjs +8 -0
- package/esm2022/lib/interfaces/policy.interface.mjs +2 -0
- package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
- package/esm2022/lib/more-option/more-option.component.mjs +191 -26
- package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +2 -3
- package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +7 -4
- package/esm2022/lib/services/common.service.mjs +1 -40
- package/esm2022/lib/services/iframe.service.mjs +1 -14
- package/esm2022/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.mjs +6 -3
- package/esm2022/lib/sharedComponents/category-list-selection/category-list-selection/category-list-selection.component.mjs +7 -7
- package/esm2022/lib/sharedComponents/category-list-selection/category-list-selection.module.mjs +4 -27
- package/esm2022/lib/sharedComponents/format-and-evidence/format-and-evidence.component.mjs +21 -10
- package/esm2022/lib/sharedComponents/frequency/frequency-annual/frequency-annual.component.mjs +1 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-biannual/frequency-biannual.component.mjs +1 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-container/frequency-container.component.mjs +5 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +1 -2
- package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +2 -6
- package/esm2022/lib/sharedComponents/frequency/frequency-one-time/frequency-one-time.component.mjs +2 -3
- package/esm2022/lib/sharedComponents/frequency/frequency-ongoing/frequency-ongoing.component.mjs +1 -3
- package/esm2022/lib/sharedComponents/frequency/frequency-quarterly/frequency-quarterly.component.mjs +1 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-random/frequency-random.component.mjs +2 -9
- package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +2 -4
- package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +5 -267
- package/esm2022/lib/sharedComponents/group-users-list/group-users-list.component.mjs +2 -5
- package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.component.mjs +16 -47
- package/esm2022/lib/sharedComponents/pipes/risk-class.pipe.mjs +19 -0
- package/esm2022/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +17 -45
- package/esm2022/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.mjs +10 -13
- package/esm2022/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.mjs +35 -62
- package/esm2022/lib/workflow/shared/services/grc.service.mjs +2 -15
- package/esm2022/lib/workflow/shared/workflow-pipes/workflow-pipes.module.mjs +3 -8
- package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +453 -294
- package/esm2022/lib/workflow-engine-container/api-constants.mjs +2 -3
- package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +53 -32
- package/esm2022/lib/workflow-engine.module.mjs +16 -11
- package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +29 -46
- package/esm2022/lib/workflow-program/constants.mjs +11 -3
- package/esm2022/lib/workflow-program/create-program-ui/define-framework-listing/pipes/tooltip-message.pipe.mjs +7 -1
- package/esm2022/lib/workflow-program/create-program-ui/user-group-list/user-group-list.component.mjs +11 -13
- package/esm2022/lib/workflow-program/workflow-program.component.mjs +311 -340
- package/esm2022/lib/workflow-services/policy.service.mjs +9 -8
- package/esm2022/lib/workflow-services/programs.service.mjs +114 -26
- package/esm2022/lib/workflow-services/responsibility.service.mjs +56 -60
- package/fesm2022/vcomply-workflow-engine.mjs +18654 -19161
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.d.ts +1 -0
- package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +3 -0
- package/lib/add-multiple-risk/add-multiple-risk.component.d.ts +1 -0
- package/lib/constants/api.constants.d.ts +0 -5
- package/lib/constants/assets.constants.d.ts +1 -0
- package/lib/constants/policy.constant.d.ts +2 -0
- package/lib/constants/regix.constants.d.ts +3 -0
- package/lib/constants/responsibility.d.ts +7 -0
- package/lib/interfaces/policy.interface.d.ts +5 -0
- package/lib/interfaces/responsibilty.interface.d.ts +13 -13
- package/lib/log-an-issue/log-an-issue.component.d.ts +1 -0
- package/lib/more-option/more-option.component.d.ts +1 -0
- package/lib/report-a-case/components/assignee/assignee.component.d.ts +1 -0
- package/lib/report-a-case/components/case-assignees/case-assignees.component.d.ts +1 -0
- package/lib/report-a-case/components/case-category/case-category.component.d.ts +1 -0
- package/lib/report-a-case/components/case-details/case-details.component.d.ts +1 -0
- package/lib/report-a-case/components/case-owners/case-owners.component.d.ts +1 -0
- package/lib/report-a-case/components/case-priority/case-priority.component.d.ts +1 -0
- package/lib/report-a-case/components/case-resolution-deadline/case-resolution-deadline.component.d.ts +1 -0
- package/lib/report-a-case/components/case-type-dropdown/case-dropdown.component.d.ts +1 -0
- package/lib/report-a-case/components/due-date/due-date.component.d.ts +1 -0
- package/lib/report-a-case/components/field-holder/field-holder.component.d.ts +1 -0
- package/lib/report-a-case/components/linked assessment/linked-assessment.component.d.ts +1 -0
- package/lib/report-a-case/components/linked-responsibilities/linked-responsibilities.component.d.ts +1 -0
- package/lib/report-a-case/components/rc-details/rc-details.component.d.ts +1 -0
- package/lib/report-a-case/components/report-date/report-date.component.d.ts +1 -0
- package/lib/report-a-case/workflow-case/workflow-case.component.d.ts +1 -0
- package/lib/services/common.service.d.ts +0 -28
- package/lib/services/iframe.service.d.ts +0 -6
- package/lib/sharedComponents/approval-workflow/approval-create-form/approval-create-form.component.d.ts +1 -0
- package/lib/sharedComponents/assessment-editor/components/build/image-choice/image-choice.component.d.ts +1 -0
- package/lib/sharedComponents/assessment-editor/components/build/thank-you/thank-you.component.d.ts +1 -0
- package/lib/sharedComponents/assessment-editor/components/build/welcome/welcome.component.d.ts +1 -0
- package/lib/sharedComponents/assessment-editor/components/logic/logic.component.d.ts +1 -0
- package/lib/sharedComponents/assessment-editor/components/logic-questions/logic-image-choice/logic-image-choice.component.d.ts +1 -0
- package/lib/sharedComponents/assessment-editor/components/preview/thank-you/thank-you.component.d.ts +1 -0
- package/lib/sharedComponents/assessment-editor/components/preview/welcome/welcome.component.d.ts +1 -0
- package/lib/sharedComponents/assessment-editor/components/welcome-thankyou/welcome-thankyou.component.d.ts +1 -0
- package/lib/sharedComponents/assessment-list/assessment-list.component.d.ts +1 -0
- package/lib/sharedComponents/audit-category-list/audit-category-list.component.d.ts +1 -0
- package/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.d.ts +6 -0
- package/lib/sharedComponents/category-list/category-list.component.d.ts +1 -0
- package/lib/sharedComponents/category-list-selection/category-list-selection/category-list-selection.component.d.ts +1 -0
- package/lib/sharedComponents/category-list-selection/category-list-selection.module.d.ts +5 -5
- package/lib/sharedComponents/category-multiselect/category-multi-select.component.d.ts +1 -0
- package/lib/sharedComponents/checkbox-list/checkbox-list.component.d.ts +1 -0
- package/lib/sharedComponents/format-and-evidence/format-and-evidence.component.d.ts +5 -1
- package/lib/sharedComponents/framework-list/framework-list.component.d.ts +1 -0
- package/lib/sharedComponents/frequency/frequency-random/frequency-random.component.d.ts +0 -1
- package/lib/sharedComponents/frequency/frequency-responsibility-list/frequency-responsibility-list.component.d.ts +1 -0
- package/lib/sharedComponents/frequency/frequency.service.d.ts +2 -92
- package/lib/sharedComponents/group-users-list/group-users-list.component.d.ts +1 -0
- package/lib/sharedComponents/link-program/link-program/link-program.component.d.ts +1 -0
- package/lib/sharedComponents/link-responsibility/link-responsibility.component.d.ts +1 -2
- package/lib/sharedComponents/owner-list/owner-list.component.d.ts +1 -0
- package/lib/sharedComponents/pipes/risk-class.pipe.d.ts +7 -0
- package/lib/sharedComponents/policy-access/policy-access.component.d.ts +1 -0
- package/lib/sharedComponents/program-listing/program-listing.component.d.ts +1 -0
- package/lib/sharedComponents/radio-list/radio-list.component.d.ts +1 -0
- package/lib/sharedComponents/radio-list-with-pagination/radio-list.component.d.ts +1 -0
- package/lib/sharedComponents/responsibility-centers-list/responsibility-centers-list.component.d.ts +1 -0
- package/lib/sharedComponents/responsibility-risk-selector/responsibility-risk-selector.component.d.ts +1 -0
- package/lib/sharedComponents/review-frequency/review-frequency.component.d.ts +1 -0
- package/lib/sharedComponents/roles-list/roles-list.component.d.ts +1 -0
- package/lib/sharedComponents/select-approvers/select-approvers.component.d.ts +1 -0
- package/lib/sharedComponents/users-radio-list/users-radio-list.component.d.ts +1 -0
- package/lib/ui-kit/pagination/pagination/pagination.component.d.ts +1 -0
- package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +1 -5
- package/lib/workflow/shared/components/attributes/attributes-checkbox/attributes-checkbox.component.d.ts +1 -0
- package/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.d.ts +1 -3
- package/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.d.ts +2 -6
- package/lib/workflow/shared/services/grc.service.d.ts +0 -1
- package/lib/workflow/shared/workflow-pipes/workflow-pipes.module.d.ts +2 -3
- package/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.d.ts +1 -0
- package/lib/workflow-assessment/workflow-assessment.component.d.ts +1 -0
- package/lib/workflow-compliance/workflow-compliance.component.d.ts +11 -32
- package/lib/workflow-engine-container/api-constants.d.ts +0 -1
- package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +2 -5
- package/lib/workflow-engine.module.d.ts +2 -3
- package/lib/workflow-policy/workflow-policy.component.d.ts +1 -9
- package/lib/workflow-program/constants.d.ts +3 -0
- package/lib/workflow-program/create-program-ui/assessment-picker/assessment-picker.component.d.ts +1 -0
- package/lib/workflow-program/create-program-ui/define-framework-listing/define-framework-listing.component.d.ts +1 -0
- package/lib/workflow-program/create-program-ui/pagination/pagination/pagination.component.d.ts +1 -0
- package/lib/workflow-program/create-program-ui/role-list/role-list.component.d.ts +1 -0
- package/lib/workflow-program/create-program-ui/user-group-list/user-group-list.component.d.ts +1 -0
- package/lib/workflow-program/workflow-program.component.d.ts +11 -9
- package/lib/workflow-risk/workflow-risk.component.d.ts +2 -1
- package/lib/workflow-services/policy.service.d.ts +1 -1
- package/lib/workflow-services/programs.service.d.ts +54 -13
- package/lib/workflow-services/responsibility.service.d.ts +4 -17
- package/lib/workflow-survey-form/workflow-survey-form.component.d.ts +1 -0
- package/package.json +1 -1
- package/esm2022/lib/interfaces/frequency.interface.mjs +0 -2
- package/esm2022/lib/interfaces/iframe-type.mjs +0 -7
- package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +0 -52
- package/esm2022/lib/sharedComponents/program-list/constant.mjs +0 -27
- package/esm2022/lib/sharedComponents/program-list/interfaces/data-source.interface.mjs +0 -2
- package/esm2022/lib/sharedComponents/program-list/interfaces/list-item.interface.mjs +0 -2
- package/esm2022/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.mjs +0 -23
- package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +0 -273
- package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +0 -51
- package/esm2022/lib/sharedComponents/program-list/services/list-utils.service.mjs +0 -27
- package/esm2022/lib/sharedComponents/program-list/services/program-list-api.service.mjs +0 -32
- package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +0 -24
- package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +0 -19
- package/esm2022/lib/workflow/shared/workflow-pipes/get-user-details.pipe.mjs +0 -26
- package/lib/interfaces/frequency.interface.d.ts +0 -37
- package/lib/interfaces/iframe-type.d.ts +0 -5
- package/lib/sharedComponents/list-container/list-container.component.d.ts +0 -9
- package/lib/sharedComponents/program-list/constant.d.ts +0 -20
- package/lib/sharedComponents/program-list/interfaces/data-source.interface.d.ts +0 -4
- package/lib/sharedComponents/program-list/interfaces/list-item.interface.d.ts +0 -5
- package/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.d.ts +0 -7
- package/lib/sharedComponents/program-list/program-list/program-list.component.d.ts +0 -126
- package/lib/sharedComponents/program-list/program-list.module.d.ts +0 -15
- package/lib/sharedComponents/program-list/services/list-utils.service.d.ts +0 -7
- package/lib/sharedComponents/program-list/services/program-list-api.service.d.ts +0 -14
- package/lib/ui-kit/loaders/loaders.module.d.ts +0 -8
- package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +0 -9
- package/lib/workflow/shared/workflow-pipes/get-user-details.pipe.d.ts +0 -7
|
@@ -45,45 +45,6 @@ export class CommonService {
|
|
|
45
45
|
datePickerOverlay = false;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
/**
|
|
49
|
-
* Transforms program data to identify added and removed program IDs.
|
|
50
|
-
* This method compares the current program selection with previously linked programs
|
|
51
|
-
* to determine which programs have been added or removed.
|
|
52
|
-
*
|
|
53
|
-
* @param input - An object containing program selections, where each key represents a category
|
|
54
|
-
* and its value is an array of program objects with an 'id' property.
|
|
55
|
-
* @param linkedProgramIds - Array of previously linked program IDs
|
|
56
|
-
*
|
|
57
|
-
* @returns An object containing:
|
|
58
|
-
* - added: Array of program IDs that are newly selected
|
|
59
|
-
* - removed: Array of program IDs that were previously linked but are no longer selected
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* // If input is { category1: [{id: 1}, {id: 2}], category2: [{id: 3}] }
|
|
63
|
-
* // And linkedProgramIds is [1, 4]
|
|
64
|
-
* // Returns { added: [2, 3], removed: [4] }
|
|
65
|
-
*/
|
|
66
|
-
transformProgramData(input, linkedProgramIds = []) {
|
|
67
|
-
// Flatten all program IDs from input object
|
|
68
|
-
const currentProgramIds = [].concat(...Object.values(input))
|
|
69
|
-
.map((program) => program.pid);
|
|
70
|
-
// Use Set for O(1) lookups
|
|
71
|
-
const linkedSet = new Set(linkedProgramIds);
|
|
72
|
-
const currentSet = new Set(currentProgramIds);
|
|
73
|
-
// Find added and removed programs using Set operations
|
|
74
|
-
const added = currentProgramIds.filter((id) => !linkedSet.has(id));
|
|
75
|
-
const removed = linkedProgramIds.filter((id) => !currentSet.has(id));
|
|
76
|
-
return { added, removed };
|
|
77
|
-
}
|
|
78
|
-
transformResponsibilitiesData(currentResponsibilityIds, linkedResponsibilityIds = []) {
|
|
79
|
-
// Use Set for O(1) lookups
|
|
80
|
-
const linkedSet = new Set(linkedResponsibilityIds);
|
|
81
|
-
const currentSet = new Set(currentResponsibilityIds);
|
|
82
|
-
// Find added and removed responsibilities using Set operations
|
|
83
|
-
const added = currentResponsibilityIds.filter(id => !linkedSet.has(id));
|
|
84
|
-
const removed = linkedResponsibilityIds.filter(id => !currentSet.has(id));
|
|
85
|
-
return { added, removed };
|
|
86
|
-
}
|
|
87
48
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
88
49
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CommonService, providedIn: 'root' }); }
|
|
89
50
|
}
|
|
@@ -93,4 +54,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
93
54
|
providedIn: 'root',
|
|
94
55
|
}]
|
|
95
56
|
}] });
|
|
96
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92eC13b3JrZmx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XG4gICAgICBpc05vdEluc2lkZUNhbGVuZGFyICYmXG4gICAgICBpc05vdENhbGVuZGFyTW9udGggJiZcbiAgICAgIGlzT3V0c2lkZVBvcHVwMlxuICAgICkge1xuICAgICAgdGhpcy5jbG9zZURhdGVQaWNrZXJJZk9wZW4oXG4gICAgICAgIHRhcmdldEVsZW1lbnQsXG4gICAgICAgIHBvcHVwLFxuICAgICAgICBkYXRlUGlja2VyT2JqZWN0Py5vdmVybGF5LFxuICAgICAgICBkYXRlUGlja2VyT2JqZWN0Py5jb21wb25lbnRcbiAgICAgICk7XG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG5cbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cblxuICBwcml2YXRlIGNsb3NlRGF0ZVBpY2tlcklmT3BlbihcbiAgICB0YXJnZXQ6IGFueSxcbiAgICBvcGVuZWRFbGVtZW50OiBFbGVtZW50UmVmLFxuICAgIGRhdGVQaWNrZXJPdmVybGF5OiBib29sZWFuLFxuICAgIERhdGVQaWNrZXI6IGFueVxuICApOiB2b2lkIHtcbiAgICBpZiAoXG4gICAgICAhb3BlbmVkRWxlbWVudD8ubmF0aXZlRWxlbWVudD8uY29udGFpbnModGFyZ2V0KSAmJlxuICAgICAgRGF0ZVBpY2tlcj8uYXJlQ2FsZW5kYXJzU2hvd25cbiAgICApIHtcbiAgICAgIERhdGVQaWNrZXI/LmFwaT8uY2xvc2UoKTtcbiAgICAgIGRhdGVQaWNrZXJPdmVybGF5ID0gZmFsc2U7XG4gICAgfVxuICB9XG59XG4iXX0=
|
|
@@ -19,19 +19,6 @@ export class IframeService {
|
|
|
19
19
|
window.location.href = targetUrl;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
postMessage(message) {
|
|
23
|
-
const targetOrigin = this.getOrigin();
|
|
24
|
-
window.parent.postMessage(message, targetOrigin);
|
|
25
|
-
}
|
|
26
|
-
getOrigin() {
|
|
27
|
-
return window.location.origin;
|
|
28
|
-
}
|
|
29
|
-
getCloseWebviewMessage(event, data) {
|
|
30
|
-
return {
|
|
31
|
-
event: event,
|
|
32
|
-
data: { ...data },
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
22
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IframeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
36
23
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IframeService, providedIn: 'root' }); }
|
|
37
24
|
}
|
|
@@ -41,4 +28,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
41
28
|
providedIn: 'root',
|
|
42
29
|
}]
|
|
43
30
|
}] });
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWZyYW1lLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92eC13b3JrZmxvdy1lbmdpbmUvc3JjL2xpYi9zZXJ2aWNlcy9pZnJhbWUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sYUFBYTtJQUN4QixrQkFBa0IsQ0FBQyxTQUFpQixFQUFFLE9BQWdCLEtBQUs7UUFDekQsOEJBQThCO1FBQzlCLE1BQU0sVUFBVSxHQUFHLE1BQU0sS0FBSyxNQUFNLENBQUMsTUFBTSxDQUFDO1FBRTVDLElBQUksVUFBVSxFQUFFO1lBQ2QsSUFBSTtnQkFDRiwyREFBMkQ7Z0JBQzNELE1BQU0sQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksR0FBRy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