@dyedurham/search-and-file-widget 2.1.10 → 2.1.12

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 +377 -478
  2. package/package.json +2 -2
@@ -84450,10 +84450,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84450
84450
  const isIndividual = incorporator.type !== "entity";
84451
84451
  return {
84452
84452
  incorporatorType: isIndividual ? "individual" : "corporationOrFirm",
84453
- // Spec: a corporation or firm is represented by its signatory (names required for both types).
84454
- firstName: (isIndividual ? incorporator.firstName : incorporator.signatory_first_name) ?? "",
84453
+ // Names are only accepted for an individual; a corporation or firm is identified by
84454
+ // `corporationOrFirmName` (the deployed API rejects first/last name otherwise, although its
84455
+ // published spec lists them as required).
84456
+ firstName: isIndividual ? incorporator.firstName ?? "" : void 0,
84455
84457
  middleName: isIndividual ? incorporator.middleName || void 0 : void 0,
84456
- lastName: (isIndividual ? incorporator.lastName : incorporator.signatory_last_name) ?? "",
84458
+ lastName: isIndividual ? incorporator.lastName ?? "" : void 0,
84457
84459
  mailingAddress: mapAddress(incorporator),
84458
84460
  corporationOrFirmName: isIndividual ? void 0 : incorporator.incorporator_name
84459
84461
  };
@@ -84929,17 +84931,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84929
84931
  });
84930
84932
 
84931
84933
  // src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts
84932
- function notInFuture() {
84933
- return (control) => {
84934
- if (!control.value) {
84935
- return null;
84936
- }
84937
- const value = new Date(control.value);
84938
- const today = /* @__PURE__ */ new Date();
84939
- today.setHours(23, 59, 59, 999);
84940
- return value > today ? { futureDate: true } : null;
84941
- };
84942
- }
84943
84934
  var Controls, BritishColumbiaChangeOfDirectorsFormHelper;
84944
84935
  var init_british_columbia_change_of_directors_form_helper = __esm({
84945
84936
  "src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts"() {
@@ -84961,13 +84952,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84961
84952
  const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
84962
84953
  const companyEmail = registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? "";
84963
84954
  const registeredMailing = format(pick(registeredOffice?.addresses, "Mailing"));
84955
+ const effectiveDate = task._ext._effective_date ?? "";
84964
84956
  const today = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
84965
84957
  const config2 = {};
84966
84958
  config2[BCChangeOfDirectorsFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile?.client_matter_number, delta?.referenceNumbers?.referenceNumber);
84967
84959
  config2[BCChangeOfDirectorsFormGroups.CorporationDetails] = new FormGroup({
84968
84960
  [Controls.CorporationName]: this.readOnly(task.entity._profile.name),
84969
84961
  [Controls.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
84970
- [Controls.CompanyEmail]: this.readOnly(companyEmail)
84962
+ [Controls.CompanyEmail]: new FormControl(companyEmail, [Validators.required, Validators.email])
84971
84963
  });
84972
84964
  const isDirector = (a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director";
84973
84965
  const incoming = task.incomingAffiliations ?? [];
@@ -84976,10 +84968,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84976
84968
  const hasAddOrCease = ceasedIds.size > 0 || incoming.filter(isDirector).length > 0;
84977
84969
  config2[BCChangeOfDirectorsFormGroups.FilingDetails] = new FormGroup({
84978
84970
  [Controls.DirectorsAddedOrDeleted]: new FormControl(delta?.filingDetails?.directorsAddedOrDeleted ?? hasAddOrCease),
84979
- [Controls.ChangeDate]: new FormControl(delta?.filingDetails?.changeDate ?? "", [
84980
- requiredIfValue(Controls.DirectorsAddedOrDeleted, true),
84981
- notInFuture()
84982
- ]),
84971
+ [Controls.ChangeDate]: this.readOnly(effectiveDate),
84983
84972
  [Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
84984
84973
  });
84985
84974
  const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
@@ -85371,7 +85360,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85371
85360
  BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS = [
85372
85361
  readOnlyRow("Corporation Name", Controls3.CorporationName),
85373
85362
  readOnlyRow("Incorporation Number", Controls3.IncorporationNumber),
85374
- readOnlyRow("Company Email", Controls3.CompanyEmail)
85363
+ {
85364
+ type: FormType.Select,
85365
+ label: "Company Email",
85366
+ formControlName: Controls3.CompanyEmail,
85367
+ required: true,
85368
+ options: [],
85369
+ class: "span-12"
85370
+ }
85375
85371
  ];
85376
85372
  BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS = [
85377
85373
  {
@@ -85386,20 +85382,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85386
85382
  formControlName: Controls3.DirectorsAddedOrDeleted,
85387
85383
  class: "span-12",
85388
85384
  onChange: (form) => {
85389
- if (!directorsAddedOrDeleted(form)) {
85390
- form.get(Controls3.ChangeDate)?.setValue("", { emitEvent: false });
85391
- }
85392
85385
  form.get(Controls3.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
85393
85386
  }
85394
85387
  },
85395
- {
85396
- type: FormType.Date,
85397
- label: "Date Directors were added or deleted",
85398
- formControlName: Controls3.ChangeDate,
85399
- required: true,
85400
- isVisible: directorsAddedOrDeleted,
85401
- class: "span-8"
85402
- },
85388
+ __spreadProps(__spreadValues({}, readOnlyRow("Date Directors were added or deleted", Controls3.ChangeDate, "span-8")), {
85389
+ isVisible: directorsAddedOrDeleted
85390
+ }),
85403
85391
  __spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls3.FilingFee, "span-4")), {
85404
85392
  isVisible: directorsAddedOrDeleted
85405
85393
  }),
@@ -85465,7 +85453,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85465
85453
  // src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts
85466
85454
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template(rf, ctx) {
85467
85455
  if (rf & 1) {
85468
- \u0275\u0275element(0, "alert", 2);
85456
+ \u0275\u0275element(0, "alert", 1);
85469
85457
  }
85470
85458
  if (rf & 2) {
85471
85459
  const ctx_r0 = \u0275\u0275nextContext();
@@ -85474,7 +85462,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85474
85462
  }
85475
85463
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template(rf, ctx) {
85476
85464
  if (rf & 1) {
85477
- \u0275\u0275element(0, "alert", 3);
85465
+ \u0275\u0275element(0, "alert", 2);
85478
85466
  }
85479
85467
  if (rf & 2) {
85480
85468
  const ctx_r0 = \u0275\u0275nextContext();
@@ -85484,7 +85472,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85484
85472
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template(rf, ctx) {
85485
85473
  if (rf & 1) {
85486
85474
  const _r2 = \u0275\u0275getCurrentView();
85487
- \u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 10);
85475
+ \u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 9);
85488
85476
  \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
85489
85477
  \u0275\u0275restoreView(_r2);
85490
85478
  const ctx_r0 = \u0275\u0275nextContext();
@@ -85502,7 +85490,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85502
85490
  }
85503
85491
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template(rf, ctx) {
85504
85492
  if (rf & 1) {
85505
- \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p")(3, "strong");
85493
+ const _r4 = \u0275\u0275getCurrentView();
85494
+ \u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 10)(2, "p")(3, "strong");
85506
85495
  \u0275\u0275text(4);
85507
85496
  \u0275\u0275pipe(5, "translate");
85508
85497
  \u0275\u0275elementEnd();
@@ -85514,127 +85503,94 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85514
85503
  \u0275\u0275elementEnd();
85515
85504
  \u0275\u0275text(11);
85516
85505
  \u0275\u0275elementEnd();
85517
- \u0275\u0275elementStart(12, "p")(13, "strong");
85518
- \u0275\u0275text(14);
85519
- \u0275\u0275pipe(15, "translate");
85520
- \u0275\u0275elementEnd();
85521
- \u0275\u0275text(16);
85522
- \u0275\u0275elementEnd()()();
85506
+ \u0275\u0275elementStart(12, "div", 11)(13, "filing-form-group", 12);
85507
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template_filing_form_group_visiblyValidChange_13_listener($event) {
85508
+ \u0275\u0275restoreView(_r4);
85509
+ const ctx_r0 = \u0275\u0275nextContext();
85510
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corporationDetails", $event));
85511
+ });
85512
+ \u0275\u0275elementEnd()()()();
85523
85513
  }
85524
85514
  if (rf & 2) {
85525
85515
  let tmp_9_0;
85526
85516
  let tmp_11_0;
85527
- let tmp_13_0;
85528
85517
  const ctx_r0 = \u0275\u0275nextContext();
85529
- const corporationDetails_r4 = \u0275\u0275readContextLet(6);
85518
+ const corporationDetails_r5 = \u0275\u0275readContextLet(6);
85530
85519
  \u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.CorporationDetails);
85531
85520
  \u0275\u0275advance(4);
85532
- \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 8, "Corporation Name"), ":");
85521
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Corporation Name"), ":");
85533
85522
  \u0275\u0275advance(2);
85534
- \u0275\u0275textInterpolate1(" ", (tmp_9_0 = corporationDetails_r4.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_9_0.value, " ");
85523
+ \u0275\u0275textInterpolate1(" ", (tmp_9_0 = corporationDetails_r5.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_9_0.value, " ");
85535
85524
  \u0275\u0275advance(3);
85536
- \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 10, "Incorporation Number"), ":");
85525
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 11, "Incorporation Number"), ":");
85537
85526
  \u0275\u0275advance(2);
85538
- \u0275\u0275textInterpolate1(" ", (tmp_11_0 = corporationDetails_r4.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_11_0.value, " ");
85539
- \u0275\u0275advance(3);
85540
- \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(15, 12, "Company Email"), ":");
85527
+ \u0275\u0275textInterpolate1(" ", (tmp_11_0 = corporationDetails_r5.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_11_0.value, " ");
85541
85528
  \u0275\u0275advance(2);
85542
- \u0275\u0275textInterpolate1(" ", (tmp_13_0 = corporationDetails_r4.get(ctx_r0.controls.CompanyEmail)) == null ? null : tmp_13_0.value, " ");
85529
+ \u0275\u0275property("form", corporationDetails_r5)("config", ctx_r0.companyEmailFields())("isSubmitted", ctx_r0.isSubmitted());
85543
85530
  }
85544
85531
  }
85545
85532
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template(rf, ctx) {
85546
85533
  if (rf & 1) {
85547
- const _r7 = \u0275\u0275getCurrentView();
85548
- \u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "label");
85534
+ \u0275\u0275elementStart(0, "div", 16)(1, "div", 17)(2, "p", 18);
85549
85535
  \u0275\u0275text(3);
85550
85536
  \u0275\u0275pipe(4, "translate");
85551
- \u0275\u0275elementStart(5, "span");
85552
- \u0275\u0275text(6, "*");
85553
- \u0275\u0275elementEnd()();
85554
- \u0275\u0275elementStart(7, "mat-form-field", 17)(8, "input", 18);
85555
- \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_click_8_listener() {
85556
- \u0275\u0275restoreView(_r7);
85557
- const changeDatePicker_r8 = \u0275\u0275reference(12);
85558
- return \u0275\u0275resetView(changeDatePicker_r8.open());
85559
- })("dateChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_dateChange_8_listener() {
85560
- \u0275\u0275restoreView(_r7);
85561
- const ctx_r0 = \u0275\u0275nextContext(2);
85562
- const filingDetails_r6 = \u0275\u0275readContextLet(8);
85563
- return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
85564
- });
85565
- \u0275\u0275elementEnd();
85566
- \u0275\u0275elementStart(9, "button", 19);
85567
- \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_button_click_9_listener() {
85568
- \u0275\u0275restoreView(_r7);
85569
- const changeDatePicker_r8 = \u0275\u0275reference(12);
85570
- return \u0275\u0275resetView(changeDatePicker_r8.open());
85571
- });
85572
- \u0275\u0275element(10, "span", 20);
85573
- \u0275\u0275elementEnd();
85574
- \u0275\u0275element(11, "mat-datepicker", null, 0);
85575
- \u0275\u0275elementEnd();
85576
- \u0275\u0275elementStart(13, "p", 21);
85577
- \u0275\u0275text(14);
85578
- \u0275\u0275pipe(15, "translate");
85579
- \u0275\u0275elementEnd()();
85580
- \u0275\u0275elementStart(16, "p", 22)(17, "strong");
85581
- \u0275\u0275text(18);
85582
- \u0275\u0275pipe(19, "translate");
85537
+ \u0275\u0275elementStart(5, "strong");
85538
+ \u0275\u0275text(6);
85539
+ \u0275\u0275elementEnd()()();
85540
+ \u0275\u0275elementStart(7, "p", 19)(8, "strong");
85541
+ \u0275\u0275text(9);
85542
+ \u0275\u0275pipe(10, "translate");
85583
85543
  \u0275\u0275elementEnd();
