@dyedurham/search-and-file-widget 2.1.11 → 2.1.13

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 +444 -498
  2. package/package.json +11 -11
@@ -84931,17 +84931,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84931
84931
  });
84932
84932
 
84933
84933
  // src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts
84934
- function notInFuture() {
84935
- return (control) => {
84936
- if (!control.value) {
84937
- return null;
84938
- }
84939
- const value = new Date(control.value);
84940
- const today = /* @__PURE__ */ new Date();
84941
- today.setHours(23, 59, 59, 999);
84942
- return value > today ? { futureDate: true } : null;
84943
- };
84944
- }
84945
84934
  var Controls, BritishColumbiaChangeOfDirectorsFormHelper;
84946
84935
  var init_british_columbia_change_of_directors_form_helper = __esm({
84947
84936
  "src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts"() {
@@ -84963,13 +84952,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84963
84952
  const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
84964
84953
  const companyEmail = registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? "";
84965
84954
  const registeredMailing = format(pick(registeredOffice?.addresses, "Mailing"));
84955
+ const effectiveDate = task._ext._effective_date ?? "";
84966
84956
  const today = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
84967
84957
  const config2 = {};
84968
84958
  config2[BCChangeOfDirectorsFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile?.client_matter_number, delta?.referenceNumbers?.referenceNumber);
84969
84959
  config2[BCChangeOfDirectorsFormGroups.CorporationDetails] = new FormGroup({
84970
84960
  [Controls.CorporationName]: this.readOnly(task.entity._profile.name),
84971
84961
  [Controls.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
84972
- [Controls.CompanyEmail]: this.readOnly(companyEmail)
84962
+ [Controls.CompanyEmail]: new FormControl(companyEmail, [Validators.required, Validators.email])
84973
84963
  });
84974
84964
  const isDirector = (a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director";
84975
84965
  const incoming = task.incomingAffiliations ?? [];
@@ -84978,10 +84968,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84978
84968
  const hasAddOrCease = ceasedIds.size > 0 || incoming.filter(isDirector).length > 0;
84979
84969
  config2[BCChangeOfDirectorsFormGroups.FilingDetails] = new FormGroup({
84980
84970
  [Controls.DirectorsAddedOrDeleted]: new FormControl(delta?.filingDetails?.directorsAddedOrDeleted ?? hasAddOrCease),
84981
- [Controls.ChangeDate]: new FormControl(delta?.filingDetails?.changeDate ?? "", [
84982
- requiredIfValue(Controls.DirectorsAddedOrDeleted, true),
84983
- notInFuture()
84984
- ]),
84971
+ [Controls.ChangeDate]: this.readOnly(effectiveDate),
84985
84972
  [Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
84986
84973
  });
84987
84974
  const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
@@ -85150,7 +85137,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85150
85137
  const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
85151
85138
  const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
85152
85139
  const incoming = this.incomingOfficeAddresses(task);
85153
- const seed = delta?.registeredOffice ? this.fillEmptyAddresses(delta, incoming) : this.seedFromIncomingAffiliations(task);
85140
+ const incomingSeed = delta?.registeredOffice ? this.fillEmptyAddresses(delta, incoming) : this.seedFromIncomingAffiliations(task);
85141
+ const seed = this.withCurrentAddresses(incomingSeed, incoming, delta, registeredOffice, recordsOffice);
85154
85142
  const config2 = {};
85155
85143
  config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
85156
85144
  config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
@@ -85222,6 +85210,48 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85222
85210
  }
85223
85211
  };
85224
85212
  }
85213
+ /**
85214
+ * For an office with neither an incoming address nor a saved draft, the new address is its
85215
+ * current address on the register (so the filing leaves it unchanged). A current address outside
85216
+ * British Columbia is not used: the office is then reported as missing.
85217
+ */
85218
+ static withCurrentAddresses(seed, incoming, delta, registeredOffice, recordsOffice) {
85219
+ const pickBy = BritishColumbiaFormationFormHelper.pickAddress;
85220
+ const current = (office, type) => {
85221
+ const address = pickBy(office?.addresses, type);
85222
+ return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
85223
+ };
85224
+ const result = __spreadValues({}, seed);
85225
+ if (!delta?.registeredOffice && !incoming.regMailing) {
85226
+ const mailing = current(registeredOffice, "Mailing");
85227
+ const delivery = current(registeredOffice, "Delivery");
85228
+ if (mailing) {
85229
+ const same = !delivery || this.isSameOfficeAddress(delivery, mailing);
85230
+ result.registeredOffice = {
85231
+ mailingAddress: mailing,
85232
+ deliverySameAsMailing: same,
85233
+ deliveryAddress: same ? void 0 : delivery
85234
+ };
85235
+ }
85236
+ }
85237
+ if (!delta?.recordsOffice && !incoming.recMailing) {
85238
+ const mailing = current(recordsOffice, "Mailing");
85239
+ const delivery = current(recordsOffice, "Delivery");
85240
+ if (mailing) {
85241
+ const registeredMailing = result.registeredOffice?.mailingAddress;
85242
+ const registeredDelivery = result.registeredOffice?.deliveryAddress ?? registeredMailing;
85243
+ const sameAsRegistered = this.isSameOfficeAddress(mailing, registeredMailing) && this.isSameOfficeAddress(delivery ?? mailing, registeredDelivery);
85244
+ const deliverySame = !delivery || this.isSameOfficeAddress(delivery, mailing);
85245
+ result.recordsOffice = {
85246
+ sameAsRegisteredOffice: sameAsRegistered,
85247
+ mailingAddress: sameAsRegistered ? void 0 : mailing,
85248
+ deliverySameAsMailing: deliverySame,
85249
+ deliveryAddress: deliverySame ? void 0 : delivery
85250
+ };
85251
+ }
85252
+ }
85253
+ return result;
85254
+ }
85225
85255
  /** Keeps the saved flags and addresses, but fills an address the draft left empty from `incoming`. */
85226
85256
  static fillEmptyAddresses(saved, incoming) {
85227
85257
  const hasValues = (address) => EDITABLE_ADDRESS_CONTROLS.some((name) => Boolean(address?.[name]));
@@ -85373,7 +85403,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85373
85403
  BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS = [
85374
85404
  readOnlyRow("Corporation Name", Controls3.CorporationName),
85375
85405
  readOnlyRow("Incorporation Number", Controls3.IncorporationNumber),
85376
- readOnlyRow("Company Email", Controls3.CompanyEmail)
85406
+ {
85407
+ type: FormType.Select,
85408
+ label: "Company Email",
85409
+ formControlName: Controls3.CompanyEmail,
85410
+ required: true,
85411
+ options: [],
85412
+ class: "span-12"
85413
+ }
85377
85414
  ];
85378
85415
  BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS = [
85379
85416
  {
@@ -85388,20 +85425,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85388
85425
  formControlName: Controls3.DirectorsAddedOrDeleted,
85389
85426
  class: "span-12",
85390
85427
  onChange: (form) => {
85391
- if (!directorsAddedOrDeleted(form)) {
85392
- form.get(Controls3.ChangeDate)?.setValue("", { emitEvent: false });
85393
- }
85394
85428
  form.get(Controls3.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
85395
85429
  }
85396
85430
  },
85397
- {
85398
- type: FormType.Date,
85399
- label: "Date Directors were added or deleted",
85400
- formControlName: Controls3.ChangeDate,
85401
- required: true,
85402
- isVisible: directorsAddedOrDeleted,
85403
- class: "span-8"
85404
- },
85431
+ __spreadProps(__spreadValues({}, readOnlyRow("Date Directors were added or deleted", Controls3.ChangeDate, "span-8")), {
85432
+ isVisible: directorsAddedOrDeleted
85433
+ }),
85405
85434
  __spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls3.FilingFee, "span-4")), {
85406
85435
  isVisible: directorsAddedOrDeleted
85407
85436
  }),
@@ -85467,7 +85496,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85467
85496
  // src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts
85468
85497
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template(rf, ctx) {
85469
85498
  if (rf & 1) {
85470
- \u0275\u0275element(0, "alert", 2);
85499
+ \u0275\u0275element(0, "alert", 1);
85471
85500
  }
85472
85501
  if (rf & 2) {
85473
85502
  const ctx_r0 = \u0275\u0275nextContext();
@@ -85476,7 +85505,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85476
85505
  }
85477
85506
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template(rf, ctx) {
85478
85507
  if (rf & 1) {
85479
- \u0275\u0275element(0, "alert", 3);
85508
+ \u0275\u0275element(0, "alert", 2);
85480
85509
  }
85481
85510
  if (rf & 2) {
85482
85511
  const ctx_r0 = \u0275\u0275nextContext();
@@ -85486,7 +85515,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85486
85515
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template(rf, ctx) {
85487
85516
  if (rf & 1) {
85488
85517
  const _r2 = \u0275\u0275getCurrentView();
85489
- \u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 10);
85518
+ \u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 9);
85490
85519
  \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
85491
85520
  \u0275\u0275restoreView(_r2);
85492
85521
  const ctx_r0 = \u0275\u0275nextContext();
@@ -85504,7 +85533,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85504
85533
  }
85505
85534
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template(rf, ctx) {
85506
85535
  if (rf & 1) {
85507
- \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p")(3, "strong");
85536
+ const _r4 = \u0275\u0275getCurrentView();
85537
+ \u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 10)(2, "p")(3, "strong");
85508
85538
  \u0275\u0275text(4);
85509
85539
  \u0275\u0275pipe(5, "translate");
85510
85540
  \u0275\u0275elementEnd();
@@ -85516,127 +85546,94 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85516
85546
  \u0275\u0275elementEnd();
85517
85547
  \u0275\u0275text(11);
85518
85548
  \u0275\u0275elementEnd();
85519
- \u0275\u0275elementStart(12, "p")(13, "strong");
85520
- \u0275\u0275text(14);
85521
- \u0275\u0275pipe(15, "translate");
85522
- \u0275\u0275elementEnd();
85523
- \u0275\u0275text(16);
85524
- \u0275\u0275elementEnd()()();
85549
+ \u0275\u0275elementStart(12, "div", 11)(13, "filing-form-group", 12);
85550
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template_filing_form_group_visiblyValidChange_13_listener($event) {
85551
+ \u0275\u0275restoreView(_r4);
85552
+ const ctx_r0 = \u0275\u0275nextContext();
85553
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corporationDetails", $event));
85554
+ });
85555
+ \u0275\u0275elementEnd()()()();
85525
85556
  }
85526
85557
  if (rf & 2) {
85527
85558
  let tmp_9_0;
85528
85559
  let tmp_11_0;
85529
- let tmp_13_0;
85530
85560
  const ctx_r0 = \u0275\u0275nextContext();
85531
- const corporationDetails_r4 = \u0275\u0275readContextLet(6);
85561
+ const corporationDetails_r5 = \u0275\u0275readContextLet(6);
85532
85562
  \u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.CorporationDetails);
85533
85563
  \u0275\u0275advance(4);
85534
- \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 8, "Corporation Name"), ":");
85564
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Corporation Name"), ":");
85535
85565
  \u0275\u0275advance(2);
85536
- \u0275\u0275textInterpolate1(" ", (tmp_9_0 = corporationDetails_r4.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_9_0.value, " ");
85566
+ \u0275\u0275textInterpolate1(" ", (tmp_9_0 = corporationDetails_r5.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_9_0.value, " ");
85537
85567
  \u0275\u0275advance(3);
85538
- \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 10, "Incorporation Number"), ":");
85568
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 11, "Incorporation Number"), ":");
85539
85569
  \u0275\u0275advance(2);
