@dyedurham/search-and-file-widget 2.1.37 → 2.1.38

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 +155 -427
  2. package/package.json +2 -2
@@ -84948,7 +84948,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84948
84948
  const format = BritishColumbiaFormationFormHelper.formatFullAddress;
84949
84949
  const pick = BritishColumbiaFormationFormHelper.pickAddress;
84950
84950
  const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
84951
- 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 ?? "";
84952
84952
  const registeredMailing = format(pick(registeredOffice?.addresses, "Mailing"));
84953
84953
  const effectiveDate = task._ext._effective_date ?? "";
84954
84954
  const today = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
@@ -85031,7 +85031,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85031
85031
  }
85032
85032
  static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber, savedClientMatterNumber) {
85033
85033
  return new FormGroup({
85034
- [Controls.ClientMatterNumber]: new FormControl(clientMatterNumber ?? savedClientMatterNumber ?? ""),
85034
+ [Controls.ClientMatterNumber]: new FormControl(savedClientMatterNumber !== void 0 ? savedClientMatterNumber ?? "" : clientMatterNumber ?? ""),
85035
85035
  [Controls.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
85036
85036
  });
85037
85037
  }
@@ -85154,19 +85154,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85154
85154
  [Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "regDelivery", format(pick(registeredOffice?.addresses, "Delivery")))),
85155
85155
  [Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.mailingAddress, true),
85156
85156
  [Controls2.DeliverySameAsMailing]: new FormControl(regDeliverySame),
85157
- [Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress ?? (regDeliverySame ? seed.registeredOffice?.mailingAddress : void 0), !regDeliverySame)
85157
+ [Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress, !regDeliverySame)
85158
85158
  });
85159
85159
  const recSameAsRegistered = seed.recordsOffice?.sameAsRegisteredOffice ?? true;
85160
85160
  const recDeliverySame = seed.recordsOffice?.deliverySameAsMailing ?? true;
85161
- const recMailing = seed.recordsOffice?.mailingAddress ?? (recSameAsRegistered ? seed.registeredOffice?.mailingAddress : void 0);
85162
- const recDelivery = seed.recordsOffice?.deliveryAddress ?? (recDeliverySame ? recMailing : void 0);
85163
85161
  config2[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress] = new FormGroup({
85164
85162
  [Controls2.CurrentMailingAddress]: this.readOnly(this.previousText(extract, "recMailing", format(pick(recordsOffice?.addresses, "Mailing")))),
85165
85163
  [Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "recDelivery", format(pick(recordsOffice?.addresses, "Delivery")))),
85166
85164
  [Controls2.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
85167
- [Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(recMailing, !recSameAsRegistered),
85165
+ [Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.mailingAddress, !recSameAsRegistered),
85168
85166
  [Controls2.DeliverySameAsMailing]: new FormControl(recDeliverySame),
85169
- [Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(recDelivery, !recSameAsRegistered && !recDeliverySame)
85167
+ [Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.deliveryAddress, !recSameAsRegistered && !recDeliverySame)
85170
85168
  });
85171
85169
  const grid = (group2, control) => config2[group2].get(control);
85172
85170
  const register = (target, address) => address && incomingAddressByGrid.set(target, address);
@@ -85307,7 +85305,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85307
85305
  addressLine2: address.additionalStreetAddress ?? "",
85308
85306
  city: address.city ?? "",
85309
85307
  postalCode: address.postalOrZipCode ?? "",
85310
- province: address.provinceOrState || BC_DEFAULT_PROVINCE_STATE,
85308
+ province: BC_DEFAULT_PROVINCE_STATE,
85311
85309
  country: BC_DEFAULT_COUNTRY
85312
85310
  };
85313
85311
  }
@@ -85318,7 +85316,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85318
85316
  const pool = incoming.filter((a) => a.role?.role_name === AddressRole2.SHARED_ADDRESS && a.role?.static_title === title).flatMap((a) => a.addresses?.length ? a.addresses : a.parent_affiliation?.addresses ?? []);
85319
85317
  const wanted = locationType.toLowerCase();
85320
85318
  const address = pool.find((a) => (a.computed_location_type ?? "").toLowerCase() === wanted || (a.location_type ?? "").toLowerCase() === wanted);
85321
- return address ? this.toOfficeAddressDelta(address) : void 0;
85319
+ return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
85322
85320
  };
85323
85321
  return {
85324
85322
  regMailing: pickBy(AddressTitle2.REGISTERED_OFFICE, "Mailing"),
@@ -85335,8 +85333,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85335
85333
  addressLine2: getAddressComponent(address, "Suite/Apartment") || address.address2 || "",
85336
85334
  city: address.city ?? "",
85337
85335
  postalCode: address.postal_zip ?? "",
85338
- province: address.province_state || BC_DEFAULT_PROVINCE_STATE,
85339
- country: address.country || BC_DEFAULT_COUNTRY
85336
+ province: BC_DEFAULT_PROVINCE_STATE,
85337
+ country: BC_DEFAULT_COUNTRY
85340
85338
  };
85341
85339
  }
85342
85340
  /** An address with no province is accepted; the form only ever deals in British Columbia. */
@@ -85344,10 +85342,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85344
85342
  const province = (address.province_state ?? "").trim().toLowerCase();
85345
85343
  return !province || ["bc", "b.c.", "british columbia"].includes(province);
85346
85344
  }
85347
- static isBritishColumbiaProvince(province) {
85348
- const p = (province ?? "").trim().toLowerCase();
85349
- return !p || ["bc", "b.c.", "british columbia"].includes(p);
85350
- }
85351
85345
  static isSameOfficeAddress(a, b) {
85352
85346
  const key = (x) => [x?.addressLine1, x?.addressLine2, x?.city, x?.postalCode].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
85353
85347
  return key(a) === key(b);
@@ -85420,7 +85414,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85420
85414
  });
85421
85415
 
85422
85416
  // src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
85423
- 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;
85424
85418
  var init_british_columbia_change_of_directors_form_constants = __esm({
85425
85419
  "src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
85426
85420
  init_form_enums();
@@ -85460,7 +85454,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85460
85454
  class: "span-12"
85461
85455
  }
85462
85456
  ];