85584
- \u0275\u0275text(20);
85544
+ \u0275\u0275text(11);
85585
85545
  \u0275\u0275elementEnd()();
85586
85546
  }
85587
85547
  if (rf & 2) {
85588
- let tmp_13_0;
85589
- const changeDatePicker_r8 = \u0275\u0275reference(12);
85548
+ let tmp_8_0;
85549
+ let tmp_10_0;
85590
85550
  const ctx_r0 = \u0275\u0275nextContext(2);
85591
- const filingDetails_r6 = \u0275\u0275readContextLet(8);
85551
+ const filingDetails_r7 = \u0275\u0275readContextLet(8);
85592
85552
  \u0275\u0275advance(3);
85593
- \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 6, "Date Directors were added or deleted"), "");
85594
- \u0275\u0275advance(5);
85595
- \u0275\u0275property("matDatepicker", changeDatePicker_r8)("formControlName", ctx_r0.controls.ChangeDate);
85596
- \u0275\u0275advance(6);
85597
- \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(15, 8, "The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past."), " ");
85598
- \u0275\u0275advance(4);
85599
- \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(19, 10, "Filing Fee"), ":");
85553
+ \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 4, "The date on which the individual(s) became or ceased to be a director:"), " ");
85554
+ \u0275\u0275advance(3);
85555
+ \u0275\u0275textInterpolate(ctx_r0.getEffectiveDateDisplay((tmp_8_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_8_0.value));
85556
+ \u0275\u0275advance(3);
85557
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 6, "Filing Fee"), ":");
85600
85558
  \u0275\u0275advance(2);
85601
- \u0275\u0275textInterpolate1(" ", (tmp_13_0 = filingDetails_r6.get(ctx_r0.controls.FilingFee)) == null ? null : tmp_13_0.value, " ");
85559
+ \u0275\u0275textInterpolate1(" ", (tmp_10_0 = filingDetails_r7.get(ctx_r0.controls.FilingFee)) == null ? null : tmp_10_0.value, " ");
85602
85560
  }
85603
85561
  }
85604
85562
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
85605
85563
  if (rf & 1) {
85606
- const _r5 = \u0275\u0275getCurrentView();
85607
- \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 12)(2, "div", 13)(3, "strong");
85564
+ const _r6 = \u0275\u0275getCurrentView();
85565
+ \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "div", 14)(3, "strong");
85608
85566
  \u0275\u0275text(4);
85609
85567
  \u0275\u0275pipe(5, "translate");
85610
85568
  \u0275\u0275elementEnd();
85611
85569
  \u0275\u0275text(6);
85612
85570
  \u0275\u0275pipe(7, "translate");
85613
85571
  \u0275\u0275elementEnd();
85614
- \u0275\u0275elementStart(8, "mat-checkbox", 14);
85572
+ \u0275\u0275elementStart(8, "mat-checkbox", 15);
85615
85573
  \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
85616
85574
  let tmp_7_0;
85617
- let tmp_8_0;
85618
- \u0275\u0275restoreView(_r5);
85575
+ \u0275\u0275restoreView(_r6);
85619
85576
  const ctx_r0 = \u0275\u0275nextContext();
85620
- const filingDetails_r6 = \u0275\u0275readContextLet(8);
85621
- (tmp_7_0 = filingDetails_r6.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.reset(((tmp_7_0 = filingDetails_r6.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_7_0.value) ? (tmp_7_0 = filingDetails_r6.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.value : null, { emitEvent: false });
85622
- (tmp_8_0 = filingDetails_r6.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_8_0.updateValueAndValidity({ emitEvent: false });
85623
- return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
85577
+ const filingDetails_r7 = \u0275\u0275readContextLet(8);
85578
+ (tmp_7_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.updateValueAndValidity({ emitEvent: false });
85579
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r7.valid));
85624
85580
  });
85625
85581
  \u0275\u0275text(9);
85626
85582
  \u0275\u0275pipe(10, "translate");
85627
85583
  \u0275\u0275elementEnd();
85628
- \u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div", 15);
85584
+ \u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 12, 8, "div", 16);
85629
85585
  \u0275\u0275elementEnd()();
85630
85586
  }
85631
85587
  if (rf & 2) {
85632
85588
  let tmp_14_0;
85633
85589
  const ctx_r0 = \u0275\u0275nextContext();
85634
- const filingDetails_r6 = \u0275\u0275readContextLet(8);
85590
+ const filingDetails_r7 = \u0275\u0275readContextLet(8);
85635
85591
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["filingDetails"])("title", ctx_r0.groups.FilingDetails);
85636
85592
  \u0275\u0275advance();
85637
- \u0275\u0275property("formGroup", filingDetails_r6);
85593
+ \u0275\u0275property("formGroup", filingDetails_r7);
85638
85594
  \u0275\u0275advance(3);
85639
85595
  \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Note"), ":");
85640
85596
  \u0275\u0275advance(2);
@@ -85644,12 +85600,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85644
85600
  \u0275\u0275advance();
85645
85601
  \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(10, 13, "Directors will be added and/or deleted as part of this filing"), " ");
85646
85602
  \u0275\u0275advance(2);
85647
- \u0275\u0275conditional(((tmp_14_0 = filingDetails_r6.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_14_0.value) ? 11 : -1);
85603
+ \u0275\u0275conditional(((tmp_14_0 = filingDetails_r7.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_14_0.value) ? 11 : -1);
85648
85604
  }
85649
85605
  }
85650
85606
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
85651
85607
  if (rf & 1) {
85652
- \u0275\u0275elementStart(0, "span", 27);
85608
+ \u0275\u0275elementStart(0, "span", 24);
85653
85609
  \u0275\u0275text(1);
85654
85610
  \u0275\u0275pipe(2, "translate");
85655
85611
  \u0275\u0275elementEnd();
@@ -85661,7 +85617,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85661
85617
  }
85662
85618
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
85663
85619
  if (rf & 1) {
85664
- \u0275\u0275elementStart(0, "span", 28);
85620
+ \u0275\u0275elementStart(0, "span", 25);
85665
85621
  \u0275\u0275text(1);
85666
85622
  \u0275\u0275pipe(2, "translate");
85667
85623
  \u0275\u0275elementEnd();
@@ -85673,15 +85629,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85673
85629
  }
85674
85630
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
85675
85631
  if (rf & 1) {
85676
- \u0275\u0275elementStart(0, "div", 25)(1, "div", 26)(2, "strong");
85632
+ \u0275\u0275elementStart(0, "div", 22)(1, "div", 23)(2, "strong");
85677
85633
  \u0275\u0275text(3);
85678
85634
  \u0275\u0275elementEnd();
85679
- \u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 27)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 28);
85635
+ \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);
85680
85636
  \u0275\u0275elementEnd();
85681
- \u0275\u0275elementStart(6, "div", 26);
85637
+ \u0275\u0275elementStart(6, "div", 23);
85682
85638
  \u0275\u0275text(7);
85683
85639
  \u0275\u0275elementEnd();
85684
- \u0275\u0275elementStart(8, "div", 26);
85640
+ \u0275\u0275elementStart(8, "div", 23);
85685
85641
  \u0275\u0275text(9);
85686
85642
  \u0275\u0275elementEnd()();
85687
85643
  }
@@ -85690,43 +85646,43 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85690
85646
  let tmp_22_0;
85691
85647
  let tmp_23_0;
85692
85648
  \u0275\u0275nextContext();
85693
- const directorForm_r9 = \u0275\u0275readContextLet(0);
85649
+ const directorForm_r8 = \u0275\u0275readContextLet(0);
85694
85650
  const ctx_r0 = \u0275\u0275nextContext(2);
85695
85651
  \u0275\u0275advance(3);
85696
- \u0275\u0275textInterpolate((tmp_19_0 = directorForm_r9.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_19_0.value);
85652
+ \u0275\u0275textInterpolate((tmp_19_0 = directorForm_r8.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_19_0.value);
85697
85653
  \u0275\u0275advance();
85698
- \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r9) ? 4 : -1);
85654
+ \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r8) ? 4 : -1);
85699
85655
  \u0275\u0275advance();
85700
- \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r9) ? 5 : -1);
85656
+ \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r8) ? 5 : -1);
85701
85657
  \u0275\u0275advance(2);
85702
- \u0275\u0275textInterpolate((tmp_22_0 = directorForm_r9.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_22_0.value);
85658
+ \u0275\u0275textInterpolate((tmp_22_0 = directorForm_r8.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_22_0.value);
85703
85659
  \u0275\u0275advance(2);
85704
- \u0275\u0275textInterpolate((tmp_23_0 = directorForm_r9.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
85660
+ \u0275\u0275textInterpolate((tmp_23_0 = directorForm_r8.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
85705
85661
  }
85706
85662
  }
85707
85663
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
85708
85664
  if (rf & 1) {
85709
85665
  \u0275\u0275declareLet(0);
85710
- \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 25);
85666
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 22);
85711
85667
  }
85712
85668
  if (rf & 2) {
85713
- const \u0275$index_115_r10 = ctx.$index;
85714
- const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_115_r10));
85669
+ const \u0275$index_98_r9 = ctx.$index;
85670
+ const directorForm_r10 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_98_r9));
85715
85671
  \u0275\u0275advance();
85716
- \u0275\u0275conditional(directorForm_r11 ? 1 : -1);
85672
+ \u0275\u0275conditional(directorForm_r10 ? 1 : -1);
85717
85673
  }
85718
85674
  }
85719
85675
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
85720
85676
  if (rf & 1) {
85721
- \u0275\u0275elementStart(0, "div", 8)(1, "div", 23)(2, "div", 24);
85677
+ \u0275\u0275elementStart(0, "div", 7)(1, "div", 20)(2, "div", 21);
85722
85678
  \u0275\u0275text(3);
85723
85679
  \u0275\u0275pipe(4, "translate");
85724
85680
  \u0275\u0275elementEnd();
85725
- \u0275\u0275elementStart(5, "div", 24);
85681
+ \u0275\u0275elementStart(5, "div", 21);
85726
85682
  \u0275\u0275text(6);
85727
85683
  \u0275\u0275pipe(7, "translate");
85728
85684
  \u0275\u0275elementEnd();
85729
- \u0275\u0275elementStart(8, "div", 24);
85685
+ \u0275\u0275elementStart(8, "div", 21);
85730
85686
  \u0275\u0275text(9);
85731
85687
  \u0275\u0275pipe(10, "translate");
85732
85688
  \u0275\u0275elementEnd()();
@@ -85735,7 +85691,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85735
85691
  }