85540
- \u0275\u0275textInterpolate1(" ", (tmp_11_0 = corporationDetails_r4.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_11_0.value, " ");
85541
- \u0275\u0275advance(3);
85542
- \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(15, 12, "Company Email"), ":");
85570
+ \u0275\u0275textInterpolate1(" ", (tmp_11_0 = corporationDetails_r5.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_11_0.value, " ");
85543
85571
  \u0275\u0275advance(2);
85544
- \u0275\u0275textInterpolate1(" ", (tmp_13_0 = corporationDetails_r4.get(ctx_r0.controls.CompanyEmail)) == null ? null : tmp_13_0.value, " ");
85572
+ \u0275\u0275property("form", corporationDetails_r5)("config", ctx_r0.companyEmailFields())("isSubmitted", ctx_r0.isSubmitted());
85545
85573
  }
85546
85574
  }
85547
85575
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template(rf, ctx) {
85548
85576
  if (rf & 1) {
85549
- const _r7 = \u0275\u0275getCurrentView();
85550
- \u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "label");
85577
+ \u0275\u0275elementStart(0, "div", 16)(1, "div", 17)(2, "p", 18);
85551
85578
  \u0275\u0275text(3);
85552
85579
  \u0275\u0275pipe(4, "translate");
85553
- \u0275\u0275elementStart(5, "span");
85554
- \u0275\u0275text(6, "*");
85555
- \u0275\u0275elementEnd()();
85556
- \u0275\u0275elementStart(7, "mat-form-field", 17)(8, "input", 18);
85557
- \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_click_8_listener() {
85558
- \u0275\u0275restoreView(_r7);
85559
- const changeDatePicker_r8 = \u0275\u0275reference(12);
85560
- return \u0275\u0275resetView(changeDatePicker_r8.open());
85561
- })("dateChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_dateChange_8_listener() {
85562
- \u0275\u0275restoreView(_r7);
85563
- const ctx_r0 = \u0275\u0275nextContext(2);
85564
- const filingDetails_r6 = \u0275\u0275readContextLet(8);
85565
- return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
85566
- });
85567
- \u0275\u0275elementEnd();
85568
- \u0275\u0275elementStart(9, "button", 19);
85569
- \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_button_click_9_listener() {
85570
- \u0275\u0275restoreView(_r7);
85571
- const changeDatePicker_r8 = \u0275\u0275reference(12);
85572
- return \u0275\u0275resetView(changeDatePicker_r8.open());
85573
- });
85574
- \u0275\u0275element(10, "span", 20);
85575
- \u0275\u0275elementEnd();
85576
- \u0275\u0275element(11, "mat-datepicker", null, 0);
85577
- \u0275\u0275elementEnd();
85578
- \u0275\u0275elementStart(13, "p", 21);
85579
- \u0275\u0275text(14);
85580
- \u0275\u0275pipe(15, "translate");
85581
- \u0275\u0275elementEnd()();
85582
- \u0275\u0275elementStart(16, "p", 22)(17, "strong");
85583
- \u0275\u0275text(18);
85584
- \u0275\u0275pipe(19, "translate");
85580
+ \u0275\u0275elementStart(5, "strong");
85581
+ \u0275\u0275text(6);
85582
+ \u0275\u0275elementEnd()()();
85583
+ \u0275\u0275elementStart(7, "p", 19)(8, "strong");
85584
+ \u0275\u0275text(9);
85585
+ \u0275\u0275pipe(10, "translate");
85585
85586
  \u0275\u0275elementEnd();
85586
- \u0275\u0275text(20);
85587
+ \u0275\u0275text(11);
85587
85588
  \u0275\u0275elementEnd()();
85588
85589
  }
85589
85590
  if (rf & 2) {
85590
- let tmp_13_0;
85591
- const changeDatePicker_r8 = \u0275\u0275reference(12);
85591
+ let tmp_8_0;
85592
+ let tmp_10_0;
85592
85593
  const ctx_r0 = \u0275\u0275nextContext(2);
85593
- const filingDetails_r6 = \u0275\u0275readContextLet(8);
85594
+ const filingDetails_r7 = \u0275\u0275readContextLet(8);
85594
85595
  \u0275\u0275advance(3);
85595
- \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 6, "Date Directors were added or deleted"), "");
85596
- \u0275\u0275advance(5);
85597
- \u0275\u0275property("matDatepicker", changeDatePicker_r8)("formControlName", ctx_r0.controls.ChangeDate);
85598
- \u0275\u0275advance(6);
85599
- \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."), " ");
85600
- \u0275\u0275advance(4);
85601
- \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(19, 10, "Filing Fee"), ":");
85596
+ \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 4, "The date on which the individual(s) became or ceased to be a director:"), " ");
85597
+ \u0275\u0275advance(3);
85598
+ \u0275\u0275textInterpolate(ctx_r0.getEffectiveDateDisplay((tmp_8_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_8_0.value));
85599
+ \u0275\u0275advance(3);
85600
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 6, "Filing Fee"), ":");
85602
85601
  \u0275\u0275advance(2);
85603
- \u0275\u0275textInterpolate1(" ", (tmp_13_0 = filingDetails_r6.get(ctx_r0.controls.FilingFee)) == null ? null : tmp_13_0.value, " ");
85602
+ \u0275\u0275textInterpolate1(" ", (tmp_10_0 = filingDetails_r7.get(ctx_r0.controls.FilingFee)) == null ? null : tmp_10_0.value, " ");
85604
85603
  }
85605
85604
  }
85606
85605
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
85607
85606
  if (rf & 1) {
85608
- const _r5 = \u0275\u0275getCurrentView();
85609
- \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 12)(2, "div", 13)(3, "strong");
85607
+ const _r6 = \u0275\u0275getCurrentView();
85608
+ \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "div", 14)(3, "strong");
85610
85609
  \u0275\u0275text(4);
85611
85610
  \u0275\u0275pipe(5, "translate");
85612
85611
  \u0275\u0275elementEnd();
85613
85612
  \u0275\u0275text(6);
85614
85613
  \u0275\u0275pipe(7, "translate");
85615
85614
  \u0275\u0275elementEnd();
85616
- \u0275\u0275elementStart(8, "mat-checkbox", 14);
85615
+ \u0275\u0275elementStart(8, "mat-checkbox", 15);
85617
85616
  \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
85618
85617
  let tmp_7_0;
85619
- let tmp_8_0;
85620
- \u0275\u0275restoreView(_r5);
85618
+ \u0275\u0275restoreView(_r6);
85621
85619
  const ctx_r0 = \u0275\u0275nextContext();
85622
- const filingDetails_r6 = \u0275\u0275readContextLet(8);
85623
- (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 });
85624
- (tmp_8_0 = filingDetails_r6.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_8_0.updateValueAndValidity({ emitEvent: false });
85625
- return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
85620
+ const filingDetails_r7 = \u0275\u0275readContextLet(8);
85621
+ (tmp_7_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.updateValueAndValidity({ emitEvent: false });
85622
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r7.valid));
85626
85623
  });
85627
85624
  \u0275\u0275text(9);
85628
85625
  \u0275\u0275pipe(10, "translate");
85629
85626
  \u0275\u0275elementEnd();
85630
- \u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div", 15);
85627
+ \u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 12, 8, "div", 16);
85631
85628
  \u0275\u0275elementEnd()();
85632
85629
  }
85633
85630
  if (rf & 2) {
85634
85631
  let tmp_14_0;
85635
85632
  const ctx_r0 = \u0275\u0275nextContext();
85636
- const filingDetails_r6 = \u0275\u0275readContextLet(8);
85633
+ const filingDetails_r7 = \u0275\u0275readContextLet(8);
85637
85634
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["filingDetails"])("title", ctx_r0.groups.FilingDetails);
85638
85635
  \u0275\u0275advance();
85639
- \u0275\u0275property("formGroup", filingDetails_r6);
85636
+ \u0275\u0275property("formGroup", filingDetails_r7);
85640
85637
  \u0275\u0275advance(3);
85641
85638
  \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Note"), ":");
85642
85639
  \u0275\u0275advance(2);
@@ -85646,12 +85643,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85646
85643
  \u0275\u0275advance();
85647
85644
  \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(10, 13, "Directors will be added and/or deleted as part of this filing"), " ");
85648
85645
  \u0275\u0275advance(2);
85649
- \u0275\u0275conditional(((tmp_14_0 = filingDetails_r6.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_14_0.value) ? 11 : -1);
85646
+ \u0275\u0275conditional(((tmp_14_0 = filingDetails_r7.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_14_0.value) ? 11 : -1);
85650
85647
  }
85651
85648
  }
85652
85649
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
85653
85650
  if (rf & 1) {
85654
- \u0275\u0275elementStart(0, "span", 27);
85651
+ \u0275\u0275elementStart(0, "span", 24);
85655
85652
  \u0275\u0275text(1);
85656
85653
  \u0275\u0275pipe(2, "translate");
85657
85654
  \u0275\u0275elementEnd();
@@ -85663,7 +85660,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85663
85660
  }
