@dyedurham/search-and-file-widget 2.1.35 → 2.1.36

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.
Files changed (2) hide show
  1. package/dnd-filing-shell.js +153 -350
  2. package/package.json +2 -2
@@ -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, 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;
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;
84153
84153
  var init_BritishColumbiaConstants = __esm({
84154
84154
  "src/app/constants/BritishColumbiaConstants.ts"() {
84155
84155
  init_app_enums();
@@ -84172,7 +84172,6 @@ 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";
84176
84175
  (function(BCAnnualReportReminder2) {
84177
84176
  BCAnnualReportReminder2["Yes"] = "yes";
84178
84177
  BCAnnualReportReminder2["No"] = "no";
@@ -84216,7 +84215,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84216
84215
  BCChangeOfDirectorsFormControls2["CompanyEmail"] = "companyEmail";
84217
84216
  BCChangeOfDirectorsFormControls2["DirectorsAddedOrDeleted"] = "directorsAddedOrDeleted";
84218
84217
  BCChangeOfDirectorsFormControls2["ChangeDate"] = "changeDate";
84219
- BCChangeOfDirectorsFormControls2["FilingFee"] = "filingFee";
84220
84218
  BCChangeOfDirectorsFormControls2["RegisterAsOfDate"] = "registerAsOfDate";
84221
84219
  BCChangeOfDirectorsFormControls2["MailingAddress"] = "mailingAddress";
84222
84220
  BCChangeOfDirectorsFormControls2["DeliveryAddress"] = "deliveryAddress";
@@ -84950,7 +84948,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84950
84948
  const format = BritishColumbiaFormationFormHelper.formatFullAddress;
84951
84949
  const pick = BritishColumbiaFormationFormHelper.pickAddress;
84952
84950
  const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
84953
- const companyEmail = registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? "";
84951
+ const companyEmail = delta?.companyEmail ?? registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? "";
84954
84952
  const registeredMailing = format(pick(registeredOffice?.addresses, "Mailing"));
84955
84953
  const effectiveDate = task._ext._effective_date ?? "";
84956
84954
  const today = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
@@ -84968,12 +84966,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84968
84966
  const hasAddOrCease = ceasedIds.size > 0 || incoming.filter(isDirector).length > 0;
84969
84967
  config2[BCChangeOfDirectorsFormGroups.FilingDetails] = new FormGroup({
84970
84968
  [Controls.DirectorsAddedOrDeleted]: new FormControl(delta?.filingDetails?.directorsAddedOrDeleted ?? hasAddOrCease),
84971
- [Controls.ChangeDate]: this.readOnly(effectiveDate),
84972
- [Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
84969
+ [Controls.ChangeDate]: this.readOnly(effectiveDate)
84973
84970
  });
84974
84971
  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));
84975
84974
  const directors = [
84976
- ...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
84975
+ ...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, savedEditIds.has(String(a._id)) ? IRAffiliationType.Update : savedAddIds.has(String(a._id)) ? IRAffiliationType.Add : currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
84977
84976
  ...outgoing.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Ceased))
84978
84977
  ];
84979
84978
  const fallbackDirectors = directors.length ? [] : this.generateDirectorFormGroupsFromChangeDirectors(task);
@@ -85415,7 +85414,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85415
85414
  });
85416
85415
 
85417
85416
  // src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
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;
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;
85419
85418
  var init_british_columbia_change_of_directors_form_constants = __esm({
85420
85419
  "src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
85421
85420
  init_form_enums();
@@ -85455,13 +85454,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85455
85454
  class: "span-12"
85456
85455
  }
85457
85456
  ];
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
- },
85457
+ [
85465
85458
  {
85466
85459
  type: FormType.Checkbox,
85467
85460
  label: "Directors will be added and/or deleted as part of this filing",
@@ -85474,9 +85467,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85474
85467
  __spreadProps(__spreadValues({}, readOnlyRow("Date Directors were added or deleted", Controls3.ChangeDate, "span-8")), {
85475
85468
  isVisible: directorsAddedOrDeleted
85476
85469
  }),
85477
- __spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls3.FilingFee, "span-4")), {
85478
- isVisible: directorsAddedOrDeleted
85479
- }),
85480
85470
  {
85481
85471
  type: FormType.Text,
85482
85472
  formControlName: "",
@@ -85598,100 +85588,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85598
85588
  \u0275\u0275elementEnd()()()();
85599
85589
  }
85600
85590
  if (rf & 2) {
85601
- let tmp_9_0;
85602
- let tmp_11_0;
85591
+ let tmp_8_0;
85592
+ let tmp_10_0;
85603
85593
  const ctx_r0 = \u0275\u0275nextContext();
85604
85594
  const corporationDetails_r5 = \u0275\u0275readContextLet(6);
85605
85595
  \u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.CorporationDetails);
85606
85596
  \u0275\u0275advance(4);
85607
85597
  \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Corporation Name"), ":");
85608
85598
  \u0275\u0275advance(2);
85609
- \u0275\u0275textInterpolate1(" ", (tmp_9_0 = corporationDetails_r5.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_9_0.value, " ");
85599
+ \u0275\u0275textInterpolate1(" ", (tmp_8_0 = corporationDetails_r5.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_8_0.value, " ");
85610
85600
  \u0275\u0275advance(3);
85611
85601
  \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 11, "Incorporation Number"), ":");
85612
85602
  \u0275\u0275advance(2);
85613
- \u0275\u0275textInterpolate1(" ", (tmp_11_0 = corporationDetails_r5.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_11_0.value, " ");
85603
+ \u0275\u0275textInterpolate1(" ", (tmp_10_0 = corporationDetails_r5.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_10_0.value, " ");
85614
85604
  \u0275\u0275advance(2);
85615
85605
  \u0275\u0275property("form", corporationDetails_r5)("config", ctx_r0.companyEmailFields())("isSubmitted", ctx_r0.isSubmitted());
85616
85606
  }
85617
85607
  }
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) {
85608
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
85693
85609
  if (rf & 1) {
85694
- \u0275\u0275elementStart(0, "span", 24);
85610
+ \u0275\u0275elementStart(0, "span", 17);
85695
85611
  \u0275\u0275text(1);
85696
85612
  \u0275\u0275pipe(2, "translate");
85697
85613
  \u0275\u0275elementEnd();
@@ -85701,9 +85617,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85701
85617
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "NEW"));
85702
85618
  }
85703
85619
  }