85736
85692
  if (rf & 2) {
85737
85693
  \u0275\u0275nextContext();
85738
- const directorsArray_r12 = \u0275\u0275readContextLet(10);
85694
+ const directorsArray_r11 = \u0275\u0275readContextLet(10);
85739
85695
  \u0275\u0275advance(3);
85740
85696
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4, 3, "Name"));
85741
85697
  \u0275\u0275advance(3);
@@ -85743,12 +85699,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85743
85699
  \u0275\u0275advance(3);
85744
85700
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 7, "Delivery Address"));
85745
85701
  \u0275\u0275advance(2);
85746
- \u0275\u0275repeater(directorsArray_r12.controls);
85702
+ \u0275\u0275repeater(directorsArray_r11.controls);
85747
85703
  }
85748
85704
  }
85749
85705
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
85750
85706
  if (rf & 1) {
85751
- \u0275\u0275elementStart(0, "h2", 9);
85707
+ \u0275\u0275elementStart(0, "h2", 8);
85752
85708
  \u0275\u0275text(1);
85753
85709
  \u0275\u0275pipe(2, "translate");
85754
85710
  \u0275\u0275elementEnd();
@@ -85760,33 +85716,33 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85760
85716
  }
85761
85717
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
85762
85718
  if (rf & 1) {
85763
- const _r13 = \u0275\u0275getCurrentView();
85764
- \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 29)(2, "p");
85719
+ const _r12 = \u0275\u0275getCurrentView();
85720
+ \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 26)(2, "p");
85765
85721
  \u0275\u0275text(3);
85766
85722
  \u0275\u0275pipe(4, "translate");
85767
85723
  \u0275\u0275elementEnd();
85768
- \u0275\u0275elementStart(5, "mat-radio-group", 30);
85724
+ \u0275\u0275elementStart(5, "mat-radio-group", 27);
85769
85725
  \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template_mat_radio_group_change_5_listener() {
85770
- \u0275\u0275restoreView(_r13);
85726
+ \u0275\u0275restoreView(_r12);
85771
85727
  const ctx_r0 = \u0275\u0275nextContext();
85772
- const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
85773
- return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r14.valid));
85728
+ const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
85729
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r13.valid));
85774
85730
  });
85775
- \u0275\u0275elementStart(6, "mat-radio-button", 31);
85731
+ \u0275\u0275elementStart(6, "mat-radio-button", 28);
85776
85732
  \u0275\u0275text(7);
85777
85733
  \u0275\u0275pipe(8, "translate");
85778
85734
  \u0275\u0275elementEnd();
85779
- \u0275\u0275elementStart(9, "mat-radio-button", 31);
85735
+ \u0275\u0275elementStart(9, "mat-radio-button", 28);
85780
85736
  \u0275\u0275text(10);
85781
85737
  \u0275\u0275pipe(11, "translate");
85782
85738
  \u0275\u0275elementEnd()()()();
85783
85739
  }
85784
85740
  if (rf & 2) {
85785
85741
  const ctx_r0 = \u0275\u0275nextContext();
85786
- const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
85742
+ const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
85787
85743
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
85788
85744
  \u0275\u0275advance();
85789
- \u0275\u0275property("formGroup", annualReportReminder_r14);
85745
+ \u0275\u0275property("formGroup", annualReportReminder_r13);
85790
85746
  \u0275\u0275advance(2);
85791
85747
  \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."), " ");
85792
85748
  \u0275\u0275advance(2);
@@ -85819,6 +85775,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85819
85775
  init_british_columbia_form_enums();
85820
85776
  init_british_columbia_change_of_directors_form_constants();
85821
85777
  init_BritishColumbiaConstants();
85778
+ init_british_columbia_formation_form_helper();
85822
85779
  init_core();
85823
85780
  init_forms();
85824
85781
  BritishColumbiaChangeOfDirectorsFormComponent = class _BritishColumbiaChangeOfDirectorsFormComponent {
@@ -85834,7 +85791,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85834
85791
  controls = BCChangeOfDirectorsFormControls;
85835
85792
  annualReportReminderOption = BCAnnualReportReminder;
85836
85793
  referenceNumbersFields = BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS;
85837
- corporationDetailsFields = BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS;
85794
+ corporationDetailsFields = computed(() => {
85795
+ const corporationDetails = this.form().get(this.groups.CorporationDetails);
85796
+ const currentEmail = corporationDetails?.get(this.controls.CompanyEmail)?.value;
85797
+ const emailOptions = BritishColumbiaFormationFormHelper.buildCompanyEmailOptions(this.task(), currentEmail);
85798
+ return BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS.map((field) => field.formControlName === this.controls.CompanyEmail ? __spreadProps(__spreadValues({}, field), { options: emailOptions }) : field);
85799
+ });
85800
+ companyEmailFields = computed(() => this.corporationDetailsFields().filter((field) => field.formControlName === this.controls.CompanyEmail));
85838
85801
  filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
85839
85802
  directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
85840
85803
  annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
@@ -85847,6 +85810,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85847
85810
  const annualReportReminder = this.getFormGroup(this.groups.AnnualReportReminder);
85848
85811
  return Object.values(this.sectionValidity).every((v) => v) && !filingDetails?.invalid && !dateInvalid && !annualReportReminder?.invalid;
85849
85812
  }
85813
+ getEffectiveDateDisplay(value) {
85814
+ const date = String(value ?? "").split("T")[0];
85815
+ const [year, month, day] = date.split("-");
85816
+ return year && month && day ? `${year}-${month}-${day}` : "\u2014";
85817
+ }
85850
85818
  onSectionValidChange(section, valid) {
85851
85819
  this.sectionValidity = __spreadProps(__spreadValues({}, this.sectionValidity), { [section]: valid });
85852
85820
  this.visiblyValidChange.emit(this.isVisiblyValid());
@@ -85872,23 +85840,23 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85872
85840
  static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
85873
85841
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
85874
85842
  };
85875
- 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: [["changeDatePicker", ""], [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, "filing-details", 3, "formGroup"], [1, "note-box"], [1, "directors-change-checkbox", 3, "change", "formControlName"], [1, "filing-details-grid"], [1, "date-field"], ["appearance", "outline"], ["matInput", "", "placeholder", "dd/mm/yyyy", "readonly", "", 3, "click", "dateChange", "matDatepicker", "formControlName"], ["type", "button", "aria-label", "Open date picker", 1, "calendar-trigger", 3, "click"], ["aria-hidden", "true", 1, "calendar-icon"], [1, "hint"], [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) {
85843
+ 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) {
85876
85844
  if (rf & 1) {
85877
- \u0275\u0275elementStart(0, "div", 1);
85878
- \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 2)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 3);
85879
- \u0275\u0275elementStart(3, "div", 4);
85845
+ \u0275\u0275elementStart(0, "div", 0);
85846
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
85847
+ \u0275\u0275elementStart(3, "div", 3);
85880
85848
  \u0275\u0275declareLet(4);
85881
- \u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 5);
85849
+ \u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 4);
85882
85850
  \u0275\u0275declareLet(6);
85883
- \u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 17, 14, "expandable-card", 6);
85851
+ \u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 14, 13, "expandable-card", 5);
85884
85852
  \u0275\u0275declareLet(8);
85885
- \u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 7);
85853
+ \u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 6);
85886
85854
  \u0275\u0275declareLet(10);
85887
- \u0275\u0275elementStart(11, "expandable-card", 6);
85888
- \u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 8)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 9);
85855
+ \u0275\u0275elementStart(11, "expandable-card", 5);
85856
+ \u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 7)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 8);
85889
85857
  \u0275\u0275elementEnd();
85890
85858
  \u0275\u0275declareLet(14);
85891
- \u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 7);
85859
+ \u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 6);
85892
85860
  \u0275\u0275elementEnd()();
85893
85861
  }
85894
85862
  if (rf & 2) {
@@ -85897,47 +85865,42 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85897
85865
  \u0275\u0275advance();
85898
85866
  \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
85899
85867
  \u0275\u0275advance(2);
85900
- const referenceNumbers_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85868
+ const referenceNumbers_r14 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85901
85869
  \u0275\u0275advance();
85902
- \u0275\u0275conditional(referenceNumbers_r15 ? 5 : -1);
85870
+ \u0275\u0275conditional(referenceNumbers_r14 ? 5 : -1);
85903
85871
  \u0275\u0275advance();
85904
- const corporationDetails_r16 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85872
+ const corporationDetails_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85905
85873
  \u0275\u0275advance();
85906
- \u0275\u0275conditional(corporationDetails_r16 ? 7 : -1);
85874
+ \u0275\u0275conditional(corporationDetails_r15 ? 7 : -1);
85907
85875
  \u0275\u0275advance();
85908
- const filingDetails_r17 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.FilingDetails));
85876
+ const filingDetails_r16 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.FilingDetails));
85909
85877
  \u0275\u0275advance();
85910
- \u0275\u0275conditional(filingDetails_r17 ? 9 : -1);
85878
+ \u0275\u0275conditional(filingDetails_r16 ? 9 : -1);
85911
85879
  \u0275\u0275advance();
85912
- const directorsArray_r18 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85880
+ const directorsArray_r17 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85913
85881
  \u0275\u0275advance();
85914
85882
  \u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
85915
85883
  \u0275\u0275advance();
85916
- \u0275\u0275conditional(directorsArray_r18 && directorsArray_r18.length ? 12 : 13);
85884
+ \u0275\u0275conditional(directorsArray_r17 && directorsArray_r17.length ? 12 : 13);
85917
85885
  \u0275\u0275advance(2);
85918
- const annualReportReminder_r19 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85886
+ const annualReportReminder_r18 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85919
85887
  \u0275\u0275advance();
85920
- \u0275\u0275conditional(annualReportReminder_r19 ? 15 : -1);
85888
+ \u0275\u0275conditional(annualReportReminder_r18 ? 15 : -1);
85921
85889
  }