85664
85661
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
85665
85662
  if (rf & 1) {
85666
- \u0275\u0275elementStart(0, "span", 28);
85663
+ \u0275\u0275elementStart(0, "span", 25);
85667
85664
  \u0275\u0275text(1);
85668
85665
  \u0275\u0275pipe(2, "translate");
85669
85666
  \u0275\u0275elementEnd();
@@ -85675,15 +85672,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85675
85672
  }
85676
85673
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
85677
85674
  if (rf & 1) {
85678
- \u0275\u0275elementStart(0, "div", 25)(1, "div", 26)(2, "strong");
85675
+ \u0275\u0275elementStart(0, "div", 22)(1, "div", 23)(2, "strong");
85679
85676
  \u0275\u0275text(3);
85680
85677
  \u0275\u0275elementEnd();
85681
- \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);
85678
+ \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);
85682
85679
  \u0275\u0275elementEnd();
85683
- \u0275\u0275elementStart(6, "div", 26);
85680
+ \u0275\u0275elementStart(6, "div", 23);
85684
85681
  \u0275\u0275text(7);
85685
85682
  \u0275\u0275elementEnd();
85686
- \u0275\u0275elementStart(8, "div", 26);
85683
+ \u0275\u0275elementStart(8, "div", 23);
85687
85684
  \u0275\u0275text(9);
85688
85685
  \u0275\u0275elementEnd()();
85689
85686
  }
@@ -85692,43 +85689,43 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85692
85689
  let tmp_22_0;
85693
85690
  let tmp_23_0;
85694
85691
  \u0275\u0275nextContext();
85695
- const directorForm_r9 = \u0275\u0275readContextLet(0);
85692
+ const directorForm_r8 = \u0275\u0275readContextLet(0);
85696
85693
  const ctx_r0 = \u0275\u0275nextContext(2);
85697
85694
  \u0275\u0275advance(3);
85698
- \u0275\u0275textInterpolate((tmp_19_0 = directorForm_r9.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_19_0.value);
85695
+ \u0275\u0275textInterpolate((tmp_19_0 = directorForm_r8.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_19_0.value);
85699
85696
  \u0275\u0275advance();
85700
- \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r9) ? 4 : -1);
85697
+ \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r8) ? 4 : -1);
85701
85698
  \u0275\u0275advance();
85702
- \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r9) ? 5 : -1);
85699
+ \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r8) ? 5 : -1);
85703
85700
  \u0275\u0275advance(2);
85704
- \u0275\u0275textInterpolate((tmp_22_0 = directorForm_r9.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_22_0.value);
85701
+ \u0275\u0275textInterpolate((tmp_22_0 = directorForm_r8.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_22_0.value);
85705
85702
  \u0275\u0275advance(2);
85706
- \u0275\u0275textInterpolate((tmp_23_0 = directorForm_r9.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
85703
+ \u0275\u0275textInterpolate((tmp_23_0 = directorForm_r8.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
85707
85704
  }
85708
85705
  }
85709
85706
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
85710
85707
  if (rf & 1) {
85711
85708
  \u0275\u0275declareLet(0);
85712
- \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 25);
85709
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 22);
85713
85710
  }
85714
85711
  if (rf & 2) {
85715
- const \u0275$index_115_r10 = ctx.$index;
85716
- const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_115_r10));
85712
+ const \u0275$index_98_r9 = ctx.$index;
85713
+ const directorForm_r10 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_98_r9));
85717
85714
  \u0275\u0275advance();
85718
- \u0275\u0275conditional(directorForm_r11 ? 1 : -1);
85715
+ \u0275\u0275conditional(directorForm_r10 ? 1 : -1);
85719
85716
  }
85720
85717
  }
85721
85718
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
85722
85719
  if (rf & 1) {
85723
- \u0275\u0275elementStart(0, "div", 8)(1, "div", 23)(2, "div", 24);
85720
+ \u0275\u0275elementStart(0, "div", 7)(1, "div", 20)(2, "div", 21);
85724
85721
  \u0275\u0275text(3);
85725
85722
  \u0275\u0275pipe(4, "translate");
85726
85723
  \u0275\u0275elementEnd();
85727
- \u0275\u0275elementStart(5, "div", 24);
85724
+ \u0275\u0275elementStart(5, "div", 21);
85728
85725
  \u0275\u0275text(6);
85729
85726
  \u0275\u0275pipe(7, "translate");
85730
85727
  \u0275\u0275elementEnd();
85731
- \u0275\u0275elementStart(8, "div", 24);
85728
+ \u0275\u0275elementStart(8, "div", 21);
85732
85729
  \u0275\u0275text(9);
85733
85730
  \u0275\u0275pipe(10, "translate");
85734
85731
  \u0275\u0275elementEnd()();
@@ -85737,7 +85734,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85737
85734
  }
85738
85735
  if (rf & 2) {
85739
85736
  \u0275\u0275nextContext();
85740
- const directorsArray_r12 = \u0275\u0275readContextLet(10);
85737
+ const directorsArray_r11 = \u0275\u0275readContextLet(10);
85741
85738
  \u0275\u0275advance(3);
85742
85739
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4, 3, "Name"));
85743
85740
  \u0275\u0275advance(3);
@@ -85745,12 +85742,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85745
85742
  \u0275\u0275advance(3);
85746
85743
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 7, "Delivery Address"));
85747
85744
  \u0275\u0275advance(2);
85748
- \u0275\u0275repeater(directorsArray_r12.controls);
85745
+ \u0275\u0275repeater(directorsArray_r11.controls);
85749
85746
  }
85750
85747
  }
85751
85748
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
85752
85749
  if (rf & 1) {
85753
- \u0275\u0275elementStart(0, "h2", 9);
85750
+ \u0275\u0275elementStart(0, "h2", 8);
85754
85751
  \u0275\u0275text(1);
85755
85752
  \u0275\u0275pipe(2, "translate");
85756
85753
  \u0275\u0275elementEnd();
@@ -85762,33 +85759,33 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85762
85759
  }
85763
85760
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
85764
85761
  if (rf & 1) {
85765
- const _r13 = \u0275\u0275getCurrentView();
85766
- \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 29)(2, "p");
85762
+ const _r12 = \u0275\u0275getCurrentView();
85763
+ \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 26)(2, "p");
85767
85764
  \u0275\u0275text(3);
85768
85765
  \u0275\u0275pipe(4, "translate");
85769
85766
  \u0275\u0275elementEnd();
85770
- \u0275\u0275elementStart(5, "mat-radio-group", 30);
85767
+ \u0275\u0275elementStart(5, "mat-radio-group", 27);
85771
85768
  \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template_mat_radio_group_change_5_listener() {
85772
- \u0275\u0275restoreView(_r13);
85769
+ \u0275\u0275restoreView(_r12);
85773
85770
  const ctx_r0 = \u0275\u0275nextContext();
85774
- const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
85775
- return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r14.valid));
85771
+ const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
85772
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r13.valid));
85776
85773
  });
85777
- \u0275\u0275elementStart(6, "mat-radio-button", 31);
85774
+ \u0275\u0275elementStart(6, "mat-radio-button", 28);
85778
85775
  \u0275\u0275text(7);
85779
85776
  \u0275\u0275pipe(8, "translate");
85780
85777
  \u0275\u0275elementEnd();
85781
- \u0275\u0275elementStart(9, "mat-radio-button", 31);
85778
+ \u0275\u0275elementStart(9, "mat-radio-button", 28);
85782
85779
  \u0275\u0275text(10);
85783
85780
  \u0275\u0275pipe(11, "translate");
85784
85781
  \u0275\u0275elementEnd()()()();
85785
85782
  }
85786
85783
  if (rf & 2) {
85787
85784
  const ctx_r0 = \u0275\u0275nextContext();
85788
- const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
85785
+ const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
85789
85786
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
85790
85787
  \u0275\u0275advance();
85791
- \u0275\u0275property("formGroup", annualReportReminder_r14);
85788
+ \u0275\u0275property("formGroup", annualReportReminder_r13);
85792
85789
  \u0275\u0275advance(2);
85793
85790
  \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."), " ");
85794
85791
  \u0275\u0275advance(2);
@@ -85821,6 +85818,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85821
85818
  init_british_columbia_form_enums();
85822
85819
  init_british_columbia_change_of_directors_form_constants();
85823
85820
  init_BritishColumbiaConstants();
85821
+ init_british_columbia_formation_form_helper();
85824
85822
  init_core();
85825
85823
  init_forms();
85826
85824
  BritishColumbiaChangeOfDirectorsFormComponent = class _BritishColumbiaChangeOfDirectorsFormComponent {
@@ -85836,7 +85834,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85836
85834
  controls = BCChangeOfDirectorsFormControls;
85837
85835
  annualReportReminderOption = BCAnnualReportReminder;
85838
85836
  referenceNumbersFields = BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS;
85839
- corporationDetailsFields = BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS;
85837
+ corporationDetailsFields = computed(() => {
85838
+ const corporationDetails = this.form().get(this.groups.CorporationDetails);
85839
+ const currentEmail = corporationDetails?.get(this.controls.CompanyEmail)?.value;
85840
+ const emailOptions = BritishColumbiaFormationFormHelper.buildCompanyEmailOptions(this.task(), currentEmail);
85841
+ return BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS.map((field) => field.formControlName === this.controls.CompanyEmail ? __spreadProps(__spreadValues({}, field), { options: emailOptions }) : field);
85842
+ });
85843
+ companyEmailFields = computed(() => this.corporationDetailsFields().filter((field) => field.formControlName === this.controls.CompanyEmail));
85840
85844
  filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
85841
85845
  directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
85842
85846
  annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
@@ -85849,6 +85853,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85849
85853
  const annualReportReminder = this.getFormGroup(this.groups.AnnualReportReminder);
85850
85854
  return Object.values(this.sectionValidity).every((v) => v) && !filingDetails?.invalid && !dateInvalid && !annualReportReminder?.invalid;
85851
85855
  }
85856
+ getEffectiveDateDisplay(value) {
85857
+ const date = String(value ?? "").split("T")[0];
85858
+ const [year, month, day] = date.split("-");
85859
+ return year && month && day ? `${year}-${month}-${day}` : "\u2014";
85860
+ }
85852
85861
  onSectionValidChange(section, valid) {
85853
85862
  this.sectionValidity = __spreadProps(__spreadValues({}, this.sectionValidity), { [section]: valid });
85854
85863
  this.visiblyValidChange.emit(this.isVisiblyValid());
@@ -85874,23 +85883,23 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85874
85883
  static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
85875
85884
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
85876
85885
  };
85877
- 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) {
85886
+ 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) {
85878
85887
  if (rf & 1) {
85879
- \u0275\u0275elementStart(0, "div", 1);
85880
- \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 2)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 3);
85881
- \u0275\u0275elementStart(3, "div", 4);
85888
+ \u0275\u0275elementStart(0, "div", 0);
85889
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
85890
+ \u0275\u0275elementStart(3, "div", 3);
85882
85891
  \u0275\u0275declareLet(4);