85463
- BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS = [
85457
+ [
85464
85458
  {
85465
85459
  type: FormType.Checkbox,
85466
85460
  label: "Directors will be added and/or deleted as part of this filing",
@@ -85594,78 +85588,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85594
85588
  \u0275\u0275elementEnd()()()();
85595
85589
  }
85596
85590
  if (rf & 2) {
85597
- let tmp_9_0;
85598
- let tmp_11_0;
85591
+ let tmp_8_0;
85592
+ let tmp_10_0;
85599
85593
  const ctx_r0 = \u0275\u0275nextContext();
85600
85594
  const corporationDetails_r5 = \u0275\u0275readContextLet(6);
85601
85595
  \u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.CorporationDetails);
85602
85596
  \u0275\u0275advance(4);
85603
85597
  \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Corporation Name"), ":");
85604
85598
  \u0275\u0275advance(2);
85605
- \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, " ");
85606
85600
  \u0275\u0275advance(3);
85607
85601
  \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 11, "Incorporation Number"), ":");
85608
85602
  \u0275\u0275advance(2);
85609
- \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, " ");
85610
85604
  \u0275\u0275advance(2);
85611
85605
  \u0275\u0275property("form", corporationDetails_r5)("config", ctx_r0.companyEmailFields())("isSubmitted", ctx_r0.isSubmitted());
85612
85606
  }
85613
85607
  }
85614
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_5_Template(rf, ctx) {
85615
- if (rf & 1) {
85616
- \u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "p", 17);
85617
- \u0275\u0275text(3);
85618
- \u0275\u0275pipe(4, "translate");
85619
- \u0275\u0275elementStart(5, "strong");
85620
- \u0275\u0275text(6);
85621
- \u0275\u0275elementEnd()()()();
85622
- }
85623
- if (rf & 2) {
85624
- let tmp_8_0;
85625
- const ctx_r0 = \u0275\u0275nextContext(2);
85626
- const filingDetails_r7 = \u0275\u0275readContextLet(8);
85627
- \u0275\u0275advance(3);
85628
- \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 2, "The date on which the individual(s) became or ceased to be a director:"), " ");
85629
- \u0275\u0275advance(3);
85630
- \u0275\u0275textInterpolate(ctx_r0.getEffectiveDateDisplay((tmp_8_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_8_0.value));
85631
- }
85632
- }
85633
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
85608
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
85634
85609
  if (rf & 1) {
85635
- const _r6 = \u0275\u0275getCurrentView();
85636
- \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "mat-checkbox", 14);
85637
- \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_2_listener() {
85638
- let tmp_7_0;
85639
- \u0275\u0275restoreView(_r6);
85640
- const ctx_r0 = \u0275\u0275nextContext();
85641
- const filingDetails_r7 = \u0275\u0275readContextLet(8);
85642
- (tmp_7_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.updateValueAndValidity({ emitEvent: false });
85643
- return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r7.valid));
85644
- });
85645
- \u0275\u0275text(3);
85646
- \u0275\u0275pipe(4, "translate");
85647
- \u0275\u0275elementEnd();
85648
- \u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_5_Template, 7, 4, "div", 15);
85649
- \u0275\u0275elementEnd()();
85650
- }
85651
- if (rf & 2) {
85652
- let tmp_12_0;
85653
- const ctx_r0 = \u0275\u0275nextContext();
85654
- const filingDetails_r7 = \u0275\u0275readContextLet(8);
85655
- \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["filingDetails"])("title", ctx_r0.groups.FilingDetails);
85656
- \u0275\u0275advance();
85657
- \u0275\u0275property("formGroup", filingDetails_r7);
85658
- \u0275\u0275advance();
85659
- \u0275\u0275property("formControlName", ctx_r0.controls.DirectorsAddedOrDeleted);
85660
- \u0275\u0275advance();
85661
- \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 7, "Directors will be added and/or deleted as part of this filing"), " ");
85662
- \u0275\u0275advance(2);
85663
- \u0275\u0275conditional(((tmp_12_0 = filingDetails_r7.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_12_0.value) ? 5 : -1);
85664
- }
85665
- }
85666
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
85667
- if (rf & 1) {
85668
- \u0275\u0275elementStart(0, "span", 22);
85610
+ \u0275\u0275elementStart(0, "span", 17);
85669
85611
  \u0275\u0275text(1);
85670
85612
  \u0275\u0275pipe(2, "translate");
85671
85613
  \u0275\u0275elementEnd();
@@ -85675,9 +85617,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85675
85617
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "NEW"));
85676
85618
  }
85677
85619
  }
85678
- 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) {
85679
85621
  if (rf & 1) {
85680
- \u0275\u0275elementStart(0, "span", 23);
85622
+ \u0275\u0275elementStart(0, "span", 18);
85681
85623
  \u0275\u0275text(1);
85682
85624
  \u0275\u0275pipe(2, "translate");
85683
85625
  \u0275\u0275elementEnd();
@@ -85687,71 +85629,71 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85687
85629
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "CEASE"));
85688
85630
  }
85689
85631
  }
85690
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
85632
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Template(rf, ctx) {
85691
85633
  if (rf & 1) {
85692
- \u0275\u0275elementStart(0, "div", 20)(1, "div", 21)(2, "strong");
85634
+ \u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "strong");
85693
85635
  \u0275\u0275text(3);
85694
85636
  \u0275\u0275elementEnd();
85695
- \u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 22)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 23);
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);
85696
85638
  \u0275\u0275elementEnd();
85697
- \u0275\u0275elementStart(6, "div", 21);
85639
+ \u0275\u0275elementStart(6, "div", 16);
85698
85640
  \u0275\u0275text(7);
85699
85641
  \u0275\u0275elementEnd();
85700
- \u0275\u0275elementStart(8, "div", 21);
85642
+ \u0275\u0275elementStart(8, "div", 16);
85701
85643
  \u0275\u0275text(9);
85702
85644
  \u0275\u0275elementEnd()();
