@dyedurham/search-and-file-widget 2.1.25 → 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
|
@@ -95500,11 +95500,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95500
95500
|
...outgoingDirectors
|
|
95501
95501
|
].map((affiliation) => [String(affiliation._id), affiliation]));
|
|
95502
95502
|
const selected = deltaData.directorChanges;
|
|
95503
|
-
const
|
|
95504
|
-
const
|
|
95505
|
-
const
|
|
95506
|
-
const
|
|
95507
|
-
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;
|
|
95508
95510
|
const addDirectors = addSource.map((affiliation) => buildDirector(affiliation));
|
|
95509
95511
|
const ceaseDirectors = ceaseSource.map((affiliation) => buildCeasedDirector(affiliation));
|
|
95510
95512
|
const editDirectors = editSource.map((director) => {
|
|
Binary file
|