85883
- \u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 5);
85892
+ \u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 4);
85884
85893
  \u0275\u0275declareLet(6);
85885
- \u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 17, 14, "expandable-card", 6);
85894
+ \u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 14, 13, "expandable-card", 5);
85886
85895
  \u0275\u0275declareLet(8);
85887
- \u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 7);
85896
+ \u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 6);
85888
85897
  \u0275\u0275declareLet(10);
85889
- \u0275\u0275elementStart(11, "expandable-card", 6);
85890
- \u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 8)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 9);
85898
+ \u0275\u0275elementStart(11, "expandable-card", 5);
85899
+ \u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 7)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 8);
85891
85900
  \u0275\u0275elementEnd();
85892
85901
  \u0275\u0275declareLet(14);
85893
- \u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 7);
85902
+ \u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 6);
85894
85903
  \u0275\u0275elementEnd()();
85895
85904
  }
85896
85905
  if (rf & 2) {
@@ -85899,47 +85908,42 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85899
85908
  \u0275\u0275advance();
85900
85909
  \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
85901
85910
  \u0275\u0275advance(2);
85902
- const referenceNumbers_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85911
+ const referenceNumbers_r14 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85903
85912
  \u0275\u0275advance();
85904
- \u0275\u0275conditional(referenceNumbers_r15 ? 5 : -1);
85913
+ \u0275\u0275conditional(referenceNumbers_r14 ? 5 : -1);
85905
85914
  \u0275\u0275advance();
85906
- const corporationDetails_r16 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85915
+ const corporationDetails_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85907
85916
  \u0275\u0275advance();
85908
- \u0275\u0275conditional(corporationDetails_r16 ? 7 : -1);
85917
+ \u0275\u0275conditional(corporationDetails_r15 ? 7 : -1);
85909
85918
  \u0275\u0275advance();
85910
- const filingDetails_r17 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.FilingDetails));
85919
+ const filingDetails_r16 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.FilingDetails));
85911
85920
  \u0275\u0275advance();
85912
- \u0275\u0275conditional(filingDetails_r17 ? 9 : -1);
85921
+ \u0275\u0275conditional(filingDetails_r16 ? 9 : -1);
85913
85922
  \u0275\u0275advance();
85914
- const directorsArray_r18 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85923
+ const directorsArray_r17 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85915
85924
  \u0275\u0275advance();
85916
85925
  \u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
85917
85926
  \u0275\u0275advance();
85918
- \u0275\u0275conditional(directorsArray_r18 && directorsArray_r18.length ? 12 : 13);
85927
+ \u0275\u0275conditional(directorsArray_r17 && directorsArray_r17.length ? 12 : 13);
85919
85928
  \u0275\u0275advance(2);
85920
- const annualReportReminder_r19 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85929
+ const annualReportReminder_r18 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85921
85930
  \u0275\u0275advance();
85922
- \u0275\u0275conditional(annualReportReminder_r19 ? 15 : -1);
85931
+ \u0275\u0275conditional(annualReportReminder_r18 ? 15 : -1);
85923
85932
  }
85924
85933
  }, dependencies: [
85925
85934
  FilingFormGroupComponent,
85926
85935
  AlertComponent,
85927
85936
  ExpandableCardComponent,
85928
85937
  MatCheckbox,
85929
- MatDatepicker,
85930
- MatDatepickerInput,
85931
- MatFormField,
85932
- MatInput,
85933
85938
  MatRadioButton,
85934
85939
  MatRadioGroup,
85935
85940
  ReactiveFormsModule,
85936
- DefaultValueAccessor,
85937
85941
  NgControlStatus,
85938
85942
  NgControlStatusGroup,
85939
85943
  FormGroupDirective,
85940
85944
  FormControlName,
85941
85945
  TranslatePipe
85942
- ], 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 });
85946
+ ], 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 });
85943
85947
  };
85944
85948
  (() => {
85945
85949
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfDirectorsFormComponent, [{
@@ -86000,10 +86004,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86000
86004
  <strong>{{ 'Incorporation Number' | translate }}:</strong>\r
86001
86005
  {{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
86002
86006
  </p>\r
86003
- <p>\r
86004
- <strong>{{ 'Company Email' | translate }}:</strong>\r
86005
- {{ corporationDetails.get(controls.CompanyEmail)?.value }}\r
86006
- </p>\r
86007
+ <div class="company-email-field">\r
86008
+ <filing-form-group\r
86009
+ [form]="corporationDetails"\r
86010
+ [config]="companyEmailFields()"\r
86011
+ [isSubmitted]="isSubmitted()"\r
86012
+ (visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"\r
86013
+ />\r
86014
+ </div>\r
86007
86015
  </div>\r
86008
86016
  </expandable-card>\r
86009
86017
  }\r
@@ -86029,12 +86037,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86029
86037
  class="directors-change-checkbox"\r
86030
86038
  [formControlName]="controls.DirectorsAddedOrDeleted"\r
86031
86039
  (change)="\r
86032
- filingDetails.get(controls.ChangeDate)?.reset(\r
86033
- filingDetails.get(controls.DirectorsAddedOrDeleted)?.value\r
86034
- ? filingDetails.get(controls.ChangeDate)?.value\r
86035
- : null,\r
86036
- { emitEvent: false }\r
86037
- );\r
86038
86040
  filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false });\r
86039
86041
  onSectionValidChange('filingDetails', filingDetails.valid)\r
86040
86042
  "\r
@@ -86045,34 +86047,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86045
86047
  @if (filingDetails.get(controls.DirectorsAddedOrDeleted)?.value) {\r
86046
86048
  <div class="filing-details-grid">\r
86047
86049
  <div class="date-field">\r
86048
- <label>\r
86049
- {{ 'Date Directors were added or deleted' | translate }}<span>*</span>\r
86050
- </label>\r
86051
- <mat-form-field appearance="outline">\r
86052
- <input\r
86053
- matInput\r
86054
- [matDatepicker]="changeDatePicker"\r
86055
- [formControlName]="controls.ChangeDate"\r
86056
- placeholder="dd/mm/yyyy"\r
86057
- readonly\r
86058
- (click)="changeDatePicker.open()"\r
86059
- (dateChange)="onSectionValidChange('filingDetails', filingDetails.valid)"\r
86060
- />\r
86061
- <button\r
86062
- type="button"\r
86063
- class="calendar-trigger"\r
86064
- aria-label="Open date picker"\r
86065
- (click)="changeDatePicker.open()"\r
86066
- >\r
86067
- <span class="calendar-icon" aria-hidden="true"></span>\r
86068
- </button>\r
86069
- <mat-datepicker #changeDatePicker></mat-datepicker>\r
86070
- </mat-form-field>\r
86071
- <p class="hint">\r
86050
+ <p class="effective-date-description">\r
86072
86051
  {{\r
86073
- "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
86052
+ 'The date on which the individual(s) became or ceased to be a director:'\r
86074
86053
  | translate\r
86075
86054
  }}\r
86055
+ <strong>{{ getEffectiveDateDisplay(filingDetails.get(controls.ChangeDate)?.value) }}</strong>\r
86076
86056
  </p>\r
86077
86057
  </div>\r
86078
86058
  \r
@@ -86152,11 +86132,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86152
86132
  }\r
86153
86133
  </div>\r
86154
86134
  </div>\r
86155
- `, 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'] }]
86135
+ `, 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'] }]
86156
86136
  }], null, null);
86157
86137
  })();
86158
86138
  (() => {
86159
- (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 });
86139
+ (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 });
86160
86140
  })();
86161
86141
  }
86162
86142
  });
@@ -87831,11 +87811,20 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87831
87811
  \u0275\u0275property("content", ctx_r0.errors());
87832
87812
  }
87833
87813
  }
