@dyedurham/search-and-file-widget 2.1.34 → 2.1.35
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 +274 -95
- package/package.json +2 -2
package/dnd-filing-shell.js
CHANGED
|
@@ -84149,7 +84149,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84149
84149
|
});
|
|
84150
84150
|
|
|
84151
84151
|
// src/app/constants/BritishColumbiaConstants.ts
|
|
84152
|
-
var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BCNotificationMethod, BCNotificationMethodLabel, BC_NOTIFICATION_METHOD_OPTIONS, BCAnnualReportReminder, BCAnnualReportReminderLabel, BC_ANNUAL_REPORT_REMINDER_OPTIONS, BC_DEFAULT_PROVINCE_STATE, BC_DEFAULT_COUNTRY, BC_FUTURE_EFFECTIVE_DATE_FEE, BC_PASSWORD_MIN_LENGTH, BC_PASSWORD_MAX_LENGTH, BC_PASSWORD_PATTERN, BC_COMPANY_EMAIL_MAX_LENGTH, BC_CANADIAN_POSTAL_PATTERN, BC_NAME_RESERVATION_MAX_LENGTH, BC_NAME_RESERVATION_PATTERN, BC_COMPLETING_PARTY_COUNTRY_OPTIONS;
|
|
84152
|
+
var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BCNotificationMethod, BCNotificationMethodLabel, BC_NOTIFICATION_METHOD_OPTIONS, BC_CHANGE_OF_DIRECTORS_FILING_FEE, BCAnnualReportReminder, BCAnnualReportReminderLabel, BC_ANNUAL_REPORT_REMINDER_OPTIONS, BC_DEFAULT_PROVINCE_STATE, BC_DEFAULT_COUNTRY, BC_FUTURE_EFFECTIVE_DATE_FEE, BC_PASSWORD_MIN_LENGTH, BC_PASSWORD_MAX_LENGTH, BC_PASSWORD_PATTERN, BC_COMPANY_EMAIL_MAX_LENGTH, BC_CANADIAN_POSTAL_PATTERN, BC_NAME_RESERVATION_MAX_LENGTH, BC_NAME_RESERVATION_PATTERN, BC_COMPLETING_PARTY_COUNTRY_OPTIONS;
|
|
84153
84153
|
var init_BritishColumbiaConstants = __esm({
|
|
84154
84154
|
"src/app/constants/BritishColumbiaConstants.ts"() {
|
|
84155
84155
|
init_app_enums();
|
|
@@ -84172,6 +84172,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84172
84172
|
[BCNotificationMethod.Mail]: "Notify by mail"
|
|
84173
84173
|
};
|
|
84174
84174
|
BC_NOTIFICATION_METHOD_OPTIONS = Object.values(BCNotificationMethod).map((value) => ({ value, label: BCNotificationMethodLabel[value] }));
|
|
84175
|
+
BC_CHANGE_OF_DIRECTORS_FILING_FEE = "$21.50";
|
|
84175
84176
|
(function(BCAnnualReportReminder2) {
|
|
84176
84177
|
BCAnnualReportReminder2["Yes"] = "yes";
|
|
84177
84178
|
BCAnnualReportReminder2["No"] = "no";
|
|
@@ -84215,6 +84216,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84215
84216
|
BCChangeOfDirectorsFormControls2["CompanyEmail"] = "companyEmail";
|
|
84216
84217
|
BCChangeOfDirectorsFormControls2["DirectorsAddedOrDeleted"] = "directorsAddedOrDeleted";
|
|
84217
84218
|
BCChangeOfDirectorsFormControls2["ChangeDate"] = "changeDate";
|
|
84219
|
+
BCChangeOfDirectorsFormControls2["FilingFee"] = "filingFee";
|
|
84218
84220
|
BCChangeOfDirectorsFormControls2["RegisterAsOfDate"] = "registerAsOfDate";
|
|
84219
84221
|
BCChangeOfDirectorsFormControls2["MailingAddress"] = "mailingAddress";
|
|
84220
84222
|
BCChangeOfDirectorsFormControls2["DeliveryAddress"] = "deliveryAddress";
|
|
@@ -84948,7 +84950,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84948
84950
|
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
84949
84951
|
const pick = BritishColumbiaFormationFormHelper.pickAddress;
|
|
84950
84952
|
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84951
|
-
const companyEmail =
|
|
84953
|
+
const companyEmail = registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? "";
|
|
84952
84954
|
const registeredMailing = format(pick(registeredOffice?.addresses, "Mailing"));
|
|
84953
84955
|
const effectiveDate = task._ext._effective_date ?? "";
|
|
84954
84956
|
const today = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
@@ -84966,13 +84968,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84966
84968
|
const hasAddOrCease = ceasedIds.size > 0 || incoming.filter(isDirector).length > 0;
|
|
84967
84969
|
config2[BCChangeOfDirectorsFormGroups.FilingDetails] = new FormGroup({
|
|
84968
84970
|
[Controls.DirectorsAddedOrDeleted]: new FormControl(delta?.filingDetails?.directorsAddedOrDeleted ?? hasAddOrCease),
|
|
84969
|
-
[Controls.ChangeDate]: this.readOnly(effectiveDate)
|
|
84971
|
+
[Controls.ChangeDate]: this.readOnly(effectiveDate),
|
|
84972
|
+
[Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
|
|
84970
84973
|
});
|
|
84971
84974
|
const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
|
|
84972
|
-
const savedAddIds = new Set((delta?.directorChanges?.addIds ?? []).map(String));
|
|
84973
|
-
const savedEditIds = new Set((delta?.directorChanges?.editIds ?? []).map(String));
|
|
84974
84975
|
const directors = [
|
|
84975
|
-
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a,
|
|
84976
|
+
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
|
|
84976
84977
|
...outgoing.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Ceased))
|
|
84977
84978
|
];
|
|
84978
84979
|
const fallbackDirectors = directors.length ? [] : this.generateDirectorFormGroupsFromChangeDirectors(task);
|
|
@@ -85414,7 +85415,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85414
85415
|
});
|
|
85415
85416
|
|
|
85416
85417
|
// src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
|
|
85417
|
-
var Controls3, labelledValue, readOnlyRow, directorsAddedOrDeleted, isNotifyByMail, BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_COD_CARD_FORM_DIRECTORS_FIELDS, BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
85418
|
+
var Controls3, labelledValue, readOnlyRow, directorsAddedOrDeleted, isNotifyByMail, BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS, BC_COD_CARD_FORM_DIRECTORS_FIELDS, BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
85418
85419
|
var init_british_columbia_change_of_directors_form_constants = __esm({
|
|
85419
85420
|
"src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
|
|
85420
85421
|
init_form_enums();
|
|
@@ -85454,7 +85455,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85454
85455
|
class: "span-12"
|
|
85455
85456
|
}
|
|
85456
85457
|
];
|
|
85457
|
-
[
|
|
85458
|
+
BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS = [
|
|
85459
|
+
{
|
|
85460
|
+
type: FormType.Text,
|
|
85461
|
+
formControlName: "",
|
|
85462
|
+
class: "span-12",
|
|
85463
|
+
dynamicLabel: (_, t) => `<span class="body-1-semibold">${t("Note")}:</span> ${t("There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.")}`
|
|
85464
|
+
},
|
|
85458
85465
|
{
|
|
85459
85466
|
type: FormType.Checkbox,
|
|
85460
85467
|
label: "Directors will be added and/or deleted as part of this filing",
|
|
@@ -85467,6 +85474,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85467
85474
|
__spreadProps(__spreadValues({}, readOnlyRow("Date Directors were added or deleted", Controls3.ChangeDate, "span-8")), {
|
|
85468
85475
|
isVisible: directorsAddedOrDeleted
|
|
85469
85476
|
}),
|
|
85477
|
+
__spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls3.FilingFee, "span-4")), {
|
|
85478
|
+
isVisible: directorsAddedOrDeleted
|
|
85479
|
+
}),
|
|
85470
85480
|
{
|
|
85471
85481
|
type: FormType.Text,
|
|
85472
85482
|
formControlName: "",
|
|
@@ -85588,26 +85598,100 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85588
85598
|
\u0275\u0275elementEnd()()()();
|
|
85589
85599
|
}
|
|
85590
85600
|
if (rf & 2) {
|
|
85591
|
-
let
|
|
85592
|
-
let
|
|
85601
|
+
let tmp_9_0;
|
|
85602
|
+
let tmp_11_0;
|
|
85593
85603
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85594
85604
|
const corporationDetails_r5 = \u0275\u0275readContextLet(6);
|
|
85595
85605
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.CorporationDetails);
|
|
85596
85606
|
\u0275\u0275advance(4);
|
|
85597
85607
|
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Corporation Name"), ":");
|
|
85598
85608
|
\u0275\u0275advance(2);
|
|
85599
|
-
\u0275\u0275textInterpolate1(" ", (
|
|
85609
|
+
\u0275\u0275textInterpolate1(" ", (tmp_9_0 = corporationDetails_r5.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_9_0.value, " ");
|
|
85600
85610
|
\u0275\u0275advance(3);
|
|
85601
85611
|
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 11, "Incorporation Number"), ":");
|
|
85602
85612
|
\u0275\u0275advance(2);
|
|
85603
|
-
\u0275\u0275textInterpolate1(" ", (
|
|
85613
|
+
\u0275\u0275textInterpolate1(" ", (tmp_11_0 = corporationDetails_r5.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_11_0.value, " ");
|
|
85604
85614
|
\u0275\u0275advance(2);
|
|
85605
85615
|
\u0275\u0275property("form", corporationDetails_r5)("config", ctx_r0.companyEmailFields())("isSubmitted", ctx_r0.isSubmitted());
|
|
85606
85616
|
}
|
|
85607
85617
|
}
|
|
85608
|
-
function
|
|
85618
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template(rf, ctx) {
|
|
85619
|
+
if (rf & 1) {
|
|
85620
|
+
\u0275\u0275elementStart(0, "div", 16)(1, "div", 17)(2, "p", 18);
|
|
85621
|
+
\u0275\u0275text(3);
|
|
85622
|
+
\u0275\u0275pipe(4, "translate");
|
|
85623
|
+
\u0275\u0275elementStart(5, "strong");
|
|
85624
|
+
\u0275\u0275text(6);
|
|
85625
|
+
\u0275\u0275elementEnd()()();
|
|
85626
|
+
\u0275\u0275elementStart(7, "p", 19)(8, "strong");
|
|
85627
|
+
\u0275\u0275text(9);
|
|
85628
|
+
\u0275\u0275pipe(10, "translate");
|
|
85629
|
+
\u0275\u0275elementEnd();
|
|
85630
|
+
\u0275\u0275text(11);
|
|
85631
|
+
\u0275\u0275elementEnd()();
|
|
85632
|
+
}
|
|
85633
|
+
if (rf & 2) {
|
|
85634
|
+
let tmp_8_0;
|
|
85635
|
+
let tmp_10_0;
|
|
85636
|
+
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
85637
|
+
const filingDetails_r7 = \u0275\u0275readContextLet(8);
|
|
85638
|
+
\u0275\u0275advance(3);
|
|
85639
|
+
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 4, "The date on which the individual(s) became or ceased to be a director:"), " ");
|
|
85640
|
+
\u0275\u0275advance(3);
|
|
85641
|
+
\u0275\u0275textInterpolate(ctx_r0.getEffectiveDateDisplay((tmp_8_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_8_0.value));
|
|
85642
|
+
\u0275\u0275advance(3);
|
|
85643
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 6, "Filing Fee"), ":");
|
|
85644
|
+
\u0275\u0275advance(2);
|
|
85645
|
+
\u0275\u0275textInterpolate1(" ", (tmp_10_0 = filingDetails_r7.get(ctx_r0.controls.FilingFee)) == null ? null : tmp_10_0.value, " ");
|
|
85646
|
+
}
|
|
85647
|
+
}
|
|
85648
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
|
|
85649
|
+
if (rf & 1) {
|
|
85650
|
+
const _r6 = \u0275\u0275getCurrentView();
|
|
85651
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "div", 14)(3, "strong");
|
|
85652
|
+
\u0275\u0275text(4);
|
|
85653
|
+
\u0275\u0275pipe(5, "translate");
|
|
85654
|
+
\u0275\u0275elementEnd();
|
|
85655
|
+
\u0275\u0275text(6);
|
|
85656
|
+
\u0275\u0275pipe(7, "translate");
|
|
85657
|
+
\u0275\u0275elementEnd();
|
|
85658
|
+
\u0275\u0275elementStart(8, "mat-checkbox", 15);
|
|
85659
|
+
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
|
|
85660
|
+
let tmp_7_0;
|
|
85661
|
+
\u0275\u0275restoreView(_r6);
|
|
85662
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
85663
|
+
const filingDetails_r7 = \u0275\u0275readContextLet(8);
|
|
85664
|
+
(tmp_7_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.updateValueAndValidity({ emitEvent: false });
|
|
85665
|
+
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r7.valid));
|
|
85666
|
+
});
|
|
85667
|
+
\u0275\u0275text(9);
|
|
85668
|
+
\u0275\u0275pipe(10, "translate");
|
|
85669
|
+
\u0275\u0275elementEnd();
|
|
85670
|
+
\u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 12, 8, "div", 16);
|
|
85671
|
+
\u0275\u0275elementEnd()();
|
|
85672
|
+
}
|
|
85673
|
+
if (rf & 2) {
|
|
85674
|
+
let tmp_14_0;
|
|
85675
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
85676
|
+
const filingDetails_r7 = \u0275\u0275readContextLet(8);
|
|
85677
|
+
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["filingDetails"])("title", ctx_r0.groups.FilingDetails);
|
|
85678
|
+
\u0275\u0275advance();
|
|
85679
|
+
\u0275\u0275property("formGroup", filingDetails_r7);
|
|
85680
|
+
\u0275\u0275advance(3);
|
|
85681
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Note"), ":");
|
|
85682
|
+
\u0275\u0275advance(2);
|
|
85683
|
+
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(7, 11, "There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing."), " ");
|
|
85684
|
+
\u0275\u0275advance(2);
|
|
85685
|
+
\u0275\u0275property("formControlName", ctx_r0.controls.DirectorsAddedOrDeleted);
|
|
85686
|
+
\u0275\u0275advance();
|
|
85687
|
+
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(10, 13, "Directors will be added and/or deleted as part of this filing"), " ");
|
|
85688
|
+
\u0275\u0275advance(2);
|
|
85689
|
+
\u0275\u0275conditional(((tmp_14_0 = filingDetails_r7.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_14_0.value) ? 11 : -1);
|
|
85690
|
+
}
|
|
85691
|
+
}
|
|
85692
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
|
|
85609
85693
|
if (rf & 1) {
|
|
85610
|
-
\u0275\u0275elementStart(0, "span",
|
|
85694
|
+
\u0275\u0275elementStart(0, "span", 24);
|
|
85611
85695
|
\u0275\u0275text(1);
|
|
85612
85696
|
\u0275\u0275pipe(2, "translate");
|
|
85613
85697
|
\u0275\u0275elementEnd();
|
|
@@ -85617,9 +85701,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85617
85701
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "NEW"));
|
|
85618
85702
|
}
|
|
85619
85703
|
}
|
|
85620
|
-
function
|
|
85704
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
|
|
85621
85705
|
if (rf & 1) {
|
|
85622
|
-
\u0275\u0275elementStart(0, "span",
|
|
85706
|
+
\u0275\u0275elementStart(0, "span", 25);
|
|
85623
85707
|
\u0275\u0275text(1);
|
|
85624
85708
|
\u0275\u0275pipe(2, "translate");
|
|
85625
85709
|
\u0275\u0275elementEnd();
|
|
@@ -85629,71 +85713,71 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85629
85713
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "CEASE"));
|
|
85630
85714
|
}
|
|
85631
85715
|
}
|
|
85632
|
-
function
|
|
85716
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
|
|
85633
85717
|
if (rf & 1) {
|
|
85634
|
-
\u0275\u0275elementStart(0, "div",
|
|
85718
|
+
\u0275\u0275elementStart(0, "div", 22)(1, "div", 23)(2, "strong");
|
|
85635
85719
|
\u0275\u0275text(3);
|
|
85636
85720
|
\u0275\u0275elementEnd();
|
|
85637
|
-
\u0275\u0275template(4,
|
|
85721
|
+
\u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 24)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 25);
|
|
85638
85722
|
\u0275\u0275elementEnd();
|
|
85639
|
-
\u0275\u0275elementStart(6, "div",
|
|
85723
|
+
\u0275\u0275elementStart(6, "div", 23);
|
|
85640
85724
|
\u0275\u0275text(7);
|
|
85641
85725
|
\u0275\u0275elementEnd();
|
|
85642
|
-
\u0275\u0275elementStart(8, "div",
|
|
85726
|
+
\u0275\u0275elementStart(8, "div", 23);
|
|
85643
85727
|
\u0275\u0275text(9);
|
|
85644
85728
|
\u0275\u0275elementEnd()();
|
|
85645
85729
|
}
|
|
85646
85730
|
if (rf & 2) {
|
|
85647
|
-
let
|
|
85648
|
-
let tmp_21_0;
|
|
85731
|
+
let tmp_19_0;
|
|
85649
85732
|
let tmp_22_0;
|
|
85733
|
+
let tmp_23_0;
|
|
85650
85734
|
\u0275\u0275nextContext();
|
|
85651
|
-
const
|
|
85735
|
+
const directorForm_r8 = \u0275\u0275readContextLet(0);
|
|
85652
85736
|
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
85653
85737
|
\u0275\u0275advance(3);
|
|
85654
|
-
\u0275\u0275textInterpolate((
|
|
85738
|
+
\u0275\u0275textInterpolate((tmp_19_0 = directorForm_r8.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_19_0.value);
|
|
85655
85739
|
\u0275\u0275advance();
|
|
85656
|
-
\u0275\u0275conditional(ctx_r0.isNewDirector(
|
|
85740
|
+
\u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r8) ? 4 : -1);
|
|
85657
85741
|
\u0275\u0275advance();
|
|
85658
|
-
\u0275\u0275conditional(ctx_r0.isCeasedDirector(
|
|
85742
|
+
\u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r8) ? 5 : -1);
|
|
85659
85743
|
\u0275\u0275advance(2);
|
|
85660
|
-
\u0275\u0275textInterpolate((
|
|
85744
|
+
\u0275\u0275textInterpolate((tmp_22_0 = directorForm_r8.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_22_0.value);
|
|
85661
85745
|
\u0275\u0275advance(2);
|
|
85662
|
-
\u0275\u0275textInterpolate((
|
|
85746
|
+
\u0275\u0275textInterpolate((tmp_23_0 = directorForm_r8.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
|
|
85663
85747
|
}
|
|
85664
85748
|
}
|
|
85665
|
-
function
|
|
85749
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
|
|
85666
85750
|
if (rf & 1) {
|
|
85667
85751
|
\u0275\u0275declareLet(0);
|
|
85668
|
-
\u0275\u0275template(1,
|
|
85752
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 22);
|
|
85669
85753
|
}
|
|
85670
85754
|
if (rf & 2) {
|
|
85671
|
-
const \u0275$
|
|
85672
|
-
const
|
|
85755
|
+
const \u0275$index_98_r9 = ctx.$index;
|
|
85756
|
+
const directorForm_r10 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_98_r9));
|
|
85673
85757
|
\u0275\u0275advance();
|
|
85674
|
-
\u0275\u0275conditional(
|
|
85758
|
+
\u0275\u0275conditional(directorForm_r10 ? 1 : -1);
|
|
85675
85759
|
}
|
|
85676
85760
|
}
|
|
85677
|
-
function
|
|
85761
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
|
|
85678
85762
|
if (rf & 1) {
|
|
85679
|
-
\u0275\u0275elementStart(0, "div",
|
|
85763
|
+
\u0275\u0275elementStart(0, "div", 7)(1, "div", 20)(2, "div", 21);
|
|
85680
85764
|
\u0275\u0275text(3);
|
|
85681
85765
|
\u0275\u0275pipe(4, "translate");
|
|
85682
85766
|
\u0275\u0275elementEnd();
|
|
85683
|
-
\u0275\u0275elementStart(5, "div",
|
|
85767
|
+
\u0275\u0275elementStart(5, "div", 21);
|
|
85684
85768
|
\u0275\u0275text(6);
|
|
85685
85769
|
\u0275\u0275pipe(7, "translate");
|
|
85686
85770
|
\u0275\u0275elementEnd();
|
|
85687
|
-
\u0275\u0275elementStart(8, "div",
|
|
85771
|
+
\u0275\u0275elementStart(8, "div", 21);
|
|
85688
85772
|
\u0275\u0275text(9);
|
|
85689
85773
|
\u0275\u0275pipe(10, "translate");
|
|
85690
85774
|
\u0275\u0275elementEnd()();
|
|
85691
|
-
\u0275\u0275repeaterCreate(11,
|
|
85775
|
+
\u0275\u0275repeaterCreate(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template, 2, 2, null, null, \u0275\u0275repeaterTrackByIdentity);
|
|
85692
85776
|
\u0275\u0275elementEnd();
|
|
85693
85777
|
}
|
|
85694
85778
|
if (rf & 2) {
|
|
85695
85779
|
\u0275\u0275nextContext();
|
|
85696
|
-
const
|
|
85780
|
+
const directorsArray_r11 = \u0275\u0275readContextLet(10);
|
|
85697
85781
|
\u0275\u0275advance(3);
|
|
85698
85782
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4, 3, "Name"));
|
|
85699
85783
|
\u0275\u0275advance(3);
|
|
@@ -85701,12 +85785,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85701
85785
|
\u0275\u0275advance(3);
|
|
85702
85786
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 7, "Delivery Address"));
|
|
85703
85787
|
\u0275\u0275advance(2);
|
|
85704
|
-
\u0275\u0275repeater(
|
|
85788
|
+
\u0275\u0275repeater(directorsArray_r11.controls);
|
|
85705
85789
|
}
|
|
85706
85790
|
}
|
|
85707
|
-
function
|
|
85791
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
|
|
85708
85792
|
if (rf & 1) {
|
|
85709
|
-
\u0275\u0275elementStart(0, "h2",
|
|
85793
|
+
\u0275\u0275elementStart(0, "h2", 8);
|
|
85710
85794
|
\u0275\u0275text(1);
|
|
85711
85795
|
\u0275\u0275pipe(2, "translate");
|
|
85712
85796
|
\u0275\u0275elementEnd();
|
|
@@ -85716,35 +85800,35 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85716
85800
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "Unchanged"));
|
|
85717
85801
|
}
|
|
85718
85802
|
}
|
|
85719
|
-
function
|
|
85803
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
|
|
85720
85804
|
if (rf & 1) {
|
|
85721
|
-
const
|
|
85722
|
-
\u0275\u0275elementStart(0, "expandable-card",
|
|
85805
|
+
const _r12 = \u0275\u0275getCurrentView();
|
|
85806
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 26)(2, "p");
|
|
85723
85807
|
\u0275\u0275text(3);
|
|
85724
85808
|
\u0275\u0275pipe(4, "translate");
|
|
85725
85809
|
\u0275\u0275elementEnd();
|
|
85726
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
85727
|
-
\u0275\u0275listener("change", function
|
|
85728
|
-
\u0275\u0275restoreView(
|
|
85810
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 27);
|
|
85811
|
+
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template_mat_radio_group_change_5_listener() {
|
|
85812
|
+
\u0275\u0275restoreView(_r12);
|
|
85729
85813
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85730
|
-
const
|
|
85731
|
-
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder",
|
|
85814
|
+
const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
|
|
85815
|
+
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r13.valid));
|
|
85732
85816
|
});
|
|
85733
|
-
\u0275\u0275elementStart(6, "mat-radio-button",
|
|
85817
|
+
\u0275\u0275elementStart(6, "mat-radio-button", 28);
|
|
85734
85818
|
\u0275\u0275text(7);
|
|
85735
85819
|
\u0275\u0275pipe(8, "translate");
|
|
85736
85820
|
\u0275\u0275elementEnd();
|
|
85737
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
85821
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 28);
|
|
85738
85822
|
\u0275\u0275text(10);
|
|
85739
85823
|
\u0275\u0275pipe(11, "translate");
|
|
85740
85824
|
\u0275\u0275elementEnd()()()();
|
|
85741
85825
|
}
|
|
85742
85826
|
if (rf & 2) {
|
|
85743
85827
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85744
|
-
const
|
|
85828
|
+
const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
|
|
85745
85829
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
|
|
85746
85830
|
\u0275\u0275advance();
|
|
85747
|
-
\u0275\u0275property("formGroup",
|
|
85831
|
+
\u0275\u0275property("formGroup", annualReportReminder_r13);
|
|
85748
85832
|
\u0275\u0275advance(2);
|
|
85749
85833
|
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 10, "Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company."), " ");
|
|
85750
85834
|
\u0275\u0275advance(2);
|
|
@@ -85764,6 +85848,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85764
85848
|
"src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts"() {
|
|
85765
85849
|
init_core();
|
|
85766
85850
|
init_forms();
|
|
85851
|
+
init_checkbox();
|
|
85852
|
+
init_datepicker();
|
|
85853
|
+
init_form_field();
|
|
85854
|
+
init_input();
|
|
85767
85855
|
init_radio();
|
|
85768
85856
|
init_ngx_translate_core();
|
|
85769
85857
|
init_filing_form_group_component();
|
|
@@ -85796,6 +85884,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85796
85884
|
return BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS.map((field) => field.formControlName === this.controls.CompanyEmail ? __spreadProps(__spreadValues({}, field), { options: emailOptions }) : field);
|
|
85797
85885
|
});
|
|
85798
85886
|
companyEmailFields = computed(() => this.corporationDetailsFields().filter((field) => field.formControlName === this.controls.CompanyEmail));
|
|
85887
|
+
filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
|
|
85799
85888
|
directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
|
|
85800
85889
|
annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
85801
85890
|
initiallyOpenCardsCount = 3;
|
|
@@ -85807,6 +85896,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85807
85896
|
const annualReportReminder = this.getFormGroup(this.groups.AnnualReportReminder);
|
|
85808
85897
|
return Object.values(this.sectionValidity).every((v) => v) && !filingDetails?.invalid && !dateInvalid && !annualReportReminder?.invalid;
|
|
85809
85898
|
}
|
|
85899
|
+
getEffectiveDateDisplay(value) {
|
|
85900
|
+
const date = String(value ?? "").split("T")[0];
|
|
85901
|
+
const [year, month, day] = date.split("-");
|
|
85902
|
+
return year && month && day ? `${year}-${month}-${day}` : "\u2014";
|
|
85903
|
+
}
|
|
85810
85904
|
onSectionValidChange(section, valid) {
|
|
85811
85905
|
this.sectionValidity = __spreadProps(__spreadValues({}, this.sectionValidity), { [section]: valid });
|
|
85812
85906
|
this.visiblyValidChange.emit(this.isVisiblyValid());
|
|
@@ -85832,7 +85926,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85832
85926
|
static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
|
|
85833
85927
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
|
|
85834
85928
|
};
|
|
85835
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfDirectorsFormComponent, selectors: [["british-columbia-change-of-directors-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls:
|
|
85929
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfDirectorsFormComponent, selectors: [["british-columbia-change-of-directors-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 16, vars: 14, consts: [[1, "change-of-directors-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, "change-of-directors-form-content"], [3, "title"], [3, "isStatusIcon", "title"], [3, "isStatusIcon", "isValid", "title"], ["role", "table", 1, "directors-table"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "readonly-summary"], [1, "company-email-field"], [3, "visiblyValidChange", "form", "config", "isSubmitted"], [1, "filing-details", 3, "formGroup"], [1, "note-box"], [1, "directors-change-checkbox", 3, "change", "formControlName"], [1, "filing-details-grid"], [1, "date-field"], [1, "effective-date-description"], [1, "filing-fee"], ["role", "row", 1, "directors-table-header"], ["role", "columnheader"], ["role", "row", 1, "directors-table-row"], ["role", "cell"], [1, "status-pill", "new"], [1, "status-pill", "ceased"], [1, "annual-reminder", 3, "formGroup"], [3, "change", "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfDirectorsFormComponent_Template(rf, ctx) {
|
|
85836
85930
|
if (rf & 1) {
|
|
85837
85931
|
\u0275\u0275elementStart(0, "div", 0);
|
|
85838
85932
|
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
@@ -85842,11 +85936,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85842
85936
|
\u0275\u0275declareLet(6);
|
|
85843
85937
|
\u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 14, 13, "expandable-card", 5);
|
|
85844
85938
|
\u0275\u0275declareLet(8);
|
|
85845
|
-
\u0275\
|
|
85846
|
-
\u0275\
|
|
85939
|
+
\u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 6);
|
|
85940
|
+
\u0275\u0275declareLet(10);
|
|
85941
|
+
\u0275\u0275elementStart(11, "expandable-card", 5);
|
|
85942
|
+
\u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 7)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 8);
|
|
85847
85943
|
\u0275\u0275elementEnd();
|
|
85848
|
-
\u0275\u0275declareLet(
|
|
85849
|
-
\u0275\u0275template(
|
|
85944
|
+
\u0275\u0275declareLet(14);
|
|
85945
|
+
\u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 6);
|
|
85850
85946
|
\u0275\u0275elementEnd()();
|
|
85851
85947
|
}
|
|
85852
85948
|
if (rf & 2) {
|
|
@@ -85855,28 +85951,33 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85855
85951
|
\u0275\u0275advance();
|
|
85856
85952
|
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
85857
85953
|
\u0275\u0275advance(2);
|
|
85858
|
-
const
|
|
85954
|
+
const referenceNumbers_r14 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
85955
|
+
\u0275\u0275advance();
|
|
85956
|
+
\u0275\u0275conditional(referenceNumbers_r14 ? 5 : -1);
|
|
85859
85957
|
\u0275\u0275advance();
|
|
85860
|
-
\u0275\
|
|
85958
|
+
const corporationDetails_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
85959
|
+
\u0275\u0275advance();
|
|
85960
|
+
\u0275\u0275conditional(corporationDetails_r15 ? 7 : -1);
|
|
85861
85961
|
\u0275\u0275advance();
|
|
85862
|
-
const
|
|
85962
|
+
const filingDetails_r16 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.FilingDetails));
|
|
85863
85963
|
\u0275\u0275advance();
|
|
85864
|
-
\u0275\u0275conditional(
|
|
85964
|
+
\u0275\u0275conditional(filingDetails_r16 ? 9 : -1);
|
|
85865
85965
|
\u0275\u0275advance();
|
|
85866
|
-
const
|
|
85966
|
+
const directorsArray_r17 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
|
|
85867
85967
|
\u0275\u0275advance();
|
|
85868
85968
|
\u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
|
|
85869
85969
|
\u0275\u0275advance();
|
|
85870
|
-
\u0275\u0275conditional(
|
|
85970
|
+
\u0275\u0275conditional(directorsArray_r17 && directorsArray_r17.length ? 12 : 13);
|
|
85871
85971
|
\u0275\u0275advance(2);
|
|
85872
|
-
const
|
|
85972
|
+
const annualReportReminder_r18 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
85873
85973
|
\u0275\u0275advance();
|
|
85874
|
-
\u0275\u0275conditional(
|
|
85974
|
+
\u0275\u0275conditional(annualReportReminder_r18 ? 15 : -1);
|
|
85875
85975
|
}
|
|
85876
85976
|
}, dependencies: [
|
|
85877
85977
|
FilingFormGroupComponent,
|
|
85878
85978
|
AlertComponent,
|
|
85879
85979
|
ExpandableCardComponent,
|
|
85980
|
+
MatCheckbox,
|
|
85880
85981
|
MatRadioButton,
|
|
85881
85982
|
MatRadioGroup,
|
|
85882
85983
|
ReactiveFormsModule,
|
|
@@ -85894,6 +85995,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85894
85995
|
FilingFormGroupComponent,
|
|
85895
85996
|
AlertComponent,
|
|
85896
85997
|
ExpandableCardComponent,
|
|
85998
|
+
MatCheckbox,
|
|
85999
|
+
MatDatepicker,
|
|
86000
|
+
MatDatepickerInput,
|
|
86001
|
+
MatFormField,
|
|
86002
|
+
MatInput,
|
|
85897
86003
|
MatRadioButton,
|
|
85898
86004
|
MatRadioGroup,
|
|
85899
86005
|
ReactiveFormsModule,
|
|
@@ -85941,22 +86047,72 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85941
86047
|
<strong>{{ 'Incorporation Number' | translate }}:</strong>\r
|
|
85942
86048
|
{{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
|
|
85943
86049
|
</p>\r
|
|
85944
|
-
<div class="company-email-field"
|
|
85945
|
-
<filing-form-group
|
|
85946
|
-
[form]="corporationDetails"
|
|
85947
|
-
[config]="companyEmailFields()"
|
|
85948
|
-
[isSubmitted]="isSubmitted()"
|
|
85949
|
-
(visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"
|
|
85950
|
-
|
|
85951
|
-
</div
|
|
86050
|
+
<div class="company-email-field">\r
|
|
86051
|
+
<filing-form-group\r
|
|
86052
|
+
[form]="corporationDetails"\r
|
|
86053
|
+
[config]="companyEmailFields()"\r
|
|
86054
|
+
[isSubmitted]="isSubmitted()"\r
|
|
86055
|
+
(visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"\r
|
|
86056
|
+
/>\r
|
|
86057
|
+
</div>\r
|
|
86058
|
+
</div>\r
|
|
86059
|
+
</expandable-card>\r
|
|
86060
|
+
}\r
|
|
86061
|
+
\r
|
|
86062
|
+
@let filingDetails = getFormGroup(groups.FilingDetails);\r
|
|
86063
|
+
\r
|
|
86064
|
+
@if (filingDetails) {\r
|
|
86065
|
+
<expandable-card\r
|
|
86066
|
+
[isStatusIcon]="!readonly()"\r
|
|
86067
|
+
[isValid]="sectionValidity['filingDetails']"\r
|
|
86068
|
+
[title]="groups.FilingDetails"\r
|
|
86069
|
+
>\r
|
|
86070
|
+
<div class="filing-details" [formGroup]="filingDetails">\r
|
|
86071
|
+
<div class="note-box">\r
|
|
86072
|
+
<strong>{{ 'Note' | translate }}:</strong>\r
|
|
86073
|
+
{{\r
|
|
86074
|
+
'There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.'\r
|
|
86075
|
+
| translate\r
|
|
86076
|
+
}}\r
|
|
86077
|
+
</div>\r
|
|
86078
|
+
\r
|
|
86079
|
+
<mat-checkbox\r
|
|
86080
|
+
class="directors-change-checkbox"\r
|
|
86081
|
+
[formControlName]="controls.DirectorsAddedOrDeleted"\r
|
|
86082
|
+
(change)="\r
|
|
86083
|
+
filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false });\r
|
|
86084
|
+
onSectionValidChange('filingDetails', filingDetails.valid)\r
|
|
86085
|
+
"\r
|
|
86086
|
+
>\r
|
|
86087
|
+
{{ 'Directors will be added and/or deleted as part of this filing' | translate }}\r
|
|
86088
|
+
</mat-checkbox>\r
|
|
86089
|
+
\r
|
|
86090
|
+
@if (filingDetails.get(controls.DirectorsAddedOrDeleted)?.value) {\r
|
|
86091
|
+
<div class="filing-details-grid">\r
|
|
86092
|
+
<div class="date-field">\r
|
|
86093
|
+
<p class="effective-date-description">\r
|
|
86094
|
+
{{\r
|
|
86095
|
+
'The date on which the individual(s) became or ceased to be a director:'\r
|
|
86096
|
+
| translate\r
|
|
86097
|
+
}}\r
|
|
86098
|
+
<strong>{{ getEffectiveDateDisplay(filingDetails.get(controls.ChangeDate)?.value) }}</strong>\r
|
|
86099
|
+
</p>\r
|
|
86100
|
+
</div>\r
|
|
86101
|
+
\r
|
|
86102
|
+
<p class="filing-fee">\r
|
|
86103
|
+
<strong>{{ 'Filing Fee' | translate }}:</strong>\r
|
|
86104
|
+
{{ filingDetails.get(controls.FilingFee)?.value }}\r
|
|
86105
|
+
</p>\r
|
|
86106
|
+
</div>\r
|
|
86107
|
+
}\r
|
|
85952
86108
|
</div>\r
|
|
85953
86109
|
</expandable-card>\r
|
|
85954
86110
|
}\r
|
|
85955
86111
|
\r
|
|
85956
|
-
@let directorsArray = getFormArray(groups.Directors)
|
|
86112
|
+
@let directorsArray = getFormArray(groups.Directors);\r
|
|
85957
86113
|
\r
|
|
85958
|
-
<expandable-card [isStatusIcon]="false" [title]="groups.Directors"
|
|
85959
|
-
@if (directorsArray && directorsArray.length) {
|
|
86114
|
+
<expandable-card [isStatusIcon]="false" [title]="groups.Directors">\r
|
|
86115
|
+
@if (directorsArray && directorsArray.length) {\r
|
|
85960
86116
|
<div class="directors-table" role="table">\r
|
|
85961
86117
|
<div class="directors-table-header" role="row">\r
|
|
85962
86118
|
<div role="columnheader">{{ 'Name' | translate }}</div>\r
|
|
@@ -86023,7 +86179,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86023
86179
|
}], null, null);
|
|
86024
86180
|
})();
|
|
86025
86181
|
(() => {
|
|
86026
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfDirectorsFormComponent, { className: "BritishColumbiaChangeOfDirectorsFormComponent", filePath: "src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts", lineNumber:
|
|
86182
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfDirectorsFormComponent, { className: "BritishColumbiaChangeOfDirectorsFormComponent", filePath: "src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts", lineNumber: 61 });
|
|
86027
86183
|
})();
|
|
86028
86184
|
}
|
|
86029
86185
|
});
|
|
@@ -88829,7 +88985,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88829
88985
|
const c = BCChangeOfDirectorsFormControls;
|
|
88830
88986
|
const formData = this.deltaForm().getRawValue();
|
|
88831
88987
|
const refNumbers = formData[BCChangeOfDirectorsFormGroups.ReferenceNumbers];
|
|
88832
|
-
const corporation = formData[BCChangeOfDirectorsFormGroups.CorporationDetails];
|
|
88833
88988
|
const filing = formData[BCChangeOfDirectorsFormGroups.FilingDetails];
|
|
88834
88989
|
const notification = formData[BCChangeOfDirectorsFormGroups.Notification];
|
|
88835
88990
|
const reminder = formData[BCChangeOfDirectorsFormGroups.AnnualReportReminder];
|
|
@@ -88841,7 +88996,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88841
88996
|
referenceNumber: refNumbers?.[c.ClientMatterNumber] ?? null,
|
|
88842
88997
|
docketNumber: refNumbers?.[c.DocketNumber] ?? null
|
|
88843
88998
|
},
|
|
88844
|
-
companyEmail: corporation?.[c.CompanyEmail] ?? null,
|
|
88845
88999
|
filingDetails: {
|
|
88846
89000
|
directorsAddedOrDeleted: addedOrDeleted,
|
|
88847
89001
|
changeDate: addedOrDeleted ? filing?.[c.ChangeDate] ?? null : void 0
|
|
@@ -95192,10 +95346,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95192
95346
|
/**
|
|
95193
95347
|
* Orders the corporation's current data extract and waits until it is ready, returning the
|
|
95194
95348
|
* `currentDataServiceOrderId` that Validate Filing needs. The registry bot can take a while,
|
|
95195
|
-
* so the extract is polled every `intervalMs`
|
|
95349
|
+
* so the extract is polled every `intervalMs` for up to `maxAttempts` times.
|
|
95196
95350
|
*/
|
|
95197
95351
|
ensureCurrentDataExtract(_0, _1) {
|
|
95198
|
-
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3 } = {}) {
|
|
95352
|
+
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3, maxAttempts = 40 } = {}) {
|
|
95199
95353
|
ensureAuthInputs(signature);
|
|
95200
95354
|
const fetchFn = opts.fetchImpl ?? fetch;
|
|
95201
95355
|
const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
|
|
@@ -95209,7 +95363,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95209
95363
|
errors: ordered.errors?.length ? ordered.errors : (ordered.additionalInformation ?? []).map((message) => ({ message }))
|
|
95210
95364
|
}));
|
|
95211
95365
|
}
|
|
95212
|
-
for (; ; ) {
|
|
95366
|
+
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
95213
95367
|
const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
|
|
95214
95368
|
method: "GET",
|
|
95215
95369
|
headers: __spreadValues({
|
|
@@ -95228,6 +95382,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95228
95382
|
}
|
|
95229
95383
|
yield new Promise((resolve) => setTimeout(resolve, intervalMs));
|
|
95230
95384
|
}
|
|
95385
|
+
throw new Error("BC current data extract is still processing. Please try again in a moment.");
|
|
95231
95386
|
});
|
|
95232
95387
|
}
|
|
95233
95388
|
getCurrentDataExtract() {
|
|
@@ -95379,7 +95534,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95379
95534
|
const addedDirectors = [...source?.AddedDirectors ?? [], ...source?.AddDirector ?? [], ...source?.addDirectors ?? []];
|
|
95380
95535
|
const ceasedDirectors = [...source?.CeasedDirectors ?? [], ...source?.CeaseDirector ?? [], ...source?.ceaseDirectors ?? []];
|
|
95381
95536
|
const editedDirectors = [...source?.EditedDirectors ?? [], ...source?.EditDirector ?? [], ...source?.editDirectors ?? []];
|
|
95382
|
-
const companyEmail =
|
|
95537
|
+
const companyEmail = findCompanyEmail(task);
|
|
95383
95538
|
const byId = new Map([
|
|
95384
95539
|
...incomingDirectors,
|
|
95385
95540
|
...outgoingDirectors
|
|
@@ -95474,7 +95629,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95474
95629
|
return result;
|
|
95475
95630
|
}
|
|
95476
95631
|
function normaliseDirectorName(value) {
|
|
95477
|
-
const name = value?.PersonName ?? value?.personName ?? value
|
|
95632
|
+
const name = value?.PersonName ?? value?.personName ?? value;
|
|
95478
95633
|
return [
|
|
95479
95634
|
name?.FirstName ?? name?.firstName,
|
|
95480
95635
|
name?.MiddleName ?? name?.middleName,
|
|
@@ -96175,9 +96330,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96175
96330
|
}
|
|
96176
96331
|
}
|
|
96177
96332
|
if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
|
|
96333
|
+
if (task.deltaData?.validatedData) {
|
|
96334
|
+
this.bcCurrentDataServiceOrderId = task.deltaData.validatedData.currentDataServiceOrderId ?? "";
|
|
96335
|
+
this.bcDataExtractTaskId = task._id;
|
|
96336
|
+
return;
|
|
96337
|
+
}
|
|
96178
96338
|
const signature = this._signature();
|
|
96179
96339
|
if (!signature)
|
|
96180
96340
|
return;
|
|
96341
|
+
this.bcDataExtractTaskId = task._id;
|
|
96181
96342
|
const { request, issues } = buildBritishColumbiaDataExtractOrder(task, deltaData?.companyPassword);
|
|
96182
96343
|
if (issues.length) {
|
|
96183
96344
|
this.errors.set(issues);
|
|
@@ -96187,7 +96348,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96187
96348
|
try {
|
|
96188
96349
|
this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
|
|
96189
96350
|
this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
|
|
96190
|
-
this.bcDataExtractTaskId = task._id;
|
|
96191
96351
|
} catch (error) {
|
|
96192
96352
|
this.handleCatchError(error);
|
|
96193
96353
|
} finally {
|
|
@@ -96851,9 +97011,35 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96851
97011
|
if (isUpdateMaintain(task)) {
|
|
96852
97012
|
this.serviceOrderId = "";
|
|
96853
97013
|
void this.getCurrentData();
|
|
97014
|
+
} else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
97015
|
+
this.bcDataExtractTaskId = "";
|
|
97016
|
+
void this.refreshBritishColumbiaCurrentDataExtract();
|
|
96854
97017
|
}
|
|
96855
97018
|
this.activeStep.set(Step.Validate);
|
|
96856
97019
|
}
|
|
97020
|
+
refreshBritishColumbiaCurrentDataExtract() {
|
|
97021
|
+
return __async(this, null, function* () {
|
|
97022
|
+
const task = this.task();
|
|
97023
|
+
const signature = this._signature();
|
|
97024
|
+
if (!task || !signature || !isChangeOfPrincipalsTask(task))
|
|
97025
|
+
return;
|
|
97026
|
+
const { request, issues } = buildBritishColumbiaDataExtractOrder(task, task.deltaData?.companyPassword);
|
|
97027
|
+
if (issues.length) {
|
|
97028
|
+
this.errors.set(issues);
|
|
97029
|
+
return;
|
|
97030
|
+
}
|
|
97031
|
+
this.isLoading.set(true);
|
|
97032
|
+
try {
|
|
97033
|
+
this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
|
|
97034
|
+
this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
|
|
97035
|
+
this.bcDataExtractTaskId = task._id;
|
|
97036
|
+
} catch (error) {
|
|
97037
|
+
this.handleCatchError(error);
|
|
97038
|
+
} finally {
|
|
97039
|
+
this.isLoading.set(false);
|
|
97040
|
+
}
|
|
97041
|
+
});
|
|
97042
|
+
}
|
|
96857
97043
|
parseError(errors) {
|
|
96858
97044
|
return errors.map((item) => (item["ErrorMessage"] ?? item["Message"] ?? "").toString().trim()).filter((message) => message.length > 0);
|
|
96859
97045
|
}
|
|
@@ -97004,13 +97190,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97004
97190
|
corporationNumber: task.entity._profile.corp_number ?? ""
|
|
97005
97191
|
});
|
|
97006
97192
|
}
|
|
97007
|
-
if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
97008
|
-
const validatedOrderId = deltaData.validatedData?.currentDataServiceOrderId;
|
|
97009
|
-
if (!validatedOrderId) {
|
|
97010
|
-
return void 0;
|
|
97011
|
-
}
|
|
97012
|
-
return buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData, validatedOrderId, this.currentDataExtract());
|
|
97013
|
-
}
|
|
97014
97193
|
if (isUpdateMaintain(task) && isOntarioTask(task)) {
|
|
97015
97194
|
const serviceOrderId = deltaData?.serviceOrderId ?? this.serviceOrderId;
|
|
97016
97195
|
if (!serviceOrderId) {
|
package/package.json
CHANGED