85703
85645
  }
85704
85646
  if (rf & 2) {
85705
- let tmp_19_0;
85647
+ let tmp_18_0;
85648
+ let tmp_21_0;
85706
85649
  let tmp_22_0;
85707
- let tmp_23_0;
85708
85650
  \u0275\u0275nextContext();
85709
- const directorForm_r8 = \u0275\u0275readContextLet(0);
85651
+ const directorForm_r6 = \u0275\u0275readContextLet(0);
85710
85652
  const ctx_r0 = \u0275\u0275nextContext(2);
85711
85653
  \u0275\u0275advance(3);
85712
- \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);
85713
85655
  \u0275\u0275advance();
85714
- \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r8) ? 4 : -1);
85656
+ \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r6) ? 4 : -1);
85715
85657
  \u0275\u0275advance();
85716
- \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r8) ? 5 : -1);
85658
+ \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r6) ? 5 : -1);
85717
85659
  \u0275\u0275advance(2);
85718
- \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);
85719
85661
  \u0275\u0275advance(2);
85720
- \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);
85721
85663
  }
85722
85664
  }
85723
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
85665
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Template(rf, ctx) {
85724
85666
  if (rf & 1) {
85725
85667
  \u0275\u0275declareLet(0);
85726
- \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 20);
85668
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Template, 10, 5, "div", 15);
85727
85669
  }
85728
85670
  if (rf & 2) {
85729
- const \u0275$index_83_r9 = ctx.$index;
85730
- const directorForm_r10 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_83_r9));
85671
+ const \u0275$index_61_r7 = ctx.$index;
85672
+ const directorForm_r8 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_61_r7));
85731
85673
  \u0275\u0275advance();
85732
- \u0275\u0275conditional(directorForm_r10 ? 1 : -1);
85674
+ \u0275\u0275conditional(directorForm_r8 ? 1 : -1);
85733
85675
  }
85734
85676
  }
85735
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
85677
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_Template(rf, ctx) {
85736
85678
  if (rf & 1) {
85737
- \u0275\u0275elementStart(0, "div", 7)(1, "div", 18)(2, "div", 19);
85679
+ \u0275\u0275elementStart(0, "div", 6)(1, "div", 13)(2, "div", 14);
85738
85680
  \u0275\u0275text(3);
85739
85681
  \u0275\u0275pipe(4, "translate");
85740
85682
  \u0275\u0275elementEnd();
85741
- \u0275\u0275elementStart(5, "div", 19);
85683
+ \u0275\u0275elementStart(5, "div", 14);
85742
85684
  \u0275\u0275text(6);
85743
85685
  \u0275\u0275pipe(7, "translate");
85744
85686
  \u0275\u0275elementEnd();
85745
- \u0275\u0275elementStart(8, "div", 19);
85687
+ \u0275\u0275elementStart(8, "div", 14);
85746
85688
  \u0275\u0275text(9);
85747
85689
  \u0275\u0275pipe(10, "translate");
85748
85690
  \u0275\u0275elementEnd()();
85749
- \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);
85750
85692
  \u0275\u0275elementEnd();
85751
85693
  }
85752
85694
  if (rf & 2) {
85753
85695
  \u0275\u0275nextContext();
85754
- const directorsArray_r11 = \u0275\u0275readContextLet(10);
85696
+ const directorsArray_r9 = \u0275\u0275readContextLet(8);
85755
85697
  \u0275\u0275advance(3);
85756
85698
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4, 3, "Name"));
85757
85699
  \u0275\u0275advance(3);
@@ -85759,12 +85701,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85759
85701
  \u0275\u0275advance(3);
85760
85702
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 7, "Delivery Address"));
85761
85703
  \u0275\u0275advance(2);
85762
- \u0275\u0275repeater(directorsArray_r11.controls);
85704
+ \u0275\u0275repeater(directorsArray_r9.controls);
85763
85705
  }
85764
85706
  }
85765
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
85707
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_11_Template(rf, ctx) {
85766
85708
  if (rf & 1) {
85767
- \u0275\u0275elementStart(0, "h2", 8);
85709
+ \u0275\u0275elementStart(0, "h2", 7);
85768
85710
  \u0275\u0275text(1);
85769
85711
  \u0275\u0275pipe(2, "translate");
85770
85712
  \u0275\u0275elementEnd();
@@ -85774,35 +85716,35 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85774
85716
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "Unchanged"));
85775
85717
  }
85776
85718
  }
85777
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
85719
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
85778
85720
  if (rf & 1) {
85779
- const _r12 = \u0275\u0275getCurrentView();
85780
- \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 24)(2, "p");
85721
+ const _r10 = \u0275\u0275getCurrentView();
85722
+ \u0275\u0275elementStart(0, "expandable-card", 8)(1, "div", 19)(2, "p");
85781
85723
  \u0275\u0275text(3);
85782
85724
  \u0275\u0275pipe(4, "translate");
85783
85725
  \u0275\u0275elementEnd();
85784
- \u0275\u0275elementStart(5, "mat-radio-group", 25);
85785
- \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template_mat_radio_group_change_5_listener() {
85786
- \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);
85787
85729
  const ctx_r0 = \u0275\u0275nextContext();
85788
- const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
85789
- 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));
85790
85732
  });
85791
- \u0275\u0275elementStart(6, "mat-radio-button", 26);
85733
+ \u0275\u0275elementStart(6, "mat-radio-button", 21);
85792
85734
  \u0275\u0275text(7);
85793
85735
  \u0275\u0275pipe(8, "translate");
85794
85736
  \u0275\u0275elementEnd();
85795
- \u0275\u0275elementStart(9, "mat-radio-button", 26);
85737
+ \u0275\u0275elementStart(9, "mat-radio-button", 21);
85796
85738
  \u0275\u0275text(10);
85797
85739
  \u0275\u0275pipe(11, "translate");
85798
85740
  \u0275\u0275elementEnd()()()();
85799
85741
  }