87834
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template(rf, ctx) {
87814
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_3_Template(rf, ctx) {
87815
+ if (rf & 1) {
87816
+ \u0275\u0275element(0, "alert", 2);
87817
+ }
87818
+ if (rf & 2) {
87819
+ const ctx_r0 = \u0275\u0275nextContext();
87820
+ \u0275\u0275property("content", ctx_r0.missingMessages());
87821
+ }
87822
+ }
87823
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template(rf, ctx) {
87835
87824
  if (rf & 1) {
87836
87825
  const _r2 = \u0275\u0275getCurrentView();
87837
87826
  \u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 7);
87838
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
87827
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template_filing_form_group_visiblyValidChange_1_listener($event) {
87839
87828
  \u0275\u0275restoreView(_r2);
87840
87829
  const ctx_r0 = \u0275\u0275nextContext();
87841
87830
  return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
@@ -87844,17 +87833,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87844
87833
  }
87845
87834
  if (rf & 2) {
87846
87835
  const ctx_r0 = \u0275\u0275nextContext();
87847
- const referenceNumbers_r3 = \u0275\u0275readContextLet(4);
87836
+ const referenceNumbers_r3 = \u0275\u0275readContextLet(5);
87848
87837
  \u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
87849
87838
  \u0275\u0275advance();
87850
87839
  \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
87851
87840
  }
87852
87841
  }
87853
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template(rf, ctx) {
87842
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template(rf, ctx) {
87854
87843
  if (rf & 1) {
87855
87844
  const _r4 = \u0275\u0275getCurrentView();
87856
87845
  \u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 7);
87857
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template_filing_form_group_visiblyValidChange_1_listener($event) {
87846
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template_filing_form_group_visiblyValidChange_1_listener($event) {
87858
87847
  \u0275\u0275restoreView(_r4);
87859
87848
  const ctx_r0 = \u0275\u0275nextContext();
87860
87849
  return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corpDetails", $event));
@@ -87863,232 +87852,129 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87863
87852
  }
87864
87853
  if (rf & 2) {
87865
87854
  const ctx_r0 = \u0275\u0275nextContext();
87866
- const corporationDetails_r5 = \u0275\u0275readContextLet(6);
87855
+ const corporationDetails_r5 = \u0275\u0275readContextLet(7);
87867
87856
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["corpDetails"] !== false)("title", ctx_r0.groups.CorporationDetails);
87868
87857
  \u0275\u0275advance();
87869
87858
  \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r5)("config", ctx_r0.corporationDetailsFields());
87870
87859
  }
87871
87860
  }
87872
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template(rf, ctx) {
87873
- if (rf & 1) {
87874
- const _r7 = \u0275\u0275getCurrentView();
87875
- \u0275\u0275elementStart(0, "filing-form-group", 7);
87876
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template_filing_form_group_visiblyValidChange_0_listener() {
87877
- \u0275\u0275restoreView(_r7);
87878
- const ctx_r0 = \u0275\u0275nextContext(2);
87879
- return \u0275\u0275resetView(ctx_r0.emitValidity());
87880
- });
87881
- \u0275\u0275elementEnd();
87882
- }
87883
- if (rf & 2) {
87884
- \u0275\u0275nextContext();
87885
- const registeredMailing_r8 = \u0275\u0275readContextLet(0);
87886
- const ctx_r0 = \u0275\u0275nextContext();
87887
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredMailing_r8)("config", ctx_r0.addressFields);
87888
- }
87889
- }
87890
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template(rf, ctx) {
87861
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Conditional_7_Template(rf, ctx) {
87891
87862
  if (rf & 1) {
87892
- const _r9 = \u0275\u0275getCurrentView();
87893
- \u0275\u0275element(0, "filing-form-group", 9);
87894
- \u0275\u0275elementStart(1, "filing-form-group", 7);
87895
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template_filing_form_group_visiblyValidChange_1_listener() {
87896
- \u0275\u0275restoreView(_r9);
87897
- const ctx_r0 = \u0275\u0275nextContext(2);
87898
- return \u0275\u0275resetView(ctx_r0.emitValidity());
87899
- });
87863
+ \u0275\u0275elementStart(0, "div", 12);
87864
+ \u0275\u0275text(1);
87865
+ \u0275\u0275pipe(2, "translate");
87900
87866
  \u0275\u0275elementEnd();
87901
87867
  }
87902
87868
  if (rf & 2) {
87903
- \u0275\u0275nextContext();
87904
- const registeredDelivery_r10 = \u0275\u0275readContextLet(1);
87905
- const ctx_r0 = \u0275\u0275nextContext();
87906
- const registeredOffice_r11 = \u0275\u0275readContextLet(8);
87907
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliveryNoteFields);
87869
+ const row_r6 = \u0275\u0275nextContext().$implicit;
87908
87870
  \u0275\u0275advance();
87909
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredDelivery_r10)("config", ctx_r0.addressFields);
87871
+ \u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r6.previous, " ");
87910
87872
  }
87911
87873
  }
87912
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template(rf, ctx) {
87874
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Template(rf, ctx) {
87913
87875
  if (rf & 1) {
87914
- const _r6 = \u0275\u0275getCurrentView();
87915
- \u0275\u0275declareLet(0)(1)(2);
87916
- \u0275\u0275elementStart(3, "expandable-card", 5)(4, "div", 8);
87917
- \u0275\u0275element(5, "filing-form-group", 9);
87918
- \u0275\u0275elementStart(6, "h4", 10);
87919
- \u0275\u0275text(7);
87920
- \u0275\u0275pipe(8, "translate");
87876
+ \u0275\u0275elementStart(0, "div", 9)(1, "div", 10)(2, "span", 11);
87877
+ \u0275\u0275text(3);
87878
+ \u0275\u0275pipe(4, "translate");
87921
87879
  \u0275\u0275elementEnd();
87922
- \u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template, 1, 3, "filing-form-group", 9);
87923
- \u0275\u0275elementStart(10, "h4", 10);
87924
- \u0275\u0275text(11);
87925
- \u0275\u0275pipe(12, "translate");
87880
+ \u0275\u0275text(5);
87881
+ \u0275\u0275pipe(6, "translate");
87926
87882
  \u0275\u0275elementEnd();
87927
- \u0275\u0275elementStart(13, "filing-form-group", 7);
87928
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template_filing_form_group_visiblyValidChange_13_listener() {
87929
- \u0275\u0275restoreView(_r6);
87930
- const ctx_r0 = \u0275\u0275nextContext();
87931
- return \u0275\u0275resetView(ctx_r0.emitValidity());
87932
- });
87883
+ \u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Conditional_7_Template, 3, 4, "div", 12);
87933
87884
  \u0275\u0275elementEnd();
87934
- \u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template, 2, 6);
87935
- \u0275\u0275elementEnd()();
87936
87885
  }
87937
87886
  if (rf & 2) {
87938
- const ctx_r0 = \u0275\u0275nextContext();
87939
- const registeredOffice_r11 = \u0275\u0275readContextLet(8);
87940
- const registeredMailing_r12 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewMailingAddress));
87941
- \u0275\u0275advance();
87942
- const registeredDelivery_r13 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewDeliveryAddress));
87943
- const registeredDeliverySame_r14 = ctx_r0.isChecked(registeredOffice_r11, ctx_r0.controls.DeliverySameAsMailing);
87944
- \u0275\u0275advance(2);
87945
- \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
87946
- \u0275\u0275advance(2);
87947
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.currentAddressesFields);
87948
- \u0275\u0275advance(2);
87949
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(8, 15, "New Mailing Address"));
87950
- \u0275\u0275advance(2);
87951
- \u0275\u0275conditional(registeredMailing_r12 ? 9 : -1);
87887
+ const row_r6 = ctx.$implicit;
87888
+ \u0275\u0275advance(3);
87889
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(4, 3, row_r6.label), ":");
87952
87890
  \u0275\u0275advance(2);
87953
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(12, 17, "New Delivery Address"));
87891
+ \u0275\u0275textInterpolate1(" ", row_r6.value || \u0275\u0275pipeBind1(6, 5, "Not specified"), " ");
87954
87892
  \u0275\u0275advance(2);
87955
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliverySameAsMailingFields);
87956
- \u0275\u0275advance();
87957
- \u0275\u0275conditional(!registeredDeliverySame_r14 && registeredDelivery_r13 ? 14 : -1);
87893
+ \u0275\u0275conditional(row_r6.previous ? 7 : -1);
87958
87894
  }
87959
87895
  }
87960
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template(rf, ctx) {
87896
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_Template(rf, ctx) {
87961
87897
  if (rf & 1) {
87962
- const _r17 = \u0275\u0275getCurrentView();
87963
- \u0275\u0275elementStart(0, "filing-form-group", 7);
87964
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template_filing_form_group_visiblyValidChange_0_listener() {
87965
- \u0275\u0275restoreView(_r17);
87966
- const ctx_r0 = \u0275\u0275nextContext(3);
87967
- return \u0275\u0275resetView(ctx_r0.emitValidity());
87968
- });
87969
- \u0275\u0275elementEnd();
87898
+ \u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
87899
+ \u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Template, 8, 7, "div", 9, _forTrack05);
87900
+ \u0275\u0275elementEnd()();
87970
87901
  }
87971
87902
  if (rf & 2) {
87972
- \u0275\u0275nextContext(2);
87973
- const recordsMailing_r18 = \u0275\u0275readContextLet(0);
87974
87903
  const ctx_r0 = \u0275\u0275nextContext();
87975
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsMailing_r18)("config", ctx_r0.addressFields);
87904
+ \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
87905
+ \u0275\u0275advance(2);
87906
+ \u0275\u0275repeater(ctx_r0.registeredRows());
87976
87907
  }
87977
87908
  }
87978
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template(rf, ctx) {
87909
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Conditional_7_Template(rf, ctx) {
87979
87910
  if (rf & 1) {
87980
- const _r19 = \u0275\u0275getCurrentView();
87981
- \u0275\u0275elementStart(0, "filing-form-group", 7);
87982
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template_filing_form_group_visiblyValidChange_0_listener() {
87983
- \u0275\u0275restoreView(_r19);
87984
- const ctx_r0 = \u0275\u0275nextContext(3);
87985
- return \u0275\u0275resetView(ctx_r0.emitValidity());
87986
- });
87911
+ \u0275\u0275elementStart(0, "div", 12);
87912
+ \u0275\u0275text(1);
87913
+ \u0275\u0275pipe(2, "translate");
87987
87914
  \u0275\u0275elementEnd();
87988
87915
  }
87989
87916
  if (rf & 2) {
87990
- \u0275\u0275nextContext(2);
87991
- const recordsDelivery_r20 = \u0275\u0275readContextLet(1);
87992
- const ctx_r0 = \u0275\u0275nextContext();
87993
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsDelivery_r20)("config", ctx_r0.addressFields);
87917
+ const row_r7 = \u0275\u0275nextContext().$implicit;
87918
+ \u0275\u0275advance();
87919
+ \u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r7.previous, " ");
87994
87920
  }
87995
87921
  }
87996
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template(rf, ctx) {
87922
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Template(rf, ctx) {
87997
87923
  if (rf & 1) {
87998
- const _r16 = \u0275\u0275getCurrentView();
87999
- \u0275\u0275elementStart(0, "h4", 10);
88000
- \u0275\u0275text(1);
88001
- \u0275\u0275pipe(2, "translate");
87924
+ \u0275\u0275elementStart(0, "div", 9)(1, "div", 10)(2, "span", 11);
87925
+ \u0275\u0275text(3);
87926
+ \u0275\u0275pipe(4, "translate");
88002
87927
  \u0275\u0275elementEnd();
88003
- \u0275\u0275template(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template, 1, 3, "filing-form-group", 9);
88004
- \u0275\u0275elementStart(4, "h4", 10);
88005
87928
  \u0275\u0275text(5);
88006
87929
  \u0275\u0275pipe(6, "translate");
88007
87930
  \u0275\u0275elementEnd();
88008
- \u0275\u0275elementStart(7, "filing-form-group", 7);
88009
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template_filing_form_group_visiblyValidChange_7_listener() {
88010
- \u0275\u0275restoreView(_r16);
88011
- const ctx_r0 = \u0275\u0275nextContext(2);
88012
- return \u0275\u0275resetView(ctx_r0.emitValidity());
88013
- });
87931
+ \u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Conditional_7_Template, 3, 4, "div", 12);
88014
87932
  \u0275\u0275elementEnd();
88015
- \u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template, 1, 3, "filing-form-group", 9);
88016
87933
  }
