@dyedurham/search-and-file-widget 2.0.38 → 2.0.40
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 +63 -66
- package/package.json +2 -2
package/dnd-filing-shell.js
CHANGED
|
@@ -58105,23 +58105,23 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58105
58105
|
const province = data[FormationFormControls.Province];
|
|
58106
58106
|
const city = data[FormationFormControls.City];
|
|
58107
58107
|
const postalCode = data[FormationFormControls.PostalCode];
|
|
58108
|
-
const country = getCountryDisplayName(data[FormationFormControls.Country] || data[FormationFormControls.CountryCode]);
|
|
58109
|
-
const countrySummary = [city, province, postalCode, country].filter(Boolean).join(", ");
|
|
58110
|
-
return `${[unitSummary, streetSummary, countrySummary].filter(Boolean).join(", ")}`;
|
|
58111
|
-
}
|
|
58112
|
-
function getCountryDisplayName(country) {
|
|
58113
|
-
const value = country?.trim();
|
|
58114
|
-
if (!value) {
|
|
58115
|
-
return "";
|
|
58116
|
-
}
|
|
58117
|
-
const codeMatch = Object.entries(countryCodes).find(([, code]) => code.toLowerCase() === value.toLowerCase());
|
|
58118
|
-
return codeMatch?.[0] ?? value;
|
|
58119
|
-
}
|
|
58120
|
-
function getCountryListPreview(value, t) {
|
|
58121
|
-
const countries = (value ?? "").split(",").map((country) => getCountryDisplayName(country)).filter(Boolean);
|
|
58122
|
-
return countries.length ? countries.join(", ") : t ? t("Not specified") : "Not specified";
|
|
58123
|
-
}
|
|
58124
|
-
function getContactDetailsPreview(email, phone, t) {
|
|
58108
|
+
const country = getCountryDisplayName(data[FormationFormControls.Country] || data[FormationFormControls.CountryCode]);
|
|
58109
|
+
const countrySummary = [city, province, postalCode, country].filter(Boolean).join(", ");
|
|
58110
|
+
return `${[unitSummary, streetSummary, countrySummary].filter(Boolean).join(", ")}`;
|
|
58111
|
+
}
|
|
58112
|
+
function getCountryDisplayName(country) {
|
|
58113
|
+
const value = country?.trim();
|
|
58114
|
+
if (!value) {
|
|
58115
|
+
return "";
|
|
58116
|
+
}
|
|
58117
|
+
const codeMatch = Object.entries(countryCodes).find(([, code]) => code.toLowerCase() === value.toLowerCase());
|
|
58118
|
+
return codeMatch?.[0] ?? value;
|
|
58119
|
+
}
|
|
58120
|
+
function getCountryListPreview(value, t) {
|
|
58121
|
+
const countries = (value ?? "").split(",").map((country) => getCountryDisplayName(country)).filter(Boolean);
|
|
58122
|
+
return countries.length ? countries.join(", ") : t ? t("Not specified") : "Not specified";
|
|
58123
|
+
}
|
|
58124
|
+
function getContactDetailsPreview(email, phone, t) {
|
|
58125
58125
|
const details = [email, phone].filter((value) => Boolean(value?.trim()));
|
|
58126
58126
|
if (details.length) {
|
|
58127
58127
|
return details.join(" | ");
|
|
@@ -83721,7 +83721,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83721
83721
|
},
|
|
83722
83722
|
{
|
|
83723
83723
|
type: FormType.Text,
|
|
83724
|
-
dynamicLabel: (form, t) => `<span>${t("Countries Of Citizenship")}: ${getCountryListPreview(form.get(FederalFormationFormControl.CountriesOfCitizenship)?.value, t)}</span> </br> <span>${t("Countries Of Residence")}: ${getCountryListPreview(form.get(FederalFormationFormControl.CountriesOfResidence)?.value, t)}</span>`,
|
|
83724
|
+
dynamicLabel: (form, t) => `<span>${t("Countries Of Citizenship")}: ${getCountryListPreview(form.get(FederalFormationFormControl.CountriesOfCitizenship)?.value, t)}</span> </br> <span>${t("Countries Of Residence")}: ${getCountryListPreview(form.get(FederalFormationFormControl.CountriesOfResidence)?.value, t)}</span>`,
|
|
83725
83725
|
formControlName: "",
|
|
83726
83726
|
class: "span-12"
|
|
83727
83727
|
},
|
|
@@ -87771,8 +87771,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87771
87771
|
const individualsWithSignificantControlDelta = deltaData.individualsWithSignificantControl;
|
|
87772
87772
|
const consentToProvideEmails = deltaData.consentToProvideDirectorEmailAddressesForFullAccessManager;
|
|
87773
87773
|
getIndividualWithSignificantControl(task.entity.affiliations);
|
|
87774
|
-
const significantControlType = Number(significantControl?.type);
|
|
87775
|
-
const isListIsc = significantControlType === ISCOptions.ListISC;
|
|
87774
|
+
const significantControlType = Number(significantControl?.type);
|
|
87775
|
+
const isListIsc = significantControlType === ISCOptions.ListISC;
|
|
87776
87776
|
const isNonPreapproved = corporateNameDelta?.nameType === NameType2.NonPreapproved;
|
|
87777
87777
|
const payload = __spreadProps(__spreadValues({
|
|
87778
87778
|
IncorporationType: mapNameTypeToIncorporationType(corporateNameDelta?.nameType),
|
|
@@ -87795,10 +87795,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87795
87795
|
MinimumNumberOfDirectors: minDirectors || 1,
|
|
87796
87796
|
MaximumNumberOfDirectors: maxDirectors || 10
|
|
87797
87797
|
}), {
|
|
87798
|
-
SignificantControlType: mapSignificantControlTypeToECore(significantControl?.type),
|
|
87798
|
+
SignificantControlType: mapSignificantControlTypeToECore(significantControl?.type),
|
|
87799
87799
|
// Spec: required only when SignificantControlType is Excluded; 0 isn't a valid
|
|
87800
87800
|
// ExclusionReasonOptions value, so omit it rather than default to 0 in every other case.
|
|
87801
|
-
ExclusionReason: significantControlType === ISCOptions.Excluded ? significantControl?.exclusionReason : void 0,
|
|
87801
|
+
ExclusionReason: significantControlType === ISCOptions.Excluded ? significantControl?.exclusionReason : void 0,
|
|
87802
87802
|
RestrictionsOnBusiness: task.entity._articles?.restrictions || "None",
|
|
87803
87803
|
RestrictionsOnShareClasses: task.entity._articles?.share_terms || "",
|
|
87804
87804
|
RestrictionsOnShareTransfers: task.entity._articles?.transfer_restrictions_text || "None",
|
|
@@ -87917,18 +87917,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87917
87917
|
LastName: isIndividual ? incorporator.lastName : void 0,
|
|
87918
87918
|
// Spec: BodyCorporate and Signature apply only to body-corporate incorporators.
|
|
87919
87919
|
BodyCorporate: !isIndividual ? incorporator.incorporator_name : void 0,
|
|
87920
|
-
Signature: !isIndividual && (incorporator.signatory_first_name || incorporator.signatory_last_name) ?
|
|
87921
|
-
`${incorporator.signatory_first_name ?? ""} ${incorporator.signatory_last_name ?? ""}`.trim(),
|
|
87922
|
-
incorporator.signatory_title
|
|
87923
|
-
].filter(Boolean).join(", ") : void 0,
|
|
87920
|
+
Signature: !isIndividual && (incorporator.signatory_first_name || incorporator.signatory_last_name) ? `${incorporator.signatory_first_name ?? ""} ${incorporator.signatory_last_name ?? ""}`.trim() : void 0,
|
|
87924
87921
|
Address: mapAddress(incorporator)
|
|
87925
87922
|
};
|
|
87926
87923
|
}
|
|
87927
|
-
function mapAddress(address) {
|
|
87928
|
-
const country = normalizeCountryCode(address?.country ?? "");
|
|
87929
|
-
const provinceState = country === "CA" ? CANCodeToProvince(address?.province_state) : country === "US" ? USCodeToState(address?.province_state) : address?.province_state ?? "";
|
|
87924
|
+
function mapAddress(address) {
|
|
87925
|
+
const country = normalizeCountryCode(address?.country ?? "");
|
|
87926
|
+
const provinceState = country === "CA" ? CANCodeToProvince(address?.province_state) : country === "US" ? USCodeToState(address?.province_state) || address?.province_state : address?.province_state ?? "";
|
|
87930
87927
|
const addressRegion = country === "CA" ? CANProvinceToCode(provinceState) : country === "US" ? USStateToCode(provinceState) : provinceState;
|
|
87931
|
-
const street = resolveStreet(address);
|
|
87928
|
+
const street = resolveStreet(address);
|
|
87932
87929
|
return {
|
|
87933
87930
|
// Spec: CareOf min length 4 and UnitNumber/AddressLine2 min length 3 when present, so omit blanks.
|
|
87934
87931
|
CareOf: address?.components?.find((c) => c.name === "Attention")?.value || void 0,
|
|
@@ -87939,17 +87936,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87939
87936
|
City: address?.city ?? "",
|
|
87940
87937
|
ProvinceState: addressRegion,
|
|
87941
87938
|
Code: address?.postal_zip ?? "",
|
|
87942
|
-
Country: normalizeCountryCode(address?.country)
|
|
87943
|
-
};
|
|
87944
|
-
}
|
|
87945
|
-
function mapSignificantControlTypeToECore(type) {
|
|
87946
|
-
const significantControlType = Number(type);
|
|
87947
|
-
if (!significantControlType) {
|
|
87948
|
-
return void 0;
|
|
87949
|
-
}
|
|
87950
|
-
return significantControlType - 1;
|
|
87951
|
-
}
|
|
87952
|
-
function transformEPL(registration, deltaData, incorporationEffectiveDate, entityLanguage, filingContact) {
|
|
87939
|
+
Country: normalizeCountryCode(address?.country)
|
|
87940
|
+
};
|
|
87941
|
+
}
|
|
87942
|
+
function mapSignificantControlTypeToECore(type) {
|
|
87943
|
+
const significantControlType = Number(type);
|
|
87944
|
+
if (!significantControlType) {
|
|
87945
|
+
return void 0;
|
|
87946
|
+
}
|
|
87947
|
+
return significantControlType - 1;
|
|
87948
|
+
}
|
|
87949
|
+
function transformEPL(registration, deltaData, incorporationEffectiveDate, entityLanguage, filingContact) {
|
|
87953
87950
|
const registeredOffice = [...registration.affiliations ?? []].find((aff) => aff.role.role_name === "Shared Address" && aff.role.static_title === "Registered Office");
|
|
87954
87951
|
const registeredOfficeAddress = registeredOffice?.addresses?.[0] || registeredOffice?.parent_affiliation?.addresses?.[0];
|
|
87955
87952
|
let operatingAddress;
|
|
@@ -88065,12 +88062,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88065
88062
|
return { firstName: "", lastName: "" };
|
|
88066
88063
|
const signatoryParticipant = affiliations.find((a) => a.participant?._id === chosen.profileID)?.participant;
|
|
88067
88064
|
const phone = pickPhone(signatoryParticipant);
|
|
88068
|
-
return chosen.type === "person" ? { firstName: chosen.firstName ?? "", lastName: chosen.lastName ?? "", phone } : {
|
|
88069
|
-
firstName: `${chosen.signatory_first_name ?? ""} ${chosen.signatory_last_name ?? ""}`.trim(),
|
|
88070
|
-
lastName: "",
|
|
88071
|
-
phone
|
|
88072
|
-
};
|
|
88073
|
-
}
|
|
88065
|
+
return chosen.type === "person" ? { firstName: chosen.firstName ?? "", lastName: chosen.lastName ?? "", phone } : {
|
|
88066
|
+
firstName: `${chosen.signatory_first_name ?? ""} ${chosen.signatory_last_name ?? ""}`.trim(),
|
|
88067
|
+
lastName: "",
|
|
88068
|
+
phone
|
|
88069
|
+
};
|
|
88070
|
+
}
|
|
88074
88071
|
var init_federal_formation_mapper = __esm({
|
|
88075
88072
|
"src/app/helpers/mappers/federal-formation.mapper.ts"() {
|
|
88076
88073
|
init_ECoreInterfaces();
|
|
@@ -88632,10 +88629,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88632
88629
|
});
|
|
88633
88630
|
|
|
88634
88631
|
// src/app/helpers/mappers/federal-update-maintain.mapper.ts
|
|
88635
|
-
function buildFederalUpdateMaintainValidationRequest(deltaData, task) {
|
|
88636
|
-
const significantControl = deltaData.individualsWithSignificantControl;
|
|
88637
|
-
const significantControlType = Number(significantControl?.type);
|
|
88638
|
-
const isListIsc = significantControlType === ISCOptions.ListISC;
|
|
88632
|
+
function buildFederalUpdateMaintainValidationRequest(deltaData, task) {
|
|
88633
|
+
const significantControl = deltaData.individualsWithSignificantControl;
|
|
88634
|
+
const significantControlType = Number(significantControl?.type);
|
|
88635
|
+
const isListIsc = significantControlType === ISCOptions.ListISC;
|
|
88639
88636
|
const corporationName = task?.entity?._profile?.name ?? "";
|
|
88640
88637
|
const corporationNumber = task?.entity?._profile?.corp_number ?? "";
|
|
88641
88638
|
const annualComplianceTask = task;
|
|
@@ -88671,21 +88668,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88671
88668
|
NumberOfShareholders: deltaData.numberOfShareholders,
|
|
88672
88669
|
Signatory: signatory,
|
|
88673
88670
|
ContactUid: deltaData.contactUid,
|
|
88674
|
-
SignificantControlType: mapSignificantControlTypeToECore2(significantControl?.type),
|
|
88675
|
-
ExclusionReason: significantControlType === ISCOptions.Excluded ? significantControl?.exclusionReason : void 0,
|
|
88676
|
-
IndividualsWithSignificantControl: individualsWithSignificantControl
|
|
88677
|
-
}
|
|
88678
|
-
}
|
|
88679
|
-
};
|
|
88680
|
-
}
|
|
88681
|
-
function mapSignificantControlTypeToECore2(type) {
|
|
88682
|
-
const significantControlType = Number(type);
|
|
88683
|
-
if (!significantControlType) {
|
|
88684
|
-
return void 0;
|
|
88685
|
-
}
|
|
88686
|
-
return significantControlType - 1;
|
|
88687
|
-
}
|
|
88688
|
-
function transformISC(affiliation, deltaData) {
|
|
88671
|
+
SignificantControlType: mapSignificantControlTypeToECore2(significantControl?.type),
|
|
88672
|
+
ExclusionReason: significantControlType === ISCOptions.Excluded ? significantControl?.exclusionReason : void 0,
|
|
88673
|
+
IndividualsWithSignificantControl: individualsWithSignificantControl
|
|
88674
|
+
}
|
|
88675
|
+
}
|
|
88676
|
+
};
|
|
88677
|
+
}
|
|
88678
|
+
function mapSignificantControlTypeToECore2(type) {
|
|
88679
|
+
const significantControlType = Number(type);
|
|
88680
|
+
if (!significantControlType) {
|
|
88681
|
+
return void 0;
|
|
88682
|
+
}
|
|
88683
|
+
return significantControlType - 1;
|
|
88684
|
+
}
|
|
88685
|
+
function transformISC(affiliation, deltaData) {
|
|
88689
88686
|
const address = affiliation.addresses[0] || affiliation.parent_affiliation?.addresses?.[0];
|
|
88690
88687
|
const allAddresses = [
|
|
88691
88688
|
...affiliation.addresses ?? [],
|
package/package.json
CHANGED