@dyedurham/search-and-file-widget 2.1.24 → 2.1.26
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/dnd-filing-shell.js
CHANGED
|
@@ -84946,8 +84946,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84946
84946
|
[Controls.ChangeDate]: this.readOnly(effectiveDate),
|
|
84947
84947
|
[Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
|
|
84948
84948
|
});
|
|
84949
|
+
const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
|
|
84949
84950
|
const directors = [
|
|
84950
|
-
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Add)),
|
|
84951
|
+
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
|
|
84951
84952
|
...outgoing.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Ceased))
|
|
84952
84953
|
];
|
|
84953
84954
|
const fallbackDirectors = directors.length ? [] : this.generateDirectorFormGroupsFromChangeDirectors(task);
|
|
@@ -95499,9 +95500,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95499
95500
|
...outgoingDirectors
|
|
95500
95501
|
].map((affiliation) => [String(affiliation._id), affiliation]));
|
|
95501
95502
|
const selected = deltaData.directorChanges;
|
|
95502
|
-
const
|
|
95503
|
-
const
|
|
95504
|
-
const
|
|
95503
|
+
const selectedIncomingIds = selected ? [.../* @__PURE__ */ new Set([...selected.addIds, ...selected.editIds])] : [];
|
|
95504
|
+
const selectedIncoming = selectedIncomingIds.map((id) => byId.get(String(id))).filter(Boolean);
|
|
95505
|
+
const incomingSource = selectedIncoming.length ? selectedIncoming : incomingDirectors;
|
|
95506
|
+
const addSource = incomingSource.length ? incomingSource.filter((affiliation) => findDirectorNumber(affiliation, currentDataExtract) === void 0) : addedDirectors;
|
|
95507
|
+
const matchedEditSource = incomingSource.filter((affiliation) => findDirectorNumber(affiliation, currentDataExtract) !== void 0);
|
|
95508
|
+
const editSource = incomingSource.length ? matchedEditSource : editedDirectors;
|
|
95509
|
+
const ceaseSource = selected?.ceaseIds.length ? selected.ceaseIds.map((id) => byId.get(String(id))).filter(Boolean) : outgoingDirectors.length ? outgoingDirectors : ceasedDirectors;
|
|
95505
95510
|
const addDirectors = addSource.map((affiliation) => buildDirector(affiliation));
|
|
95506
95511
|
const ceaseDirectors = ceaseSource.map((affiliation) => buildCeasedDirector(affiliation));
|
|
95507
95512
|
const editDirectors = editSource.map((director) => {
|
|
Binary file
|
|
Binary file
|