88017
87934
  if (rf & 2) {
88018
- \u0275\u0275nextContext();
88019
- const recordsMailing_r18 = \u0275\u0275readContextLet(0);
88020
- const recordsDelivery_r20 = \u0275\u0275readContextLet(1);
88021
- const recordsDeliverySame_r21 = \u0275\u0275readContextLet(3);
88022
- const ctx_r0 = \u0275\u0275nextContext();
88023
- const recordsOffice_r22 = \u0275\u0275readContextLet(10);
88024
- \u0275\u0275advance();
88025
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 7, "New Mailing Address"));
88026
- \u0275\u0275advance(2);
88027
- \u0275\u0275conditional(recordsMailing_r18 ? 3 : -1);
87935
+ const row_r7 = ctx.$implicit;
87936
+ \u0275\u0275advance(3);
87937
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(4, 3, row_r7.label), ":");
88028
87938
  \u0275\u0275advance(2);
88029
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 9, "New Delivery Address"));
87939
+ \u0275\u0275textInterpolate1(" ", row_r7.value || \u0275\u0275pipeBind1(6, 5, "Not specified"), " ");
88030
87940
  \u0275\u0275advance(2);
88031
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.deliverySameAsMailingFields);
88032
- \u0275\u0275advance();
88033
- \u0275\u0275conditional(!recordsDeliverySame_r21 && recordsDelivery_r20 ? 8 : -1);
87941
+ \u0275\u0275conditional(row_r7.previous ? 7 : -1);
88034
87942
  }
88035
87943
  }
88036
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template(rf, ctx) {
87944
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_Template(rf, ctx) {
88037
87945
  if (rf & 1) {
88038
- const _r15 = \u0275\u0275getCurrentView();
88039
- \u0275\u0275declareLet(0)(1)(2)(3);
88040
- \u0275\u0275elementStart(4, "expandable-card", 5)(5, "div", 8);
88041
- \u0275\u0275element(6, "filing-form-group", 9);
88042
- \u0275\u0275elementStart(7, "filing-form-group", 7);
88043
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_7_listener() {
88044
- \u0275\u0275restoreView(_r15);
88045
- const ctx_r0 = \u0275\u0275nextContext();
88046
- return \u0275\u0275resetView(ctx_r0.emitValidity());
88047
- });
88048
- \u0275\u0275elementEnd();
88049
- \u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template, 9, 11);
87946
+ \u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
87947
+ \u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Template, 8, 7, "div", 9, _forTrack05);
88050
87948
  \u0275\u0275elementEnd()();
88051
87949
  }
88052
87950
  if (rf & 2) {
88053
87951
  const ctx_r0 = \u0275\u0275nextContext();
88054
- const recordsOffice_r22 = \u0275\u0275readContextLet(10);
88055
- \u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewMailingAddress));
88056
- \u0275\u0275advance();
88057
- \u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewDeliveryAddress));
88058
- const recordsSameAsRegistered_r23 = ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.SameAsRegisteredOffice);
88059
- \u0275\u0275advance(2);
88060
- \u0275\u0275storeLet(ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.DeliverySameAsMailing));
88061
- \u0275\u0275advance();
88062
87952
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
88063
87953
  \u0275\u0275advance(2);
88064
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.currentAddressesFields);
88065
- \u0275\u0275advance();
88066
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.sameAsRegisteredOfficeFields);
88067
- \u0275\u0275advance();
88068
- \u0275\u0275conditional(!recordsSameAsRegistered_r23 ? 8 : -1);
87954
+ \u0275\u0275repeater(ctx_r0.recordsRows());
88069
87955
  }
88070
87956
  }
88071
- function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template(rf, ctx) {
87957
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_14_Template(rf, ctx) {
88072
87958
  if (rf & 1) {
88073
- \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p");
87959
+ \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "p");
88074
87960
  \u0275\u0275text(3);
88075
87961
  \u0275\u0275pipe(4, "translate");
88076
87962
  \u0275\u0275elementEnd();
88077
- \u0275\u0275elementStart(5, "mat-radio-group", 12)(6, "mat-radio-button", 13);
87963
+ \u0275\u0275elementStart(5, "mat-radio-group", 14)(6, "mat-radio-button", 15);
88078
87964
  \u0275\u0275text(7);
88079
87965
  \u0275\u0275pipe(8, "translate");
88080
87966
  \u0275\u0275elementEnd();
88081
- \u0275\u0275elementStart(9, "mat-radio-button", 13);
87967
+ \u0275\u0275elementStart(9, "mat-radio-button", 15);
88082
87968
  \u0275\u0275text(10);
88083
87969
  \u0275\u0275pipe(11, "translate");
88084
87970
  \u0275\u0275elementEnd()()()();
88085
87971
  }
88086
87972
  if (rf & 2) {
88087
87973
  const ctx_r0 = \u0275\u0275nextContext();
88088
- const annualReportReminder_r24 = \u0275\u0275readContextLet(12);
87974
+ const annualReportReminder_r8 = \u0275\u0275readContextLet(13);
88089
87975
  \u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
88090
87976
  \u0275\u0275advance();
88091
- \u0275\u0275property("formGroup", annualReportReminder_r24);
87977
+ \u0275\u0275property("formGroup", annualReportReminder_r8);
88092
87978
  \u0275\u0275advance(2);
88093
87979
  \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."), " ");
88094
87980
  \u0275\u0275advance(2);
@@ -88103,7 +87989,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88103
87989
  \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(11, 13, "No, I do not need to be reminded"), " ");
88104
87990
  }
88105
87991
  }
88106
- var BritishColumbiaChangeOfOfficeAddressesFormComponent;
87992
+ var _forTrack05, BritishColumbiaChangeOfOfficeAddressesFormComponent;
88107
87993
  var init_change_of_office_addresses_form_component = __esm({
88108
87994
  "src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts"() {
88109
87995
  init_core();
@@ -88116,11 +88002,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88116
88002
  init_expandable_card_component();
88117
88003
  init_british_columbia_form_enums();
88118
88004
  init_british_columbia_change_of_office_addresses_form_constants();
88119
- init_forms_utils();
88120
88005
  init_BritishColumbiaConstants();
88121
88006
  init_british_columbia_change_of_office_addresses_form_helper();
88122
88007
  init_core();
88123
88008
  init_forms();
88009
+ _forTrack05 = ($index, $item) => $item.label;
88124
88010
  BritishColumbiaChangeOfOfficeAddressesFormComponent = class _BritishColumbiaChangeOfOfficeAddressesFormComponent {
88125
88011
  form = input.required();
88126
88012
  task = input();
@@ -88143,17 +88029,38 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88143
88029
  deliveryNoteFields = BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS;
88144
88030
  deliverySameAsMailingFields = BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS;
88145
88031
  sameAsRegisteredOfficeFields = BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
88032
+ translate = inject(TranslateService);
88146
88033
  sectionValidity = {};
88147
88034
  isVisiblyValid() {
88148
88035
  return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
88149
88036
  }
88150
88037
  isRegisteredOfficeValid() {
88151
- const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
88152
- return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
88038
+ return !this.isRegisteredMissing();
88153
88039
  }
88154
88040
  isRecordsOfficeValid() {
88155
- const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
88156
- return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
88041
+ return !this.isRecordsMissing();
88042
+ }
88043
+ /** One message per missing office address, shown in the banner at the top of the form. */
88044
+ missingMessages() {
88045
+ const t = (key) => this.translate.instant(key);
88046
+ const records = this.getFormGroup(this.groups.RecordsOfficeAddress);
88047
+ const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
88048
+ const [regMailing, regDelivery] = this.registeredRows();
88049
+ const [recMailing, recDelivery] = this.recordsRows();
88050
+ return [
88051
+ !regMailing.value && t("The Registered Office mailing address is missing."),
88052
+ !regDelivery.value && t("The Registered Office delivery address is missing."),
88053
+ // "Same as Registered Office" is already reported by the registered office messages.
88054
+ !recordsSameAsRegistered && !recMailing.value && t("The Records Office mailing address is missing."),
88055
+ !recordsSameAsRegistered && !recDelivery.value && t("The Records Office delivery address is missing.")
88056
+ ].filter((m) => !!m);
88057
+ }
88058
+ /** The incoming Shared Address supplied no new address for a line (and none is on the register). */
88059
+ isRegisteredMissing() {
88060
+ return this.registeredRows().some((row) => !row.value);
88061
+ }
88062
+ isRecordsMissing() {
88063
+ return this.recordsRows().some((row) => !row.value);
88157
88064
  }
88158
88065
  isChecked(office, control) {
88159
88066
  return Boolean(office?.get(control)?.value);
@@ -88171,28 +88078,77 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88171
88078
  getAddressGroup(office, control) {
88172
88079
  return office?.get(control) ?? null;
88173
88080
  }
88174
- isAddressValid(office, control) {
88175
- const group2 = this.getAddressGroup(office, control);
88176
- return !group2 || group2.disabled || isFormGroupVisiblyValid(group2, this.addressFields);
88081
+ /** Registered office lines: the new (incoming) address and, if it changed, the previous one. */
88082
+ registeredRows() {
88083
+ const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
88084
+ return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
88085
+ }
88086
+ /** Records office lines; "Same as Registered Office" reuses the registered office's new lines. */
88087
+ recordsRows() {
88088
+ const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
88089
+ if (this.isChecked(office, this.controls.SameAsRegisteredOffice)) {
88090
+ const registered = this.registeredRows();
88091
+ const current = this.currentOf(office);
88092
+ return registered.map((row, i) => __spreadProps(__spreadValues({}, row), {
88093
+ previous: this.changedPrevious(row.value, i === 0 ? current.mailing : current.delivery)
88094
+ }));
88095
+ }
88096
+ return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
88097
+ }
88098
+ buildRows(office, deliverySame) {
88099
+ const current = this.currentOf(office);
88100
+ const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress));
88101
+ const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress));
88102
+ return [
88103
+ {
88104
+ label: "Mailing Address",
88105
+ value: mailing,
88106
+ previous: this.changedPrevious(mailing, current.mailing)
88107
+ },
88108
+ {
88109
+ label: "Delivery Address",
88110
+ value: delivery,
88111
+ previous: this.changedPrevious(delivery, current.delivery)
88112
+ }
88113
+ ];
88114
+ }
88115
+ currentOf(office) {
88116
+ return {
88117
+ mailing: office?.get(this.controls.CurrentMailingAddress)?.value ?? "",
88118
+ delivery: office?.get(this.controls.CurrentDeliveryAddress)?.value ?? ""
88119
+ };
88120
+ }
88121
+ formatNew(group2) {
88122
+ const c = this.controls;
88123
+ const v = group2?.getRawValue() ?? {};
88124
+ if (![v[c.AddressLine1], v[c.City], v[c.PostalCode]].some((part) => part?.trim())) {
88125
+ return "";
88126
+ }
88127
+ 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(", ");
88128
+ }
88129
+ /** The previous address, only when it exists and differs from the new one. */
88130
+ changedPrevious(next, previous) {
88131
+ const normalize = (s) => s.toLowerCase().replace(/[^a-z0-9]/g, "");
88132
+ return previous && normalize(previous) !== normalize(next) ? previous : "";
88177
88133
  }
88178
88134
  static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
88179
88135
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
88180
88136
  };
88181
- 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) {
88137
+ 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: 15, vars: 11, 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"], [1, "body-1-regular", "grey"], [1, "body-1-semibold"], [1, "change-of-office-addresses-form-previous"], [1, "annual-reminder", 3, "formGroup"], [3, "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfOfficeAddressesFormComponent_Template(rf, ctx) {
88182
88138
  if (rf & 1) {
88183
88139
  \u0275\u0275elementStart(0, "div", 0);
88184
- \u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
88185
- \u0275\u0275elementStart(3, "div", 3);
88186
- \u0275\u0275declareLet(4);
88187
- \u0275\u0275template(5, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 4);
88188
- \u0275\u0275declareLet(6);
88189
- \u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template, 2, 6, "expandable-card", 5);
88190
- \u0275\u0275declareLet(8);
88191
- \u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template, 15, 19, "expandable-card", 5);
88192
- \u0275\u0275declareLet(10);
88193
- \u0275\u0275template(11, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template, 9, 13, "expandable-card", 5);
88194
- \u0275\u0275declareLet(12);
88195
- \u0275\u0275template(13, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template, 12, 15, "expandable-card", 6);
88140
+ \u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2)(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_3_Template, 1, 1, "alert", 2);
88141
+ \u0275\u0275elementStart(4, "div", 3);
88142
+ \u0275\u0275declareLet(5);
88143
+ \u0275\u0275template(6, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template, 2, 4, "expandable-card", 4);
88144
+ \u0275\u0275declareLet(7);
88145
+ \u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template, 2, 6, "expandable-card", 5);
88146
+ \u0275\u0275declareLet(9);
88147
+ \u0275\u0275template(10, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_Template, 4, 3, "expandable-card", 5);
88148
+ \u0275\u0275declareLet(11);
88149
+ \u0275\u0275template(12, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_Template, 4, 3, "expandable-card", 5);
88150
+ \u0275\u0275declareLet(13);
88151
+ \u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_14_Template, 12, 15, "expandable-card", 6);
88196
88152
  \u0275\u0275elementEnd()();