85922
85890
  }, dependencies: [
85923
85891
  FilingFormGroupComponent,
85924
85892
  AlertComponent,
85925
85893
  ExpandableCardComponent,
85926
85894
  MatCheckbox,
85927
- MatDatepicker,
85928
- MatDatepickerInput,
85929
- MatFormField,
85930
- MatInput,
85931
85895
  MatRadioButton,
85932
85896
  MatRadioGroup,
85933
85897
  ReactiveFormsModule,
85934
- DefaultValueAccessor,
85935
85898
  NgControlStatus,
85936
85899
  NgControlStatusGroup,
85937
85900
  FormGroupDirective,
85938
85901
  FormControlName,
85939
85902
  TranslatePipe
85940
- ], styles: ['\n\n[_nghost-%COMP%] {\n display: flex;\n flex: 1;\n min-height: 0;\n color: #2f343b;\n}\n[_nghost-%COMP%] .change-of-directors-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n min-height: 0;\n width: 100%;\n}\n[_nghost-%COMP%] .change-of-directors-form-content[_ngcontent-%COMP%] {\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[_nghost-%COMP%] .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[_nghost-%COMP%] .expandable-card-header-title {\n color: #2f343b !important;\n font-weight: 700 !important;\n line-height: 1.2;\n margin: 0;\n}\n[_nghost-%COMP%] .expandable-card-header mat-icon {\n color: #66717f !important;\n}\n[_nghost-%COMP%] .expandable-card-content {\n padding-top: 20px !important;\n}\n[_nghost-%COMP%] .filling-form-fields {\n column-gap: 42px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-label, \n[_nghost-%COMP%] .mat-mdc-radio-button .mdc-label, \n[_nghost-%COMP%] .mat-mdc-checkbox .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n[_nghost-%COMP%] .mat-mdc-radio-button, \n[_nghost-%COMP%] .mat-mdc-checkbox {\n --mdc-radio-state-layer-size: 40px;\n --mdc-checkbox-state-layer-size: 40px;\n}\n[_nghost-%COMP%] .mat-mdc-form-field {\n width: 100%;\n}\n[_nghost-%COMP%] .mat-mdc-text-field-wrapper {\n min-height: 46px;\n}\n[_nghost-%COMP%] .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[_nghost-%COMP%] .mdc-notched-outline__leading {\n border-bottom-left-radius: 6px !important;\n border-top-left-radius: 6px !important;\n}\n[_nghost-%COMP%] .mdc-notched-outline__trailing {\n border-bottom-right-radius: 6px !important;\n border-top-right-radius: 6px !important;\n}\n[_nghost-%COMP%] .readonly-summary[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 18px;\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n[_nghost-%COMP%] .readonly-summary[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n}\n[_nghost-%COMP%] .readonly-summary[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: #2f343b;\n font-weight: 700;\n}\n[_nghost-%COMP%] .filing-details[_ngcontent-%COMP%], \n[_nghost-%COMP%] .annual-reminder[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n[_nghost-%COMP%] .note-box[_ngcontent-%COMP%] {\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[_nghost-%COMP%] .note-box[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n font-weight: 700;\n}\n[_nghost-%COMP%] .directors-change-checkbox[_ngcontent-%COMP%] {\n align-self: flex-start;\n}\n[_nghost-%COMP%] .filing-details-grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: minmax(280px, 1fr) minmax(220px, 1fr);\n column-gap: 56px;\n align-items: start;\n max-width: 980px;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%], \n[_nghost-%COMP%] .email-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%], \n[_nghost-%COMP%] .email-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] span[_ngcontent-%COMP%], \n[_nghost-%COMP%] .email-field[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n color: #e22222;\n}\n[_nghost-%COMP%] .hint[_ngcontent-%COMP%], \n[_nghost-%COMP%] .annual-reminder[_ngcontent-%COMP%] p[_ngcontent-%COMP%], \n[_nghost-%COMP%] .mailing-copy[_ngcontent-%COMP%] {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n[_nghost-%COMP%] .filing-fee[_ngcontent-%COMP%] {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n margin: 46px 0 0;\n}\n[_nghost-%COMP%] .filing-fee[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: #2f343b;\n font-weight: 700;\n}\n[_nghost-%COMP%] .directors-table[_ngcontent-%COMP%] {\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[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%], \n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] {\n display: contents;\n}\n[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], \n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n border-bottom: 1px solid #e1e6ee;\n padding: 16px 24px;\n}\n[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child), \n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child) {\n border-left: 1px solid #e1e6ee;\n}\n[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n color: #2f343b;\n font-weight: 700;\n padding-top: 0;\n}\n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: #2f343b;\n display: block;\n font-weight: 700;\n margin-bottom: 8px;\n}\n[_nghost-%COMP%] .status-pill[_ngcontent-%COMP%] {\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[_nghost-%COMP%] .status-pill.new[_ngcontent-%COMP%] {\n background: #eaf7ef;\n border: 1px solid #b8e3c7;\n color: #15803d;\n}\n[_nghost-%COMP%] .status-pill.ceased[_ngcontent-%COMP%] {\n background: #fff1f2;\n border: 1px solid #fecdd3;\n color: #be123c;\n}\n[_nghost-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n display: flex;\n gap: 48px;\n}\n[_nghost-%COMP%] .annual-reminder[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n align-items: flex-start;\n flex-direction: column;\n gap: 14px;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] {\n position: relative;\n width: 100%;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .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[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .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[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .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[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .calendar-trigger[_ngcontent-%COMP%] {\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[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .calendar-trigger[_ngcontent-%COMP%]:hover {\n background: #f3f4f6;\n border-radius: 50%;\n}\n@media (max-width: 900px) {\n [_nghost-%COMP%] .filing-details-grid[_ngcontent-%COMP%], \n [_nghost-%COMP%] .directors-table[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n [_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] {\n display: none;\n }\n [_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr;\n border-bottom: 1px solid #e1e6ee;\n }\n [_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n border: 0;\n padding: 14px 0;\n }\n [_nghost-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n flex-direction: column;\n gap: 14px;\n }\n}\n/*# sourceMappingURL=change-of-directors-form.component.css.map */'], changeDetection: 0 });
85903
+ ], styles: ['\n\n[_nghost-%COMP%] {\n display: flex;\n flex: 1;\n min-height: 0;\n color: #2f343b;\n}\n[_nghost-%COMP%] .change-of-directors-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n min-height: 0;\n width: 100%;\n}\n[_nghost-%COMP%] .change-of-directors-form-content[_ngcontent-%COMP%] {\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[_nghost-%COMP%] .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[_nghost-%COMP%] .expandable-card-header-title {\n color: #2f343b !important;\n font-weight: 700 !important;\n line-height: 1.2;\n margin: 0;\n}\n[_nghost-%COMP%] .expandable-card-header mat-icon {\n color: #66717f !important;\n}\n[_nghost-%COMP%] .expandable-card-content {\n padding-top: 20px !important;\n}\n[_nghost-%COMP%] .filling-form-fields {\n column-gap: 42px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-label, \n[_nghost-%COMP%] .mat-mdc-radio-button .mdc-label, \n[_nghost-%COMP%] .mat-mdc-checkbox .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n[_nghost-%COMP%] .mat-mdc-radio-button, \n[_nghost-%COMP%] .mat-mdc-checkbox {\n --mdc-radio-state-layer-size: 40px;\n --mdc-checkbox-state-layer-size: 40px;\n}\n[_nghost-%COMP%] .mat-mdc-form-field {\n width: 100%;\n}\n[_nghost-%COMP%] .mat-mdc-text-field-wrapper {\n min-height: 46px;\n}\n[_nghost-%COMP%] .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[_nghost-%COMP%] .mdc-notched-outline__leading {\n border-bottom-left-radius: 6px !important;\n border-top-left-radius: 6px !important;\n}\n[_nghost-%COMP%] .mdc-notched-outline__trailing {\n border-bottom-right-radius: 6px !important;\n border-top-right-radius: 6px !important;\n}\n[_nghost-%COMP%] .readonly-summary[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 18px;\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n[_nghost-%COMP%] .readonly-summary[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n}\n[_nghost-%COMP%] .readonly-summary[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: #2f343b;\n font-weight: 700;\n}\n[_nghost-%COMP%] .filing-details[_ngcontent-%COMP%], \n[_nghost-%COMP%] .annual-reminder[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n[_nghost-%COMP%] .note-box[_ngcontent-%COMP%] {\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[_nghost-%COMP%] .note-box[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n font-weight: 700;\n}\n[_nghost-%COMP%] .directors-change-checkbox[_ngcontent-%COMP%] {\n align-self: flex-start;\n}\n[_nghost-%COMP%] .filing-details-grid[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n max-width: 100%;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%], \n[_nghost-%COMP%] .email-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%], \n[_nghost-%COMP%] .email-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] span[_ngcontent-%COMP%], \n[_nghost-%COMP%] .email-field[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n color: #e22222;\n}\n[_nghost-%COMP%] .hint[_ngcontent-%COMP%], \n[_nghost-%COMP%] .annual-reminder[_ngcontent-%COMP%] p[_ngcontent-%COMP%], \n[_nghost-%COMP%] .mailing-copy[_ngcontent-%COMP%] {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n[_nghost-%COMP%] .filing-fee[_ngcontent-%COMP%] {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n margin: 0;\n}\n[_nghost-%COMP%] .filing-fee[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: #2f343b;\n font-weight: 700;\n}\n[_nghost-%COMP%] .company-email-field[_ngcontent-%COMP%] {\n width: 50%;\n}\n[_nghost-%COMP%] .effective-date-description[_ngcontent-%COMP%] {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.45;\n margin: 0;\n}\n[_nghost-%COMP%] .effective-date-description[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: #2f343b;\n font-weight: 700;\n}\n[_nghost-%COMP%] .directors-table[_ngcontent-%COMP%] {\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[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%], \n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] {\n display: contents;\n}\n[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], \n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n border-bottom: 1px solid #e1e6ee;\n padding: 16px 24px;\n}\n[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child), \n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child) {\n border-left: 1px solid #e1e6ee;\n}\n[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n color: #2f343b;\n font-weight: 700;\n padding-top: 0;\n}\n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: #2f343b;\n display: block;\n font-weight: 700;\n margin-bottom: 8px;\n}\n[_nghost-%COMP%] .status-pill[_ngcontent-%COMP%] {\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[_nghost-%COMP%] .status-pill.new[_ngcontent-%COMP%] {\n background: #eaf7ef;\n border: 1px solid #b8e3c7;\n color: #15803d;\n}\n[_nghost-%COMP%] .status-pill.ceased[_ngcontent-%COMP%] {\n background: #fff1f2;\n border: 1px solid #fecdd3;\n color: #be123c;\n}\n[_nghost-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n display: flex;\n gap: 48px;\n}\n[_nghost-%COMP%] .annual-reminder[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n align-items: flex-start;\n flex-direction: column;\n gap: 14px;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] {\n position: relative;\n width: 100%;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .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[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .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[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .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[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .calendar-trigger[_ngcontent-%COMP%] {\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[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .calendar-trigger[_ngcontent-%COMP%]:hover {\n background: #f3f4f6;\n border-radius: 50%;\n}\n@media (max-width: 900px) {\n [_nghost-%COMP%] .filing-details-grid[_ngcontent-%COMP%], \n [_nghost-%COMP%] .directors-table[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n [_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] {\n display: none;\n }\n [_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr;\n border-bottom: 1px solid #e1e6ee;\n }\n [_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n border: 0;\n padding: 14px 0;\n }\n [_nghost-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n flex-direction: column;\n gap: 14px;\n }\n}\n@media (max-width: 900px) and (max-width: 700px) {\n .company-email-field[_ngcontent-%COMP%] {\n width: 100%;\n }\n}\n/*# sourceMappingURL=change-of-directors-form.component.css.map */'], changeDetection: 0 });
85941
85904
  };