85704
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
85620
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
85705
85621
  if (rf & 1) {
85706
- \u0275\u0275elementStart(0, "span", 25);
85622
+ \u0275\u0275elementStart(0, "span", 18);
85707
85623
  \u0275\u0275text(1);
85708
85624
  \u0275\u0275pipe(2, "translate");
85709
85625
  \u0275\u0275elementEnd();
@@ -85713,71 +85629,71 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85713
85629
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "CEASE"));
85714
85630
  }
85715
85631
  }
85716
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
85632
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Template(rf, ctx) {
85717
85633
  if (rf & 1) {
85718
- \u0275\u0275elementStart(0, "div", 22)(1, "div", 23)(2, "strong");
85634
+ \u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "strong");
85719
85635
  \u0275\u0275text(3);
85720
85636
  \u0275\u0275elementEnd();
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);
85637
+ \u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 17)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 18);
85722
85638
  \u0275\u0275elementEnd();
85723
- \u0275\u0275elementStart(6, "div", 23);
85639
+ \u0275\u0275elementStart(6, "div", 16);
85724
85640
  \u0275\u0275text(7);
85725
85641
  \u0275\u0275elementEnd();
85726
- \u0275\u0275elementStart(8, "div", 23);
85642
+ \u0275\u0275elementStart(8, "div", 16);
85727
85643
  \u0275\u0275text(9);
85728
85644
  \u0275\u0275elementEnd()();
85729
85645
  }
85730
85646
  if (rf & 2) {
85731
- let tmp_19_0;
85647
+ let tmp_18_0;
85648
+ let tmp_21_0;
85732
85649
  let tmp_22_0;
85733
- let tmp_23_0;
85734
85650
  \u0275\u0275nextContext();
85735
- const directorForm_r8 = \u0275\u0275readContextLet(0);
85651
+ const directorForm_r6 = \u0275\u0275readContextLet(0);
85736
85652
  const ctx_r0 = \u0275\u0275nextContext(2);
85737
85653
  \u0275\u0275advance(3);
85738
- \u0275\u0275textInterpolate((tmp_19_0 = directorForm_r8.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_19_0.value);
85654
+ \u0275\u0275textInterpolate((tmp_18_0 = directorForm_r6.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_18_0.value);
85739
85655
  \u0275\u0275advance();
85740
- \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r8) ? 4 : -1);
85656
+ \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r6) ? 4 : -1);
85741
85657
  \u0275\u0275advance();
85742
- \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r8) ? 5 : -1);
85658
+ \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r6) ? 5 : -1);
85743
85659
  \u0275\u0275advance(2);
85744
- \u0275\u0275textInterpolate((tmp_22_0 = directorForm_r8.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_22_0.value);
85660
+ \u0275\u0275textInterpolate((tmp_21_0 = directorForm_r6.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_21_0.value);
85745
85661
  \u0275\u0275advance(2);
85746
- \u0275\u0275textInterpolate((tmp_23_0 = directorForm_r8.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
85662
+ \u0275\u0275textInterpolate((tmp_22_0 = directorForm_r6.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_22_0.value);
85747
85663
  }
85748
85664
  }
85749
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
85665
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Template(rf, ctx) {
85750
85666
  if (rf & 1) {
85751
85667
  \u0275\u0275declareLet(0);
85752
- \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 22);
85668
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Template, 10, 5, "div", 15);
85753
85669
  }
85754
85670
  if (rf & 2) {
85755
- const \u0275$index_98_r9 = ctx.$index;
85756
- const directorForm_r10 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_98_r9));
85671
+ const \u0275$index_61_r7 = ctx.$index;
85672
+ const directorForm_r8 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_61_r7));
85757
85673
  \u0275\u0275advance();
85758
- \u0275\u0275conditional(directorForm_r10 ? 1 : -1);
85674
+ \u0275\u0275conditional(directorForm_r8 ? 1 : -1);
85759
85675
  }
85760
85676
  }
85761
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
85677
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_Template(rf, ctx) {
85762
85678
  if (rf & 1) {
85763
- \u0275\u0275elementStart(0, "div", 7)(1, "div", 20)(2, "div", 21);
85679
+ \u0275\u0275elementStart(0, "div", 6)(1, "div", 13)(2, "div", 14);
85764
85680
  \u0275\u0275text(3);
85765
85681
  \u0275\u0275pipe(4, "translate");
85766
85682
  \u0275\u0275elementEnd();
85767
- \u0275\u0275elementStart(5, "div", 21);
85683
+ \u0275\u0275elementStart(5, "div", 14);
85768
85684
  \u0275\u0275text(6);
85769
85685
  \u0275\u0275pipe(7, "translate");
85770
85686
  \u0275\u0275elementEnd();
85771
- \u0275\u0275elementStart(8, "div", 21);
85687
+ \u0275\u0275elementStart(8, "div", 14);
85772
85688
  \u0275\u0275text(9);
85773
85689
  \u0275\u0275pipe(10, "translate");
85774
85690
  \u0275\u0275elementEnd()();
85775
- \u0275\u0275repeaterCreate(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template, 2, 2, null, null, \u0275\u0275repeaterTrackByIdentity);
85691
+ \u0275\u0275repeaterCreate(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Template, 2, 2, null, null, \u0275\u0275repeaterTrackByIdentity);
85776
85692
  \u0275\u0275elementEnd();
85777
85693
  }
85778
85694
  if (rf & 2) {
85779
85695
  \u0275\u0275nextContext();
85780
- const directorsArray_r11 = \u0275\u0275readContextLet(10);
85696
+ const directorsArray_r9 = \u0275\u0275readContextLet(8);
85781
85697
  \u0275\u0275advance(3);
85782
85698
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4, 3, "Name"));
85783
85699
  \u0275\u0275advance(3);
@@ -85785,12 +85701,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85785
85701
  \u0275\u0275advance(3);
85786
85702
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 7, "Delivery Address"));
85787
85703
  \u0275\u0275advance(2);
85788
- \u0275\u0275repeater(directorsArray_r11.controls);
85704
+ \u0275\u0275repeater(directorsArray_r9.controls);
85789
85705
  }
85790
85706
  }
85791
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
85707
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_11_Template(rf, ctx) {
85792
85708
  if (rf & 1) {
85793
- \u0275\u0275elementStart(0, "h2", 8);
85709
+ \u0275\u0275elementStart(0, "h2", 7);
85794
85710
  \u0275\u0275text(1);
85795
85711
  \u0275\u0275pipe(2, "translate");
85796
85712
  \u0275\u0275elementEnd();
@@ -85800,35 +85716,35 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85800
85716
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "Unchanged"));
85801
85717
  }