88197
88153
  }
88198
88154
  if (rf & 2) {
@@ -88200,26 +88156,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88200
88156
  \u0275\u0275conditional(ctx.isNote() ? 1 : -1);
88201
88157
  \u0275\u0275advance();
88202
88158
  \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
88203
- \u0275\u0275advance(2);
88204
- const referenceNumbers_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
88205
- \u0275\u0275advance();
88206
- \u0275\u0275conditional(referenceNumbers_r25 ? 5 : -1);
88207
- \u0275\u0275advance();
88208
- const corporationDetails_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
88209
- \u0275\u0275advance();
88210
- \u0275\u0275conditional(corporationDetails_r26 ? 7 : -1);
88211
88159
  \u0275\u0275advance();
88212
- const registeredOffice_r27 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
88160
+ \u0275\u0275conditional(ctx.missingMessages().length ? 3 : -1);
88161
+ \u0275\u0275advance(2);
88162
+ const referenceNumbers_r9 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
88213
88163
  \u0275\u0275advance();
88214
- \u0275\u0275conditional(registeredOffice_r27 ? 9 : -1);
88164
+ \u0275\u0275conditional(referenceNumbers_r9 ? 6 : -1);
88215
88165
  \u0275\u0275advance();
88216
- const recordsOffice_r28 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RecordsOfficeAddress));
88166
+ const corporationDetails_r10 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
88217
88167
  \u0275\u0275advance();
88218
- \u0275\u0275conditional(recordsOffice_r28 ? 11 : -1);
88168
+ \u0275\u0275conditional(corporationDetails_r10 ? 8 : -1);
88169
+ const registeredOffice_r11 = ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress);
88170
+ \u0275\u0275advance(2);
88171
+ \u0275\u0275conditional(registeredOffice_r11 ? 10 : -1);
88172
+ const recordsOffice_r12 = ctx.getFormGroup(ctx.groups.RecordsOfficeAddress);
88173
+ \u0275\u0275advance(2);
88174
+ \u0275\u0275conditional(recordsOffice_r12 ? 12 : -1);
88219
88175
  \u0275\u0275advance();
88220
- const annualReportReminder_r29 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
88176
+ const annualReportReminder_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
88221
88177
  \u0275\u0275advance();
88222
- \u0275\u0275conditional(annualReportReminder_r29 ? 13 : -1);
88178
+ \u0275\u0275conditional(annualReportReminder_r13 ? 14 : -1);
88223
88179
  }
88224
88180
  }, dependencies: [
88225
88181
  FilingFormGroupComponent,
@@ -88233,7 +88189,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88233
88189
  FormGroupDirective,
88234
88190
  FormControlName,
88235
88191
  TranslatePipe
88236
- ], 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 });
88192
+ ], 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-size: 13px !important;\n line-height: 18px;\n font-family: "Open Sans";\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 });
88237
88193
  };
88238
88194
  (() => {
88239
88195
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
@@ -88261,6 +88217,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88261
88217
  [content]="errors()"\r
88262
88218
  />\r
88263
88219
  }\r
88220
+ \r
88221
+ @if (missingMessages().length) {\r
88222
+ <alert\r
88223
+ title="The following issues need to be resolved before proceeding:"\r
88224
+ [content]="missingMessages()"\r
88225
+ />\r
88226
+ }\r
88264
88227
  \r
88265
88228
  <div class="change-of-office-addresses-form-content">\r
88266
88229
  @let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
@@ -88297,54 +88260,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88297
88260
  @let registeredOffice = getFormGroup(groups.RegisteredOfficeAddress);\r
88298
88261
  \r
88299
88262
  @if (registeredOffice) {\r
88300
- @let registeredMailing = getAddressGroup(registeredOffice, controls.NewMailingAddress);\r
88301
- @let registeredDelivery = getAddressGroup(registeredOffice, controls.NewDeliveryAddress);\r
88302
- @let registeredDeliverySame = isChecked(registeredOffice, controls.DeliverySameAsMailing);\r
88303
- \r
88304
88263
  <expandable-card\r
88305
88264
  [isStatusIcon]="!readonly()"\r
88306
88265
  [isValid]="isRegisteredOfficeValid()"\r
88307
88266
  [title]="groups.RegisteredOfficeAddress"\r
88308
88267
  >\r
88309
88268
  <div class="change-of-office-addresses-form-item">\r
88310
- <filing-form-group\r
88311
- [isSubmitted]="isSubmitted()"\r
88312
- [form]="registeredOffice"\r
88313
- [config]="currentAddressesFields"\r
88314
- />\r
88315
- \r
88316
- <h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
88317
- \r
88318
- @if (registeredMailing) {\r
88319
- <filing-form-group\r
88320
- [isSubmitted]="isSubmitted()"\r
88321
- [form]="registeredMailing"\r
88322
- [config]="addressFields"\r
88323
- (visiblyValidChange)="emitValidity()"\r
88324
- />\r
88325
- }\r
88326
- \r
88327
- <h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
88328
- \r
88329
- <filing-form-group\r
88330
- [isSubmitted]="isSubmitted()"\r
88331
- [form]="registeredOffice"\r
88332
- [config]="deliverySameAsMailingFields"\r
88333
- (visiblyValidChange)="emitValidity()"\r
88334
- />\r
88335
- \r
88336
- @if (!registeredDeliverySame && registeredDelivery) {\r
88337
- <filing-form-group\r
88338
- [isSubmitted]="isSubmitted()"\r
88339
- [form]="registeredOffice"\r
88340
- [config]="deliveryNoteFields"\r
88341
- />\r
88342
- <filing-form-group\r
88343
- [isSubmitted]="isSubmitted()"\r
88344
- [form]="registeredDelivery"\r
88345
- [config]="addressFields"\r
88346
- (visiblyValidChange)="emitValidity()"\r
88347
- />\r
88269
+ @for (row of registeredRows(); track row.label) {\r
88270
+ <div class="change-of-office-addresses-form-address">\r
88271
+ <div class="body-1-regular grey">\r
88272
+ <span class="body-1-semibold">{{ row.label | translate }}:</span>\r
88273
+ {{ row.value || ('Not specified' | translate) }}\r
88274
+ </div>\r
88275
+ @if (row.previous) {\r
88276
+ <div class="change-of-office-addresses-form-previous">\r
88277
+ {{ 'Previous' | translate }}: {{ row.previous }}\r
88278
+ </div>\r
88279
+ }\r
88280
+ </div>\r
88348
88281
  }\r
88349
88282
  </div>\r
88350
88283
  </expandable-card>\r
@@ -88354,59 +88287,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88354
88287
  @let recordsOffice = getFormGroup(groups.RecordsOfficeAddress);\r
88355
88288
  \r
88356
88289
  @if (recordsOffice) {\r
88357
- @let recordsMailing = getAddressGroup(recordsOffice, controls.NewMailingAddress);\r
88358
- @let recordsDelivery = getAddressGroup(recordsOffice, controls.NewDeliveryAddress);\r
88359
- @let recordsSameAsRegistered = isChecked(recordsOffice, controls.SameAsRegisteredOffice);\r
88360
- @let recordsDeliverySame = isChecked(recordsOffice, controls.DeliverySameAsMailing);\r
88361
- \r
88362
88290
  <expandable-card\r
88363
88291
  [isStatusIcon]="!readonly()"\r
88364
88292
  [isValid]="isRecordsOfficeValid()"\r
88365
88293
  [title]="groups.RecordsOfficeAddress"\r
88366
88294
  >\r
88367
88295
  <div class="change-of-office-addresses-form-item">\r
88368
- <filing-form-group\r
88369
- [isSubmitted]="isSubmitted()"\r
88370
- [form]="recordsOffice"\r
88371
- [config]="currentAddressesFields"\r
88372
- />\r
88373
- \r
88374
- <filing-form-group\r
88375
- [isSubmitted]="isSubmitted()"\r
88376
- [form]="recordsOffice"\r
88377
- [config]="sameAsRegisteredOfficeFields"\r
88378
- (visiblyValidChange)="emitValidity()"\r
88379
- />\r
88380
- \r
88381
- @if (!recordsSameAsRegistered) {\r
88382
- <h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
88383
- \r
88384
- @if (recordsMailing) {\r
88385
- <filing-form-group\r
88386
- [isSubmitted]="isSubmitted()"\r
88387
- [form]="recordsMailing"\r
88388
- [config]="addressFields"\r
88389
- (visiblyValidChange)="emitValidity()"\r
88390
- />\r
88391
- }\r
88392
- \r
88393
- <h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
88394
- \r
88395
- <filing-form-group\r
88396
- [isSubmitted]="isSubmitted()"\r
88397
- [form]="recordsOffice"\r
88398
- [config]="deliverySameAsMailingFields"\r
88399
- (visiblyValidChange)="emitValidity()"\r
88400
- />\r
88401
- \r
88402
- @if (!recordsDeliverySame && recordsDelivery) {\r
88403
- <filing-form-group\r
88404
- [isSubmitted]="isSubmitted()"\r
88405
- [form]="recordsDelivery"\r
88406
- [config]="addressFields"\r
88407
- (visiblyValidChange)="emitValidity()"\r
88408
- />\r
88409
- }\r
88296
+ @for (row of recordsRows(); track row.label) {\r
88297
+ <div class="change-of-office-addresses-form-address">\r
88298
+ <div class="body-1-regular grey">\r
88299
+ <span class="body-1-semibold">{{ row.label | translate }}:</span>\r
88300
+ {{ row.value || ('Not specified' | translate) }}\r
88301
+ </div>\r
88302
+ @if (row.previous) {\r
88303
+ <div class="change-of-office-addresses-form-previous">\r
88304
+ {{ 'Previous' | translate }}: {{ row.previous }}\r
88305
+ </div>\r
88306
+ }\r
88307
+ </div>\r
88410
88308
  }\r
88411
88309
  </div>\r
88412
88310
  </expandable-card>\r
@@ -88436,11 +88334,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88436
88334
  }\r
88437
88335
  </div>\r
88438
88336
  </div>\r
88439
- `, 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"] }]
88337
+ `, 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-size: 13px !important;\n line-height: 18px;\n font-family: "Open Sans";\n font-style: italic;\n color: var(--filing-modal-color-grey-mid);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */\n'] }]
88440
88338
  }], null, null);
88441
88339
  })();