85942
85905
  (() => {
85943
85906
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfDirectorsFormComponent, [{
@@ -85998,10 +85961,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85998
85961
  <strong>{{ 'Incorporation Number' | translate }}:</strong>\r
85999
85962
  {{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
86000
85963
  </p>\r
86001
- <p>\r
86002
- <strong>{{ 'Company Email' | translate }}:</strong>\r
86003
- {{ corporationDetails.get(controls.CompanyEmail)?.value }}\r
86004
- </p>\r
85964
+ <div class="company-email-field">\r
85965
+ <filing-form-group\r
85966
+ [form]="corporationDetails"\r
85967
+ [config]="companyEmailFields()"\r
85968
+ [isSubmitted]="isSubmitted()"\r
85969
+ (visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"\r
85970
+ />\r
85971
+ </div>\r
86005
85972
  </div>\r
86006
85973
  </expandable-card>\r
86007
85974
  }\r
@@ -86027,12 +85994,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86027
85994
  class="directors-change-checkbox"\r
86028
85995
  [formControlName]="controls.DirectorsAddedOrDeleted"\r
86029
85996
  (change)="\r
86030
- filingDetails.get(controls.ChangeDate)?.reset(\r
86031
- filingDetails.get(controls.DirectorsAddedOrDeleted)?.value\r
86032
- ? filingDetails.get(controls.ChangeDate)?.value\r
86033
- : null,\r
86034
- { emitEvent: false }\r
86035
- );\r
86036
85997
  filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false });\r
86037
85998
  onSectionValidChange('filingDetails', filingDetails.valid)\r
86038
85999
  "\r
@@ -86043,34 +86004,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86043
86004
  @if (filingDetails.get(controls.DirectorsAddedOrDeleted)?.value) {\r
86044
86005
  <div class="filing-details-grid">\r
86045
86006
  <div class="date-field">\r
86046
- <label>\r
86047
- {{ 'Date Directors were added or deleted' | translate }}<span>*</span>\r
86048
- </label>\r
86049
- <mat-form-field appearance="outline">\r
86050
- <input\r
86051
- matInput\r
86052
- [matDatepicker]="changeDatePicker"\r
86053
- [formControlName]="controls.ChangeDate"\r
86054
- placeholder="dd/mm/yyyy"\r
86055
- readonly\r
86056
- (click)="changeDatePicker.open()"\r
86057
- (dateChange)="onSectionValidChange('filingDetails', filingDetails.valid)"\r
86058
- />\r
86059
- <button\r
86060
- type="button"\r
86061
- class="calendar-trigger"\r
86062
- aria-label="Open date picker"\r
86063
- (click)="changeDatePicker.open()"\r
86064
- >\r
86065
- <span class="calendar-icon" aria-hidden="true"></span>\r
86066
- </button>\r
86067
- <mat-datepicker #changeDatePicker></mat-datepicker>\r
86068
- </mat-form-field>\r
86069
- <p class="hint">\r
86007
+ <p class="effective-date-description">\r
86070
86008
  {{\r
86071
- "The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past."\r
86009
+ 'The date on which the individual(s) became or ceased to be a director:'\r
86072
86010
  | translate\r
86073
86011
  }}\r
86012
+ <strong>{{ getEffectiveDateDisplay(filingDetails.get(controls.ChangeDate)?.value) }}</strong>\r
86074
86013
  </p>\r
86075
86014
  </div>\r
86076
86015
  \r
@@ -86150,11 +86089,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86150
86089
  }\r
86151
86090
  </div>\r
86152
86091
  </div>\r
86153
- `, 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: grid;\n grid-template-columns: minmax(280px, 1fr) minmax(220px, 1fr);\n column-gap: 56px;\n align-items: start;\n max-width: 980px;\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: 46px 0 0;\n}\n:host .filing-fee 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/*# sourceMappingURL=change-of-directors-form.component.css.map */\n'] }]
86092
+ `, 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'] }]
86154
86093
  }], null, null);
86155
86094
  })();
86156
86095
  (() => {
86157
- (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: 59 });
86096
+ (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 });
86158
86097
  })();
86159
86098
  }
86160
86099
  });
@@ -87867,226 +87806,139 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87867
87806
  \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r5)("config", ctx_r0.corporationDetailsFields());
87868
87807
  }
87869
87808
  }
87870
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template(rf, ctx) {
87871
- if (rf & 1) {
87872
- const _r7 = \u0275\u0275getCurrentView();
87873
- \u0275\u0275elementStart(0, "filing-form-group", 7);
87874
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template_filing_form_group_visiblyValidChange_0_listener() {
87875
- \u0275\u0275restoreView(_r7);
87876
- const ctx_r0 = \u0275\u0275nextContext(2);
87877
- return \u0275\u0275resetView(ctx_r0.emitValidity());
87878
- });
87879
- \u0275\u0275elementEnd();
87880
- }
87881
- if (rf & 2) {
87882
- \u0275\u0275nextContext();
87883
- const registeredMailing_r8 = \u0275\u0275readContextLet(0);
87884
- const ctx_r0 = \u0275\u0275nextContext();
87885
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredMailing_r8)("config", ctx_r0.addressFields);
87886
- }
87887
- }
87888
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template(rf, ctx) {
87809
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_For_3_Conditional_7_Template(rf, ctx) {
87889
87810
  if (rf & 1) {
87890
- const _r9 = \u0275\u0275getCurrentView();
87891
- \u0275\u0275element(0, "filing-form-group", 9);
87892
- \u0275\u0275elementStart(1, "filing-form-group", 7);
87893
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template_filing_form_group_visiblyValidChange_1_listener() {
87894
- \u0275\u0275restoreView(_r9);
87895
- const ctx_r0 = \u0275\u0275nextContext(2);
87896
- return \u0275\u0275resetView(ctx_r0.emitValidity());
87897
- });
87811
+ \u0275\u0275elementStart(0, "div", 13);
87812
+ \u0275\u0275text(1);
87813
+ \u0275\u0275pipe(2, "translate");
87898
87814
  \u0275\u0275elementEnd();
87899
87815
  }
87900
87816
  if (rf & 2) {
87901
- \u0275\u0275nextContext();
87902
- const registeredDelivery_r10 = \u0275\u0275readContextLet(1);
87903
- const ctx_r0 = \u0275\u0275nextContext();
87904
- const registeredOffice_r11 = \u0275\u0275readContextLet(8);
87905
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliveryNoteFields);
87817
+ const row_r6 = \u0275\u0275nextContext().$implicit;
87906
87818
  \u0275\u0275advance();
87907
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredDelivery_r10)("config", ctx_r0.addressFields);
87819
+ \u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r6.previous, " ");
87908
87820
  }
87909
87821
  }
87910
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template(rf, ctx) {
87822
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_For_3_Template(rf, ctx) {
87911
87823
  if (rf & 1) {
87912
- const _r6 = \u0275\u0275getCurrentView();
87913
- \u0275\u0275declareLet(0)(1)(2);
87914
- \u0275\u0275elementStart(3, "expandable-card", 5)(4, "div", 8);
87915
- \u0275\u0275element(5, "filing-form-group", 9);
87916
- \u0275\u0275elementStart(6, "h4", 10);
87917
- \u0275\u0275text(7);
87918
- \u0275\u0275pipe(8, "translate");
87824
+ \u0275\u0275elementStart(0, "div", 9)(1, "div", 11)(2, "span", 12);
87825
+ \u0275\u0275text(3);
87826
+ \u0275\u0275pipe(4, "translate");
87919
87827
  \u0275\u0275elementEnd();
87920
- \u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template, 1, 3, "filing-form-group", 9);
87921
- \u0275\u0275elementStart(10, "h4", 10);
87922
- \u0275\u0275text(11);
87923
- \u0275\u0275pipe(12, "translate");
87828
+ \u0275\u0275text(5);
87829
+ \u0275\u0275pipe(6, "translate");
87924
87830
  \u0275\u0275elementEnd();
87925
- \u0275\u0275elementStart(13, "filing-form-group", 7);
87926
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template_filing_form_group_visiblyValidChange_13_listener() {
87927
- \u0275\u0275restoreView(_r6);
87928
- const ctx_r0 = \u0275\u0275nextContext();
87929
- return \u0275\u0275resetView(ctx_r0.emitValidity());
87930
- });
87831
+ \u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_For_3_Conditional_7_Template, 3, 4, "div", 13);
87931
87832
  \u0275\u0275elementEnd();
87932
- \u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template, 2, 6);
87933
- \u0275\u0275elementEnd()();
87934
87833
  }
87935
87834
  if (rf & 2) {
87936
- const ctx_r0 = \u0275\u0275nextContext();
87937
- const registeredOffice_r11 = \u0275\u0275readContextLet(8);
87938
- const registeredMailing_r12 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewMailingAddress));
87939
- \u0275\u0275advance();
87940
- const registeredDelivery_r13 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewDeliveryAddress));
87941
- const registeredDeliverySame_r14 = ctx_r0.isChecked(registeredOffice_r11, ctx_r0.controls.DeliverySameAsMailing);
87942
- \u0275\u0275advance(2);
87943
- \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
87944
- \u0275\u0275advance(2);
87945
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.currentAddressesFields);
87946
- \u0275\u0275advance(2);
87947
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(8, 15, "New Mailing Address"));
87948
- \u0275\u0275advance(2);
87949
- \u0275\u0275conditional(registeredMailing_r12 ? 9 : -1);
87835
+ const row_r6 = ctx.$implicit;
87836
+ \u0275\u0275advance(3);
87837
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(4, 3, row_r6.label), ":");
87950
87838
  \u0275\u0275advance(2);
87951
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(12, 17, "New Delivery Address"));
87839
+ \u0275\u0275textInterpolate1(" ", row_r6.value || \u0275\u0275pipeBind1(6, 5, "Not specified"), " ");
87952
87840
  \u0275\u0275advance(2);
87953
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliverySameAsMailingFields);
87954
- \u0275\u0275advance();
87955
- \u0275\u0275conditional(!registeredDeliverySame_r14 && registeredDelivery_r13 ? 14 : -1);
87841
+ \u0275\u0275conditional(row_r6.previous ? 7 : -1);
87956
87842
  }
87957
87843
  }
87958
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template(rf, ctx) {
87844
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_4_Template(rf, ctx) {
87959
87845
  if (rf & 1) {
87960
- const _r17 = \u0275\u0275getCurrentView();
87961
- \u0275\u0275elementStart(0, "filing-form-group", 7);
87962
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template_filing_form_group_visiblyValidChange_0_listener() {
87963
- \u0275\u0275restoreView(_r17);
87964
- const ctx_r0 = \u0275\u0275nextContext(3);
87965
- return \u0275\u0275resetView(ctx_r0.emitValidity());
87966
- });
87967
- \u0275\u0275elementEnd();
87846
+ \u0275\u0275element(0, "alert", 10);
87847
+ }
87848
+ }
87849
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template(rf, ctx) {
87850
+ if (rf & 1) {
87851
+ \u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
87852
+ \u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_For_3_Template, 8, 7, "div", 9, _forTrack05);
87853
+ \u0275\u0275template(4, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_4_Template, 1, 0, "alert", 10);
87854
+ \u0275\u0275elementEnd()();
87968
87855
  }
87969
87856
  if (rf & 2) {
87970
- \u0275\u0275nextContext(2);
87971
- const recordsMailing_r18 = \u0275\u0275readContextLet(0);
87972
87857
  const ctx_r0 = \u0275\u0275nextContext();
87973
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsMailing_r18)("config", ctx_r0.addressFields);
87858
+ \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
87859
+ \u0275\u0275advance(2);
87860
+ \u0275\u0275repeater(ctx_r0.registeredRows());
87861
+ \u0275\u0275advance(2);
87862
+ \u0275\u0275conditional(ctx_r0.isRegisteredMissing() ? 4 : -1);
87974
87863
  }
87975
87864
  }
87976
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template(rf, ctx) {
87865
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_For_3_Conditional_7_Template(rf, ctx) {
87977
87866
  if (rf & 1) {
87978
- const _r19 = \u0275\u0275getCurrentView();
87979
- \u0275\u0275elementStart(0, "filing-form-group", 7);
87980
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template_filing_form_group_visiblyValidChange_0_listener() {
87981
- \u0275\u0275restoreView(_r19);
87982
- const ctx_r0 = \u0275\u0275nextContext(3);
87983
- return \u0275\u0275resetView(ctx_r0.emitValidity());
87984
- });
87867
+ \u0275\u0275elementStart(0, "div", 13);
87868
+ \u0275\u0275text(1);
87869
+ \u0275\u0275pipe(2, "translate");
87985
87870
  \u0275\u0275elementEnd();
87986
87871
  }
87987
87872
  if (rf & 2) {
87988
- \u0275\u0275nextContext(2);
87989
- const recordsDelivery_r20 = \u0275\u0275readContextLet(1);
87990
- const ctx_r0 = \u0275\u0275nextContext();
87991
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsDelivery_r20)("config", ctx_r0.addressFields);
87873
+ const row_r7 = \u0275\u0275nextContext().$implicit;
87874
+ \u0275\u0275advance();
87875
+ \u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r7.previous, " ");
87992
87876
  }