85800
85742
  if (rf & 2) {
85801
85743
  const ctx_r0 = \u0275\u0275nextContext();
85802
- const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
85744
+ const annualReportReminder_r11 = \u0275\u0275readContextLet(12);
85803
85745
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
85804
85746
  \u0275\u0275advance();
85805
- \u0275\u0275property("formGroup", annualReportReminder_r13);
85747
+ \u0275\u0275property("formGroup", annualReportReminder_r11);
85806
85748
  \u0275\u0275advance(2);
85807
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."), " ");
85808
85750
  \u0275\u0275advance(2);
@@ -85822,10 +85764,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85822
85764
  "src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts"() {
85823
85765
  init_core();
85824
85766
  init_forms();
85825
- init_checkbox();
85826
- init_datepicker();
85827
- init_form_field();
85828
- init_input();
85829
85767
  init_radio();
85830
85768
  init_ngx_translate_core();
85831
85769
  init_filing_form_group_component();
@@ -85858,7 +85796,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85858
85796
  return BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS.map((field) => field.formControlName === this.controls.CompanyEmail ? __spreadProps(__spreadValues({}, field), { options: emailOptions }) : field);
85859
85797
  });
85860
85798
  companyEmailFields = computed(() => this.corporationDetailsFields().filter((field) => field.formControlName === this.controls.CompanyEmail));
85861
- filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
85862
85799
  directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
85863
85800
  annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
85864
85801
  initiallyOpenCardsCount = 3;
@@ -85870,11 +85807,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85870
85807
  const annualReportReminder = this.getFormGroup(this.groups.AnnualReportReminder);
85871
85808
  return Object.values(this.sectionValidity).every((v) => v) && !filingDetails?.invalid && !dateInvalid && !annualReportReminder?.invalid;
85872
85809
  }
85873
- getEffectiveDateDisplay(value) {
85874
- const date = String(value ?? "").split("T")[0];
85875
- const [year, month, day] = date.split("-");
85876
- return year && month && day ? `${year}-${month}-${day}` : "\u2014";
85877
- }
85878
85810
  onSectionValidChange(section, valid) {
85879
85811
  this.sectionValidity = __spreadProps(__spreadValues({}, this.sectionValidity), { [section]: valid });
85880
85812
  this.visiblyValidChange.emit(this.isVisiblyValid());
@@ -85900,7 +85832,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85900
85832
  static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
85901
85833
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
85902
85834
  };
85903
- 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, "directors-change-checkbox", 3, "change", "formControlName"], [1, "filing-details-grid"], [1, "date-field"], [1, "effective-date-description"], ["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) {
85904
85836
  if (rf & 1) {
85905
85837
  \u0275\u0275elementStart(0, "div", 0);
85906
85838
  \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
@@ -85910,13 +85842,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85910
85842
  \u0275\u0275declareLet(6);
85911
85843
  \u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 14, 13, "expandable-card", 5);
85912
85844
  \u0275\u0275declareLet(8);
85913
- \u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 6, 9, "expandable-card", 6);
85914
- \u0275\u0275declareLet(10);
85915
- \u0275\u0275elementStart(11, "expandable-card", 5);
85916
- \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);
85917
85847
  \u0275\u0275elementEnd();
85918
- \u0275\u0275declareLet(14);
85919
- \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);
85920
85850
  \u0275\u0275elementEnd()();
85921
85851
  }
85922
85852
  if (rf & 2) {
@@ -85925,33 +85855,28 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85925
85855
  \u0275\u0275advance();
85926
85856
  \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
85927
85857
  \u0275\u0275advance(2);
85928
- const referenceNumbers_r14 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85858
+ const referenceNumbers_r12 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85929
85859
  \u0275\u0275advance();
85930
- \u0275\u0275conditional(referenceNumbers_r14 ? 5 : -1);
85860
+ \u0275\u0275conditional(referenceNumbers_r12 ? 5 : -1);
85931
85861
  \u0275\u0275advance();
85932
- const corporationDetails_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85862
+ const corporationDetails_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85933
85863
  \u0275\u0275advance();
85934
- \u0275\u0275conditional(corporationDetails_r15 ? 7 : -1);
85864
+ \u0275\u0275conditional(corporationDetails_r13 ? 7 : -1);
85935
85865
  \u0275\u0275advance();
85936
- const filingDetails_r16 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.FilingDetails));
85937
- \u0275\u0275advance();
85938
- \u0275\u0275conditional(filingDetails_r16 ? 9 : -1);
85939
- \u0275\u0275advance();
85940
- const directorsArray_r17 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85866
+ const directorsArray_r14 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85941
85867
  \u0275\u0275advance();
85942
85868
  \u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
85943
85869
  \u0275\u0275advance();
85944
- \u0275\u0275conditional(directorsArray_r17 && directorsArray_r17.length ? 12 : 13);
85870
+ \u0275\u0275conditional(directorsArray_r14 && directorsArray_r14.length ? 10 : 11);
85945
85871
  \u0275\u0275advance(2);
85946
- const annualReportReminder_r18 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85872
+ const annualReportReminder_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85947
85873
  \u0275\u0275advance();
85948
- \u0275\u0275conditional(annualReportReminder_r18 ? 15 : -1);
85874
+ \u0275\u0275conditional(annualReportReminder_r15 ? 13 : -1);
85949
85875
  }
