@dyedurham/search-and-file-widget 2.0.31 → 2.0.32
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 +14 -16
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -86941,14 +86941,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86941
86941
|
this.deltaDataChange.emit(deltaData);
|
|
86942
86942
|
}
|
|
86943
86943
|
onFile() {
|
|
86944
|
-
const task = this.task();
|
|
86945
|
-
const previewForm = this.previewForm();
|
|
86946
|
-
const signatoryUid = previewForm?.get(FederalFormationFormGroups.Signatory)?.get(FederalFormationFormControl.Signatory)?.value;
|
|
86947
|
-
if (task?.deltaData && signatoryUid) {
|
|
86948
|
-
task.deltaData = __spreadProps(__spreadValues({}, task.deltaData), {
|
|
86949
|
-
signatoryUid
|
|
86950
|
-
});
|
|
86951
|
-
}
|
|
86952
86944
|
this.file.emit();
|
|
86953
86945
|
}
|
|
86954
86946
|
onAddDocuments(documents) {
|
|
@@ -87867,7 +87859,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87867
87859
|
const officialBusinessEmail = registeredOfficeAddress?.communications?.find((c) => c.type === "Business Email")?.value;
|
|
87868
87860
|
const contact = task.entity.affiliations.find((a) => a._id === deltaData.contactUid);
|
|
87869
87861
|
const contactPerson = contact?.participant;
|
|
87870
|
-
const signatory = pickSignatory(incorporators, contactPerson, task.entity.affiliations
|
|
87862
|
+
const signatory = pickSignatory(incorporators, contactPerson, task.entity.affiliations);
|
|
87871
87863
|
const officerPhone = formatPhone(signatory.phone);
|
|
87872
87864
|
const epl = getEPRegistrations(task);
|
|
87873
87865
|
const eplDelta = deltaData.extraProvincialLicenses;
|
|
@@ -88028,8 +88020,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88028
88020
|
}
|
|
88029
88021
|
function mapAddress(address) {
|
|
88030
88022
|
const country = normalizeCountryCode(address?.country ?? "");
|
|
88031
|
-
const
|
|
88032
|
-
const addressRegion = country === "CA" ? CANProvinceToCode(provinceState) : country === "US" ? USStateToCode(provinceState) : provinceState;
|
|
88023
|
+
const addressRegion = mapAddressRegion(country, address?.province_state);
|
|
88033
88024
|
const street = resolveStreet(address);
|
|
88034
88025
|
return {
|
|
88035
88026
|
// Spec: CareOf min length 4 and UnitNumber/AddressLine2 min length 3 when present, so omit blanks.
|
|
@@ -88044,6 +88035,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88044
88035
|
Country: normalizeCountryCode(address?.country)
|
|
88045
88036
|
};
|
|
88046
88037
|
}
|
|
88038
|
+
function mapAddressRegion(country, provinceState) {
|
|
88039
|
+
const region = provinceState?.trim() ?? "";
|
|
88040
|
+
if (country === "CA") {
|
|
88041
|
+
return CANProvinceToCode(CANCodeToProvince(region));
|
|
88042
|
+
}
|
|
88043
|
+
if (country === "US") {
|
|
88044
|
+
return USStateToCode(USCodeToState(region) || region);
|
|
88045
|
+
}
|
|
88046
|
+
return region;
|
|
88047
|
+
}
|
|
88047
88048
|
function transformEPL(registration, deltaData, incorporationEffectiveDate, entityLanguage, filingContact) {
|
|
88048
88049
|
const registeredOffice = [...registration.affiliations ?? []].find((aff) => aff.role.role_name === "Shared Address" && aff.role.static_title === "Registered Office");
|
|
88049
88050
|
const registeredOfficeAddress = registeredOffice?.addresses?.[0] || registeredOffice?.parent_affiliation?.addresses?.[0];
|
|
@@ -88153,9 +88154,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88153
88154
|
return { number, name: name || line };
|
|
88154
88155
|
return match ? { number: match[1], name: match[2] } : { number: "", name: line };
|
|
88155
88156
|
}
|
|
88156
|
-
function pickSignatory(incorporators, contact, affiliations
|
|
88157
|
+
function pickSignatory(incorporators, contact, affiliations) {
|
|
88157
88158
|
const contactId = contact?._id;
|
|
88158
|
-
const chosen = incorporators.find((i) =>
|
|
88159
|
+
const chosen = incorporators.find((i) => i.type === "person" && contactId && i.profileID === contactId) ?? incorporators.find((i) => i.type === "person") ?? incorporators[0];
|
|
88159
88160
|
if (!chosen)
|
|
88160
88161
|
return { firstName: "", lastName: "" };
|
|
88161
88162
|
const signatoryParticipant = affiliations.find((a) => a.participant?._id === chosen.profileID)?.participant;
|
|
@@ -88166,9 +88167,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88166
88167
|
phone
|
|
88167
88168
|
};
|
|
88168
88169
|
}
|
|
88169
|
-
function getIncorporatorAffiliationId(incorporator) {
|
|
88170
|
-
return incorporator.affiliationID;
|
|
88171
|
-
}
|
|
88172
88170
|
var init_federal_formation_mapper = __esm({
|
|
88173
88171
|
"src/app/helpers/mappers/federal-formation.mapper.ts"() {
|
|
88174
88172
|
init_ECoreInterfaces();
|