87993
87877
  }
87994
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template(rf, ctx) {
87878
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_For_3_Template(rf, ctx) {
87995
87879
  if (rf & 1) {
87996
- const _r16 = \u0275\u0275getCurrentView();
87997
- \u0275\u0275elementStart(0, "h4", 10);
87998
- \u0275\u0275text(1);
87999
- \u0275\u0275pipe(2, "translate");
87880
+ \u0275\u0275elementStart(0, "div", 9)(1, "div", 11)(2, "span", 12);
87881
+ \u0275\u0275text(3);
87882
+ \u0275\u0275pipe(4, "translate");
88000
87883
  \u0275\u0275elementEnd();
88001
- \u0275\u0275template(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template, 1, 3, "filing-form-group", 9);
88002
- \u0275\u0275elementStart(4, "h4", 10);
88003
87884
  \u0275\u0275text(5);
88004
87885
  \u0275\u0275pipe(6, "translate");
88005
87886
  \u0275\u0275elementEnd();
88006
- \u0275\u0275elementStart(7, "filing-form-group", 7);
88007
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template_filing_form_group_visiblyValidChange_7_listener() {
88008
- \u0275\u0275restoreView(_r16);
88009
- const ctx_r0 = \u0275\u0275nextContext(2);
88010
- return \u0275\u0275resetView(ctx_r0.emitValidity());
88011
- });
87887
+ \u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_For_3_Conditional_7_Template, 3, 4, "div", 13);
88012
87888
  \u0275\u0275elementEnd();
88013
- \u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template, 1, 3, "filing-form-group", 9);
88014
87889
  }
88015
87890
  if (rf & 2) {
88016
- \u0275\u0275nextContext();
88017
- const recordsMailing_r18 = \u0275\u0275readContextLet(0);
88018
- const recordsDelivery_r20 = \u0275\u0275readContextLet(1);
88019
- const recordsDeliverySame_r21 = \u0275\u0275readContextLet(3);
88020
- const ctx_r0 = \u0275\u0275nextContext();
88021
- const recordsOffice_r22 = \u0275\u0275readContextLet(10);
88022
- \u0275\u0275advance();
88023
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 7, "New Mailing Address"));
88024
- \u0275\u0275advance(2);
88025
- \u0275\u0275conditional(recordsMailing_r18 ? 3 : -1);
87891
+ const row_r7 = ctx.$implicit;
87892
+ \u0275\u0275advance(3);
87893
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(4, 3, row_r7.label), ":");
88026
87894
  \u0275\u0275advance(2);
88027
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 9, "New Delivery Address"));
87895
+ \u0275\u0275textInterpolate1(" ", row_r7.value || \u0275\u0275pipeBind1(6, 5, "Not specified"), " ");
88028
87896
  \u0275\u0275advance(2);
88029
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.deliverySameAsMailingFields);
88030
- \u0275\u0275advance();
88031
- \u0275\u0275conditional(!recordsDeliverySame_r21 && recordsDelivery_r20 ? 8 : -1);
87897
+ \u0275\u0275conditional(row_r7.previous ? 7 : -1);
87898
+ }
87899
+ }
87900
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_4_Template(rf, ctx) {
87901
+ if (rf & 1) {
87902
+ \u0275\u0275element(0, "alert", 10);
88032
87903
  }
88033
87904
  }
88034
87905
  function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template(rf, ctx) {
88035
87906
  if (rf & 1) {
88036
- const _r15 = \u0275\u0275getCurrentView();
88037
- \u0275\u0275declareLet(0)(1)(2)(3);
88038
- \u0275\u0275elementStart(4, "expandable-card", 5)(5, "div", 8);
88039
- \u0275\u0275element(6, "filing-form-group", 9);
88040
- \u0275\u0275elementStart(7, "filing-form-group", 7);
88041
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_7_listener() {
88042
- \u0275\u0275restoreView(_r15);
88043
- const ctx_r0 = \u0275\u0275nextContext();
88044
- return \u0275\u0275resetView(ctx_r0.emitValidity());
88045
- });
88046
- \u0275\u0275elementEnd();
88047
- \u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template, 9, 11);
87907
+ \u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
87908
+ \u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_For_3_Template, 8, 7, "div", 9, _forTrack05);
87909
+ \u0275\u0275template(4, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_4_Template, 1, 0, "alert", 10);
88048
87910
  \u0275\u0275elementEnd()();
88049
87911
  }
88050
87912
  if (rf & 2) {
88051
87913
  const ctx_r0 = \u0275\u0275nextContext();
88052
- const recordsOffice_r22 = \u0275\u0275readContextLet(10);
88053
- \u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewMailingAddress));
88054
- \u0275\u0275advance();
88055
- \u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewDeliveryAddress));
88056
- const recordsSameAsRegistered_r23 = ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.SameAsRegisteredOffice);
88057
- \u0275\u0275advance(2);
88058
- \u0275\u0275storeLet(ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.DeliverySameAsMailing));
88059
- \u0275\u0275advance();
88060
87914
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
88061
87915
  \u0275\u0275advance(2);
88062
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.currentAddressesFields);
88063
- \u0275\u0275advance();
88064
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.sameAsRegisteredOfficeFields);
88065
- \u0275\u0275advance();
88066
- \u0275\u0275conditional(!recordsSameAsRegistered_r23 ? 8 : -1);
87916
+ \u0275\u0275repeater(ctx_r0.recordsRows());
87917
+ \u0275\u0275advance(2);
87918
+ \u0275\u0275conditional(ctx_r0.isRecordsMissing() ? 4 : -1);
88067
87919
  }
88068
87920
  }
88069
87921
  function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template(rf, ctx) {
88070
87922
  if (rf & 1) {
88071
- \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p");
87923
+ \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 14)(2, "p");
88072
87924
  \u0275\u0275text(3);
88073
87925
  \u0275\u0275pipe(4, "translate");
88074
87926
  \u0275\u0275elementEnd();
88075
- \u0275\u0275elementStart(5, "mat-radio-group", 12)(6, "mat-radio-button", 13);
87927
+ \u0275\u0275elementStart(5, "mat-radio-group", 15)(6, "mat-radio-button", 16);
88076
87928
  \u0275\u0275text(7);
88077
87929
  \u0275\u0275pipe(8, "translate");
88078
87930
  \u0275\u0275elementEnd();
88079
- \u0275\u0275elementStart(9, "mat-radio-button", 13);
87931
+ \u0275\u0275elementStart(9, "mat-radio-button", 16);
88080
87932
  \u0275\u0275text(10);
88081
87933
  \u0275\u0275pipe(11, "translate");
88082
87934
  \u0275\u0275elementEnd()()()();
88083
87935
  }
88084
87936
  if (rf & 2) {
88085
87937
  const ctx_r0 = \u0275\u0275nextContext();
88086
- const annualReportReminder_r24 = \u0275\u0275readContextLet(12);
87938
+ const annualReportReminder_r8 = \u0275\u0275readContextLet(12);
88087
87939
  \u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
88088
87940
  \u0275\u0275advance();
88089
- \u0275\u0275property("formGroup", annualReportReminder_r24);
87941
+ \u0275\u0275property("formGroup", annualReportReminder_r8);
88090
87942
  \u0275\u0275advance(2);
88091
87943
  \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 9, "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."), " ");
88092
87944
  \u0275\u0275advance(2);
@@ -88101,7 +87953,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88101
87953
  \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(11, 13, "No, I do not need to be reminded"), " ");
88102
87954
  }
88103
87955
  }
88104
- var BritishColumbiaChangeOfOfficeAddressesFormComponent;
87956
+ var _forTrack05, BritishColumbiaChangeOfOfficeAddressesFormComponent;
88105
87957
  var init_change_of_office_addresses_form_component = __esm({
88106
87958
  "src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts"() {
88107
87959
  init_core();
@@ -88114,11 +87966,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88114
87966
  init_expandable_card_component();
88115
87967
  init_british_columbia_form_enums();
88116
87968
  init_british_columbia_change_of_office_addresses_form_constants();
88117
- init_forms_utils();
88118
87969
  init_BritishColumbiaConstants();
88119
87970
  init_british_columbia_change_of_office_addresses_form_helper();
88120
87971
  init_core();
88121
87972
  init_forms();
87973
+ _forTrack05 = ($index, $item) => $item.label;
88122
87974
  BritishColumbiaChangeOfOfficeAddressesFormComponent = class _BritishColumbiaChangeOfOfficeAddressesFormComponent {
88123
87975
  form = input.required();
88124
87976
  task = input();
@@ -88146,12 +87998,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88146
87998
  return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
88147
87999
  }
88148
88000
  isRegisteredOfficeValid() {
88149
- const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
88150
- return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
88001
+ return !this.isRegisteredMissing();
88151
88002
  }
88152
88003
  isRecordsOfficeValid() {
88153
- const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
88154
- return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
88004
+ return !this.isRecordsMissing();
88005
+ }
88006
+ /** The incoming Shared Address supplied no new address for a line (and none is on the register). */
88007
+ isRegisteredMissing() {
88008
+ return this.registeredRows().some((row) => !row.value);
88009
+ }
88010
+ isRecordsMissing() {
88011
+ return this.recordsRows().some((row) => !row.value);
88155
88012
  }
88156
88013
  isChecked(office, control) {
88157
88014
  return Boolean(office?.get(control)?.value);
@@ -88169,14 +88026,63 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88169
88026
  getAddressGroup(office, control) {
88170
88027
  return office?.get(control) ?? null;
88171
88028
  }
88172
- isAddressValid(office, control) {
88173
- const group2 = this.getAddressGroup(office, control);
88174
- return !group2 || group2.disabled || isFormGroupVisiblyValid(group2, this.addressFields);
88029
+ /** Registered office lines: the new (incoming) address and, if it changed, the previous one. */
88030
+ registeredRows() {
88031
+ const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
88032
+ return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
88033
+ }
88034
+ /** Records office lines; "Same as Registered Office" reuses the registered office's new lines. */
88035
+ recordsRows() {
88036
+ const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
88037
+ if (this.isChecked(office, this.controls.SameAsRegisteredOffice)) {
88038
+ const registered = this.registeredRows();
88039
+ const current = this.currentOf(office);
88040
+ return registered.map((row, i) => __spreadProps(__spreadValues({}, row), {
88041
+ previous: this.changedPrevious(row.value, i === 0 ? current.mailing : current.delivery)
88042
+ }));
88043
+ }
88044
+ return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
88045
+ }
88046
+ buildRows(office, deliverySame) {
88047
+ const current = this.currentOf(office);
88048
+ const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress));
88049
+ const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress));
88050
+ return [
88051
+ {
88052
+ label: "Mailing Address",
88053
+ value: mailing,
88054
+ previous: this.changedPrevious(mailing, current.mailing)
88055
+ },
88056
+ {
88057
+ label: "Delivery Address",
88058
+ value: delivery,
88059
+ previous: this.changedPrevious(delivery, current.delivery)
88060
+ }
88061
+ ];
88062
+ }
88063
+ currentOf(office) {
88064
+ return {
88065
+ mailing: office?.get(this.controls.CurrentMailingAddress)?.value ?? "",
88066
+ delivery: office?.get(this.controls.CurrentDeliveryAddress)?.value ?? ""
88067
+ };
88068
+ }
88069
+ formatNew(group2) {
88070
+ const c = this.controls;
88071
+ const v = group2?.getRawValue() ?? {};
88072
+ if (![v[c.AddressLine1], v[c.City], v[c.PostalCode]].some((part) => part?.trim())) {
88073
+ return "";
88074
+ }
88075
+ return [v[c.AddressLine1], v[c.AddressLine2], v[c.City], v[c.Province], v[c.PostalCode], v[c.Country]].filter((part) => Boolean(part?.trim())).join(", ");
88076
+ }
88077
+ /** The previous address, only when it exists and differs from the new one. */
88078
+ changedPrevious(next, previous) {
88079
+ const normalize = (s) => s.toLowerCase().replace(/[^a-z0-9]/g, "");
88080
+ return previous && normalize(previous) !== normalize(next) ? previous : "";
88175
88081
  }
88176
88082
  static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
88177
88083
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
88178
88084
  };