85950
85876
  }, dependencies: [
85951
85877
  FilingFormGroupComponent,
85952
85878
  AlertComponent,
85953
85879
  ExpandableCardComponent,
85954
- MatCheckbox,
85955
85880
  MatRadioButton,
85956
85881
  MatRadioGroup,
85957
85882
  ReactiveFormsModule,
@@ -85969,179 +85894,118 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85969
85894
  FilingFormGroupComponent,
85970
85895
  AlertComponent,
85971
85896
  ExpandableCardComponent,
85972
- MatCheckbox,
85973
- MatDatepicker,
85974
- MatDatepickerInput,
85975
- MatFormField,
85976
- MatInput,
85977
85897
  MatRadioButton,
85978
85898
  MatRadioGroup,
85979
85899
  ReactiveFormsModule,
85980
85900
  TranslatePipe
85981
85901
  ], template: `<div class="change-of-directors-form">\r
85982
85902
  @if (isNote()) {\r
85983
- <alert\r
85984
- [type]="alertType.Info"\r
85985
- title="Entity changed"\r
85986
- content="A new draft needs to be generated as the Entity was changed since the last draft was produced."\r
85987
- />\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
85988
85905
  }\r
85989
85906
  \r
85990
85907
  @if (errors().length) {\r
85991
- <alert\r
85992
- title="The following issues need to be resolved before proceeding:"\r
85993
- [content]="errors()"\r
85994
- />\r
85908
+ <alert title="The following issues need to be resolved before proceeding:" [content]="errors()" />\r
85995
85909
  }\r
85996
85910
  \r
85997
85911
  <div class="change-of-directors-form-content">\r
85998
85912
  @let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
85999
85913
  \r
86000
85914
  @if (referenceNumbers) {\r
86001
- <expandable-card [title]="groups.ReferenceNumbers">\r
86002
- <filing-form-group\r
86003
- [isSubmitted]="isSubmitted()"\r
86004
- [form]="referenceNumbers"\r
86005
- [config]="referenceNumbersFields"\r
86006
- (visiblyValidChange)="onSectionValidChange('refNumbers', $event)"\r
86007
- />\r
86008
- </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
86009
85919
  }\r
86010
85920
  \r
86011
85921
  @let corporationDetails = getFormGroup(groups.CorporationDetails);\r
86012
85922
  \r
86013
85923
  @if (corporationDetails) {\r
86014
- <expandable-card [isStatusIcon]="false" [title]="groups.CorporationDetails">\r
86015
- <div class="readonly-summary">\r
86016
- <p>\r
86017
- <strong>{{ 'Corporation Name' | translate }}:</strong>\r
86018
- {{ corporationDetails.get(controls.CorporationName)?.value }}\r
86019
- </p>\r
86020
- <p>\r
86021
- <strong>{{ 'Incorporation Number' | translate }}:</strong>\r
86022
- {{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
86023
- </p>\r
86024
- <div class="company-email-field">\r
86025
- <filing-form-group\r
86026
- [form]="corporationDetails"\r
86027
- [config]="companyEmailFields()"\r
86028
- [isSubmitted]="isSubmitted()"\r
86029
- (visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"\r
86030
- />\r
86031
- </div>\r
86032
- </div>\r
86033
- </expandable-card>\r
86034
- }\r
86035
- \r
86036
- @let filingDetails = getFormGroup(groups.FilingDetails);\r
86037
- \r
86038
- @if (filingDetails) {\r
86039
- <expandable-card\r
86040
- [isStatusIcon]="!readonly()"\r
86041
- [isValid]="sectionValidity['filingDetails']"\r
86042
- [title]="groups.FilingDetails"\r
86043
- >\r
86044
- <div class="filing-details" [formGroup]="filingDetails">\r
86045
- <mat-checkbox\r
86046
- class="directors-change-checkbox"\r
86047
- [formControlName]="controls.DirectorsAddedOrDeleted"\r
86048
- (change)="\r
86049
- filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false });\r
86050
- onSectionValidChange('filingDetails', filingDetails.valid)\r
86051
- "\r
86052
- >\r
86053
- {{ 'Directors will be added and/or deleted as part of this filing' | translate }}\r
86054
- </mat-checkbox>\r
86055
- \r
86056
- @if (filingDetails.get(controls.DirectorsAddedOrDeleted)?.value) {\r
86057
- <div class="filing-details-grid">\r
86058
- <div class="date-field">\r
86059
- <p class="effective-date-description">\r
86060
- {{\r
86061
- 'The date on which the individual(s) became or ceased to be a director:'\r
86062
- | translate\r
86063
- }}\r
86064
- <strong>{{ getEffectiveDateDisplay(filingDetails.get(controls.ChangeDate)?.value) }}</strong>\r
86065
- </p>\r
86066
- </div>\r
86067
- \r
86068
- </div>\r
86069
- }\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
86070
85937
  </div>\r
86071
- </expandable-card>\r
85938
+ </div>\r
85939
+ </expandable-card>\r
86072
85940
  }\r
86073
85941
  \r
86074
85942
  @let directorsArray = getFormArray(groups.Directors);\r
86075
85943
  \r
86076
85944
  <expandable-card [isStatusIcon]="false" [title]="groups.Directors">\r
86077
85945
  @if (directorsArray && directorsArray.length) {\r
86078
- <div class="directors-table" role="table">\r
86079
- <div class="directors-table-header" role="row">\r
86080
- <div role="columnheader">{{ 'Name' | translate }}</div>\r
86081
- <div role="columnheader">{{ 'Mailing Address' | translate }}</div>\r
86082
- <div role="columnheader">{{ 'Delivery Address' | translate }}</div>\r
86083
- </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
86084
85952
  \r
86085
- @for (director of directorsArray.controls; track director; let i = $index) {\r
86086
- @let directorForm = getDirectorForm(i);\r
86087
- @if (directorForm) {\r
86088
- <div class="directors-table-row" role="row">\r
86089
- <div role="cell">\r
86090
- <strong>{{ directorForm.get(controls.AffiliationName)?.value }}</strong>\r
86091
- @if (isNewDirector(directorForm)) {\r
86092
- <span class="status-pill new">{{ 'NEW' | translate }}</span>\r
86093
- }\r
86094
- @if (isCeasedDirector(directorForm)) {\r
86095
- <span class="status-pill ceased">{{ 'CEASE' | translate }}</span>\r
86096
- }\r
86097
- </div>\r
86098
- <div role="cell">{{ directorForm.get(controls.MailingAddress)?.value }}</div>\r
86099
- <div role="cell">{{ directorForm.get(controls.DeliveryAddress)?.value }}</div>\r
86100
- </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
86101
85961
  }\r
86102
- }\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
86103
85968
  </div>\r
85969
+ }\r
85970
+ }\r
85971
+ </div>\r
86104
85972
  } @else {\r
86105
- <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
85973
+ <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
86106
85974
  }\r
86107
85975
  </expandable-card>\r
86108
85976
  \r
86109
85977
  @let annualReportReminder = getFormGroup(groups.AnnualReportReminder);\r
86110
85978
  \r
86111
85979
  @if (annualReportReminder) {\r
86112
- <expandable-card\r
86113
- [isStatusIcon]="!readonly()"\r
86114
- [isValid]="sectionValidity['annualReportReminder']"\r
86115
- [title]="groups.AnnualReportReminder"\r
86116
- >\r
86117
- <div class="annual-reminder" [formGroup]="annualReportReminder">\r
86118
- <p>\r
86119
- {{\r
86120
- "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
86121
- | translate\r
86122
- }}\r
86123
- </p>\r
86124
- <mat-radio-group\r
86125
- [formControlName]="controls.AnnualReportReminder"\r
86126
- (change)="onSectionValidChange('annualReportReminder', annualReportReminder.valid)"\r
86127
- >\r
86128
- <mat-radio-button [value]="annualReportReminderOption.Yes">\r
86129
- {{ 'Yes, send the annual report reminder' | translate }}\r
86130
- </mat-radio-button>\r
86131
- <mat-radio-button [value]="annualReportReminderOption.No">\r
86132
- {{ 'No, I do not need to be reminded' | translate }}\r
86133
- </mat-radio-button>\r
86134
- </mat-radio-group>\r
86135
- </div>\r
86136
- </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
86137
86002
  }\r
86138
86003
  </div>\r
86139
- </div>\r
86140
- `, 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'] }]
86141
86005
  }], null, null);
