@dyedurham/search-and-file-widget 1.6.1 → 1.6.3
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 +145 -160
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -49614,11 +49614,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
49614
49614
|
const requestedStr = requested.toISOString().split("T")[0];
|
|
49615
49615
|
return todayStr === requestedStr ? ECoreEffectiveType.CurrentDate : ECoreEffectiveType.FutureDate;
|
|
49616
49616
|
}
|
|
49617
|
-
function createCoverLetter(
|
|
49617
|
+
function createCoverLetter(deltaData) {
|
|
49618
49618
|
return {
|
|
49619
|
-
FirstName:
|
|
49620
|
-
LastName:
|
|
49621
|
-
Email:
|
|
49619
|
+
FirstName: deltaData?.signatoryFirstName || "",
|
|
49620
|
+
LastName: deltaData?.signatoryLastName || "",
|
|
49621
|
+
Email: "noreply@dyedurham.com",
|
|
49622
49622
|
ContactPhone: {
|
|
49623
49623
|
CountryCode: "1",
|
|
49624
49624
|
AreaCode: "000",
|
|
@@ -49627,9 +49627,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
49627
49627
|
};
|
|
49628
49628
|
}
|
|
49629
49629
|
function findRegisteredOfficeAddress(task) {
|
|
49630
|
-
const registeredOffice = [
|
|
49631
|
-
...task.entity.affiliations ?? []
|
|
49632
|
-
].find((aff) => aff.kind === "EntityAffiliationV3" && aff.role.role_name === "Shared Address" && aff.role.static_title === "Registered Office");
|
|
49630
|
+
const registeredOffice = [...task.entity.affiliations ?? []].find((aff) => aff.kind === "EntityAffiliationV3" && aff.role.role_name === "Shared Address" && aff.role.static_title === "Registered Office");
|
|
49633
49631
|
const registeredOfficeAddress = registeredOffice?.addresses?.[0] || registeredOffice?.parent_affiliation?.addresses?.[0];
|
|
49634
49632
|
return registeredOfficeAddress;
|
|
49635
49633
|
}
|
|
@@ -49648,20 +49646,20 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
49648
49646
|
}
|
|
49649
49647
|
function formationTaskToECore(task, deltaData) {
|
|
49650
49648
|
const entityDetails = deltaData.entityDetails;
|
|
49651
|
-
const isNumbered = entityDetails
|
|
49652
|
-
const isFrench = entityDetails
|
|
49653
|
-
const isBilingual = entityDetails
|
|
49649
|
+
const isNumbered = entityDetails?.corporationNameType === NameType.Numbered;
|
|
49650
|
+
const isFrench = entityDetails?.corporationNameType === NameType.NamedFrench;
|
|
49651
|
+
const isBilingual = entityDetails?.corporationNameType === NameType.NamedBilingual;
|
|
49654
49652
|
const englishName = !isNumbered && !isFrench ? {
|
|
49655
|
-
CorporationName: entityDetails
|
|
49656
|
-
ReservationDate: entityDetails
|
|
49653
|
+
CorporationName: entityDetails?.corporationNameEnglish,
|
|
49654
|
+
ReservationDate: entityDetails?.nuansReportEnglishReferenceNumber,
|
|
49657
49655
|
ReservationNumber: toYyyyMmDd(entityDetails.nuansReportEnglishReferenceDate) || ""
|
|
49658
49656
|
} : void 0;
|
|
49659
49657
|
const frenchName = !isNumbered && (isFrench || isBilingual) ? {
|
|
49660
|
-
CorporationName: entityDetails
|
|
49661
|
-
ReservationDate: entityDetails
|
|
49662
|
-
ReservationNumber: toYyyyMmDd(entityDetails
|
|
49658
|
+
CorporationName: entityDetails?.corporationNameEnglish,
|
|
49659
|
+
ReservationDate: entityDetails?.nuansReportEnglishReferenceNumber,
|
|
49660
|
+
ReservationNumber: toYyyyMmDd(entityDetails?.nuansReportEnglishReferenceDate) || ""
|
|
49663
49661
|
} : void 0;
|
|
49664
|
-
const legalEnding =
|
|
49662
|
+
const legalEnding = entityDetails?.legalIdentifier ?? "";
|
|
49665
49663
|
const incorporatorIds = new Set(task._ext._incorporators?.map((inc) => inc.profileID?.toString()).filter(Boolean) ?? []);
|
|
49666
49664
|
const registeredOfficeAddress = findRegisteredOfficeAddress(task);
|
|
49667
49665
|
const directors = transformDirectors(task.entity.affiliations, incorporatorIds, deltaData);
|
|
@@ -49669,19 +49667,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
49669
49667
|
const officialBusinessEmail = registeredOfficeAddress?.communications?.find((c) => c.type === "Business Email")?.value;
|
|
49670
49668
|
const naicsData = task.entity._profile?.naics;
|
|
49671
49669
|
const requestedDate = task._ext._future_filing_date ? new Date(task._ext._future_filing_date).toISOString().split("T")[0] : (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
49672
|
-
const contact = task.entity.affiliations.find((a) => a._id === deltaData.contactUid);
|
|
49673
49670
|
const restrictionsOnBusiness = task.entity._articles?.restrictions || "None";
|
|
49674
49671
|
const restrictionsOnShareClasses = task.entity._articles?.share_terms || "";
|
|
49675
49672
|
const restrictionsOnShareRights = task.entity._articles?.share_restrictions_text || "None";
|
|
49676
49673
|
const restrictionsOnShareTransfers = task.entity._articles?.transfer_restrictions_text || "None";
|
|
49677
49674
|
const otherProvisions = task.entity._articles?.other_provisions || "None";
|
|
49678
49675
|
const eCorePayload = {
|
|
49679
|
-
IncorporationType: entityDetails
|
|
49676
|
+
IncorporationType: entityDetails?.corporationNameType,
|
|
49680
49677
|
LegalEnding: legalEnding,
|
|
49681
49678
|
EnglishName: englishName,
|
|
49682
49679
|
FrenchName: frenchName,
|
|
49683
49680
|
RegisteredOffice: transformAddress(registeredOfficeAddress, deltaData.registeredOfficeAddress),
|
|
49684
|
-
CoverLetter: createCoverLetter(
|
|
49681
|
+
CoverLetter: createCoverLetter(deltaData),
|
|
49685
49682
|
DirectorNumberType: task.entity._articles?.min_directors === task.entity._articles?.max_directors ? ECoreDirectorNumberType.Fixed : ECoreDirectorNumberType.Range,
|
|
49686
49683
|
MinimumNumberOfDirectors: task.entity._articles?.min_directors,
|
|
49687
49684
|
MaximumNumberOfDirectors: task.entity._articles?.max_directors,
|
|
@@ -50568,7 +50565,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
50568
50565
|
FormationFormGroups2["ReferenceNumbers"] = "Reference Numbers";
|
|
50569
50566
|
FormationFormGroups2["CorporationDetails"] = "Corporation Details";
|
|
50570
50567
|
FormationFormGroups2["LegalOpinion"] = "Legal Opinion";
|
|
50571
|
-
FormationFormGroups2["
|
|
50568
|
+
FormationFormGroups2["SharesAndProvisions"] = "Shares & Provisions";
|
|
50572
50569
|
FormationFormGroups2["Incorporators"] = "Incorporators";
|
|
50573
50570
|
FormationFormGroups2["Directors"] = "Directors";
|
|
50574
50571
|
FormationFormGroups2["RegisteredOfficeAddress"] = "Registered Office Address";
|
|
@@ -51189,7 +51186,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51189
51186
|
});
|
|
51190
51187
|
|
|
51191
51188
|
// src/app/constants/ui/ontario-formation-form.constants.ts
|
|
51192
|
-
var ONTARIO_NAME_TYPE_OPTIONS, FORMATION_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, FORMATION_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, FORMATION_DELTA_CARD_FORM_AFFILIATION_FIELDS_INTERNATIONAL_NO_SUIT, FORMATION_DELTA_CARD_FORM_AFFILIATION_FIELDS_INTERNATIONAL_SUIT, FORMATION_DELTA_CARD_FORM_ADDRESS_FIELDS_MAP, EMAIL_TEXT_FIELD, RESIDENT_CHECKBOX_FIELD, FORMATION_DELTA_CARD_FORM_INCORPORATORS_FIELDS_MAP, FORMATION_DELTA_CARD_FORM_DIRECTORS_FIELDS_MAP, FORMATION_PREVIEW_CARD_FORM_AFFILIATION_FIELDS_SHARES_AND_PROVISIONS, FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, generateFormationDeltaCardFormCorporationDetails,
|
|
51189
|
+
var ONTARIO_NAME_TYPE_OPTIONS, FORMATION_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, FORMATION_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, FORMATION_DELTA_CARD_FORM_AFFILIATION_FIELDS_INTERNATIONAL_NO_SUIT, FORMATION_DELTA_CARD_FORM_AFFILIATION_FIELDS_INTERNATIONAL_SUIT, FORMATION_DELTA_CARD_FORM_ADDRESS_FIELDS_MAP, EMAIL_TEXT_FIELD, RESIDENT_CHECKBOX_FIELD, FORMATION_DELTA_CARD_FORM_INCORPORATORS_FIELDS_MAP, FORMATION_DELTA_CARD_FORM_DIRECTORS_FIELDS_MAP, FORMATION_PREVIEW_CARD_FORM_AFFILIATION_FIELDS_SHARES_AND_PROVISIONS, FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, generateFormationDeltaCardFormCorporationDetails, FORMATION_DELTA_CARD_FORM_CORPORATION_LEGAL_OPINION_LAWYER, FORMATION_DELTA_CARD_FORM_CORPORATION_LEGAL_OPINION_CONFIRM_ADDRESS, addressEnabledFieldsMap;
|
|
51193
51190
|
var init_ontario_formation_form_constants = __esm({
|
|
51194
51191
|
"src/app/constants/ui/ontario-formation-form.constants.ts"() {
|
|
51195
51192
|
init_form_enums();
|
|
@@ -51452,13 +51449,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51452
51449
|
]
|
|
51453
51450
|
};
|
|
51454
51451
|
FORMATION_PREVIEW_CARD_FORM_AFFILIATION_FIELDS_SHARES_AND_PROVISIONS = [
|
|
51455
|
-
{
|
|
51456
|
-
type: FormType.TextArea,
|
|
51457
|
-
label: "Restrictions on Business or Powers",
|
|
51458
|
-
placeholder: "",
|
|
51459
|
-
class: "span-12",
|
|
51460
|
-
formControlName: FormationFormControls.RestrictionsOnBusiness
|
|
51461
|
-
},
|
|
51462
51452
|
{
|
|
51463
51453
|
type: FormType.TextArea,
|
|
51464
51454
|
label: "Description of Classes of Shares",
|
|
@@ -51480,6 +51470,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51480
51470
|
class: "span-12",
|
|
51481
51471
|
formControlName: FormationFormControls.RestrictionsOnShareTransfers
|
|
51482
51472
|
},
|
|
51473
|
+
{
|
|
51474
|
+
type: FormType.TextArea,
|
|
51475
|
+
label: "Restrictions on Business or Powers",
|
|
51476
|
+
placeholder: "",
|
|
51477
|
+
class: "span-12",
|
|
51478
|
+
formControlName: FormationFormControls.RestrictionsOnBusiness
|
|
51479
|
+
},
|
|
51483
51480
|
{
|
|
51484
51481
|
type: FormType.TextArea,
|
|
51485
51482
|
label: "Other Provisions",
|
|
@@ -51567,7 +51564,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51567
51564
|
{
|
|
51568
51565
|
type: FormType.Select,
|
|
51569
51566
|
placeholder: "",
|
|
51570
|
-
label: "Corporation Name",
|
|
51567
|
+
label: "Proposed Corporation Name",
|
|
51571
51568
|
formControlName: FormationFormControls.ProposedCorporationNameEng,
|
|
51572
51569
|
required: true,
|
|
51573
51570
|
class: "column-3",
|
|
@@ -51592,6 +51589,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51592
51589
|
isVisible: (form) => form.get(FormationFormControls.CorporationNameType)?.value === NameType.NamedBilingual || form.get(FormationFormControls.CorporationNameType)?.value === NameType.NamedCombined || form.get(FormationFormControls.CorporationNameType)?.value === NameType.NamedEnglish,
|
|
51593
51590
|
class: "span-3"
|
|
51594
51591
|
},
|
|
51592
|
+
{
|
|
51593
|
+
type: FormType.Select,
|
|
51594
|
+
placeholder: "",
|
|
51595
|
+
label: "Proposed Corporation Name",
|
|
51596
|
+
formControlName: FormationFormControls.ProposedCorporationNameFr,
|
|
51597
|
+
required: true,
|
|
51598
|
+
class: "column-3",
|
|
51599
|
+
isVisible: (form) => form.get(FormationFormControls.CorporationNameType)?.value === NameType.NamedFrench,
|
|
51600
|
+
options: proposedOptions
|
|
51601
|
+
},
|
|
51595
51602
|
{
|
|
51596
51603
|
type: FormType.Select,
|
|
51597
51604
|
placeholder: "",
|
|
@@ -51599,7 +51606,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51599
51606
|
formControlName: FormationFormControls.ProposedCorporationNameFr,
|
|
51600
51607
|
required: true,
|
|
51601
51608
|
class: "column-3",
|
|
51602
|
-
isVisible: (form) => form.get(FormationFormControls.CorporationNameType)?.value === NameType.
|
|
51609
|
+
isVisible: (form) => form.get(FormationFormControls.CorporationNameType)?.value === NameType.NamedBilingual,
|
|
51603
51610
|
options: proposedOptions
|
|
51604
51611
|
},
|
|
51605
51612
|
{
|
|
@@ -51654,36 +51661,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51654
51661
|
}
|
|
51655
51662
|
];
|
|
51656
51663
|
};
|
|
51657
|
-
generateOntarioFormationFormContactControl = (contacts) => {
|
|
51658
|
-
const contactsOptions = contacts.map((contact) => ({
|
|
51659
|
-
label: contact.participant._profile.name ?? "",
|
|
51660
|
-
value: contact._id
|
|
51661
|
-
}));
|
|
51662
|
-
return [
|
|
51663
|
-
{
|
|
51664
|
-
type: FormType.Select,
|
|
51665
|
-
label: "Contact",
|
|
51666
|
-
formControlName: FormationFormControls.Contact,
|
|
51667
|
-
required: true,
|
|
51668
|
-
options: contactsOptions,
|
|
51669
|
-
class: "span-12"
|
|
51670
|
-
},
|
|
51671
|
-
{
|
|
51672
|
-
type: FormType.Text,
|
|
51673
|
-
dynamicLabel: (form, t) => {
|
|
51674
|
-
const id = form.get(FormationFormControls.Contact)?.value;
|
|
51675
|
-
const contact = contacts.find((contact2) => contact2._id === id);
|
|
51676
|
-
const email = contact?.addresses[0]?.emails?.primary;
|
|
51677
|
-
const phone = contact?.addresses[0]?.contact_numbers?.primary;
|
|
51678
|
-
return `<span class="body-1-semibold">${t("Contact Details")}:</span> ${getContactDetailsPreview(email, phone, t)}`;
|
|
51679
|
-
},
|
|
51680
|
-
formControlName: "",
|
|
51681
|
-
required: false,
|
|
51682
|
-
isVisible: (form) => form.get(FormationFormControls.Contact)?.value,
|
|
51683
|
-
class: "span-12"
|
|
51684
|
-
}
|
|
51685
|
-
];
|
|
51686
|
-
};
|
|
51687
51664
|
FORMATION_DELTA_CARD_FORM_CORPORATION_LEGAL_OPINION_LAWYER = (lawyerOptions) => [
|
|
51688
51665
|
{
|
|
51689
51666
|
type: FormType.Select,
|
|
@@ -51693,16 +51670,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51693
51670
|
required: true,
|
|
51694
51671
|
class: "span-12",
|
|
51695
51672
|
options: lawyerOptions
|
|
51696
|
-
}
|
|
51673
|
+
}
|
|
51674
|
+
];
|
|
51675
|
+
FORMATION_DELTA_CARD_FORM_CORPORATION_LEGAL_OPINION_CONFIRM_ADDRESS = [
|
|
51697
51676
|
{
|
|
51698
51677
|
type: FormType.Text,
|
|
51699
51678
|
dynamicLabel: (_, t) => `<span class="body-1-semibold">${t("Confirm Address Parts")}:</span>`,
|
|
51700
51679
|
placeholder: "",
|
|
51701
51680
|
class: "span-12",
|
|
51702
51681
|
formControlName: ""
|
|
51703
|
-
}
|
|
51704
|
-
];
|
|
51705
|
-
FORMATION_DELTA_CARD_FORM_CORPORATION_LEGAL_OPINION_CONFIRM_ADDRESS = [
|
|
51682
|
+
},
|
|
51706
51683
|
{
|
|
51707
51684
|
type: FormType.Input,
|
|
51708
51685
|
placeholder: "",
|
|
@@ -51804,7 +51781,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51804
51781
|
const primaryActivity = `${naicsData?.code} - ${naicsData?.description}`;
|
|
51805
51782
|
const corporationNameType = entityDetailsDelta?.corporationNameType || (task._ext._numbered_company === true ? NameType.Numbered : NameType.NamedEnglish);
|
|
51806
51783
|
const isBilingualName = corporationNameType === NameType.NamedBilingual;
|
|
51807
|
-
config2[FormationFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(referenceNumbers);
|
|
51784
|
+
config2[FormationFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(referenceNumbers, task.entity._profile.client_matter_number);
|
|
51808
51785
|
config2[FormationFormGroups.CorporationDetails] = new FormGroup({
|
|
51809
51786
|
[FormationFormControls.CorporationNameType]: new FormControl(corporationNameType ?? "", Validators.required),
|
|
51810
51787
|
[FormationFormControls.LegalEnding]: new FormControl(entityDetailsDelta?.legalIdentifier ?? task.entity._profile.legal_entity_identifier, Validators.required),
|
|
@@ -51828,11 +51805,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51828
51805
|
const restrictionsOnShareRights = task.entity._articles?.share_restrictions_text || "None";
|
|
51829
51806
|
const restrictionsOnShareTransfers = task.entity._articles?.transfer_restrictions_text || "None";
|
|
51830
51807
|
const otherProvisions = task.entity._articles?.other_provisions || "None";
|
|
51831
|
-
config2[FormationFormGroups.
|
|
51832
|
-
[FormationFormControls.RestrictionsOnBusiness]: new FormControl({ value: restrictionsOnBusiness, disabled: true }),
|
|
51808
|
+
config2[FormationFormGroups.SharesAndProvisions] = new FormGroup({
|
|
51833
51809
|
[FormationFormControls.RestrictionsOnShareClasses]: new FormControl({ value: restrictionsOnShareClasses, disabled: true }),
|
|
51834
51810
|
[FormationFormControls.RestrictionsOnShareRights]: new FormControl({ value: restrictionsOnShareRights, disabled: true }),
|
|
51835
51811
|
[FormationFormControls.RestrictionsOnShareTransfers]: new FormControl({ value: restrictionsOnShareTransfers, disabled: true }),
|
|
51812
|
+
[FormationFormControls.RestrictionsOnBusiness]: new FormControl({ value: restrictionsOnBusiness, disabled: true }),
|
|
51836
51813
|
[FormationFormControls.OtherProvisions]: new FormControl({ value: otherProvisions, disabled: true })
|
|
51837
51814
|
});
|
|
51838
51815
|
if (directorsGroups.length) {
|
|
@@ -51841,14 +51818,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51841
51818
|
if (incorporatorsGroups.length) {
|
|
51842
51819
|
config2[FormationFormGroups.Incorporators] = new FormArray(incorporatorsGroups);
|
|
51843
51820
|
}
|
|
51844
|
-
config2[FormationFormGroups.Contact] = new FormGroup({
|
|
51845
|
-
[FormationFormControls.Contact]: new FormControl(delta?.contactUid ?? "", Validators.required)
|
|
51846
|
-
});
|
|
51847
51821
|
return config2;
|
|
51848
51822
|
}
|
|
51849
|
-
static generateReferenceNumbersFormGroup(deltaData) {
|
|
51823
|
+
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
|
|
51850
51824
|
return new FormGroup({
|
|
51851
|
-
[FormationFormControls.ClientMatterNumber]: new FormControl(deltaData?.referenceNumber ?? ""),
|
|
51825
|
+
[FormationFormControls.ClientMatterNumber]: new FormControl(deltaData?.referenceNumber ?? clientMatterNumber ?? ""),
|
|
51852
51826
|
[FormationFormControls.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
|
|
51853
51827
|
});
|
|
51854
51828
|
}
|
|
@@ -51921,6 +51895,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51921
51895
|
form.addControl(FormationFormControls.StreetDirection, new FormControl(delta?.streetDirection ?? ""));
|
|
51922
51896
|
form.addControl(FormationFormControls.StreetType, new FormControl(delta?.streetType ?? "", Validators.required));
|
|
51923
51897
|
form.addControl(FormationFormControls.StreetName, new FormControl(delta?.streetName ?? "", Validators.required));
|
|
51898
|
+
form.addControl(FormationFormControls.StreetNumber, new FormControl(delta?.streetNumber ?? ""));
|
|
51924
51899
|
form.addControl(FormationFormControls.UnitNumber, new FormControl(delta?.unitNumber ?? ""));
|
|
51925
51900
|
form.addControl(FormationFormControls.UnitType, new FormControl(delta?.unitType ?? "", requiredIf(FormationFormControls.UnitNumber)));
|
|
51926
51901
|
form.addControl(FormationFormControls.City, new FormControl(""));
|
|
@@ -76614,7 +76589,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
76614
76589
|
MatAutocompleteTrigger,
|
|
76615
76590
|
TranslatePipe,
|
|
76616
76591
|
CheckboxListComponent
|
|
76617
|
-
], styles: ['\n\n[_nghost-%COMP%] {\n
|
|
76592
|
+
], styles: ['\n\n[_nghost-%COMP%] {\n overflow: hidden;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n column-gap: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select {\n display: flex;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-checkbox__background {\n border: 3px solid #6a6c6f;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-arrow-wrapper {\n display: none;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .suffix-container {\n display: flex;\n align-items: center;\n padding-right: 12px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix {\n display: flex;\n align-items: center;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix .mat-icon {\n display: flex;\n align-items: center;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .arrow-icon {\n pointer-events: none;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-form-field-infix {\n display: flex !important;\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value-text {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-label {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-checkbox[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 2rem;\n}\n[_nghost-%COMP%] .filling-form-fields-checkbox[_ngcontent-%COMP%]:not(.last) {\n padding-bottom: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields-checkbox-text[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n line-height: 20px;\n color: var(--filing-modal-color-grey);\n}\n[_nghost-%COMP%] .filling-form-fields-empty[_ngcontent-%COMP%] {\n width: 100%;\n height: 80px;\n}\n[_nghost-%COMP%] .filling-form-fields-item[_ngcontent-%COMP%] {\n --mat-sys-primary: #6b6f76;\n --mat-sys-primary-container: #e4e5e8;\n --mat-sys-surface-tint: #6b6f76;\n --mat-sys-outline: #c7c9cf;\n --mat-sys-outline-variant: #dfe1e6;\n --mdc-icon-button-state-layer-size: 36px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .filling-form-fields-item.text-area[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper {\n padding: 0 !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item.text-area[_ngcontent-%COMP%] .mat-mdc-input-element {\n padding: 0 12px;\n min-height: 230px !important;\n max-height: 230px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-text[_ngcontent-%COMP%] {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-text[_ngcontent-%COMP%]:not(.last) {\n padding-bottom: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields-item-hint[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n font-size: 12px;\n}\n[_nghost-%COMP%] .filling-form-fields-item.warning[_ngcontent-%COMP%] {\n --mdc-outlined-text-field-outline-color: #845400;\n --mdc-outlined-text-field-outline-width: 2px;\n --mat-sys-on-surface: #845400;\n color: #845400;\n padding-bottom: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields-item-label[_ngcontent-%COMP%] {\n color: var(--filing-modal-color-grey);\n}\n[_nghost-%COMP%] .filling-form-fields-item-label.warning[_ngcontent-%COMP%] {\n color: #845400;\n}\n[_nghost-%COMP%] .filling-form-fields-item-hint.warning[_ngcontent-%COMP%] {\n color: #845400;\n}\n[_nghost-%COMP%] .filling-form-fields-item-icon[_ngcontent-%COMP%] {\n font-size: 22px;\n line-height: 22px;\n height: 22px;\n width: 22px;\n}\n[_nghost-%COMP%] .filling-form-fields-item-icon.warning[_ngcontent-%COMP%] {\n color: #845400;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid {\n padding: 0 0 12px;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mdc-notched-outline__leading {\n border-color: #ff3e3e !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mdc-notched-outline__trailing {\n border-color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-datepicker-toggle-default-icon {\n color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-mdc-form-field-error-wrapper {\n padding: 0;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-mdc-form-field-error {\n color: #E22222 !important;\n font-size: 12px;\n font-family: "Open Sans";\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-mdc-select-arrow {\n color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-icon {\n color: #4a4a4a !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mdc-notched-outline__leading {\n border-color: #d6d6d6 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mdc-notched-outline__trailing {\n border-color: #d6d6d6 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-datepicker-toggle-default-icon {\n color: #4a4a4a !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-mdc-form-field-error {\n display: none;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-mdc-select-arrow {\n color: #d6d6d6 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] {\n --mat-form-field-container-vertical-padding: 6px;\n --mat-form-field-container-height: 36px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value {\n line-height: 18px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] input, \n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] textarea {\n font-family: "Open Sans";\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value-text {\n font-family: "Open Sans";\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-text-field--disabled {\n background-color: #F5F5F5 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-notched-outline__leading {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-notched-outline__trailing {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-icon-button .mat-icon {\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n}\n[_nghost-%COMP%] .span-1[_ngcontent-%COMP%] {\n grid-column: span 1;\n}\n[_nghost-%COMP%] .span-2[_ngcontent-%COMP%] {\n grid-column: span 2;\n}\n[_nghost-%COMP%] .span-3[_ngcontent-%COMP%] {\n grid-column: span 3;\n}\n[_nghost-%COMP%] .span-4[_ngcontent-%COMP%] {\n grid-column: span 4;\n}\n[_nghost-%COMP%] .span-5[_ngcontent-%COMP%] {\n grid-column: span 5;\n}\n[_nghost-%COMP%] .span-6[_ngcontent-%COMP%] {\n grid-column: span 6;\n}\n[_nghost-%COMP%] .span-8[_ngcontent-%COMP%] {\n grid-column: span 8;\n}\n[_nghost-%COMP%] .span-12[_ngcontent-%COMP%] {\n grid-column: span 12;\n}\n[_nghost-%COMP%] .column-1[_ngcontent-%COMP%] {\n grid-column: 1/span 2;\n}\n[_nghost-%COMP%] .column-2[_ngcontent-%COMP%] {\n grid-column: 1/span 4;\n}\n[_nghost-%COMP%] .column-3[_ngcontent-%COMP%] {\n grid-column: 1/span 6;\n}\n[_nghost-%COMP%] input {\n font-size: 14px !important;\n color: var(--filing-modal-color-grey) !important;\n}\n.filing-form-group-select-option[_ngcontent-%COMP%] {\n background: white !important;\n}\n.filing-form-group-select-option[_ngcontent-%COMP%] .mat-pseudo-checkbox-checked {\n background: transparent !important;\n}\n.filing-form-group-select-option[_ngcontent-%COMP%] .mdc-list-item__primary-text {\n font-family: "Open Sans";\n font-size: 14px !important;\n}\n/*# sourceMappingURL=filing-form-group.component.css.map */'], changeDetection: 0 });
|
|
76618
76593
|
};
|
|
76619
76594
|
(() => {
|
|
76620
76595
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FilingFormGroupComponent, [{
|
|
@@ -76876,7 +76851,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
76876
76851
|
}
|
|
76877
76852
|
</div>
|
|
76878
76853
|
</section>
|
|
76879
|
-
`, styles: ['/* src/app/components/form/filing-form-group/filing-form-group.component.scss */\n:host {\n
|
|
76854
|
+
`, styles: ['/* src/app/components/form/filing-form-group/filing-form-group.component.scss */\n:host {\n overflow: hidden;\n}\n:host .filling-form-fields {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n column-gap: 16px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select {\n display: flex;\n}\n:host .filling-form-fields ::ng-deep .mdc-checkbox__background {\n border: 3px solid #6a6c6f;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-arrow-wrapper {\n display: none;\n}\n:host .filling-form-fields ::ng-deep .suffix-container {\n display: flex;\n align-items: center;\n padding-right: 12px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-icon-suffix {\n display: flex;\n align-items: center;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-icon-suffix .mat-icon {\n display: flex;\n align-items: center;\n}\n:host .filling-form-fields ::ng-deep .arrow-icon {\n pointer-events: none;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-infix {\n display: flex !important;\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value-text {\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value {\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mdc-label {\n font-size: 14px !important;\n}\n:host .filling-form-fields-checkbox {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 2rem;\n}\n:host .filling-form-fields-checkbox:not(.last) {\n padding-bottom: 16px;\n}\n:host .filling-form-fields-checkbox-text {\n display: flex;\n align-items: center;\n gap: 8px;\n line-height: 20px;\n color: var(--filing-modal-color-grey);\n}\n:host .filling-form-fields-empty {\n width: 100%;\n height: 80px;\n}\n:host .filling-form-fields-item {\n --mat-sys-primary: #6b6f76;\n --mat-sys-primary-container: #e4e5e8;\n --mat-sys-surface-tint: #6b6f76;\n --mat-sys-outline: #c7c9cf;\n --mat-sys-outline-variant: #dfe1e6;\n --mdc-icon-button-state-layer-size: 36px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .filling-form-fields-item.text-area ::ng-deep .mat-mdc-text-field-wrapper {\n padding: 0 !important;\n}\n:host .filling-form-fields-item.text-area ::ng-deep .mat-mdc-input-element {\n padding: 0 12px;\n min-height: 230px !important;\n max-height: 230px !important;\n}\n:host .filling-form-fields-item-text {\n font-size: 14px !important;\n}\n:host .filling-form-fields-item-text:not(.last) {\n padding-bottom: 16px;\n}\n:host .filling-form-fields-item-hint {\n display: flex;\n align-items: center;\n font-size: 12px;\n}\n:host .filling-form-fields-item.warning {\n --mdc-outlined-text-field-outline-color: #845400;\n --mdc-outlined-text-field-outline-width: 2px;\n --mat-sys-on-surface: #845400;\n color: #845400;\n padding-bottom: 16px;\n}\n:host .filling-form-fields-item-label {\n color: var(--filing-modal-color-grey);\n}\n:host .filling-form-fields-item-label.warning {\n color: #845400;\n}\n:host .filling-form-fields-item-hint.warning {\n color: #845400;\n}\n:host .filling-form-fields-item-icon {\n font-size: 22px;\n line-height: 22px;\n height: 22px;\n width: 22px;\n}\n:host .filling-form-fields-item-icon.warning {\n color: #845400;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid {\n padding: 0 0 12px;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mdc-notched-outline__leading {\n border-color: #ff3e3e !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mdc-notched-outline__trailing {\n border-color: #E22222 !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-datepicker-toggle-default-icon {\n color: #E22222 !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-form-field-error-wrapper {\n padding: 0;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-form-field-error {\n color: #E22222 !important;\n font-size: 12px;\n font-family: "Open Sans";\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-select-arrow {\n color: #E22222 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-icon {\n color: #4a4a4a !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mdc-notched-outline__leading {\n border-color: #d6d6d6 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mdc-notched-outline__trailing {\n border-color: #d6d6d6 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-datepicker-toggle-default-icon {\n color: #4a4a4a !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-mdc-form-field-error {\n display: none;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-mdc-select-arrow {\n color: #d6d6d6 !important;\n}\n:host .filling-form-fields ::ng-deep {\n --mat-form-field-container-vertical-padding: 6px;\n --mat-form-field-container-height: 36px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value {\n line-height: 18px;\n}\n:host .filling-form-fields ::ng-deep input,\n:host .filling-form-fields ::ng-deep textarea {\n font-family: "Open Sans";\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value-text {\n font-family: "Open Sans";\n}\n:host .filling-form-fields ::ng-deep .mdc-text-field--disabled {\n background-color: #F5F5F5 !important;\n}\n:host .filling-form-fields ::ng-deep .mdc-notched-outline__leading {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n}\n:host .filling-form-fields ::ng-deep .mdc-notched-outline__trailing {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n}\n:host .filling-form-fields ::ng-deep .mdc-icon-button .mat-icon {\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n}\n:host .span-1 {\n grid-column: span 1;\n}\n:host .span-2 {\n grid-column: span 2;\n}\n:host .span-3 {\n grid-column: span 3;\n}\n:host .span-4 {\n grid-column: span 4;\n}\n:host .span-5 {\n grid-column: span 5;\n}\n:host .span-6 {\n grid-column: span 6;\n}\n:host .span-8 {\n grid-column: span 8;\n}\n:host .span-12 {\n grid-column: span 12;\n}\n:host .column-1 {\n grid-column: 1/span 2;\n}\n:host .column-2 {\n grid-column: 1/span 4;\n}\n:host .column-3 {\n grid-column: 1/span 6;\n}\n:host ::ng-deep input {\n font-size: 14px !important;\n color: var(--filing-modal-color-grey) !important;\n}\n.filing-form-group-select-option {\n background: white !important;\n}\n.filing-form-group-select-option ::ng-deep .mat-pseudo-checkbox-checked {\n background: transparent !important;\n}\n.filing-form-group-select-option ::ng-deep .mdc-list-item__primary-text {\n font-family: "Open Sans";\n font-size: 14px !important;\n}\n/*# sourceMappingURL=filing-form-group.component.css.map */\n'] }]
|
|
76880
76855
|
}], null, null);
|
|
76881
76856
|
})();
|
|
76882
76857
|
(() => {
|
|
@@ -77338,8 +77313,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77338
77313
|
}
|
|
77339
77314
|
function OntarioIncorporationFormComponent_Conditional_5_Template(rf, ctx) {
|
|
77340
77315
|
if (rf & 1) {
|
|
77341
|
-
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "div",
|
|
77342
|
-
\u0275\u0275element(2, "filing-form-group",
|
|
77316
|
+
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "div", 8);
|
|
77317
|
+
\u0275\u0275element(2, "filing-form-group", 9);
|
|
77343
77318
|
\u0275\u0275elementEnd()();
|
|
77344
77319
|
}
|
|
77345
77320
|
if (rf & 2) {
|
|
@@ -77352,8 +77327,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77352
77327
|
}
|
|
77353
77328
|
function OntarioIncorporationFormComponent_Conditional_7_Template(rf, ctx) {
|
|
77354
77329
|
if (rf & 1) {
|
|
77355
|
-
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "div",
|
|
77356
|
-
\u0275\u0275element(2, "filing-form-group",
|
|
77330
|
+
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
|
|
77331
|
+
\u0275\u0275element(2, "filing-form-group", 9);
|
|
77357
77332
|
\u0275\u0275elementEnd()();
|
|
77358
77333
|
}
|
|
77359
77334
|
if (rf & 2) {
|
|
@@ -77367,7 +77342,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77367
77342
|
function OntarioIncorporationFormComponent_Conditional_8_Conditional_1_Template(rf, ctx) {
|
|
77368
77343
|
if (rf & 1) {
|
|
77369
77344
|
\u0275\u0275elementStart(0, "expandable-card", 5);
|
|
77370
|
-
\u0275\u0275element(1, "filing-form-group",
|
|
77345
|
+
\u0275\u0275element(1, "filing-form-group", 9)(2, "filing-form-group", 9);
|
|
77371
77346
|
\u0275\u0275elementEnd();
|
|
77372
77347
|
}
|
|
77373
77348
|
if (rf & 2) {
|
|
@@ -77396,22 +77371,22 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77396
77371
|
function OntarioIncorporationFormComponent_Conditional_10_Template(rf, ctx) {
|
|
77397
77372
|
if (rf & 1) {
|
|
77398
77373
|
\u0275\u0275elementStart(0, "expandable-card", 5);
|
|
77399
|
-
\u0275\u0275element(1, "filing-form-group",
|
|
77374
|
+
\u0275\u0275element(1, "filing-form-group", 9);
|
|
77400
77375
|
\u0275\u0275elementEnd();
|
|
77401
77376
|
}
|
|
77402
77377
|
if (rf & 2) {
|
|
77403
|
-
let
|
|
77378
|
+
let tmp_14_0;
|
|
77404
77379
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
77405
77380
|
const registeredOfficeForm_r6 = \u0275\u0275readContextLet(9);
|
|
77406
77381
|
\u0275\u0275property("isValid", !registeredOfficeForm_r6.invalid)("isStatusIcon", ctx_r0.statusIcon())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
77407
77382
|
\u0275\u0275advance();
|
|
77408
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOfficeForm_r6)("config", ctx_r0.affiliationCardFieldsMap[(
|
|
77383
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOfficeForm_r6)("config", ctx_r0.affiliationCardFieldsMap[(tmp_14_0 = registeredOfficeForm_r6.get(ctx_r0.formationFormControls.AffiliationAddressType)) == null ? null : tmp_14_0.value]);
|
|
77409
77384
|
}
|
|
77410
77385
|
}
|
|
77411
77386
|
function OntarioIncorporationFormComponent_Conditional_14_Template(rf, ctx) {
|
|
77412
77387
|
if (rf & 1) {
|
|
77413
77388
|
\u0275\u0275elementStart(0, "expandable-list-card", 6);
|
|
77414
|
-
\u0275\u0275element(1, "p",
|
|
77389
|
+
\u0275\u0275element(1, "p", 10);
|
|
77415
77390
|
\u0275\u0275elementEnd();
|
|
77416
77391
|
}
|
|
77417
77392
|
if (rf & 2) {
|
|
@@ -77426,15 +77401,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77426
77401
|
function OntarioIncorporationFormComponent_Conditional_16_Template(rf, ctx) {
|
|
77427
77402
|
if (rf & 1) {
|
|
77428
77403
|
\u0275\u0275elementStart(0, "expandable-card", 7);
|
|
77429
|
-
\u0275\u0275element(1, "filing-form-group",
|
|
77404
|
+
\u0275\u0275element(1, "filing-form-group", 9);
|
|
77430
77405
|
\u0275\u0275elementEnd();
|
|
77431
77406
|
}
|
|
77432
77407
|
if (rf & 2) {
|
|
77433
77408
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
77434
|
-
const
|
|
77435
|
-
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.
|
|
77409
|
+
const sharesAndProvisions_r9 = \u0275\u0275readContextLet(15);
|
|
77410
|
+
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.SharesAndProvisions);
|
|
77436
77411
|
\u0275\u0275advance();
|
|
77437
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form",
|
|
77412
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", sharesAndProvisions_r9)("config", ctx_r0.sharesAndProvincesFields);
|
|
77438
77413
|
}
|
|
77439
77414
|
}
|
|
77440
77415
|
function OntarioIncorporationFormComponent_Conditional_18_Template(rf, ctx) {
|
|
@@ -77448,20 +77423,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77448
77423
|
\u0275\u0275property("isValid", incorporatorsArray_r10.valid)("isOpen", isOpenIncorporators_r11)("isStatusIcon", ctx_r0.statusIcon())("config", ctx_r0.incorporatorsCardFieldsMap)("configKey", ctx_r0.controls.AffiliationAddressType)("formArray", incorporatorsArray_r10)("title", ctx_r0.groups.Incorporators);
|
|
77449
77424
|
}
|
|
77450
77425
|
}
|
|
77451
|
-
function OntarioIncorporationFormComponent_Conditional_20_Template(rf, ctx) {
|
|
77452
|
-
if (rf & 1) {
|
|
77453
|
-
\u0275\u0275elementStart(0, "expandable-card", 8);
|
|
77454
|
-
\u0275\u0275element(1, "filing-form-group", 10);
|
|
77455
|
-
\u0275\u0275elementEnd();
|
|
77456
|
-
}
|
|
77457
|
-
if (rf & 2) {
|
|
77458
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
77459
|
-
const contact_r12 = \u0275\u0275readContextLet(19);
|
|
77460
|
-
\u0275\u0275property("isStatusIcon", true)("isValid", !contact_r12.invalid)("title", ctx_r0.groups.Contact);
|
|
77461
|
-
\u0275\u0275advance();
|
|
77462
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", contact_r12)("config", ctx_r0.contactsFields);
|
|
77463
|
-
}
|
|
77464
|
-
}
|
|
77465
77426
|
var OntarioIncorporationFormComponent;
|
|
77466
77427
|
var init_ontario_incorporation_form_component = __esm({
|
|
77467
77428
|
"src/app/components/ontario/incorporation/ontario-incorporation-form/ontario-incorporation-form.component.ts"() {
|
|
@@ -77491,7 +77452,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77491
77452
|
incorporatorsCardFieldsMap = FORMATION_DELTA_CARD_FORM_INCORPORATORS_FIELDS_MAP;
|
|
77492
77453
|
directorsCardFieldsMap = FORMATION_DELTA_CARD_FORM_DIRECTORS_FIELDS_MAP;
|
|
77493
77454
|
sharesAndProvincesFields = FORMATION_PREVIEW_CARD_FORM_AFFILIATION_FIELDS_SHARES_AND_PROVISIONS;
|
|
77494
|
-
contactsFields = [];
|
|
77495
77455
|
corporationDetailsCardFields = [];
|
|
77496
77456
|
initiallyOpenCardsCount = 3;
|
|
77497
77457
|
laywers = computed(() => {
|
|
@@ -77517,15 +77477,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77517
77477
|
const profile = this.task()?.entity._profile;
|
|
77518
77478
|
this.corporationDetailsCardFields = generateFormationDeltaCardFormCorporationDetails(profile?.name ?? "", profile?.secondary_name ?? "");
|
|
77519
77479
|
});
|
|
77520
|
-
effect(() => {
|
|
77521
|
-
const task = this.task();
|
|
77522
|
-
if (task) {
|
|
77523
|
-
const contacts = task.entity.affiliations.filter((a) => {
|
|
77524
|
-
return a.role.role_name === "Contact";
|
|
77525
|
-
});
|
|
77526
|
-
this.contactsFields = generateOntarioFormationFormContactControl(contacts);
|
|
77527
|
-
}
|
|
77528
|
-
});
|
|
77529
77480
|
}
|
|
77530
77481
|
get isLegalOpinion() {
|
|
77531
77482
|
return !!this.form().get(this.groups.CorporationDetails)?.get(this.controls.wasLegalOpinionObtained)?.value;
|
|
@@ -77539,7 +77490,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77539
77490
|
static \u0275fac = function OntarioIncorporationFormComponent_Factory(__ngFactoryType__) {
|
|
77540
77491
|
return new (__ngFactoryType__ || _OntarioIncorporationFormComponent)();
|
|
77541
77492
|
};
|
|
77542
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _OntarioIncorporationFormComponent, selectors: [["ontario-incorporation-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], statusIcon: [1, "statusIcon"], isSubmitted: [1, "isSubmitted"] }, decls:
|
|
77493
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _OntarioIncorporationFormComponent, selectors: [["ontario-incorporation-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], statusIcon: [1, "statusIcon"], isSubmitted: [1, "isSubmitted"] }, decls: 19, vars: 17, consts: [[1, "incorporation-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "incorporation-form-content"], [3, "title"], [3, "isValid", "isStatusIcon", "title"], [3, "isValid", "isOpen", "isStatusIcon", "config", "configKey", "formArray", "title"], [3, "isStatusIcon", "title"], [1, "incorporation-form-item"], [3, "isSubmitted", "form", "config"], ["slot", "subtitle", 1, "body-1-regular", "black", 3, "innerHTML"]], template: function OntarioIncorporationFormComponent_Template(rf, ctx) {
|
|
77543
77494
|
if (rf & 1) {
|
|
77544
77495
|
\u0275\u0275elementStart(0, "div", 0);
|
|
77545
77496
|
\u0275\u0275template(1, OntarioIncorporationFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, OntarioIncorporationFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
@@ -77556,8 +77507,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77556
77507
|
\u0275\u0275template(16, OntarioIncorporationFormComponent_Conditional_16_Template, 2, 5, "expandable-card", 7);
|
|
77557
77508
|
\u0275\u0275declareLet(17);
|
|
77558
77509
|
\u0275\u0275template(18, OntarioIncorporationFormComponent_Conditional_18_Template, 1, 7, "expandable-list-card", 6);
|
|
77559
|
-
\u0275\u0275declareLet(19);
|
|
77560
|
-
\u0275\u0275template(20, OntarioIncorporationFormComponent_Conditional_20_Template, 2, 6, "expandable-card", 8);
|
|
77561
77510
|
\u0275\u0275elementEnd()();
|
|
77562
77511
|
}
|
|
77563
77512
|
if (rf & 2) {
|
|
@@ -77568,39 +77517,35 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77568
77517
|
\u0275\u0275advance();
|
|
77569
77518
|
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
77570
77519
|
\u0275\u0275advance(2);
|
|
77571
|
-
const
|
|
77520
|
+
const referenceNumbers_r12 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
77572
77521
|
\u0275\u0275advance();
|
|
77573
|
-
\u0275\u0275conditional(
|
|
77522
|
+
\u0275\u0275conditional(referenceNumbers_r12 ? 5 : -1);
|
|
77574
77523
|
\u0275\u0275advance();
|
|
77575
|
-
const
|
|
77524
|
+
const corporationDetails_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
77576
77525
|
\u0275\u0275advance();
|
|
77577
|
-
\u0275\u0275conditional(
|
|
77526
|
+
\u0275\u0275conditional(corporationDetails_r13 ? 7 : -1);
|
|
77578
77527
|
\u0275\u0275advance();
|
|
77579
77528
|
\u0275\u0275conditional(ctx.isLegalOpinion ? 8 : -1);
|
|
77580
77529
|
\u0275\u0275advance();
|
|
77581
|
-
const
|
|
77582
|
-
\u0275\u0275advance();
|
|
77583
|
-
\u0275\u0275conditional(registeredOfficeForm_r15 ? 10 : -1);
|
|
77584
|
-
\u0275\u0275advance();
|
|
77585
|
-
const incorporatorsArray_r16 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Incorporators));
|
|
77530
|
+
const registeredOfficeForm_r14 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
|
|
77586
77531
|
\u0275\u0275advance();
|
|
77587
|
-
|
|
77532
|
+
\u0275\u0275conditional(registeredOfficeForm_r14 ? 10 : -1);
|
|
77588
77533
|
\u0275\u0275advance();
|
|
77589
|
-
\u0275\u0275storeLet((
|
|
77534
|
+
const incorporatorsArray_r15 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Incorporators));
|
|
77590
77535
|
\u0275\u0275advance();
|
|
77591
|
-
\u0275\
|
|
77536
|
+
const directorsArray_r16 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
|
|
77592
77537
|
\u0275\u0275advance();
|
|
77593
|
-
|
|
77538
|
+
\u0275\u0275storeLet(((tmp_11_0 = directorsArray_r16 == null ? null : directorsArray_r16.length) !== null && tmp_11_0 !== void 0 ? tmp_11_0 : 0) <= ctx.initiallyOpenCardsCount);
|
|
77594
77539
|
\u0275\u0275advance();
|
|
77595
|
-
\u0275\u0275conditional(
|
|
77540
|
+
\u0275\u0275conditional(directorsArray_r16 ? 14 : -1);
|
|
77596
77541
|
\u0275\u0275advance();
|
|
77597
|
-
\u0275\u0275storeLet((
|
|
77542
|
+
const sharesAndProvisions_r17 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.SharesAndProvisions));
|
|
77598
77543
|
\u0275\u0275advance();
|
|
77599
|
-
\u0275\u0275conditional(
|
|
77544
|
+
\u0275\u0275conditional(sharesAndProvisions_r17 ? 16 : -1);
|
|
77600
77545
|
\u0275\u0275advance();
|
|
77601
|
-
|
|
77546
|
+
\u0275\u0275storeLet(((tmp_15_0 = incorporatorsArray_r15 == null ? null : incorporatorsArray_r15.length) !== null && tmp_15_0 !== void 0 ? tmp_15_0 : 0) <= ctx.initiallyOpenCardsCount);
|
|
77602
77547
|
\u0275\u0275advance();
|
|
77603
|
-
\u0275\u0275conditional(
|
|
77548
|
+
\u0275\u0275conditional(incorporatorsArray_r15 ? 18 : -1);
|
|
77604
77549
|
}
|
|
77605
77550
|
}, dependencies: [
|
|
77606
77551
|
ExpandableCardComponent,
|
|
@@ -77617,11 +77562,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77617
77562
|
FilingFormGroupComponent,
|
|
77618
77563
|
ExpandableListCardComponent,
|
|
77619
77564
|
AlertComponent
|
|
77620
|
-
], template: '<div class="incorporation-form">\n @if (isNote()) {\n <alert [type]="alertType.Info" title="Entity changed" content="A new draft needs to be generated as the Entity was changed since the last draft was produced."/>\n }\n\n @if (errors().length) {\n <alert title="The following issues need to be resolved before proceeding:" [content]="errors()"/>\n }\n\n <div class="incorporation-form-content">\n @let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\n\n @if (referenceNumbers) {\n <expandable-card [title]="groups.ReferenceNumbers">\n <div class="incorporation-form-item">\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="referenceNumbers" [config]="referenceNumbersFields"/>\n </div>\n </expandable-card>\n }\n\n @let corporationDetails = getFormGroup(groups.CorporationDetails);\n\n @if (corporationDetails) {\n <expandable-card [isValid]="!corporationDetails.invalid" [isStatusIcon]="statusIcon()" [title]="groups.CorporationDetails">\n <div class="incorporation-form-item">\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="corporationDetails" [config]="corporationDetailsCardFields"/>\n </div>\n </expandable-card>\n }\n\n @if (isLegalOpinion) {\n @let legalOpinion = getFormGroup(groups.LegalOpinion);\n\n @if (legalOpinion) {\n <expandable-card [isValid]="!legalOpinion.invalid" [isStatusIcon]="statusIcon()" [title]="groups.LegalOpinion">\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="legalOpinion" [config]="legalOpinionLawyerFields()"/>\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="legalOpinion" [config]="legalOpinionConfirmAddressFields"/>\n </expandable-card>\n }\n }\n\n @let registeredOfficeForm = getFormGroup(groups.RegisteredOfficeAddress);\n\n @if (registeredOfficeForm) {\n <expandable-card [isValid]="!registeredOfficeForm.invalid" [isStatusIcon]="statusIcon()" [title]="groups.RegisteredOfficeAddress">\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="registeredOfficeForm" [config]="affiliationCardFieldsMap[registeredOfficeForm.get(formationFormControls.AffiliationAddressType)?.value]"/>\n </expandable-card>\n }\n\n @let incorporatorsArray = getFormArray(groups.Incorporators);\n @let directorsArray = getFormArray(groups.Directors);\n\n @let isOpenDirectors = (directorsArray?.length ?? 0) <= initiallyOpenCardsCount;\n @if (directorsArray) {\n <expandable-list-card [isValid]="directorsArray.valid" [isOpen]="isOpenDirectors" [isStatusIcon]="statusIcon()" [config]="directorsCardFieldsMap" [configKey]="controls.AffiliationAddressType" [formArray]="directorsArray" [title]="groups.Directors">\n <p slot="subtitle" class="body-1-regular black" [innerHTML]="directorsSubtitle()"></p>\n </expandable-list-card>\n }\n\n @let
|
|
77565
|
+
], template: '<div class="incorporation-form">\n @if (isNote()) {\n <alert [type]="alertType.Info" title="Entity changed" content="A new draft needs to be generated as the Entity was changed since the last draft was produced."/>\n }\n\n @if (errors().length) {\n <alert title="The following issues need to be resolved before proceeding:" [content]="errors()"/>\n }\n\n <div class="incorporation-form-content">\n @let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\n\n @if (referenceNumbers) {\n <expandable-card [title]="groups.ReferenceNumbers">\n <div class="incorporation-form-item">\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="referenceNumbers" [config]="referenceNumbersFields"/>\n </div>\n </expandable-card>\n }\n\n @let corporationDetails = getFormGroup(groups.CorporationDetails);\n\n @if (corporationDetails) {\n <expandable-card [isValid]="!corporationDetails.invalid" [isStatusIcon]="statusIcon()" [title]="groups.CorporationDetails">\n <div class="incorporation-form-item">\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="corporationDetails" [config]="corporationDetailsCardFields"/>\n </div>\n </expandable-card>\n }\n\n @if (isLegalOpinion) {\n @let legalOpinion = getFormGroup(groups.LegalOpinion);\n\n @if (legalOpinion) {\n <expandable-card [isValid]="!legalOpinion.invalid" [isStatusIcon]="statusIcon()" [title]="groups.LegalOpinion">\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="legalOpinion" [config]="legalOpinionLawyerFields()"/>\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="legalOpinion" [config]="legalOpinionConfirmAddressFields"/>\n </expandable-card>\n }\n }\n\n @let registeredOfficeForm = getFormGroup(groups.RegisteredOfficeAddress);\n\n @if (registeredOfficeForm) {\n <expandable-card [isValid]="!registeredOfficeForm.invalid" [isStatusIcon]="statusIcon()" [title]="groups.RegisteredOfficeAddress">\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="registeredOfficeForm" [config]="affiliationCardFieldsMap[registeredOfficeForm.get(formationFormControls.AffiliationAddressType)?.value]"/>\n </expandable-card>\n }\n\n @let incorporatorsArray = getFormArray(groups.Incorporators);\n @let directorsArray = getFormArray(groups.Directors);\n\n @let isOpenDirectors = (directorsArray?.length ?? 0) <= initiallyOpenCardsCount;\n @if (directorsArray) {\n <expandable-list-card [isValid]="directorsArray.valid" [isOpen]="isOpenDirectors" [isStatusIcon]="statusIcon()" [config]="directorsCardFieldsMap" [configKey]="controls.AffiliationAddressType" [formArray]="directorsArray" [title]="groups.Directors">\n <p slot="subtitle" class="body-1-regular black" [innerHTML]="directorsSubtitle()"></p>\n </expandable-list-card>\n }\n\n @let sharesAndProvisions = getFormGroup(groups.SharesAndProvisions);\n\n @if (sharesAndProvisions) {\n <expandable-card [isStatusIcon]="false" [title]="groups.SharesAndProvisions">\n <filing-form-group [isSubmitted]="isSubmitted()" [form]="sharesAndProvisions" [config]="sharesAndProvincesFields"/>\n </expandable-card>\n }\n\n @let isOpenIncorporators = (incorporatorsArray?.length ?? 0) <= initiallyOpenCardsCount;\n\n @if (incorporatorsArray) {\n <expandable-list-card [isValid]="incorporatorsArray.valid" [isOpen]="isOpenIncorporators" [isStatusIcon]="statusIcon()" [config]="incorporatorsCardFieldsMap" [configKey]="controls.AffiliationAddressType" [formArray]="incorporatorsArray" [title]="groups.Incorporators"/>\n }\n\n </div>\n</div>\n', styles: ["/* src/app/components/ontario/incorporation/ontario-incorporation-form/ontario-incorporation-form.component.scss */\n:host {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n:host .incorporation-form {\n display: flex;\n height: 100%;\n flex-direction: column;\n gap: 16px;\n}\n:host .incorporation-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow: auto;\n min-height: 0;\n}\n:host .incorporation-form-content-subtitle {\n color: var(--filing-modal-color-grey);\n padding-bottom: 8px;\n}\n:host .incorporation-form-subtitle {\n color: #666666;\n}\n:host .incorporation-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .incorporation-form-item-title {\n color: var(--filing-modal-color-dark-blue);\n}\n/*# sourceMappingURL=ontario-incorporation-form.component.css.map */\n"] }]
|
|
77621
77566
|
}], () => [], null);
|
|
77622
77567
|
})();
|
|
77623
77568
|
(() => {
|
|
77624
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(OntarioIncorporationFormComponent, { className: "OntarioIncorporationFormComponent", filePath: "src/app/components/ontario/incorporation/ontario-incorporation-form/ontario-incorporation-form.component.ts", lineNumber:
|
|
77569
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(OntarioIncorporationFormComponent, { className: "OntarioIncorporationFormComponent", filePath: "src/app/components/ontario/incorporation/ontario-incorporation-form/ontario-incorporation-form.component.ts", lineNumber: 45 });
|
|
77625
77570
|
})();
|
|
77626
77571
|
}
|
|
77627
77572
|
});
|
|
@@ -77848,7 +77793,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
77848
77793
|
});
|
|
77849
77794
|
|
|
77850
77795
|
// src/app/constants/initial-return-form.constants.ts
|
|
77851
|
-
var ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_INTERNATIONAL_NO_SUIT, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_INTERNATIONAL_SUIT, ONTARIO_INITIAL_RETURN_FORM_GENERAL_FIELDS, ONTARIO_INITIAL_RETURN_CARD_FORM_ADDRESS_FIELDS_MAP, generateDirectorFields, ONTARIO_INITIAL_RETURN_FORM_ADDRESS_FIELDS_MAP, generateCertifiedByFields, ONTARIO_INITIAL_RETURN_FORM_CERTIFIED_BY_FIELDS_MAP, generateOntarioInitialReturnFormContactControl;
|
|
77796
|
+
var ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_INTERNATIONAL_NO_SUIT, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_INTERNATIONAL_SUIT, ONTARIO_INITIAL_RETURN_FORM_GENERAL_FIELDS, ONTARIO_INITIAL_RETURN_CARD_FORM_ADDRESS_FIELDS_MAP, generateDirectorFields, ONTARIO_DIRECTOR_FIELDS_INTERNATIONAL, ONTARIO_INITIAL_RETURN_FORM_ADDRESS_FIELDS_MAP, generateCertifiedByFields, ONTARIO_INITIAL_RETURN_FORM_CERTIFIED_BY_FIELDS_MAP, generateOntarioInitialReturnFormContactControl;
|
|
77852
77797
|
var init_initial_return_form_constants = __esm({
|
|
77853
77798
|
"src/app/constants/initial-return-form.constants.ts"() {
|
|
77854
77799
|
init_form_enums();
|
|
@@ -78259,11 +78204,39 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
78259
78204
|
formControlName: IRFormControls.IsCanadianResident
|
|
78260
78205
|
}
|
|
78261
78206
|
];
|
|
78207
|
+
ONTARIO_DIRECTOR_FIELDS_INTERNATIONAL = [
|
|
78208
|
+
{
|
|
78209
|
+
type: FormType.Text,
|
|
78210
|
+
label: "",
|
|
78211
|
+
placeholder: "",
|
|
78212
|
+
formControlName: "",
|
|
78213
|
+
dynamicLabel: (form, t, prevValueMap) => {
|
|
78214
|
+
const formValue = form.getRawValue();
|
|
78215
|
+
const isUpdate = formValue[IRFormControls.AffiliationType] === IRAffiliationType.Update;
|
|
78216
|
+
const baseAddress = getAddressPreview(formValue);
|
|
78217
|
+
const baseResult = `<span class="body-1-semibold">${t("Full Address")}:</span> ${baseAddress}`;
|
|
78218
|
+
if (!prevValueMap || !isUpdate) {
|
|
78219
|
+
return baseResult;
|
|
78220
|
+
}
|
|
78221
|
+
const key = formValue[IRFormControls.AffiliationName];
|
|
78222
|
+
const prevValue = prevValueMap.get(key);
|
|
78223
|
+
if (!prevValue) {
|
|
78224
|
+
return baseResult;
|
|
78225
|
+
}
|
|
78226
|
+
const prevAddress = getCurrentAddressPreview(prevValue.address);
|
|
78227
|
+
if (prevAddress === baseAddress) {
|
|
78228
|
+
return baseResult;
|
|
78229
|
+
}
|
|
78230
|
+
return baseResult + `<span class="grey-mid"><br/><span class="body-1-semibold">${t("Previous Address")}:</span> ${prevAddress}</span>`;
|
|
78231
|
+
},
|
|
78232
|
+
class: "span-12"
|
|
78233
|
+
}
|
|
78234
|
+
];
|
|
78262
78235
|
ONTARIO_INITIAL_RETURN_FORM_ADDRESS_FIELDS_MAP = {
|
|
78263
78236
|
[AffiliationAddressType.CanadianNoSuite]: generateDirectorFields(ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT),
|
|
78264
78237
|
[AffiliationAddressType.CanadianSuite]: generateDirectorFields(ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT),
|
|
78265
|
-
[AffiliationAddressType.InternationalNoSuite]: generateDirectorFields(
|
|
78266
|
-
[AffiliationAddressType.InternationalSuite]: generateDirectorFields(
|
|
78238
|
+
[AffiliationAddressType.InternationalNoSuite]: generateDirectorFields(ONTARIO_DIRECTOR_FIELDS_INTERNATIONAL),
|
|
78239
|
+
[AffiliationAddressType.InternationalSuite]: generateDirectorFields(ONTARIO_DIRECTOR_FIELDS_INTERNATIONAL)
|
|
78267
78240
|
};
|
|
78268
78241
|
generateCertifiedByFields = (fields) => [
|
|
78269
78242
|
{
|
|
@@ -78282,7 +78255,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
78282
78255
|
[AffiliationAddressType.InternationalSuite]: generateCertifiedByFields(ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_INTERNATIONAL_SUIT)
|
|
78283
78256
|
};
|
|
78284
78257
|
generateOntarioInitialReturnFormContactControl = (contacts) => {
|
|
78285
|
-
const contactsOptions = contacts.map((contact) => ({
|
|
78258
|
+
const contactsOptions = contacts.map((contact) => ({
|
|
78259
|
+
label: contact.participant._profile.name ?? "",
|
|
78260
|
+
value: contact._id
|
|
78261
|
+
}));
|
|
78286
78262
|
return [
|
|
78287
78263
|
{
|
|
78288
78264
|
type: FormType.Select,
|
|
@@ -78297,8 +78273,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
78297
78273
|
dynamicLabel: (form, t) => {
|
|
78298
78274
|
const id = form.get(IRFormControls.Contact)?.value;
|
|
78299
78275
|
const contact = contacts.find((contact2) => contact2._id === id);
|
|
78300
|
-
const email = contact?.
|
|
78301
|
-
const phone = contact?.
|
|
78276
|
+
const email = contact?.participant?.communications?.find((c) => c.type === "Email")?.value;
|
|
78277
|
+
const phone = contact?.participant?.communications?.find((c) => c.type === "Phone")?.value;
|
|
78302
78278
|
return `<span class="body-1-regular grey">${t("Contact Details")}:</span> ${getContactDetailsPreview(email, phone, t)}`;
|
|
78303
78279
|
},
|
|
78304
78280
|
formControlName: "",
|
|
@@ -78448,7 +78424,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
78448
78424
|
effect(() => {
|
|
78449
78425
|
const task = this.task();
|
|
78450
78426
|
if (task) {
|
|
78451
|
-
const contacts = task.entity.affiliations.filter((a) => a.role.role_name === "Contact");
|
|
78427
|
+
const contacts = task.entity.affiliations.filter((a) => a.role.role_name === "Contact" && a._participant.participant_type === "person");
|
|
78452
78428
|
this.contactsFields = generateOntarioInitialReturnFormContactControl(contacts);
|
|
78453
78429
|
}
|
|
78454
78430
|
});
|
|
@@ -81334,6 +81310,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81334
81310
|
config2[IRFormControls.StreetDirection] = new FormControl(delta?.[IRFormControls.StreetDirection] ?? "", Validators.required);
|
|
81335
81311
|
config2[IRFormControls.StreetType] = new FormControl(delta?.[IRFormControls.StreetType] ?? "", Validators.required);
|
|
81336
81312
|
config2[IRFormControls.StreetName] = new FormControl(delta?.[IRFormControls.StreetName] ?? "", Validators.required);
|
|
81313
|
+
config2[IRFormControls.StreetNumber] = new FormControl(delta?.[IRFormControls.StreetNumber] ?? "");
|
|
81337
81314
|
config2[IRFormControls.UnitNumber] = new FormControl(delta?.[IRFormControls.UnitNumber] ?? "");
|
|
81338
81315
|
config2[IRFormControls.UnitType] = new FormControl(delta?.[IRFormControls.UnitType] ?? "", requiredIf(IRFormControls.UnitNumber));
|
|
81339
81316
|
config2[IRFormControls.City] = new FormControl(delta?.[IRFormControls.City] ?? "");
|
|
@@ -81687,8 +81664,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81687
81664
|
const refNumbers = formData[FormationFormGroups.ReferenceNumbers];
|
|
81688
81665
|
const legalOpinionData = formData[FormationFormGroups.LegalOpinion];
|
|
81689
81666
|
const registeredOffice = formData[FormationFormGroups.RegisteredOfficeAddress];
|
|
81690
|
-
formData[FormationFormGroups.SharesAndRestrictions];
|
|
81691
|
-
const contact = formData[FormationFormGroups.Contact];
|
|
81692
81667
|
const isNumbered = corpDetails?.[FormationFormControls.CorporationNameType] === ECoreIncorporationType.Numbered;
|
|
81693
81668
|
const data = {
|
|
81694
81669
|
referenceNumbers: {
|
|
@@ -81746,8 +81721,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81746
81721
|
};
|
|
81747
81722
|
}
|
|
81748
81723
|
return acc;
|
|
81749
|
-
}, {})
|
|
81750
|
-
contactUid: contact[FormationFormControls.Contact] ?? null
|
|
81724
|
+
}, {})
|
|
81751
81725
|
};
|
|
81752
81726
|
if (corpDetails[FormationFormControls.wasLegalOpinionObtained] && corpDetails[FormationFormControls.CorporationNameType] !== ECoreIncorporationType.Numbered) {
|
|
81753
81727
|
data.legalOpinion = {
|
|
@@ -82570,7 +82544,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82570
82544
|
}
|
|
82571
82545
|
];
|
|
82572
82546
|
generateFederalFormationFormContactControl = (contacts) => {
|
|
82573
|
-
const contactsOptions = contacts.map((contact) => ({
|
|
82547
|
+
const contactsOptions = contacts.map((contact) => ({
|
|
82548
|
+
label: contact.participant._profile.name ?? "",
|
|
82549
|
+
value: contact._id
|
|
82550
|
+
}));
|
|
82574
82551
|
return [
|
|
82575
82552
|
{
|
|
82576
82553
|
type: FormType.Select,
|
|
@@ -82585,8 +82562,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82585
82562
|
dynamicLabel: (form, t) => {
|
|
82586
82563
|
const id = form.get(FederalFormationFormControl.Contact)?.value;
|
|
82587
82564
|
const contact = contacts.find((contact2) => contact2._id === id);
|
|
82588
|
-
const email = contact?.
|
|
82589
|
-
const phone = contact?.
|
|
82565
|
+
const email = contact?.participant?.communications?.find((c) => c.type === "Email")?.value;
|
|
82566
|
+
const phone = contact?.participant?.communications?.find((c) => c.type === "Phone")?.value;
|
|
82590
82567
|
return `<span class="body-1-semibold">${t("Contact Details")}:</span> ${getContactDetailsPreview(email, phone, t)}`;
|
|
82591
82568
|
},
|
|
82592
82569
|
formControlName: "",
|
|
@@ -82819,9 +82796,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82819
82796
|
type: FormType.Select,
|
|
82820
82797
|
label: "Person Authorizing the Filing",
|
|
82821
82798
|
formControlName: FederalFormationFormControl.PersonAuthorizingTheFiling,
|
|
82822
|
-
dynamicOptions: (form) =>
|
|
82823
|
-
return affiliationsMap.get(form.get(FormationFormControls.Id)?.value) ?? [];
|
|
82824
|
-
},
|
|
82799
|
+
dynamicOptions: (form) => affiliationsMap.get(form.get(FormationFormControls.Id)?.value) ?? [],
|
|
82825
82800
|
class: "span-6",
|
|
82826
82801
|
required: true
|
|
82827
82802
|
},
|
|
@@ -83354,6 +83329,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83354
83329
|
[FormationFormControls.StreetDirection]: new FormControl(""),
|
|
83355
83330
|
[FormationFormControls.StreetType]: new FormControl("", Validators.required),
|
|
83356
83331
|
[FormationFormControls.StreetName]: new FormControl("", Validators.required),
|
|
83332
|
+
[FormationFormControls.StreetNumber]: new FormControl(""),
|
|
83357
83333
|
[FormationFormControls.UnitNumber]: new FormControl(""),
|
|
83358
83334
|
[FormationFormControls.UnitType]: new FormControl("", requiredIf(FormationFormControls.UnitNumber)),
|
|
83359
83335
|
[FormationFormControls.City]: new FormControl(""),
|
|
@@ -83680,7 +83656,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83680
83656
|
if (task) {
|
|
83681
83657
|
const mailings = task.entity.addresses.filter((a) => a.location_type === "Mailing");
|
|
83682
83658
|
const mailingOptions = mailings.map((mailing) => ({ label: `${mailing.display?.line1}${mailing.display?.line2}`, value: mailing.uid }));
|
|
83683
|
-
const contacts = task.entity.affiliations.filter((a) => a.role.role_name === "Contact");
|
|
83659
|
+
const contacts = task.entity.affiliations.filter((a) => a.role.role_name === "Contact" && a._participant.participant_type === "person");
|
|
83684
83660
|
const eplRegistrations = getEPRegistrations(task);
|
|
83685
83661
|
this.registeredOfficeAddressFields = generateFederalFormationFormRegisteredOfficeAddressControl(mailingOptions);
|
|
83686
83662
|
this.extraProvincialLicensesFields = this.generateEPLFields(eplRegistrations);
|
|
@@ -84744,7 +84720,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84744
84720
|
const task = this.task();
|
|
84745
84721
|
if (!task)
|
|
84746
84722
|
return;
|
|
84747
|
-
const contacts = task.entity.affiliations.filter((a) => a.role?.role_name === "Contact");
|
|
84723
|
+
const contacts = task.entity.affiliations.filter((a) => a.role?.role_name === "Contact" && a._participant.participant_type === "person");
|
|
84748
84724
|
this.contactControl.set(FEDERAL_UPDATE_MAINTAIN_CONTACT_FIELDS(contacts));
|
|
84749
84725
|
this.addressForServiceMap.set(FederalUpdateMaintainFormHelper.generateISCAddressesMap(task.entity.affiliations));
|
|
84750
84726
|
});
|
|
@@ -87323,11 +87299,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87323
87299
|
return;
|
|
87324
87300
|
}
|
|
87325
87301
|
if (isUpdateMaintain(task) && isOntarioTask(task)) {
|
|
87326
|
-
if (deltaData.serviceOrderId) {
|
|
87327
|
-
this.defineInitialStep();
|
|
87328
|
-
}
|
|
87329
87302
|
const serviceOrderId = deltaData?.serviceOrderId;
|
|
87330
87303
|
if (serviceOrderId) {
|
|
87304
|
+
this.defineInitialStep();
|
|
87305
|
+
}
|
|
87306
|
+
if (serviceOrderId && !this.dataWasChanged()) {
|
|
87331
87307
|
this.serviceOrderId = serviceOrderId;
|
|
87332
87308
|
} else {
|
|
87333
87309
|
this.isLoading.set(true);
|
|
@@ -87365,7 +87341,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87365
87341
|
documentName: this.validateOptions()?.documentName ?? "Incorporation Draft",
|
|
87366
87342
|
documentType: "pdf"
|
|
87367
87343
|
});
|
|
87368
|
-
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
87344
|
+
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
87345
|
+
serviceOrderId,
|
|
87346
|
+
validatedData: JSON.parse(JSON.stringify(requestBody))
|
|
87347
|
+
}));
|
|
87369
87348
|
this.close.emit();
|
|
87370
87349
|
}
|
|
87371
87350
|
} catch (response) {
|
|
@@ -87399,7 +87378,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87399
87378
|
documentName: this.validateOptions()?.documentName ?? "Incorporation Draft",
|
|
87400
87379
|
documentType: "pdf"
|
|
87401
87380
|
});
|
|
87402
|
-
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
87381
|
+
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
87382
|
+
serviceOrderId,
|
|
87383
|
+
validatedData: JSON.parse(JSON.stringify(requestBody))
|
|
87384
|
+
}));
|
|
87403
87385
|
this.close.emit();
|
|
87404
87386
|
}
|
|
87405
87387
|
} catch (response) {
|
|
@@ -87565,7 +87547,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87565
87547
|
try {
|
|
87566
87548
|
const requestBody = buildOntarioUpdateMaintainValidationRequest(task, deltaData, this.serviceOrderId);
|
|
87567
87549
|
const response = yield this.updateMaintainService.submitInitialReturnValidationToECore(signature, requestBody, this.validateOptions());
|
|
87568
|
-
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
87550
|
+
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
87551
|
+
serviceOrderId: this.serviceOrderId,
|
|
87552
|
+
validatedData: JSON.parse(JSON.stringify(requestBody))
|
|
87553
|
+
}));
|
|
87569
87554
|
const draftPdf = response?.Draft ?? response?.["Draft"] ?? "";
|
|
87570
87555
|
const searchOrFilingType = getSearchOrFilingType(task);
|
|
87571
87556
|
if (searchOrFilingType) {
|
|
@@ -87823,7 +87808,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87823
87808
|
}], () => [], null);
|
|
87824
87809
|
})();
|
|
87825
87810
|
(() => {
|
|
87826
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber:
|
|
87811
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 80 });
|
|
87827
87812
|
})();
|
|
87828
87813
|
}
|
|
87829
87814
|
});
|