88179
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesFormComponent, selectors: [["british-columbia-change-of-office-addresses-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-office-addresses-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-office-addresses-form-content"], [3, "title"], [3, "isStatusIcon", "isValid", "title"], [3, "isStatusIcon", "title"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item"], [3, "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item-title"], [1, "annual-reminder", 3, "formGroup"], [3, "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfOfficeAddressesFormComponent_Template(rf, ctx) {
88085
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesFormComponent, selectors: [["british-columbia-change-of-office-addresses-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: 10, consts: [[1, "change-of-office-addresses-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-office-addresses-form-content"], [3, "title"], [3, "isStatusIcon", "isValid", "title"], [3, "isStatusIcon", "title"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item"], [1, "change-of-office-addresses-form-address"], ["title", "New address missing", "content", "No new address was found for this office. Add it in Athennian, then try again."], [1, "body-1-regular", "grey"], [1, "body-1-semibold"], [1, "change-of-office-addresses-form-previous", "body-2-regular"], [1, "annual-reminder", 3, "formGroup"], [3, "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfOfficeAddressesFormComponent_Template(rf, ctx) {
88180
88086
  if (rf & 1) {
88181
88087
  \u0275\u0275elementStart(0, "div", 0);
88182
88088
  \u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
@@ -88186,9 +88092,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88186
88092
  \u0275\u0275declareLet(6);
88187
88093
  \u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template, 2, 6, "expandable-card", 5);
88188
88094
  \u0275\u0275declareLet(8);
88189
- \u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template, 15, 19, "expandable-card", 5);
88095
+ \u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template, 5, 4, "expandable-card", 5);
88190
88096
  \u0275\u0275declareLet(10);
88191
- \u0275\u0275template(11, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template, 9, 13, "expandable-card", 5);
88097
+ \u0275\u0275template(11, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template, 5, 4, "expandable-card", 5);
88192
88098
  \u0275\u0275declareLet(12);
88193
88099
  \u0275\u0275template(13, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template, 12, 15, "expandable-card", 6);
88194
88100
  \u0275\u0275elementEnd()();
@@ -88199,25 +88105,23 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88199
88105
  \u0275\u0275advance();
88200
88106
  \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
88201
88107
  \u0275\u0275advance(2);
88202
- const referenceNumbers_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
88203
- \u0275\u0275advance();
88204
- \u0275\u0275conditional(referenceNumbers_r25 ? 5 : -1);
88205
- \u0275\u0275advance();
88206
- const corporationDetails_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
88108
+ const referenceNumbers_r9 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
88207
88109
  \u0275\u0275advance();
88208
- \u0275\u0275conditional(corporationDetails_r26 ? 7 : -1);
88110
+ \u0275\u0275conditional(referenceNumbers_r9 ? 5 : -1);
88209
88111
  \u0275\u0275advance();
88210
- const registeredOffice_r27 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
88112
+ const corporationDetails_r10 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
88211
88113
  \u0275\u0275advance();
88212
- \u0275\u0275conditional(registeredOffice_r27 ? 9 : -1);
88213
- \u0275\u0275advance();
88214
- const recordsOffice_r28 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RecordsOfficeAddress));
88215
- \u0275\u0275advance();
88216
- \u0275\u0275conditional(recordsOffice_r28 ? 11 : -1);
88114
+ \u0275\u0275conditional(corporationDetails_r10 ? 7 : -1);
88115
+ const registeredOffice_r11 = ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress);
88116
+ \u0275\u0275advance(2);
88117
+ \u0275\u0275conditional(registeredOffice_r11 ? 9 : -1);
88118
+ const recordsOffice_r12 = ctx.getFormGroup(ctx.groups.RecordsOfficeAddress);
88119
+ \u0275\u0275advance(2);
88120
+ \u0275\u0275conditional(recordsOffice_r12 ? 11 : -1);
88217
88121
  \u0275\u0275advance();
88218
- const annualReportReminder_r29 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
88122
+ const annualReportReminder_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
88219
88123
  \u0275\u0275advance();
88220
- \u0275\u0275conditional(annualReportReminder_r29 ? 13 : -1);
88124
+ \u0275\u0275conditional(annualReportReminder_r13 ? 13 : -1);
88221
88125
  }
88222
88126
  }, dependencies: [
88223
88127
  FilingFormGroupComponent,
@@ -88231,7 +88135,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88231
88135
  FormGroupDirective,
88232
88136
  FormControlName,
88233
88137
  TranslatePipe
88234
- ], styles: ["\n\n[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 14px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] .mat-mdc-radio-button .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] .mat-mdc-radio-button {\n --mdc-radio-state-layer-size: 40px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-item-title[_ngcontent-%COMP%] {\n color: var(--filing-modal-color-dark-blue);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */"], changeDetection: 0 });
88138
+ ], styles: ["\n\n[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 14px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] .mat-mdc-radio-button .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] .mat-mdc-radio-button {\n --mdc-radio-state-layer-size: 40px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-item-title[_ngcontent-%COMP%] {\n color: var(--filing-modal-color-dark-blue);\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-address[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-previous[_ngcontent-%COMP%] {\n font-style: italic;\n color: var(--filing-modal-color-grey-mid);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */"], changeDetection: 0 });
88235
88139
  };
88236
88140
  (() => {
88237
88141
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
@@ -88295,53 +88199,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88295
88199
  @let registeredOffice = getFormGroup(groups.RegisteredOfficeAddress);\r
88296
88200
  \r
88297
88201
  @if (registeredOffice) {\r
88298
- @let registeredMailing = getAddressGroup(registeredOffice, controls.NewMailingAddress);\r
88299
- @let registeredDelivery = getAddressGroup(registeredOffice, controls.NewDeliveryAddress);\r
88300
- @let registeredDeliverySame = isChecked(registeredOffice, controls.DeliverySameAsMailing);\r
88301
- \r
88302
88202
  <expandable-card\r
88303
88203
  [isStatusIcon]="!readonly()"\r
88304
88204
  [isValid]="isRegisteredOfficeValid()"\r
88305
88205
  [title]="groups.RegisteredOfficeAddress"\r
88306
88206
  >\r
88307
88207
  <div class="change-of-office-addresses-form-item">\r
88308
- <filing-form-group\r
88309
- [isSubmitted]="isSubmitted()"\r
88310
- [form]="registeredOffice"\r
88311
- [config]="currentAddressesFields"\r
88312
- />\r
88313
- \r
88314
- <h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
88315
- \r
88316
- @if (registeredMailing) {\r
88317
- <filing-form-group\r
88318
- [isSubmitted]="isSubmitted()"\r
88319
- [form]="registeredMailing"\r
88320
- [config]="addressFields"\r
88321
- (visiblyValidChange)="emitValidity()"\r
88322
- />\r
88208
+ @for (row of registeredRows(); track row.label) {\r
88209
+ <div class="change-of-office-addresses-form-address">\r
88210
+ <div class="body-1-regular grey">\r
88211
+ <span class="body-1-semibold">{{ row.label | translate }}:</span>\r
88212
+ {{ row.value || ('Not specified' | translate) }}\r
88213
+ </div>\r
88214
+ @if (row.previous) {\r
88215
+ <div class="change-of-office-addresses-form-previous body-2-regular">\r
88216
+ {{ 'Previous' | translate }}: {{ row.previous }}\r
88217
+ </div>\r
88218
+ }\r
88219
+ </div>\r
88323
88220
  }\r
88324
88221
  \r
88325
- <h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
88326
- \r
88327
- <filing-form-group\r
88328
- [isSubmitted]="isSubmitted()"\r
88329
- [form]="registeredOffice"\r
88330
- [config]="deliverySameAsMailingFields"\r
88331
- (visiblyValidChange)="emitValidity()"\r
88332
- />\r
88333
- \r
88334
- @if (!registeredDeliverySame && registeredDelivery) {\r
88335
- <filing-form-group\r
88336
- [isSubmitted]="isSubmitted()"\r
88337
- [form]="registeredOffice"\r
88338
- [config]="deliveryNoteFields"\r
88339
- />\r
88340
- <filing-form-group\r
88341
- [isSubmitted]="isSubmitted()"\r
88342
- [form]="registeredDelivery"\r
88343
- [config]="addressFields"\r
88344
- (visiblyValidChange)="emitValidity()"\r
88222
+ @if (isRegisteredMissing()) {\r
88223
+ <alert\r
88224
+ title="New address missing"\r
88225
+ content="No new address was found for this office. Add it in Athennian, then try again."\r
88345
88226
  />\r
88346
88227
  }\r
88347
88228
  </div>\r
@@ -88352,59 +88233,31 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88352
88233
  @let recordsOffice = getFormGroup(groups.RecordsOfficeAddress);\r
88353
88234
  \r
88354
88235
  @if (recordsOffice) {\r
88355
- @let recordsMailing = getAddressGroup(recordsOffice, controls.NewMailingAddress);\r
88356
- @let recordsDelivery = getAddressGroup(recordsOffice, controls.NewDeliveryAddress);\r
88357
- @let recordsSameAsRegistered = isChecked(recordsOffice, controls.SameAsRegisteredOffice);\r
88358
- @let recordsDeliverySame = isChecked(recordsOffice, controls.DeliverySameAsMailing);\r
88359
- \r
88360
88236
  <expandable-card\r
88361
88237
  [isStatusIcon]="!readonly()"\r
88362
88238
  [isValid]="isRecordsOfficeValid()"\r
88363
88239
  [title]="groups.RecordsOfficeAddress"\r
88364
88240
  >\r
88365
88241
  <div class="change-of-office-addresses-form-item">\r
88366
- <filing-form-group\r
88367
- [isSubmitted]="isSubmitted()"\r
88368
- [form]="recordsOffice"\r
88369
- [config]="currentAddressesFields"\r
88370
- />\r
88371
- \r
88372
- <filing-form-group\r
88373
- [isSubmitted]="isSubmitted()"\r
88374
- [form]="recordsOffice"\r
88375
- [config]="sameAsRegisteredOfficeFields"\r
88376
- (visiblyValidChange)="emitValidity()"\r
88377
- />\r
88378
- \r
88379
- @if (!recordsSameAsRegistered) {\r
88380
- <h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
88381
- \r
88382
- @if (recordsMailing) {\r
88383
- <filing-form-group\r
88384
- [isSubmitted]="isSubmitted()"\r
88385
- [form]="recordsMailing"\r
88386
- [config]="addressFields"\r
88387
- (visiblyValidChange)="emitValidity()"\r
88388
- />\r
88389
- }\r
88390
- \r
88391
- <h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
88242
+ @for (row of recordsRows(); track row.label) {\r
88243
+ <div class="change-of-office-addresses-form-address">\r
88244
+ <div class="body-1-regular grey">\r
88245
+ <span class="body-1-semibold">{{ row.label | translate }}:</span>\r
88246
+ {{ row.value || ('Not specified' | translate) }}\r
88247
+ </div>\r
88248
+ @if (row.previous) {\r
88249
+ <div class="change-of-office-addresses-form-previous body-2-regular">\r
88250
+ {{ 'Previous' | translate }}: {{ row.previous }}\r
88251
+ </div>\r
88252
+ }\r
88253
+ </div>\r
88254
+ }\r
88392
88255
  \r
88393
- <filing-form-group\r
88394
- [isSubmitted]="isSubmitted()"\r
88395
- [form]="recordsOffice"\r
88396
- [config]="deliverySameAsMailingFields"\r
88397
- (visiblyValidChange)="emitValidity()"\r
88256
+ @if (isRecordsMissing()) {\r
88257
+ <alert\r
88258
+ title="New address missing"\r
88259
+ content="No new address was found for this office. Add it in Athennian, then try again."\r
88398
88260
  />\r
88399
- \r
88400
- @if (!recordsDeliverySame && recordsDelivery) {\r
88401
- <filing-form-group\r
88402
- [isSubmitted]="isSubmitted()"\r
88403
- [form]="recordsDelivery"\r
88404
- [config]="addressFields"\r
88405
- (visiblyValidChange)="emitValidity()"\r
88406
- />\r
88407
- }\r
88408
88261
  }\r
88409
88262
  </div>\r
88410
88263
  </expandable-card>\r
@@ -88434,11 +88287,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88434
88287
  }\r
88435
88288
  </div>\r
88436
88289
  </div>\r
88437
- `, styles: ["/* src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.scss */\n:host {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n:host .change-of-office-addresses-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-office-addresses-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n}\n:host .change-of-office-addresses-form .annual-reminder {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n:host .change-of-office-addresses-form .annual-reminder p {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n:host .change-of-office-addresses-form .annual-reminder mat-radio-group {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 14px;\n}\n:host .change-of-office-addresses-form .annual-reminder ::ng-deep .mat-mdc-radio-button .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n:host .change-of-office-addresses-form .annual-reminder ::ng-deep .mat-mdc-radio-button {\n --mdc-radio-state-layer-size: 40px;\n}\n:host .change-of-office-addresses-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .change-of-office-addresses-form-item-title {\n color: var(--filing-modal-color-dark-blue);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */\n"] }]
88290
+ `, styles: ["/* src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.scss */\n:host {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n:host .change-of-office-addresses-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-office-addresses-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n}\n:host .change-of-office-addresses-form .annual-reminder {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n:host .change-of-office-addresses-form .annual-reminder p {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n:host .change-of-office-addresses-form .annual-reminder mat-radio-group {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 14px;\n}\n:host .change-of-office-addresses-form .annual-reminder ::ng-deep .mat-mdc-radio-button .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n:host .change-of-office-addresses-form .annual-reminder ::ng-deep .mat-mdc-radio-button {\n --mdc-radio-state-layer-size: 40px;\n}\n:host .change-of-office-addresses-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .change-of-office-addresses-form-item-title {\n color: var(--filing-modal-color-dark-blue);\n}\n:host .change-of-office-addresses-form-address {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .change-of-office-addresses-form-previous {\n font-style: italic;\n color: var(--filing-modal-color-grey-mid);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */\n"] }]
88438
88291
  }], null, null);
88439
88292
  })();