86142
86006
  })();
86143
86007
  (() => {
86144
- (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 });
86145
86009
  })();
86146
86010
  }
86147
86011
  });
@@ -88044,85 +87908,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88044
87908
  return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
88045
87909
  }
88046
87910
  isRegisteredOfficeValid() {
88047
- return !this.isRegisteredMissing() && !this.isRegisteredOutsideBc();
87911
+ return !this.isRegisteredMissing();
88048
87912
  }
88049
87913
  isRecordsOfficeValid() {
88050
- return !this.isRecordsMissing() && !this.isRecordsOutsideBc();
88051
- }
88052
- isNotBcProvince(province) {
88053
- const p = (province ?? "").trim().toLowerCase();
88054
- return Boolean(p && !["bc", "b.c.", "british columbia"].includes(p));
88055
- }
88056
- isNotCanadaCountry(country) {
88057
- const c = (country ?? "").trim().toLowerCase();
88058
- return Boolean(c && !["canada", "ca"].includes(c));
88059
- }
88060
- isRowOrGroupOutsideBc(group2, rowValue, title, locationType) {
88061
- if (group2) {
88062
- const v = group2.getRawValue() ?? {};
88063
- const c = this.controls;
88064
- const hasAddress = [v[c.AddressLine1], v[c.City], v[c.PostalCode]].some((part) => part?.trim());
88065
- if (hasAddress) {
88066
- if (this.isNotBcProvince(v[c.Province]) || this.isNotCanadaCountry(v[c.Country])) {
88067
- return true;
88068
- }
88069
- }
88070
- }
88071
- if (rowValue?.trim()) {
88072
- const lower = rowValue.toLowerCase();
88073
- const hasBc = lower.includes("british columbia") || lower.includes("b.c.") || /\bbc\b/.test(lower);
88074
- if (!hasBc) {
88075
- return true;
88076
- }
88077
- }
88078
- if (title && locationType) {
88079
- const incoming = this.task()?.incomingAffiliations ?? [];
88080
- const wanted = locationType.toLowerCase();
88081
- const pool = incoming.filter((a) => a.role?.role_name === "Shared Address" && a.role?.static_title === title).flatMap((a) => a.addresses?.length ? a.addresses : a.parent_affiliation?.addresses ?? []);
88082
- const address = pool.find((a) => (a.computed_location_type ?? "").toLowerCase() === wanted || (a.location_type ?? "").toLowerCase() === wanted) ?? (incoming.length === 1 ? pool[0] : void 0);
88083
- if (address && (this.isNotBcProvince(address.province_state) || this.isNotCanadaCountry(address.country))) {
88084
- return true;
88085
- }
88086
- }
88087
- return false;
88088
- }
88089
- isRegisteredMailingOutsideBc() {
88090
- const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
88091
- const [regMailing] = this.registeredRows();
88092
- const mailingGroup = this.getAddressGroup(office, this.controls.NewMailingAddress);
88093
- return this.isRowOrGroupOutsideBc(mailingGroup, regMailing?.value, "Registered Office", "Mailing");
88094
- }
88095
- isRegisteredDeliveryOutsideBc() {
88096
- const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
88097
- const [, regDelivery] = this.registeredRows();
88098
- const deliverySame = this.isChecked(office, this.controls.DeliverySameAsMailing);
88099
- const deliveryGroup = deliverySame ? this.getAddressGroup(office, this.controls.NewMailingAddress) : this.getAddressGroup(office, this.controls.NewDeliveryAddress);
88100
- return this.isRowOrGroupOutsideBc(deliveryGroup, regDelivery?.value, "Registered Office", "Delivery");
88101
- }
88102
- isRecordsMailingOutsideBc() {
88103
- const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
88104
- if (this.isChecked(office, this.controls.SameAsRegisteredOffice)) {
88105
- return this.isRegisteredMailingOutsideBc();
88106
- }
88107
- const [recMailing] = this.recordsRows();
88108
- const mailingGroup = this.getAddressGroup(office, this.controls.NewMailingAddress);
88109
- return this.isRowOrGroupOutsideBc(mailingGroup, recMailing?.value, "Records Office", "Mailing");
88110
- }
88111
- isRecordsDeliveryOutsideBc() {
88112
- const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
88113
- if (this.isChecked(office, this.controls.SameAsRegisteredOffice)) {
88114
- return this.isRegisteredDeliveryOutsideBc();
88115
- }
88116
- const [, recDelivery] = this.recordsRows();
88117
- const deliverySame = this.isChecked(office, this.controls.DeliverySameAsMailing);
88118
- const deliveryGroup = deliverySame ? this.getAddressGroup(office, this.controls.NewMailingAddress) : this.getAddressGroup(office, this.controls.NewDeliveryAddress);
88119
- return this.isRowOrGroupOutsideBc(deliveryGroup, recDelivery?.value, "Records Office", "Delivery");
88120
- }
88121
- isRegisteredOutsideBc() {
88122
- return this.isRegisteredMailingOutsideBc() || this.isRegisteredDeliveryOutsideBc();
88123
- }
88124
- isRecordsOutsideBc() {
88125
- return this.isRecordsMailingOutsideBc() || this.isRecordsDeliveryOutsideBc();
87914
+ return !this.isRecordsMissing();
88126
87915
  }