88442
88340
  (() => {
88443
- (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 });
88341
+ (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: 61 });
88444
88342
  })();
88445
88343
  }
88446
88344
  });
@@ -90824,7 +90722,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
90824
90722
  \u0275\u0275pipe(7, "translate");
90825
90723
  \u0275\u0275elementEnd();
90826
90724
  \u0275\u0275elementStart(8, "ul", 16);
90827
- \u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17, _forTrack05);
90725
+ \u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17, _forTrack06);
90828
90726
  \u0275\u0275elementEnd()();
90829
90727
  \u0275\u0275elementStart(11, "span", 17);
90830
90728
  \u0275\u0275text(12);
@@ -91027,7 +90925,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
91027
90925
  \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", contactForm_r24)("config", ctx_r0.contactControl);
91028
90926
  }
91029
90927
  }
91030
- var _c016, _forTrack05, FederalIncorporationFormComponent;
90928
+ var _c016, _forTrack06, FederalIncorporationFormComponent;
91031
90929
  var init_federal_incorporation_form_component = __esm({
91032
90930
  "src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts"() {
91033
90931
  init_core();
@@ -91052,7 +90950,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
91052
90950
  init_common();
91053
90951
  init_core();
91054
90952
  _c016 = ["*"];
91055
- _forTrack05 = ($index, $item) => $item.affiliationID;
90953
+ _forTrack06 = ($index, $item) => $item.affiliationID;
91056
90954
  FederalIncorporationFormComponent = class _FederalIncorporationFormComponent {
91057
90955
  form = input.required();
91058
90956
  isNote = input(false);
@@ -95652,6 +95550,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95652
95550
  }
95653
95551
  function findDirectorNumber(affiliation, extract) {
95654
95552
  const target = normaliseDirectorName(affiliation);
95553
+ const targetId = String(affiliation?._id ?? affiliation?.id ?? "").trim();
95655
95554
  let result;
95656
95555
  const visit = (value) => {
95657
95556
  if (result !== void 0 || value === null || value === void 0)
@@ -95664,7 +95563,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95664
95563
  return;
95665
95564
  const record = value;
95666
95565
  const number = record["directorNumber"] ?? record["DirectorNumber"];
95667
- if (number !== void 0 && normaliseDirectorName(record) === target) {
95566
+ const recordId = String(record["_id"] ?? record["id"] ?? record["affiliationId"] ?? "").trim();
95567
+ if (number !== void 0 && (targetId && recordId === targetId || normaliseDirectorName(record) === target)) {
95668
95568
  const parsed = Number(number);
95669
95569
  if (Number.isFinite(parsed))
95670
95570
  result = parsed;
@@ -96371,6 +96271,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96371
96271
  }
96372
96272
  }
96373
96273
  if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
96274
+ if (task.deltaData?.validatedData) {
96275
+ this.bcCurrentDataServiceOrderId = task.deltaData.validatedData.currentDataServiceOrderId ?? "";
96276
+ this.bcDataExtractTaskId = task._id;
96277
+ return;
96278
+ }
96374
96279
  const signature = this._signature();
96375
96280
  if (!signature)
96376
96281
  return;
@@ -96988,12 +96893,41 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96988
96893
  return "Initial Return Draft";
96989
96894
  }
96990
96895
  onEditClick() {
96991
- if (isUpdateMaintain(this.task())) {
96896
+ const task = this.task();
96897
+ if (!task)
96898
+ return;
96899
+ if (isUpdateMaintain(task)) {
96992
96900
  this.serviceOrderId = "";
96993
96901
  void this.getCurrentData();
96902
+ } else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
96903
+ this.bcDataExtractTaskId = "";
96904
+ void this.refreshBritishColumbiaCurrentDataExtract();
96994
96905
  }
96995
96906
  this.activeStep.set(Step.Validate);
96996
96907
  }
96908
+ refreshBritishColumbiaCurrentDataExtract() {
96909
+ return __async(this, null, function* () {
96910
+ const task = this.task();
96911
+ const signature = this._signature();
96912
+ if (!task || !signature || !isChangeOfPrincipalsTask(task))
96913
+ return;
96914
+ const { request, issues } = buildBritishColumbiaDataExtractOrder(task, task.deltaData?.companyPassword);
96915
+ if (issues.length) {
96916
+ this.errors.set(issues);
96917
+ return;
96918
+ }
96919
+ this.isLoading.set(true);
96920
+ try {
96921
+ this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
96922
+ this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
96923
+ this.bcDataExtractTaskId = task._id;
96924
+ } catch (error) {
96925
+ this.handleCatchError(error);
96926
+ } finally {
96927
+ this.isLoading.set(false);
96928
+ }
96929
+ });
96930
+ }
96997
96931
  parseError(errors) {
96998
96932
  return errors.map((item) => (item["ErrorMessage"] ?? item["Message"] ?? "").toString().trim()).filter((message) => message.length > 0);
96999
96933
  }
@@ -97319,7 +97253,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
97319
97253
  }], () => [], null);
97320
97254
  })();
97321
97255
  (() => {
97322
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 97 });
97256
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 98 });
97323
97257
  })();
97324
97258
  }
97325
97259
  });
@@ -101969,6 +101903,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
101969
101903
  "File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
101970
101904
  "Records Office Address": "Records Office Address",
101971
101905
  "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.",
101906
+ "The Registered Office mailing address is missing.": "The Registered Office mailing address is missing.",
101907
+ "The Registered Office delivery address is missing.": "The Registered Office delivery address is missing.",
101908
+ "The Records Office mailing address is missing.": "The Records Office mailing address is missing.",
101909
+ "The Records Office delivery address is missing.": "The Records Office delivery address is missing.",
101910
+ "Mailing Address": "Mailing Address",
101911
+ "Delivery Address": "Delivery Address",
101972
101912
  "Current Mailing Address": "Current Mailing Address",
101973
101913
  "Current Delivery Address": "Current Delivery Address",
101974
101914
  "New Mailing Address": "New Mailing Address",
@@ -102325,6 +102265,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
102325
102265
  "Without Par Value": "Sans valeur nominale",
102326
102266
  "File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
102327
102267
  "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.",
102268
+ "The Registered Office mailing address is missing.": "L'adresse postale du si\xE8ge social est manquante.",
102269
+ "The Registered Office delivery address is missing.": "L'adresse de livraison du si\xE8ge social est manquante.",
102270
+ "The Records Office mailing address is missing.": "L'adresse postale du bureau des registres est manquante.",
102271
+ "The Records Office delivery address is missing.": "L'adresse de livraison du bureau des registres est manquante.",
102272
+ "Mailing Address": "Adresse postale",
102273
+ "Delivery Address": "Adresse de livraison",
102328
102274
  "Current Mailing Address": "Adresse postale actuelle",
102329
102275
  "Current Delivery Address": "Adresse de livraison actuelle",
102330
102276
  "New Mailing Address": "Nouvelle adresse postale",