88440
88293
  (() => {
88441
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfOfficeAddressesFormComponent, { className: "BritishColumbiaChangeOfOfficeAddressesFormComponent", filePath: "src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts", lineNumber: 55 });
88294
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfOfficeAddressesFormComponent, { className: "BritishColumbiaChangeOfOfficeAddressesFormComponent", filePath: "src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts", lineNumber: 60 });
88442
88295
  })();
88443
88296
  }
88444
88297
  });
@@ -90822,7 +90675,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
90822
90675
  \u0275\u0275pipe(7, "translate");
90823
90676
  \u0275\u0275elementEnd();
90824
90677
  \u0275\u0275elementStart(8, "ul", 16);
90825
- \u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17, _forTrack05);
90678
+ \u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17, _forTrack06);
90826
90679
  \u0275\u0275elementEnd()();
90827
90680
  \u0275\u0275elementStart(11, "span", 17);
90828
90681
  \u0275\u0275text(12);
@@ -91025,7 +90878,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
91025
90878
  \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", contactForm_r24)("config", ctx_r0.contactControl);
91026
90879
  }
91027
90880
  }
91028
- var _c016, _forTrack05, FederalIncorporationFormComponent;
90881
+ var _c016, _forTrack06, FederalIncorporationFormComponent;
91029
90882
  var init_federal_incorporation_form_component = __esm({
91030
90883
  "src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts"() {
91031
90884
  init_core();
@@ -91050,7 +90903,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
91050
90903
  init_common();
91051
90904
  init_core();
91052
90905
  _c016 = ["*"];
91053
- _forTrack05 = ($index, $item) => $item.affiliationID;
90906
+ _forTrack06 = ($index, $item) => $item.affiliationID;
91054
90907
  FederalIncorporationFormComponent = class _FederalIncorporationFormComponent {
91055
90908
  form = input.required();
91056
90909
  isNote = input(false);
@@ -95650,6 +95503,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95650
95503
  }
95651
95504
  function findDirectorNumber(affiliation, extract) {
95652
95505
  const target = normaliseDirectorName(affiliation);
95506
+ const targetId = String(affiliation?._id ?? affiliation?.id ?? "").trim();
95653
95507
  let result;
95654
95508
  const visit = (value) => {
95655
95509
  if (result !== void 0 || value === null || value === void 0)
@@ -95662,7 +95516,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95662
95516
  return;
95663
95517
  const record = value;
95664
95518
  const number = record["directorNumber"] ?? record["DirectorNumber"];
95665
- if (number !== void 0 && normaliseDirectorName(record) === target) {
95519
+ const recordId = String(record["_id"] ?? record["id"] ?? record["affiliationId"] ?? "").trim();
95520
+ if (number !== void 0 && (targetId && recordId === targetId || normaliseDirectorName(record) === target)) {
95666
95521
  const parsed = Number(number);
95667
95522
  if (Number.isFinite(parsed))
95668
95523
  result = parsed;
@@ -96369,6 +96224,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96369
96224
  }
96370
96225
  }
96371
96226
  if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
96227
+ if (task.deltaData?.validatedData) {
96228
+ this.bcCurrentDataServiceOrderId = task.deltaData.validatedData.currentDataServiceOrderId ?? "";
96229
+ this.bcDataExtractTaskId = task._id;
96230
+ return;
96231
+ }
96372
96232
  const signature = this._signature();
96373
96233
  if (!signature)
96374
96234
  return;
@@ -96729,13 +96589,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96729
96589
  }
96730
96590
  /**
96731
96591
  * British Columbia Change of Office Addresses save – propagates delta data to the host.
96592
+ * The draft link (ServiceOrderId and the request it was generated from) is kept, so reopening
96593
+ * can tell whether the saved data still matches the draft and show "Entity changed" if not.
96732
96594
  */
96733
96595
  onBritishColumbiaChangeOfOfficeAddressesSave(deltaData) {
96734
96596
  const oldDeltaData = this.task()?.deltaData;
96597
+ const draftLink = oldDeltaData?.serviceOrderId && oldDeltaData?.validatedData ? {
96598
+ serviceOrderId: oldDeltaData.serviceOrderId,
96599
+ validatedData: oldDeltaData.validatedData
96600
+ } : {};
96735
96601
  if (oldDeltaData) {
96736
96602
  delete this.task()?.deltaData;
96737
96603
  }
96738
- this.deltaDataChange.emit(deltaData);
96604
+ this.deltaDataChange.emit(__spreadValues(__spreadValues({}, deltaData), draftLink));
96739
96605
  }
96740
96606
  /**
96741
96607
  * British Columbia Change of Office Addresses submit/file: submits the filing staged by
@@ -96980,12 +96846,41 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96980
96846
  return "Initial Return Draft";
96981
96847
  }
96982
96848
  onEditClick() {
96983
- if (isUpdateMaintain(this.task())) {
96849
+ const task = this.task();
96850
+ if (!task)
96851
+ return;
96852
+ if (isUpdateMaintain(task)) {
96984
96853
  this.serviceOrderId = "";
96985
96854
  void this.getCurrentData();
96855
+ } else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
96856
+ this.bcDataExtractTaskId = "";
96857
+ void this.refreshBritishColumbiaCurrentDataExtract();
96986
96858
  }
96987
96859
  this.activeStep.set(Step.Validate);
96988
96860
  }
96861
+ refreshBritishColumbiaCurrentDataExtract() {
96862
+ return __async(this, null, function* () {
96863
+ const task = this.task();
96864
+ const signature = this._signature();
96865
+ if (!task || !signature || !isChangeOfPrincipalsTask(task))
96866
+ return;
96867
+ const { request, issues } = buildBritishColumbiaDataExtractOrder(task, task.deltaData?.companyPassword);
96868
+ if (issues.length) {
96869
+ this.errors.set(issues);
96870
+ return;
96871
+ }
96872
+ this.isLoading.set(true);
96873
+ try {
96874
+ this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
96875
+ this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
96876
+ this.bcDataExtractTaskId = task._id;
96877
+ } catch (error) {
96878
+ this.handleCatchError(error);
96879
+ } finally {
96880
+ this.isLoading.set(false);
96881
+ }
96882
+ });
96883
+ }
96989
96884
  parseError(errors) {
96990
96885
  return errors.map((item) => (item["ErrorMessage"] ?? item["Message"] ?? "").toString().trim()).filter((message) => message.length > 0);
96991
96886
  }
@@ -97311,7 +97206,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
97311
97206
  }], () => [], null);
97312
97207
  })();
97313
97208
  (() => {
97314
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 97 });
97209
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 98 });
97315
97210
  })();
97316
97211
  }
97317
97212
  });
@@ -101961,6 +101856,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
101961
101856
  "File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
101962
101857
  "Records Office Address": "Records Office Address",
101963
101858
  "The new addresses will take effect at the beginning of the day following the filing date. The registered and records offices must be located in British Columbia.": "The new addresses will take effect at the beginning of the day following the filing date. The registered and records offices must be located in British Columbia.",
101859
+ "Mailing Address": "Mailing Address",
101860
+ "Delivery Address": "Delivery Address",
101964
101861
  "Current Mailing Address": "Current Mailing Address",
101965
101862
  "Current Delivery Address": "Current Delivery Address",
101966
101863
  "New Mailing Address": "New Mailing Address",
@@ -102317,6 +102214,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
102317
102214
  "Without Par Value": "Sans valeur nominale",
102318
102215
  "File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
102319
102216
  "The new addresses will take effect at the beginning of the day following the filing date. The registered and records offices must be located in British Columbia.": "Les nouvelles adresses prendront effet au d\xE9but du jour suivant la date de d\xE9p\xF4t. Le si\xE8ge social et le bureau des registres doivent \xEAtre situ\xE9s en Colombie-Britannique.",
102217
+ "Mailing Address": "Adresse postale",
102218
+ "Delivery Address": "Adresse de livraison",
102320
102219
  "Current Mailing Address": "Adresse postale actuelle",
102321
102220
  "Current Delivery Address": "Adresse de livraison actuelle",
102322
102221
  "New Mailing Address": "Nouvelle adresse postale",