88127
87916
  /** One message per missing office address, shown in the banner at the top of the form. */
88128
87917
  missingMessages() {
@@ -88134,15 +87923,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88134
87923
  const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
88135
87924
  const [regMailing, regDelivery] = this.registeredRows();
88136
87925
  const [recMailing, recDelivery] = this.recordsRows();
88137
- const isRegDeliveryOutsideBc = this.isRegisteredDeliveryOutsideBc();
88138
- const isRegMailingOutsideBc = this.isRegisteredMailingOutsideBc();
88139
- const isRecDeliveryOutsideBc = this.isRecordsDeliveryOutsideBc();
88140
- const isRecMailingOutsideBc = this.isRecordsMailingOutsideBc();
88141
87926
  return [
88142
- isRegDeliveryOutsideBc && t("The Delivery Address for the Registered Office is not in British Columbia. Add it in UEM, then try again."),
88143
- isRegMailingOutsideBc && t("The Mailing Address for the Registered Office is not in British Columbia. Add it in UEM, then try again."),
88144
- isRecDeliveryOutsideBc && t("The Delivery Address for the Records Office is not in British Columbia. Add it in UEM, then try again."),
88145
- isRecMailingOutsideBc && t("The Mailing Address for the Records Office is not in British Columbia. Add it in UEM, then try again."),
88146
87927
  !regMailing.value && t("The Registered Office mailing address is missing. Add it in UEM, then try again."),
88147
87928
  !regDelivery.value && t("The Registered Office delivery address is missing. Add it in UEM, then try again."),
88148
87929
  // "Same as Registered Office" is already reported by the registered office messages.
@@ -88192,8 +87973,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88192
87973
  }
88193
87974
  buildRows(office, deliverySame) {
88194
87975
  const current = this.currentOf(office);
88195
- const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress)) || this.fallbackTaskAddress(office, "Mailing");
88196
- const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress)) || this.fallbackTaskAddress(office, "Delivery") || mailing;
87976
+ const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress));
87977
+ const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress));
88197
87978
  return [
88198
87979
  {
88199
87980
  label: "Mailing Address",
@@ -88207,34 +87988,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88207
87988
  }
88208
87989
  ];
88209
87990
  }
88210
- fallbackTaskAddress(office, locationType = "Mailing") {
88211
- const task = this.task();
88212
- if (!task) {
88213
- return "";
88214
- }
88215
- const isRegistered = office === this.getFormGroup(this.groups.RegisteredOfficeAddress);
88216
- const title = isRegistered ? "Registered Office" : "Records Office";
88217
- const incoming = task.incomingAffiliations ?? [];
88218
- const wanted = locationType.toLowerCase();
88219
- const pool = incoming.filter((a) => a.role?.role_name === "Shared Address" && a.role?.static_title === title).flatMap((a) => a.addresses?.length ? a.addresses : a.parent_affiliation?.addresses ?? []);
88220
- const address = pool.find((a) => (a.computed_location_type ?? "").toLowerCase() === wanted || (a.location_type ?? "").toLowerCase() === wanted) ?? pool[0];
88221
- if (address) {
88222
- const streetNumber = address.components?.find((c) => c.name === "Street Number Only")?.value ?? "";
88223
- const streetName = address.components?.find((c) => c.name === "Street Only")?.value ?? "";
88224
- const street = [streetNumber, streetName].filter(Boolean).join(" ") || address.street || "";
88225
- const suite = address.components?.find((c) => c.name === "Suite/Apartment")?.value;
88226
- return [
88227
- suite ? `Unit ${suite}` : "",
88228
- street,
88229
- address.address2,
88230
- address.city,
88231
- address.province_state,
88232
- address.postal_zip,
88233
- address.country
88234
- ].filter(Boolean).join(", ");
88235
- }
88236
- return "";
88237
- }
88238
87991
  currentOf(office) {
88239
87992
  return {
88240
87993
  mailing: office?.get(this.controls.CurrentMailingAddress)?.value ?? "",
@@ -89058,6 +88811,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
89058
88811
  const c = BCChangeOfDirectorsFormControls;
89059
88812
  const formData = this.deltaForm().getRawValue();
89060
88813
  const refNumbers = formData[BCChangeOfDirectorsFormGroups.ReferenceNumbers];
88814
+ const corporation = formData[BCChangeOfDirectorsFormGroups.CorporationDetails];
89061
88815
  const filing = formData[BCChangeOfDirectorsFormGroups.FilingDetails];
89062
88816
  const notification = formData[BCChangeOfDirectorsFormGroups.Notification];
89063
88817
  const reminder = formData[BCChangeOfDirectorsFormGroups.AnnualReportReminder];
@@ -89069,6 +88823,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
89069
88823
  referenceNumber: refNumbers?.[c.ClientMatterNumber] ?? null,
89070
88824
  docketNumber: refNumbers?.[c.DocketNumber] ?? null
89071
88825
  },
88826
+ companyEmail: corporation?.[c.CompanyEmail] ?? null,
89072
88827
  filingDetails: {
89073
88828
  directorsAddedOrDeleted: addedOrDeleted,
89074
88829
  changeDate: addedOrDeleted ? filing?.[c.ChangeDate] ?? null : void 0
@@ -95606,7 +95361,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95606
95361
  const addedDirectors = [...source?.AddedDirectors ?? [], ...source?.AddDirector ?? [], ...source?.addDirectors ?? []];
95607
95362
  const ceasedDirectors = [...source?.CeasedDirectors ?? [], ...source?.CeaseDirector ?? [], ...source?.ceaseDirectors ?? []];
95608
95363
  const editedDirectors = [...source?.EditedDirectors ?? [], ...source?.EditDirector ?? [], ...source?.editDirectors ?? []];
95609
- const companyEmail = findCompanyEmail(task);
95364
+ const companyEmail = deltaData.companyEmail?.trim() || findCompanyEmail(task);
95610
95365
  const byId = new Map([
95611
95366
  ...incomingDirectors,
95612
95367
  ...outgoingDirectors
@@ -97078,35 +96833,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
97078
96833
  if (isUpdateMaintain(task)) {
97079
96834
  this.serviceOrderId = "";
97080
96835
  void this.getCurrentData();
97081
- } else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
97082
- this.bcDataExtractTaskId = "";
97083
- void this.refreshBritishColumbiaCurrentDataExtract();
97084
96836
  }
97085
96837
  this.activeStep.set(Step.Validate);
97086
96838
  }
97087
- refreshBritishColumbiaCurrentDataExtract() {
97088
- return __async(this, null, function* () {
97089
- const task = this.task();
97090
- const signature = this._signature();
97091
- if (!task || !signature || !isChangeOfPrincipalsTask(task))
97092
- return;
97093
- const { request, issues } = buildBritishColumbiaDataExtractOrder(task, task.deltaData?.companyPassword);
97094
- if (issues.length) {
97095
- this.errors.set(issues);
97096
- return;
97097
- }
97098
- this.isLoading.set(true);
97099
- try {
97100
- this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
97101
- this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
97102
- this.bcDataExtractTaskId = task._id;
97103
- } catch (error) {
97104
- this.handleCatchError(error);
97105
- } finally {
97106
- this.isLoading.set(false);
97107
- }
97108
- });
97109
- }
97110
96839
  parseError(errors) {
97111
96840
  return errors.map((item) => (item["ErrorMessage"] ?? item["Message"] ?? "").toString().trim()).filter((message) => message.length > 0);
97112
96841
  }
@@ -97257,6 +96986,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
97257
96986
  corporationNumber: task.entity._profile.corp_number ?? ""
97258
96987
  });