85802
85718
  }
85803
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
85719
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
85804
85720
  if (rf & 1) {
85805
- const _r12 = \u0275\u0275getCurrentView();
85806
- \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 26)(2, "p");
85721
+ const _r10 = \u0275\u0275getCurrentView();
85722
+ \u0275\u0275elementStart(0, "expandable-card", 8)(1, "div", 19)(2, "p");
85807
85723
  \u0275\u0275text(3);
85808
85724
  \u0275\u0275pipe(4, "translate");
85809
85725
  \u0275\u0275elementEnd();
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);
85726
+ \u0275\u0275elementStart(5, "mat-radio-group", 20);
85727
+ \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template_mat_radio_group_change_5_listener() {
85728
+ \u0275\u0275restoreView(_r10);
85813
85729
  const ctx_r0 = \u0275\u0275nextContext();
85814
- const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
85815
- return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r13.valid));
85730
+ const annualReportReminder_r11 = \u0275\u0275readContextLet(12);
85731
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r11.valid));
85816
85732
  });
85817
- \u0275\u0275elementStart(6, "mat-radio-button", 28);
85733
+ \u0275\u0275elementStart(6, "mat-radio-button", 21);
85818
85734
  \u0275\u0275text(7);
85819
85735
  \u0275\u0275pipe(8, "translate");
85820
85736
  \u0275\u0275elementEnd();
85821
- \u0275\u0275elementStart(9, "mat-radio-button", 28);
85737
+ \u0275\u0275elementStart(9, "mat-radio-button", 21);
85822
85738
  \u0275\u0275text(10);
85823
85739
  \u0275\u0275pipe(11, "translate");
85824
85740
  \u0275\u0275elementEnd()()()();
85825
85741
  }
85826
85742
  if (rf & 2) {
85827
85743
  const ctx_r0 = \u0275\u0275nextContext();
85828
- const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
85744
+ const annualReportReminder_r11 = \u0275\u0275readContextLet(12);
85829
85745
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
85830
85746
  \u0275\u0275advance();
85831
- \u0275\u0275property("formGroup", annualReportReminder_r13);
85747
+ \u0275\u0275property("formGroup", annualReportReminder_r11);
85832
85748
  \u0275\u0275advance(2);
85833
85749
  \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."), " ");
85834
85750
  \u0275\u0275advance(2);
@@ -85848,10 +85764,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85848
85764
  "src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts"() {
85849
85765
  init_core();
85850
85766
  init_forms();
85851
- init_checkbox();
85852
- init_datepicker();
85853
- init_form_field();
85854
- init_input();
85855
85767
  init_radio();
85856
85768
  init_ngx_translate_core();
85857
85769
  init_filing_form_group_component();
@@ -85884,7 +85796,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85884
85796
  return BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS.map((field) => field.formControlName === this.controls.CompanyEmail ? __spreadProps(__spreadValues({}, field), { options: emailOptions }) : field);
85885
85797
  });
85886
85798
  companyEmailFields = computed(() => this.corporationDetailsFields().filter((field) => field.formControlName === this.controls.CompanyEmail));
85887
- filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
85888
85799
  directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
85889
85800
  annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
85890
85801
  initiallyOpenCardsCount = 3;
@@ -85896,11 +85807,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85896
85807
  const annualReportReminder = this.getFormGroup(this.groups.AnnualReportReminder);
85897
85808
  return Object.values(this.sectionValidity).every((v) => v) && !filingDetails?.invalid && !dateInvalid && !annualReportReminder?.invalid;
85898
85809
  }
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
- }
85904
85810
  onSectionValidChange(section, valid) {
85905
85811
  this.sectionValidity = __spreadProps(__spreadValues({}, this.sectionValidity), { [section]: valid });
85906
85812
  this.visiblyValidChange.emit(this.isVisiblyValid());
@@ -85926,7 +85832,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85926
85832
  static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
85927
85833
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
85928
85834
  };
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) {
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: 14, vars: 12, 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"], ["role", "table", 1, "directors-table"], [1, "body-1-regular"], [3, "isStatusIcon", "isValid", "title"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "readonly-summary"], [1, "company-email-field"], [3, "visiblyValidChange", "form", "config", "isSubmitted"], ["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) {
85930
85836
  if (rf & 1) {
85931
85837
  \u0275\u0275elementStart(0, "div", 0);
85932
85838
  \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
@@ -85936,13 +85842,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85936
85842
  \u0275\u0275declareLet(6);
85937
85843
  \u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 14, 13, "expandable-card", 5);
85938
85844
  \u0275\u0275declareLet(8);
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);
85845
+ \u0275\u0275elementStart(9, "expandable-card", 5);
85846
+ \u0275\u0275template(10, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_Template, 13, 9, "div", 6)(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_11_Template, 3, 3, "h2", 7);
85943
85847
  \u0275\u0275elementEnd();
85944
- \u0275\u0275declareLet(14);
85945
- \u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 6);
85848
+ \u0275\u0275declareLet(12);
85849
+ \u0275\u0275template(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 12, 16, "expandable-card", 8);
85946
85850
  \u0275\u0275elementEnd()();
85947
85851
  }
85948
85852
  if (rf & 2) {
@@ -85951,33 +85855,28 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85951
85855
  \u0275\u0275advance();
85952
85856
  \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
85953
85857
  \u0275\u0275advance(2);
85954
- const referenceNumbers_r14 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85858
+ const referenceNumbers_r12 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85955
85859
  \u0275\u0275advance();
85956
- \u0275\u0275conditional(referenceNumbers_r14 ? 5 : -1);
85860
+ \u0275\u0275conditional(referenceNumbers_r12 ? 5 : -1);
85957
85861
  \u0275\u0275advance();
85958
- const corporationDetails_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85862
+ const corporationDetails_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85959
85863
  \u0275\u0275advance();
85960
- \u0275\u0275conditional(corporationDetails_r15 ? 7 : -1);
85864
+ \u0275\u0275conditional(corporationDetails_r13 ? 7 : -1);
85961
85865
  \u0275\u0275advance();
85962
- const filingDetails_r16 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.FilingDetails));
85963
- \u0275\u0275advance();
85964
- \u0275\u0275conditional(filingDetails_r16 ? 9 : -1);
85965
- \u0275\u0275advance();
85966
- const directorsArray_r17 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85866
+ const directorsArray_r14 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85967
85867
  \u0275\u0275advance();
