@dyedurham/search-and-file-widget 2.0.26 → 2.0.28
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 +23 -5
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -86793,6 +86793,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86793
86793
|
\u0275\u0275conditional(ctx_r1.isUpdateMaintainTask(currentTask_r3) ? 1 : -1);
|
|
86794
86794
|
}
|
|
86795
86795
|
}
|
|
86796
|
+
function toDateOnlyString(value) {
|
|
86797
|
+
if (!value)
|
|
86798
|
+
return void 0;
|
|
86799
|
+
if (value instanceof Date) {
|
|
86800
|
+
if (isNaN(value.getTime()))
|
|
86801
|
+
return void 0;
|
|
86802
|
+
const month = String(value.getMonth() + 1).padStart(2, "0");
|
|
86803
|
+
const day = String(value.getDate()).padStart(2, "0");
|
|
86804
|
+
return `${value.getFullYear()}-${month}-${day}`;
|
|
86805
|
+
}
|
|
86806
|
+
return typeof value === "string" ? value.slice(0, 10) : void 0;
|
|
86807
|
+
}
|
|
86796
86808
|
var FederalComponent;
|
|
86797
86809
|
var init_federal_component = __esm({
|
|
86798
86810
|
"src/app/components/federal/federal.component.ts"() {
|
|
@@ -86985,9 +86997,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86985
86997
|
corporateName: __spreadValues({
|
|
86986
86998
|
nameType: corporateNameData[FederalFormationFormControl.NameType],
|
|
86987
86999
|
primaryNameReservationNumber: corporateNameData[FederalFormationFormControl.PrimaryNuansReportReservation],
|
|
86988
|
-
primaryNameReservationDate: corporateNameData[FederalFormationFormControl.PrimaryReservationDate],
|
|
87000
|
+
primaryNameReservationDate: toDateOnlyString(corporateNameData[FederalFormationFormControl.PrimaryReservationDate]),
|
|
86989
87001
|
secondaryNameReservationNumber: corporateNameData[FederalFormationFormControl.SecondaryReservationNumber],
|
|
86990
|
-
secondaryNameReservationDate: corporateNameData[FederalFormationFormControl.SecondaryReservationDate],
|
|
87002
|
+
secondaryNameReservationDate: toDateOnlyString(corporateNameData[FederalFormationFormControl.SecondaryReservationDate]),
|
|
86991
87003
|
legalElement: corporateNameData[FederalFormationFormControl.LegalElement],
|
|
86992
87004
|
preapprovalRequestId: corporateNameData[FederalFormationFormControl.NamePreapprovalRequestId],
|
|
86993
87005
|
preapprovalConfirmationNumber: corporateNameData[FederalFormationFormControl.NamePreapprovalConfirmationNumber]
|
|
@@ -87786,7 +87798,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87786
87798
|
const minDirectors = task.entity._articles?.min_directors;
|
|
87787
87799
|
const maxDirectors = task.entity._articles?.max_directors;
|
|
87788
87800
|
const isFixedDirectors = !!minDirectors && minDirectors === maxDirectors;
|
|
87789
|
-
const isNumbered =
|
|
87801
|
+
const isNumbered = corporateNameDelta?.nameType === NameType2.Numbered;
|
|
87790
87802
|
const englishName = !isNumbered ? {
|
|
87791
87803
|
CorporationName: task.entity._profile.name || "",
|
|
87792
87804
|
ReservationDate: corporateNameDelta?.primaryNameReservationDate || "",
|
|
@@ -87809,7 +87821,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87809
87821
|
const contact = task.entity.affiliations.find((a) => a._id === deltaData.contactUid);
|
|
87810
87822
|
const contactPerson = contact?.participant;
|
|
87811
87823
|
const signatory = pickSignatory(incorporators, contactPerson);
|
|
87812
|
-
const officerPhone = formatPhone(pickPhone(contactPerson) ||
|
|
87824
|
+
const officerPhone = formatPhone(signatory.phone || pickPhone(contactPerson) || incorporators.map((i) => i.phone).find(Boolean) || pickPhone(directors[0]?.participant) || registeredOfficeAddress?.communications?.find((c) => /phone|tel/i.test(c.type))?.value);
|
|
87813
87825
|
const epl = getEPRegistrations(task);
|
|
87814
87826
|
const eplDelta = deltaData.extraProvincialLicenses;
|
|
87815
87827
|
const directorsDelta = deltaData.directors;
|
|
@@ -87818,7 +87830,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87818
87830
|
const isListIsc = Number(significantControl?.type) === ISCOptions.ListISC;
|
|
87819
87831
|
const isNonPreapproved = corporateNameDelta?.nameType === NameType2.NonPreapproved;
|
|
87820
87832
|
const payload = __spreadProps(__spreadValues({
|
|
87821
|
-
IncorporationType: corporateNameDelta?.nameType,
|
|
87833
|
+
IncorporationType: mapNameTypeToIncorporationType(corporateNameDelta?.nameType),
|
|
87822
87834
|
LegalEnding: isNumbered ? legalEnding : "",
|
|
87823
87835
|
EnglishName: englishName,
|
|
87824
87836
|
FrenchName: frenchName,
|
|
@@ -88065,6 +88077,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88065
88077
|
Phone: phone || ""
|
|
88066
88078
|
};
|
|
88067
88079
|
}
|
|
88080
|
+
function mapNameTypeToIncorporationType(nameType) {
|
|
88081
|
+
if (nameType === void 0 || nameType === null)
|
|
88082
|
+
return void 0;
|
|
88083
|
+
return nameType === NameType2.NonPreapproved ? 2 : nameType;
|
|
88084
|
+
}
|
|
88068
88085
|
function formatPhone(phone) {
|
|
88069
88086
|
const digits = (phone ?? "").replace(/\D/g, "").slice(-10);
|
|
88070
88087
|
return digits.length === 10 ? `${digits.slice(0, 3)}-${digits.slice(3, 6)}-${digits.slice(6)}` : phone ?? "";
|
|
@@ -89122,6 +89139,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89122
89139
|
const response = yield this.federalFormationService.validate(signature, requestBody, this.validateOptions() ?? {});
|
|
89123
89140
|
if (this.hasResponseErrors(response))
|
|
89124
89141
|
return;
|
|
89142
|
+
this.deltaState.setFederalFormationInitialDelta(deltaData);
|
|
89125
89143
|
const serviceOrderId = response["ServiceOrderId"] ?? "";
|
|
89126
89144
|
const searchOrFilingType = getSearchOrFilingType(signature.task);
|
|
89127
89145
|
this.filingValidateSuccess.emit({
|