97259
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
+ }
97260
96996
  if (isUpdateMaintain(task) && isOntarioTask(task)) {
97261
96997
  const serviceOrderId = deltaData?.serviceOrderId ?? this.serviceOrderId;
97262
96998
  if (!serviceOrderId) {
@@ -102087,10 +101823,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
102087
101823
  "The Registered Office delivery address is missing. Add it in UEM, then try again.": "The Registered Office delivery address is missing. Add it in UEM, then try again.",
102088
101824
  "The Records Office mailing address is missing. Add it in UEM, then try again.": "The Records Office mailing address is missing. Add it in UEM, then try again.",
102089
101825
  "The Records Office delivery address is missing. Add it in UEM, then try again.": "The Records Office delivery address is missing. Add it in UEM, then try again.",
102090
- "The Delivery Address for the Registered Office is not in British Columbia. Add it in UEM, then try again.": "The Delivery Address for the Registered Office is not in British Columbia. Add it in UEM, then try again.",
102091
- "The Mailing Address for the Registered Office is not in British Columbia. Add it in UEM, then try again.": "The Mailing Address for the Registered Office is not in British Columbia. Add it in UEM, then try again.",
102092
- "The Delivery Address for the Records Office is not in British Columbia. Add it in UEM, then try again.": "The Delivery Address for the Records Office is not in British Columbia. Add it in UEM, then try again.",
102093
- "The Mailing Address for the Records Office is not in British Columbia. Add it in UEM, then try again.": "The Mailing Address for the Records Office is not in British Columbia. Add it in UEM, then try again.",
102094
101826
  "Mailing Address": "Mailing Address",
102095
101827
  "Delivery Address": "Delivery Address",
102096
101828
  "Current Mailing Address": "Current Mailing Address",
@@ -102453,10 +102185,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
102453
102185
  "The Registered Office delivery address is missing. Add it in UEM, then try again.": "L'adresse de livraison du si\xE8ge social est manquante. Ajoutez-la dans UEM, puis r\xE9essayez.",
102454
102186
  "The Records Office mailing address is missing. Add it in UEM, then try again.": "L'adresse postale du bureau des registres est manquante. Ajoutez-la dans UEM, puis r\xE9essayez.",
102455
102187
  "The Records Office delivery address is missing. Add it in UEM, then try again.": "L'adresse de livraison du bureau des registres est manquante. Ajoutez-la dans UEM, puis r\xE9essayez.",
102456
- "The Delivery Address for the Registered Office is not in British Columbia. Add it in UEM, then try again.": "L'adresse de livraison du si\xE8ge social n'est pas en Colombie-Britannique. Ajoutez-la dans UEM, puis r\xE9essayez.",
102457
- "The Mailing Address for the Registered Office is not in British Columbia. Add it in UEM, then try again.": "L'adresse postale du si\xE8ge social n'est pas en Colombie-Britannique. Ajoutez-la dans UEM, puis r\xE9essayez.",
102458
- "The Delivery Address for the Records Office is not in British Columbia. Add it in UEM, then try again.": "L'adresse de livraison du bureau des registres n'est pas en Colombie-Britannique. Ajoutez-la dans UEM, puis r\xE9essayez.",
102459
- "The Mailing Address for the Records Office is not in British Columbia. Add it in UEM, then try again.": "L'adresse postale du bureau des registres n'est pas en Colombie-Britannique. Ajoutez-la dans UEM, puis r\xE9essayez.",
102460
102188
  "Mailing Address": "Adresse postale",
102461
102189
  "Delivery Address": "Adresse de livraison",
102462
102190
  "Current Mailing Address": "Adresse postale actuelle",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.1.37",
3
+ "version": "2.1.38",
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
+ }