85968
85868
  \u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
85969
85869
  \u0275\u0275advance();
85970
- \u0275\u0275conditional(directorsArray_r17 && directorsArray_r17.length ? 12 : 13);
85870
+ \u0275\u0275conditional(directorsArray_r14 && directorsArray_r14.length ? 10 : 11);
85971
85871
  \u0275\u0275advance(2);
85972
- const annualReportReminder_r18 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85872
+ const annualReportReminder_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85973
85873
  \u0275\u0275advance();
85974
- \u0275\u0275conditional(annualReportReminder_r18 ? 15 : -1);
85874
+ \u0275\u0275conditional(annualReportReminder_r15 ? 13 : -1);
85975
85875
  }
85976
85876
  }, dependencies: [
85977
85877
  FilingFormGroupComponent,
85978
85878
  AlertComponent,
85979
85879
  ExpandableCardComponent,
85980
- MatCheckbox,
85981
85880
  MatRadioButton,
85982
85881
  MatRadioGroup,
85983
85882
  ReactiveFormsModule,
@@ -85995,191 +85894,118 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85995
85894
  FilingFormGroupComponent,
85996
85895
  AlertComponent,
85997
85896
  ExpandableCardComponent,
85998
- MatCheckbox,
85999
- MatDatepicker,
86000
- MatDatepickerInput,
86001
- MatFormField,
86002
- MatInput,
86003
85897
  MatRadioButton,
86004
85898
  MatRadioGroup,
86005
85899
  ReactiveFormsModule,
86006
85900
  TranslatePipe
86007
85901
  ], template: `<div class="change-of-directors-form">\r
86008
85902
  @if (isNote()) {\r
86009
- <alert\r
86010
- [type]="alertType.Info"\r
86011
- title="Entity changed"\r
86012
- content="A new draft needs to be generated as the Entity was changed since the last draft was produced."\r
86013
- />\r
85903
+ <alert [type]="alertType.Info" title="Entity changed"\r
85904
+ content="A new draft needs to be generated as the Entity was changed since the last draft was produced." />\r
86014
85905
  }\r
86015
85906
  \r
86016
85907
  @if (errors().length) {\r
86017
- <alert\r
86018
- title="The following issues need to be resolved before proceeding:"\r
86019
- [content]="errors()"\r
86020
- />\r
85908
+ <alert title="The following issues need to be resolved before proceeding:" [content]="errors()" />\r
86021
85909
  }\r
86022
85910
  \r
86023
85911
  <div class="change-of-directors-form-content">\r
86024
85912
  @let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
86025
85913
  \r
86026
85914
  @if (referenceNumbers) {\r
86027
- <expandable-card [title]="groups.ReferenceNumbers">\r
86028
- <filing-form-group\r
86029
- [isSubmitted]="isSubmitted()"\r
86030
- [form]="referenceNumbers"\r
86031
- [config]="referenceNumbersFields"\r
86032
- (visiblyValidChange)="onSectionValidChange('refNumbers', $event)"\r
86033
- />\r
86034
- </expandable-card>\r
85915
+ <expandable-card [title]="groups.ReferenceNumbers">\r
85916
+ <filing-form-group [isSubmitted]="isSubmitted()" [form]="referenceNumbers" [config]="referenceNumbersFields"\r
85917
+ (visiblyValidChange)="onSectionValidChange('refNumbers', $event)" />\r
85918
+ </expandable-card>\r
86035
85919
  }\r
86036
85920
  \r
86037
85921
  @let corporationDetails = getFormGroup(groups.CorporationDetails);\r
86038
85922
  \r
86039
85923
  @if (corporationDetails) {\r
86040
- <expandable-card [isStatusIcon]="false" [title]="groups.CorporationDetails">\r
86041
- <div class="readonly-summary">\r
86042
- <p>\r
86043
- <strong>{{ 'Corporation Name' | translate }}:</strong>\r
86044
- {{ corporationDetails.get(controls.CorporationName)?.value }}\r
86045
- </p>\r
86046
- <p>\r
86047
- <strong>{{ 'Incorporation Number' | translate }}:</strong>\r
86048
- {{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
86049
- </p>\r
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
85924
+ <expandable-card [isStatusIcon]="false" [title]="groups.CorporationDetails">\r
85925
+ <div class="readonly-summary">\r
85926
+ <p>\r
85927
+ <strong>{{ 'Corporation Name' | translate }}:</strong>\r
85928
+ {{ corporationDetails.get(controls.CorporationName)?.value }}\r
85929
+ </p>\r
85930
+ <p>\r
85931
+ <strong>{{ 'Incorporation Number' | translate }}:</strong>\r
85932
+ {{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
85933
+ </p>\r
85934
+ <div class="company-email-field">\r
85935
+ <filing-form-group [form]="corporationDetails" [config]="companyEmailFields()" [isSubmitted]="isSubmitted()"\r
85936
+ (visiblyValidChange)="onSectionValidChange('corporationDetails', $event)" />\r
86108
85937
  </div>\r
86109
- </expandable-card>\r
85938
+ </div>\r
85939
+ </expandable-card>\r
86110
85940
  }\r
86111
85941
  \r
86112
85942
  @let directorsArray = getFormArray(groups.Directors);\r
86113
85943
  \r
86114
85944
  <expandable-card [isStatusIcon]="false" [title]="groups.Directors">\r
86115
85945
  @if (directorsArray && directorsArray.length) {\r
86116
- <div class="directors-table" role="table">\r
86117
- <div class="directors-table-header" role="row">\r
86118
- <div role="columnheader">{{ 'Name' | translate }}</div>\r
86119
- <div role="columnheader">{{ 'Mailing Address' | translate }}</div>\r
86120
- <div role="columnheader">{{ 'Delivery Address' | translate }}</div>\r
86121
- </div>\r
85946
+ <div class="directors-table" role="table">\r
85947
+ <div class="directors-table-header" role="row">\r
85948
+ <div role="columnheader">{{ 'Name' | translate }}</div>\r
85949
+ <div role="columnheader">{{ 'Mailing Address' | translate }}</div>\r
85950
+ <div role="columnheader">{{ 'Delivery Address' | translate }}</div>\r
85951
+ </div>\r
86122
85952
  \r
86123
- @for (director of directorsArray.controls; track director; let i = $index) {\r
86124
- @let directorForm = getDirectorForm(i);\r
86125
- @if (directorForm) {\r
86126
- <div class="directors-table-row" role="row">\r
86127
- <div role="cell">\r
86128
- <strong>{{ directorForm.get(controls.AffiliationName)?.value }}</strong>\r
86129
- @if (isNewDirector(directorForm)) {\r
86130
- <span class="status-pill new">{{ 'NEW' | translate }}</span>\r
86131
- }\r
86132
- @if (isCeasedDirector(directorForm)) {\r
86133
- <span class="status-pill ceased">{{ 'CEASE' | translate }}</span>\r
86134
- }\r
86135
- </div>\r
86136
- <div role="cell">{{ directorForm.get(controls.MailingAddress)?.value }}</div>\r
86137
- <div role="cell">{{ directorForm.get(controls.DeliveryAddress)?.value }}</div>\r
86138
- </div>\r
85953
+ @for (director of directorsArray.controls; track director; let i = $index) {\r
85954
+ @let directorForm = getDirectorForm(i);\r
85955
+ @if (directorForm) {\r
85956
+ <div class="directors-table-row" role="row">\r
85957
+ <div role="cell">\r
85958
+ <strong>{{ directorForm.get(controls.AffiliationName)?.value }}</strong>\r
85959
+ @if (isNewDirector(directorForm)) {\r
85960
+ <span class="status-pill new">{{ 'NEW' | translate }}</span>\r
86139
85961
  }\r
86140
- }\r
85962
+ @if (isCeasedDirector(directorForm)) {\r
85963
+ <span class="status-pill ceased">{{ 'CEASE' | translate }}</span>\r
85964
+ }\r
85965
+ </div>\r
85966
+ <div role="cell">{{ directorForm.get(controls.MailingAddress)?.value }}</div>\r
85967
+ <div role="cell">{{ directorForm.get(controls.DeliveryAddress)?.value }}</div>\r
86141
85968
  </div>\r
85969
+ }\r
85970
+ }\r
85971
+ </div>\r
86142
85972
  } @else {\r
86143
- <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
85973
+ <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
86144
85974
  }\r
86145
85975
  </expandable-card>\r
86146
85976
  \r
86147
85977
  @let annualReportReminder = getFormGroup(groups.AnnualReportReminder);\r
86148
85978
  \r
86149
85979
  @if (annualReportReminder) {\r
86150
- <expandable-card\r
86151
- [isStatusIcon]="!readonly()"\r
86152
- [isValid]="sectionValidity['annualReportReminder']"\r
86153
- [title]="groups.AnnualReportReminder"\r
86154
- >\r
86155
- <div class="annual-reminder" [formGroup]="annualReportReminder">\r
86156
- <p>\r
86157
- {{\r
86158
- "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."\r
86159
- | translate\r
86160
- }}\r
86161
- </p>\r
86162
- <mat-radio-group\r
86163
- [formControlName]="controls.AnnualReportReminder"\r
86164
- (change)="onSectionValidChange('annualReportReminder', annualReportReminder.valid)"\r
86165
- >\r
86166
- <mat-radio-button [value]="annualReportReminderOption.Yes">\r
86167
- {{ 'Yes, send the annual report reminder' | translate }}\r
86168
- </mat-radio-button>\r
86169
- <mat-radio-button [value]="annualReportReminderOption.No">\r
86170
- {{ 'No, I do not need to be reminded' | translate }}\r
86171
- </mat-radio-button>\r
86172
- </mat-radio-group>\r
86173
- </div>\r
86174
- </expandable-card>\r
85980
+ <expandable-card [isStatusIcon]="!readonly()" [isValid]="sectionValidity['annualReportReminder']"\r
85981
+ [title]="groups.AnnualReportReminder">\r
85982
+ <div class="annual-reminder" [formGroup]="annualReportReminder">\r
85983
+ <p>\r
85984
+ {{\r
85985
+ "Does this company wish to be reminded to file its annual reports? If an email address is specified, the\r
85986
+ reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered\r
85987
+ or head office of the company."\r
85988
+ | translate\r
85989
+ }}\r
85990
+ </p>\r
85991
+ <mat-radio-group [formControlName]="controls.AnnualReportReminder"\r
85992
+ (change)="onSectionValidChange('annualReportReminder', annualReportReminder.valid)">\r
85993
+ <mat-radio-button [value]="annualReportReminderOption.Yes">\r
85994
+ {{ 'Yes, send the annual report reminder' | translate }}\r
85995
+ </mat-radio-button>\r
85996
+ <mat-radio-button [value]="annualReportReminderOption.No">\r
85997
+ {{ 'No, I do not need to be reminded' | translate }}\r
85998
+ </mat-radio-button>\r
85999
+ </mat-radio-group>\r
86000
+ </div>\r
86001
+ </expandable-card>\r
86175
86002
  }\r
86176
86003
  </div>\r
86177
- </div>\r
86178
- `, styles: ['/* src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.scss */\n:host {\n display: flex;\n flex: 1;\n min-height: 0;\n color: #2f343b;\n}\n:host .change-of-directors-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n min-height: 0;\n width: 100%;\n}\n:host .change-of-directors-form-content {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 20px;\n min-height: 0;\n overflow-y: auto;\n padding-right: 8px;\n}\n:host ::ng-deep .expandable-card {\n border: 1px solid #e1e6ee;\n border-radius: 8px;\n box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12) !important;\n margin: 0 !important;\n padding: 24px 28px !important;\n}\n:host ::ng-deep .expandable-card-header-title {\n color: #2f343b !important;\n font-weight: 700 !important;\n line-height: 1.2;\n margin: 0;\n}\n:host ::ng-deep .expandable-card-header mat-icon {\n color: #66717f !important;\n}\n:host ::ng-deep .expandable-card-content {\n padding-top: 20px !important;\n}\n:host ::ng-deep .filling-form-fields {\n column-gap: 42px !important;\n}\n:host ::ng-deep .filling-form-fields-item-label,\n:host ::ng-deep .mat-mdc-radio-button .mdc-label,\n:host ::ng-deep .mat-mdc-checkbox .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n:host ::ng-deep .mat-mdc-radio-button,\n:host ::ng-deep .mat-mdc-checkbox {\n --mdc-radio-state-layer-size: 40px;\n --mdc-checkbox-state-layer-size: 40px;\n}\n:host ::ng-deep .mat-mdc-form-field {\n width: 100%;\n}\n:host ::ng-deep .mat-mdc-text-field-wrapper {\n min-height: 46px;\n}\n:host ::ng-deep .mat-mdc-form-field-infix {\n align-items: center;\n display: flex !important;\n min-height: 46px;\n padding-bottom: 0 !important;\n padding-top: 0 !important;\n}\n:host ::ng-deep .mdc-notched-outline__leading {\n border-bottom-left-radius: 6px !important;\n border-top-left-radius: 6px !important;\n}\n:host ::ng-deep .mdc-notched-outline__trailing {\n border-bottom-right-radius: 6px !important;\n border-top-right-radius: 6px !important;\n}\n:host .readonly-summary {\n display: flex;\n flex-direction: column;\n gap: 18px;\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n:host .readonly-summary p {\n margin: 0;\n}\n:host .readonly-summary strong {\n color: #2f343b;\n font-weight: 700;\n}\n:host .filing-details,\n:host .annual-reminder {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n:host .note-box {\n border: 1px solid #f3d27a;\n border-radius: 6px;\n background: #fffaf0;\n color: #84610d;\n font-size: 14px;\n line-height: 1.55;\n padding: 16px 20px;\n}\n:host .note-box strong {\n font-weight: 700;\n}\n:host .directors-change-checkbox {\n align-self: flex-start;\n}\n:host .filing-details-grid {\n display: flex;\n flex-direction: column;\n gap: 8px;\n max-width: 100%;\n}\n:host .date-field,\n:host .email-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .date-field label,\n:host .email-field label {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n:host .date-field span,\n:host .email-field span {\n color: #e22222;\n}\n:host .hint,\n:host .annual-reminder p,\n:host .mailing-copy {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n:host .filing-fee {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n margin: 0;\n}\n:host .filing-fee strong {\n color: #2f343b;\n font-weight: 700;\n}\n:host .company-email-field {\n width: 50%;\n}\n:host .effective-date-description {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.45;\n margin: 0;\n}\n:host .effective-date-description strong {\n color: #2f343b;\n font-weight: 700;\n}\n:host .directors-table {\n display: grid;\n grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.65fr) minmax(280px, 1.65fr);\n margin-top: 28px;\n color: #4b5563;\n font-size: 14px;\n line-height: 1.45;\n}\n:host .directors-table-header,\n:host .directors-table-row {\n display: contents;\n}\n:host .directors-table-header > div,\n:host .directors-table-row > div {\n border-bottom: 1px solid #e1e6ee;\n padding: 16px 24px;\n}\n:host .directors-table-header > div:not(:first-child),\n:host .directors-table-row > div:not(:first-child) {\n border-left: 1px solid #e1e6ee;\n}\n:host .directors-table-header > div {\n color: #2f343b;\n font-weight: 700;\n padding-top: 0;\n}\n:host .directors-table-row strong {\n color: #2f343b;\n display: block;\n font-weight: 700;\n margin-bottom: 8px;\n}\n:host .status-pill {\n border-radius: 999px;\n display: inline-flex;\n font-size: 12px;\n font-weight: 700;\n line-height: 1;\n padding: 6px 12px;\n}\n:host .status-pill.new {\n background: #eaf7ef;\n border: 1px solid #b8e3c7;\n color: #15803d;\n}\n:host .status-pill.ceased {\n background: #fff1f2;\n border: 1px solid #fecdd3;\n color: #be123c;\n}\n:host mat-radio-group {\n display: flex;\n gap: 48px;\n}\n:host .annual-reminder mat-radio-group {\n align-items: flex-start;\n flex-direction: column;\n gap: 14px;\n}\n:host .date-field mat-form-field {\n position: relative;\n width: 100%;\n}\n:host .date-field ::ng-deep .calendar-icon {\n border: 2px solid #4b5563;\n border-radius: 3px;\n box-sizing: border-box;\n display: block;\n height: 17px;\n position: relative;\n width: 17px;\n}\n:host .date-field ::ng-deep .calendar-icon::before {\n border-top: 2px solid #4b5563;\n content: "";\n left: 0;\n position: absolute;\n right: 0;\n top: 4px;\n}\n:host .date-field ::ng-deep .calendar-icon::after {\n background: #4b5563;\n border-radius: 1px;\n box-shadow: 6px 0 #4b5563;\n content: "";\n height: 3px;\n left: 3px;\n position: absolute;\n top: -3px;\n width: 2px;\n}\n:host .date-field .calendar-trigger {\n align-items: center;\n background: transparent;\n border: 0;\n cursor: pointer;\n display: flex;\n height: 40px;\n justify-content: center;\n padding: 0;\n position: absolute;\n right: 8px;\n top: 50%;\n transform: translateY(-50%);\n width: 40px;\n z-index: 2;\n}\n:host .date-field .calendar-trigger:hover {\n background: #f3f4f6;\n border-radius: 50%;\n}\n@media (max-width: 900px) {\n :host .filing-details-grid,\n :host .directors-table {\n grid-template-columns: 1fr;\n }\n :host .directors-table-header {\n display: none;\n }\n :host .directors-table-row {\n display: grid;\n grid-template-columns: 1fr;\n border-bottom: 1px solid #e1e6ee;\n }\n :host .directors-table-row > div {\n border: 0;\n padding: 14px 0;\n }\n :host mat-radio-group {\n flex-direction: column;\n gap: 14px;\n }\n}\n@media (max-width: 900px) and (max-width: 700px) {\n .company-email-field {\n width: 100%;\n }\n}\n/*# sourceMappingURL=change-of-directors-form.component.css.map */\n'] }]
86004
+ </div>`, styles: ['/* src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.scss */\n:host {\n display: flex;\n flex: 1;\n min-height: 0;\n color: #2f343b;\n}\n:host .change-of-directors-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n min-height: 0;\n width: 100%;\n}\n:host .change-of-directors-form-content {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 20px;\n min-height: 0;\n overflow-y: auto;\n padding-right: 8px;\n}\n:host ::ng-deep .expandable-card {\n border: 1px solid #e1e6ee;\n border-radius: 8px;\n box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12) !important;\n margin: 0 !important;\n padding: 24px 28px !important;\n}\n:host ::ng-deep .expandable-card-header-title {\n color: #2f343b !important;\n font-weight: 700 !important;\n line-height: 1.2;\n margin: 0;\n}\n:host ::ng-deep .expandable-card-header mat-icon {\n color: #66717f !important;\n}\n:host ::ng-deep .expandable-card-content {\n padding-top: 20px !important;\n}\n:host ::ng-deep .filling-form-fields {\n column-gap: 42px !important;\n}\n:host ::ng-deep .filling-form-fields-item-label,\n:host ::ng-deep .mat-mdc-radio-button .mdc-label,\n:host ::ng-deep .mat-mdc-checkbox .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n:host ::ng-deep .mat-mdc-radio-button,\n:host ::ng-deep .mat-mdc-checkbox {\n --mdc-radio-state-layer-size: 40px;\n --mdc-checkbox-state-layer-size: 40px;\n}\n:host ::ng-deep .mat-mdc-form-field {\n width: 100%;\n}\n:host ::ng-deep .mat-mdc-text-field-wrapper {\n min-height: 46px;\n}\n:host ::ng-deep .mat-mdc-form-field-infix {\n align-items: center;\n display: flex !important;\n min-height: 46px;\n padding-bottom: 0 !important;\n padding-top: 0 !important;\n}\n:host ::ng-deep .mdc-notched-outline__leading {\n border-bottom-left-radius: 6px !important;\n border-top-left-radius: 6px !important;\n}\n:host ::ng-deep .mdc-notched-outline__trailing {\n border-bottom-right-radius: 6px !important;\n border-top-right-radius: 6px !important;\n}\n:host .readonly-summary {\n display: flex;\n flex-direction: column;\n gap: 18px;\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n:host .readonly-summary p {\n margin: 0;\n}\n:host .readonly-summary strong {\n color: #2f343b;\n font-weight: 700;\n}\n:host .filing-details,\n:host .annual-reminder {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n:host .note-box {\n border: 1px solid #f3d27a;\n border-radius: 6px;\n background: #fffaf0;\n color: #84610d;\n font-size: 14px;\n line-height: 1.55;\n padding: 16px 20px;\n}\n:host .note-box strong {\n font-weight: 700;\n}\n:host .directors-change-checkbox {\n align-self: flex-start;\n}\n:host .filing-details-grid {\n display: flex;\n flex-direction: column;\n gap: 8px;\n max-width: 100%;\n}\n:host .date-field,\n:host .email-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .date-field label,\n:host .email-field label {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n:host .date-field span,\n:host .email-field span {\n color: #e22222;\n}\n:host .hint,\n:host .annual-reminder p,\n:host .mailing-copy {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n:host .filing-fee {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n margin: 0;\n}\n:host .filing-fee strong {\n color: #2f343b;\n font-weight: 700;\n}\n:host .company-email-field {\n width: 50%;\n}\n:host .effective-date-description {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.45;\n margin: 0;\n}\n:host .effective-date-description strong {\n color: #2f343b;\n font-weight: 700;\n}\n:host .directors-table {\n display: grid;\n grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.65fr) minmax(280px, 1.65fr);\n margin-top: 28px;\n color: #4b5563;\n font-size: 14px;\n line-height: 1.45;\n}\n:host .directors-table-header,\n:host .directors-table-row {\n display: contents;\n}\n:host .directors-table-header > div,\n:host .directors-table-row > div {\n border-bottom: 1px solid #e1e6ee;\n padding: 16px 24px;\n}\n:host .directors-table-header > div:not(:first-child),\n:host .directors-table-row > div:not(:first-child) {\n border-left: 1px solid #e1e6ee;\n}\n:host .directors-table-header > div {\n color: #2f343b;\n font-weight: 700;\n padding-top: 0;\n}\n:host .directors-table-row strong {\n color: #2f343b;\n display: block;\n font-weight: 700;\n margin-bottom: 8px;\n}\n:host .status-pill {\n border-radius: 999px;\n display: inline-flex;\n font-size: 12px;\n font-weight: 700;\n line-height: 1;\n padding: 6px 12px;\n}\n:host .status-pill.new {\n background: #eaf7ef;\n border: 1px solid #b8e3c7;\n color: #15803d;\n}\n:host .status-pill.ceased {\n background: #fff1f2;\n border: 1px solid #fecdd3;\n color: #be123c;\n}\n:host mat-radio-group {\n display: flex;\n gap: 48px;\n}\n:host .annual-reminder mat-radio-group {\n align-items: flex-start;\n flex-direction: column;\n gap: 14px;\n}\n:host .date-field mat-form-field {\n position: relative;\n width: 100%;\n}\n:host .date-field ::ng-deep .calendar-icon {\n border: 2px solid #4b5563;\n border-radius: 3px;\n box-sizing: border-box;\n display: block;\n height: 17px;\n position: relative;\n width: 17px;\n}\n:host .date-field ::ng-deep .calendar-icon::before {\n border-top: 2px solid #4b5563;\n content: "";\n left: 0;\n position: absolute;\n right: 0;\n top: 4px;\n}\n:host .date-field ::ng-deep .calendar-icon::after {\n background: #4b5563;\n border-radius: 1px;\n box-shadow: 6px 0 #4b5563;\n content: "";\n height: 3px;\n left: 3px;\n position: absolute;\n top: -3px;\n width: 2px;\n}\n:host .date-field .calendar-trigger {\n align-items: center;\n background: transparent;\n border: 0;\n cursor: pointer;\n display: flex;\n height: 40px;\n justify-content: center;\n padding: 0;\n position: absolute;\n right: 8px;\n top: 50%;\n transform: translateY(-50%);\n width: 40px;\n z-index: 2;\n}\n:host .date-field .calendar-trigger:hover {\n background: #f3f4f6;\n border-radius: 50%;\n}\n@media (max-width: 900px) {\n :host .filing-details-grid,\n :host .directors-table {\n grid-template-columns: 1fr;\n }\n :host .directors-table-header {\n display: none;\n }\n :host .directors-table-row {\n display: grid;\n grid-template-columns: 1fr;\n border-bottom: 1px solid #e1e6ee;\n }\n :host .directors-table-row > div {\n border: 0;\n padding: 14px 0;\n }\n :host mat-radio-group {\n flex-direction: column;\n gap: 14px;\n }\n}\n@media (max-width: 900px) and (max-width: 700px) {\n .company-email-field {\n width: 100%;\n }\n}\n/*# sourceMappingURL=change-of-directors-form.component.css.map */\n'] }]
86179
86005
  }], null, null);
86180
86006
  })();
86181
86007
  (() => {
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 });
86008
+ (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: 51 });
86183
86009
  })();
86184
86010
  }
86185
86011
  });
@@ -88985,6 +88811,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88985
88811
  const c = BCChangeOfDirectorsFormControls;
88986
88812
  const formData = this.deltaForm().getRawValue();
88987
88813
  const refNumbers = formData[BCChangeOfDirectorsFormGroups.ReferenceNumbers];
88814
+ const corporation = formData[BCChangeOfDirectorsFormGroups.CorporationDetails];
88988
88815
  const filing = formData[BCChangeOfDirectorsFormGroups.FilingDetails];
88989
88816
  const notification = formData[BCChangeOfDirectorsFormGroups.Notification];
88990
88817
  const reminder = formData[BCChangeOfDirectorsFormGroups.AnnualReportReminder];
@@ -88996,6 +88823,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88996
88823
  referenceNumber: refNumbers?.[c.ClientMatterNumber] ?? null,
88997
88824
  docketNumber: refNumbers?.[c.DocketNumber] ?? null
88998
88825
  },
88826
+ companyEmail: corporation?.[c.CompanyEmail] ?? null,
88999
88827
  filingDetails: {
89000
88828
  directorsAddedOrDeleted: addedOrDeleted,
89001
88829
  changeDate: addedOrDeleted ? filing?.[c.ChangeDate] ?? null : void 0
@@ -95346,10 +95174,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95346
95174
  /**
95347
95175
  * Orders the corporation's current data extract and waits until it is ready, returning the
95348
95176
  * `currentDataServiceOrderId` that Validate Filing needs. The registry bot can take a while,
95349
- * so the extract is polled every `intervalMs` for up to `maxAttempts` times.
95177
+ * so the extract is polled every `intervalMs` until the registry returns a terminal status.
95350
95178
  */
95351
95179
  ensureCurrentDataExtract(_0, _1) {
95352
- return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3, maxAttempts = 40 } = {}) {
95180
+ return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3 } = {}) {
95353
95181
  ensureAuthInputs(signature);
95354
95182
  const fetchFn = opts.fetchImpl ?? fetch;
95355
95183
  const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
@@ -95363,7 +95191,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95363
95191
  errors: ordered.errors?.length ? ordered.errors : (ordered.additionalInformation ?? []).map((message) => ({ message }))
95364
95192
  }));
95365
95193
  }
95366
- for (let attempt = 0; attempt < maxAttempts; attempt++) {
95194
+ for (; ; ) {
95367
95195
  const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
95368
95196
  method: "GET",
95369
95197
  headers: __spreadValues({
@@ -95382,7 +95210,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95382
95210
  }
95383
95211
  yield new Promise((resolve) => setTimeout(resolve, intervalMs));
95384
95212
  }
95385
- throw new Error("BC current data extract is still processing. Please try again in a moment.");
95386
95213
  });
95387
95214
  }
95388
95215
  getCurrentDataExtract() {
@@ -95534,7 +95361,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95534
95361
  const addedDirectors = [...source?.AddedDirectors ?? [], ...source?.AddDirector ?? [], ...source?.addDirectors ?? []];
95535
95362
  const ceasedDirectors = [...source?.CeasedDirectors ?? [], ...source?.CeaseDirector ?? [], ...source?.ceaseDirectors ?? []];
95536
95363
  const editedDirectors = [...source?.EditedDirectors ?? [], ...source?.EditDirector ?? [], ...source?.editDirectors ?? []];
95537
- const companyEmail = findCompanyEmail(task);
95364
+ const companyEmail = deltaData.companyEmail?.trim() || findCompanyEmail(task);
95538
95365
  const byId = new Map([
95539
95366
  ...incomingDirectors,
95540
95367
  ...outgoingDirectors
@@ -95629,7 +95456,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95629
95456
  return result;
95630
95457
  }
95631
95458
  function normaliseDirectorName(value) {
95632
- const name = value?.PersonName ?? value?.personName ?? value;
95459
+ const name = value?.PersonName ?? value?.personName ?? value?.participant?._profile ?? value;
95633
95460
  return [
95634
95461
  name?.FirstName ?? name?.firstName,
95635
95462
  name?.MiddleName ?? name?.middleName,
@@ -96330,15 +96157,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96330
96157
  }
96331
96158
  }
96332
96159
  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
- }
96338
96160
  const signature = this._signature();
96339
96161
  if (!signature)
96340
96162
  return;
96341
- this.bcDataExtractTaskId = task._id;
96342
96163
  const { request, issues } = buildBritishColumbiaDataExtractOrder(task, deltaData?.companyPassword);
96343
96164
  if (issues.length) {
96344
96165
  this.errors.set(issues);
@@ -96348,6 +96169,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96348
96169
  try {
96349
96170
  this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
96350
96171
  this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
96172
+ this.bcDataExtractTaskId = task._id;
96351
96173
  } catch (error) {
96352
96174
  this.handleCatchError(error);
96353
96175
  } finally {
@@ -97011,35 +96833,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
97011
96833
  if (isUpdateMaintain(task)) {
97012
96834
  this.serviceOrderId = "";
97013
96835
  void this.getCurrentData();
97014
- } else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
97015
- this.bcDataExtractTaskId = "";
97016
- void this.refreshBritishColumbiaCurrentDataExtract();
97017
96836
  }
97018
96837
  this.activeStep.set(Step.Validate);
97019
96838
  }
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
- }
97043
96839
  parseError(errors) {
97044
96840
  return errors.map((item) => (item["ErrorMessage"] ?? item["Message"] ?? "").toString().trim()).filter((message) => message.length > 0);
97045
96841
  }
@@ -97190,6 +96986,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
97190
96986
  corporationNumber: task.entity._profile.corp_number ?? ""
97191
96987
  });
97192
96988
  }
96989
+ if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
96990
+ const validatedOrderId = deltaData.validatedData?.currentDataServiceOrderId;
96991
+ if (!validatedOrderId) {
96992
+ return void 0;
96993
+ }
96994
+ return buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData, validatedOrderId, this.currentDataExtract());
96995
+ }
97193
96996
  if (isUpdateMaintain(task) && isOntarioTask(task)) {
97194
96997
  const serviceOrderId = deltaData?.serviceOrderId ?? this.serviceOrderId;
97195
96998
  if (!serviceOrderId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.1.35",
3
+ "version": "2.1.36",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {
@@ -8,4 +8,4 @@
8
8
  },
9
9
  "author": "",
10
10
  "license": "ISC"
11
- }
11
+ }