@dyedurham/search-and-file-widget 2.0.93 → 2.0.94

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.
@@ -56266,6 +56266,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
56266
56266
  TaskType2["Amendments"] = "Amendments";
56267
56267
  TaskType2["ChangeOfCompanyName"] = "Change of Company Name";
56268
56268
  TaskType2["ChangeOfAddress"] = "Change of Address";
56269
+ TaskType2["ChangeOfSharedAddress"] = "Change of Shared Address";
56269
56270
  TaskType2["ChangeOfPrincipals"] = "Change of Principals";
56270
56271
  TaskType2["RegistrationCompliance"] = "Registration Compliance";
56271
56272
  TaskType2["Continuance"] = "Continuance";
@@ -57884,8 +57885,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
57884
57885
 
57885
57886
  // src/app/utils/common.utils.ts
57886
57887
  function buildValidationError(httpStatus, r) {
57887
- const msgs = (r.Errors ?? r.errors ?? []).map((e) => e.ErrorMessage || e.Message || e.message || e.Code || JSON.stringify(e)).filter(Boolean);
57888
- return new Error(msgs.length ? msgs.join(" | ") : "Validation failed.");
57888
+ const msgs = (r.Errors ?? []).map((e) => e.ErrorMessage || e.Message || e.message || e.Code || JSON.stringify(e)).filter(Boolean);
57889
+ const status = r.Status ? String(r.Status) : "ValidationFailed";
57890
+ return new Error(msgs.length ? `eCore validation failed (HTTP ${httpStatus}, ${status}): ${msgs.join(" | ")}` : `eCore validation failed (HTTP ${httpStatus}, ${status}).`);
57889
57891
  }
57890
57892
  function joinUrl(base, path) {
57891
57893
  const b = base.endsWith("/") ? base.slice(0, -1) : base;
@@ -58084,6 +58086,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58084
58086
  function isChangeOfPrincipalsTask(task) {
58085
58087
  return task?._taskType === TaskType.ChangeOfPrincipals;
58086
58088
  }
58089
+ function isChangeOfAddressTask(task) {
58090
+ return task?._taskType === TaskType.ChangeOfSharedAddress || task?._taskType === TaskType.ChangeOfAddress;
58091
+ }
58087
58092
  function isBritishColumbiaTask(task) {
58088
58093
  return task.entity._compliance.home_jurisdiction === "British Columbia";
58089
58094
  }
@@ -58108,6 +58113,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58108
58113
  if (!task) {
58109
58114
  return void 0;
58110
58115
  }
58116
+ if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
58117
+ return "bcChangeOfAddress";
58118
+ }
58111
58119
  const prefix = isOntarioTask(task) ? "ontario" : isBritishColumbiaTask(task) ? "bc" : "federal";
58112
58120
  if (isFormationTask2(task)) {
58113
58121
  return `${prefix}Incorporation`;
@@ -58122,7 +58130,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58122
58130
  return `${prefix}AnnualReturn`;
58123
58131
  }
58124
58132
  if (isChangeOfPrincipalsTask(task)) {
58125
- return prefix === "bc" ? "bcChangeOfDirectors" : `${prefix}NoticeOfChangeOfDirectors`;
58133
+ return `${prefix}NoticeOfChangeOfDirectors`;
58126
58134
  }
58127
58135
  return void 0;
58128
58136
  }
@@ -61002,10 +61010,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
61002
61010
  this._inputElement.nativeElement.focus();
61003
61011
  }
61004
61012
  /** Creates the change event that will be emitted by the checkbox. */
61005
- _createChangeEvent(isChecked) {
61013
+ _createChangeEvent(isChecked2) {
61006
61014
  const event = new MatCheckboxChange();
61007
61015
  event.source = this;
61008
- event.checked = isChecked;
61016
+ event.checked = isChecked2;
61009
61017
  return event;
61010
61018
  }
61011
61019
  /** Gets the element on which to add the animation CSS classes. */
@@ -80561,7 +80569,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80561
80569
  MatRadioButton,
80562
80570
  TranslatePipe,
80563
80571
  CheckboxListComponent
80564
- ], styles: ['\n\n[_nghost-%COMP%] {\n overflow: hidden;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n column-gap: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select {\n display: flex;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-checkbox__background {\n border: 3px solid #6a6c6f;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .filling-form-fields-radio {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding-bottom: 8px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .filling-form-fields-radio-group {\n display: flex;\n flex-wrap: wrap;\n column-gap: 24px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .filling-form-fields-radio .mdc-form-field > label {\n padding-left: 0;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-arrow-wrapper {\n display: none;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .suffix-container {\n display: flex;\n align-items: center;\n padding-right: 12px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix {\n display: flex;\n align-items: center;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix .mat-icon {\n display: flex;\n align-items: center;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .arrow-icon {\n pointer-events: none;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-form-field-infix {\n display: flex !important;\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value-text {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-label {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-checkbox[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 2rem;\n}\n[_nghost-%COMP%] .filling-form-fields-checkbox[_ngcontent-%COMP%]:not(.last) {\n padding-bottom: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields-checkbox-text[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n line-height: 20px;\n color: var(--filing-modal-color-grey);\n}\n[_nghost-%COMP%] .filling-form-fields-empty[_ngcontent-%COMP%] {\n width: 100%;\n height: 80px;\n}\n[_nghost-%COMP%] .filling-form-fields-item[_ngcontent-%COMP%] {\n --mat-sys-primary: #6b6f76;\n --mat-sys-primary-container: #e4e5e8;\n --mat-sys-surface-tint: #6b6f76;\n --mat-sys-outline: #c7c9cf;\n --mat-sys-outline-variant: #dfe1e6;\n --mdc-icon-button-state-layer-size: 36px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .filling-form-fields-item.text-area[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper {\n padding: 0 !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item.text-area[_ngcontent-%COMP%] .mat-mdc-input-element {\n padding: 0 12px;\n min-height: 230px !important;\n max-height: 230px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-text[_ngcontent-%COMP%] {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-text[_ngcontent-%COMP%]:not(.last) {\n padding-bottom: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields-item-hint[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n font-size: 12px;\n}\n[_nghost-%COMP%] .filling-form-fields-item.warning[_ngcontent-%COMP%] {\n --mdc-outlined-text-field-outline-color: #845400;\n --mdc-outlined-text-field-outline-width: 2px;\n --mat-sys-on-surface: #845400;\n color: #845400;\n padding-bottom: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields-item-label[_ngcontent-%COMP%] {\n color: var(--filing-modal-color-grey);\n}\n[_nghost-%COMP%] .filling-form-fields-item-label.warning[_ngcontent-%COMP%] {\n color: #845400;\n}\n[_nghost-%COMP%] .filling-form-fields-item-info[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n align-items: center;\n margin-left: 6px;\n vertical-align: middle;\n}\n[_nghost-%COMP%] .filling-form-fields-item-info[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%] {\n width: 18px;\n height: 18px;\n font-size: 18px;\n line-height: 18px;\n color: #0b70d9 !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-info[_ngcontent-%COMP%]:hover .filling-form-fields-item-info-tooltip[_ngcontent-%COMP%], \n[_nghost-%COMP%] .filling-form-fields-item-info[_ngcontent-%COMP%]:focus .filling-form-fields-item-info-tooltip[_ngcontent-%COMP%] {\n display: flex;\n}\n[_nghost-%COMP%] .filling-form-fields-item-info.dismissed[_ngcontent-%COMP%] .filling-form-fields-item-info-tooltip[_ngcontent-%COMP%] {\n display: none;\n}\n[_nghost-%COMP%] .filling-form-fields-item-info-tooltip[_ngcontent-%COMP%] {\n position: absolute;\n z-index: 10;\n top: -12px;\n left: 28px;\n display: none;\n width: 220px;\n flex-direction: column;\n gap: 8px;\n padding: 16px 18px;\n border: 1px solid #d8dbe1;\n border-radius: 8px;\n background: #f5f6f8;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);\n color: #2f343b;\n line-height: 20px;\n white-space: normal;\n}\n[_nghost-%COMP%] .filling-form-fields-item-hint.warning[_ngcontent-%COMP%] {\n color: #845400;\n}\n[_nghost-%COMP%] .filling-form-fields-item-icon[_ngcontent-%COMP%] {\n font-size: 22px;\n line-height: 22px;\n height: 22px;\n width: 22px;\n}\n[_nghost-%COMP%] .filling-form-fields-item-icon.warning[_ngcontent-%COMP%] {\n color: #845400;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-mdc-checkbox.ng-invalid .mdc-checkbox__background {\n border-color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid {\n padding: 0 0 12px;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mdc-notched-outline__leading {\n border-color: #ff3e3e !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mdc-notched-outline__trailing {\n border-color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-datepicker-toggle-default-icon {\n color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-mdc-form-field-error-wrapper {\n padding: 0;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-mdc-form-field-error {\n color: #E22222 !important;\n font-size: 12px;\n font-family: "Open Sans";\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-mdc-select-arrow {\n color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-icon {\n color: #4a4a4a !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mdc-notched-outline__leading {\n border-color: #d6d6d6 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mdc-notched-outline__trailing {\n border-color: #d6d6d6 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-datepicker-toggle-default-icon {\n color: #4a4a4a !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-mdc-form-field-error {\n display: none;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-mdc-select-arrow {\n color: #d6d6d6 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] {\n --mat-form-field-container-vertical-padding: 6px;\n --mat-form-field-container-height: 36px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value {\n line-height: 18px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] input, \n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] textarea {\n font-family: "Open Sans";\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value-text {\n font-family: "Open Sans";\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-text-field--disabled {\n background-color: #F5F5F5 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-notched-outline__leading {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-notched-outline__trailing {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-icon-button .mat-icon {\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n}\n[_nghost-%COMP%] .span-1[_ngcontent-%COMP%] {\n grid-column: span 1;\n}\n[_nghost-%COMP%] .span-2[_ngcontent-%COMP%] {\n grid-column: span 2;\n}\n[_nghost-%COMP%] .span-3[_ngcontent-%COMP%] {\n grid-column: span 3;\n}\n[_nghost-%COMP%] .span-4[_ngcontent-%COMP%] {\n grid-column: span 4;\n}\n[_nghost-%COMP%] .span-5[_ngcontent-%COMP%] {\n grid-column: span 5;\n}\n[_nghost-%COMP%] .span-6[_ngcontent-%COMP%] {\n grid-column: span 6;\n}\n[_nghost-%COMP%] .span-8[_ngcontent-%COMP%] {\n grid-column: span 8;\n}\n[_nghost-%COMP%] .span-12[_ngcontent-%COMP%] {\n grid-column: span 12;\n}\n[_nghost-%COMP%] .column-1[_ngcontent-%COMP%] {\n grid-column: 1/span 2;\n}\n[_nghost-%COMP%] .column-2[_ngcontent-%COMP%] {\n grid-column: 1/span 4;\n}\n[_nghost-%COMP%] .column-3[_ngcontent-%COMP%] {\n grid-column: 1/span 6;\n}\n[_nghost-%COMP%] .epl-readonly-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .beside-select[_ngcontent-%COMP%] {\n align-self: end;\n display: flex;\n align-items: center;\n min-height: 60px;\n margin: 0;\n}\n[_nghost-%COMP%] .spaced-text[_ngcontent-%COMP%] {\n margin: 8px 0;\n}\n[_nghost-%COMP%] .fee-warning[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 8px 0;\n padding: 8px 12px !important;\n border: 1px solid #f0d78c;\n border-radius: 4px;\n background-color: #fff8e1;\n color: #845400;\n font-size: 12px !important;\n}\n[_nghost-%COMP%] .fee-warning[_ngcontent-%COMP%]::before {\n content: "!";\n flex: none;\n width: 12px;\n height: 12px;\n border: 1px solid #845400;\n border-radius: 50%;\n font-size: 9px;\n font-weight: 700;\n line-height: 12px;\n text-align: center;\n}\n[_nghost-%COMP%] .epl-info-panel-field[_ngcontent-%COMP%] {\n container-type: inline-size;\n}\n[_nghost-%COMP%] input {\n font-size: 14px !important;\n color: var(--filing-modal-color-grey) !important;\n}\n[_nghost-%COMP%] .epl-readonly-value {\n display: flex;\n align-items: center;\n min-height: 36px;\n padding: 0 16px;\n border: 1px solid #F5F5F5;\n border-radius: 8px;\n background-color: #F5F5F5;\n overflow-wrap: anywhere;\n}\n[_nghost-%COMP%] .epl-info-panel {\n display: grid;\n grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);\n column-gap: 16px;\n row-gap: 12px;\n padding: 12px;\n border-radius: 8px;\n background-color: #F5F5F5;\n}\n[_nghost-%COMP%] .epl-info-panel-item {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n@container (max-width: 560px) {\n [_nghost-%COMP%] .epl-info-panel {\n grid-template-columns: minmax(0, 1fr);\n }\n}\n.filing-form-group-select-option[_ngcontent-%COMP%] {\n background: white !important;\n}\n.filing-form-group-select-option[_ngcontent-%COMP%] .mat-pseudo-checkbox-checked {\n background: transparent !important;\n}\n.filing-form-group-select-option[_ngcontent-%COMP%] .mdc-list-item__primary-text {\n font-family: "Open Sans";\n font-size: 14px !important;\n}\n/*# sourceMappingURL=filing-form-group.component.css.map */'], changeDetection: 0 });
80572
+ ], styles: ['\n\n[_nghost-%COMP%] {\n overflow: hidden;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n column-gap: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select {\n display: flex;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-checkbox__background {\n border: 3px solid #6a6c6f;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .filling-form-fields-radio {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding-bottom: 8px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .filling-form-fields-radio-group {\n display: flex;\n flex-wrap: wrap;\n column-gap: 24px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .filling-form-fields-radio .mdc-form-field > label {\n padding-left: 0;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-arrow-wrapper {\n display: none;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .suffix-container {\n display: flex;\n align-items: center;\n padding-right: 12px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix {\n display: flex;\n align-items: center;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix .mat-icon {\n display: flex;\n align-items: center;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .arrow-icon {\n pointer-events: none;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-form-field-infix {\n display: flex !important;\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value-text {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-label {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-checkbox[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 2rem;\n}\n[_nghost-%COMP%] .filling-form-fields-checkbox[_ngcontent-%COMP%]:not(.last) {\n padding-bottom: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields-checkbox-text[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n line-height: 20px;\n color: var(--filing-modal-color-grey);\n}\n[_nghost-%COMP%] .filling-form-fields-empty[_ngcontent-%COMP%] {\n width: 100%;\n height: 80px;\n}\n[_nghost-%COMP%] .filling-form-fields-item[_ngcontent-%COMP%] {\n --mat-sys-primary: #6b6f76;\n --mat-sys-primary-container: #e4e5e8;\n --mat-sys-surface-tint: #6b6f76;\n --mat-sys-outline: #c7c9cf;\n --mat-sys-outline-variant: #dfe1e6;\n --mdc-icon-button-state-layer-size: 36px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .filling-form-fields-item.text-area[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper {\n padding: 0 !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item.text-area[_ngcontent-%COMP%] .mat-mdc-input-element {\n padding: 0 12px;\n min-height: 230px !important;\n max-height: 230px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-text[_ngcontent-%COMP%] {\n font-size: 14px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-text[_ngcontent-%COMP%]:not(.last) {\n padding-bottom: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields-item-hint[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n font-size: 12px;\n}\n[_nghost-%COMP%] .filling-form-fields-item.warning[_ngcontent-%COMP%] {\n --mdc-outlined-text-field-outline-color: #845400;\n --mdc-outlined-text-field-outline-width: 2px;\n --mat-sys-on-surface: #845400;\n color: #845400;\n padding-bottom: 16px;\n}\n[_nghost-%COMP%] .filling-form-fields-item-label[_ngcontent-%COMP%] {\n color: var(--filing-modal-color-grey);\n}\n[_nghost-%COMP%] .filling-form-fields-item-label.warning[_ngcontent-%COMP%] {\n color: #845400;\n}\n[_nghost-%COMP%] .filling-form-fields-item-info[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n align-items: center;\n margin-left: 6px;\n vertical-align: middle;\n}\n[_nghost-%COMP%] .filling-form-fields-item-info[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%] {\n width: 18px;\n height: 18px;\n font-size: 18px;\n line-height: 18px;\n color: #0b70d9 !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-info[_ngcontent-%COMP%]:hover .filling-form-fields-item-info-tooltip[_ngcontent-%COMP%], \n[_nghost-%COMP%] .filling-form-fields-item-info[_ngcontent-%COMP%]:focus .filling-form-fields-item-info-tooltip[_ngcontent-%COMP%] {\n display: flex;\n}\n[_nghost-%COMP%] .filling-form-fields-item-info.dismissed[_ngcontent-%COMP%] .filling-form-fields-item-info-tooltip[_ngcontent-%COMP%] {\n display: none;\n}\n[_nghost-%COMP%] .filling-form-fields-item-info-tooltip[_ngcontent-%COMP%] {\n position: absolute;\n z-index: 10;\n top: -12px;\n left: 28px;\n display: none;\n width: 220px;\n flex-direction: column;\n gap: 8px;\n padding: 16px 18px;\n border: 1px solid #d8dbe1;\n border-radius: 8px;\n background: #f5f6f8;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);\n color: #2f343b;\n line-height: 20px;\n white-space: normal;\n}\n[_nghost-%COMP%] .filling-form-fields-item-hint.warning[_ngcontent-%COMP%] {\n color: #845400;\n}\n[_nghost-%COMP%] .filling-form-fields-item-icon[_ngcontent-%COMP%] {\n font-size: 22px;\n line-height: 22px;\n height: 22px;\n width: 22px;\n}\n[_nghost-%COMP%] .filling-form-fields-item-icon.warning[_ngcontent-%COMP%] {\n color: #845400;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-mdc-checkbox.ng-invalid .mdc-checkbox__background {\n border-color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid {\n padding: 0 0 12px;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mdc-notched-outline__leading {\n border-color: #ff3e3e !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mdc-notched-outline__trailing {\n border-color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-datepicker-toggle-default-icon {\n color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-mdc-form-field-error-wrapper {\n padding: 0;\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-mdc-form-field-error {\n color: #E22222 !important;\n font-size: 12px;\n font-family: "Open Sans";\n}\n[_nghost-%COMP%] .filling-form-fields.submitted[_ngcontent-%COMP%] .mat-form-field-invalid .mat-mdc-select-arrow {\n color: #E22222 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-icon {\n color: #4a4a4a !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mdc-notched-outline__leading {\n border-color: #d6d6d6 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mdc-notched-outline__trailing {\n border-color: #d6d6d6 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-datepicker-toggle-default-icon {\n color: #4a4a4a !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-mdc-form-field-error {\n display: none;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%]:not(.submitted) .mat-mdc-select-arrow {\n color: #d6d6d6 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] {\n --mat-form-field-container-vertical-padding: 6px;\n --mat-form-field-container-height: 36px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value {\n line-height: 18px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] input, \n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] textarea {\n font-family: "Open Sans";\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mat-mdc-select-value-text {\n font-family: "Open Sans";\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-text-field--disabled {\n background-color: #F5F5F5 !important;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-notched-outline__leading {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-notched-outline__trailing {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n}\n[_nghost-%COMP%] .filling-form-fields[_ngcontent-%COMP%] .mdc-icon-button .mat-icon {\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n}\n[_nghost-%COMP%] .span-1[_ngcontent-%COMP%] {\n grid-column: span 1;\n}\n[_nghost-%COMP%] .span-2[_ngcontent-%COMP%] {\n grid-column: span 2;\n}\n[_nghost-%COMP%] .span-3[_ngcontent-%COMP%] {\n grid-column: span 3;\n}\n[_nghost-%COMP%] .span-4[_ngcontent-%COMP%] {\n grid-column: span 4;\n}\n[_nghost-%COMP%] .span-5[_ngcontent-%COMP%] {\n grid-column: span 5;\n}\n[_nghost-%COMP%] .span-6[_ngcontent-%COMP%] {\n grid-column: span 6;\n}\n[_nghost-%COMP%] .span-8[_ngcontent-%COMP%] {\n grid-column: span 8;\n}\n[_nghost-%COMP%] .span-12[_ngcontent-%COMP%] {\n grid-column: span 12;\n}\n[_nghost-%COMP%] .note-box[_ngcontent-%COMP%] {\n padding: 16px 24px;\n border: 1px solid #f0dea0;\n border-radius: 4px;\n background-color: #fdf9ee;\n color: #7a5d00;\n}\n[_nghost-%COMP%] .note-box[_ngcontent-%COMP%] .body-1-semibold {\n color: inherit;\n}\n[_nghost-%COMP%] .column-1[_ngcontent-%COMP%] {\n grid-column: 1/span 2;\n}\n[_nghost-%COMP%] .column-2[_ngcontent-%COMP%] {\n grid-column: 1/span 4;\n}\n[_nghost-%COMP%] .column-3[_ngcontent-%COMP%] {\n grid-column: 1/span 6;\n}\n[_nghost-%COMP%] .epl-readonly-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .beside-select[_ngcontent-%COMP%] {\n align-self: end;\n display: flex;\n align-items: center;\n min-height: 60px;\n margin: 0;\n}\n[_nghost-%COMP%] .spaced-text[_ngcontent-%COMP%] {\n margin: 8px 0;\n}\n[_nghost-%COMP%] .fee-warning[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 8px 0;\n padding: 8px 12px !important;\n border: 1px solid #f0d78c;\n border-radius: 4px;\n background-color: #fff8e1;\n color: #845400;\n font-size: 12px !important;\n}\n[_nghost-%COMP%] .fee-warning[_ngcontent-%COMP%]::before {\n content: "!";\n flex: none;\n width: 12px;\n height: 12px;\n border: 1px solid #845400;\n border-radius: 50%;\n font-size: 9px;\n font-weight: 700;\n line-height: 12px;\n text-align: center;\n}\n[_nghost-%COMP%] .epl-info-panel-field[_ngcontent-%COMP%] {\n container-type: inline-size;\n}\n[_nghost-%COMP%] input {\n font-size: 14px !important;\n color: var(--filing-modal-color-grey) !important;\n}\n[_nghost-%COMP%] .epl-readonly-value {\n display: flex;\n align-items: center;\n min-height: 36px;\n padding: 0 16px;\n border: 1px solid #F5F5F5;\n border-radius: 8px;\n background-color: #F5F5F5;\n overflow-wrap: anywhere;\n}\n[_nghost-%COMP%] .epl-info-panel {\n display: grid;\n grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);\n column-gap: 16px;\n row-gap: 12px;\n padding: 12px;\n border-radius: 8px;\n background-color: #F5F5F5;\n}\n[_nghost-%COMP%] .epl-info-panel-item {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n@container (max-width: 560px) {\n [_nghost-%COMP%] .epl-info-panel {\n grid-template-columns: minmax(0, 1fr);\n }\n}\n.filing-form-group-select-option[_ngcontent-%COMP%] {\n background: white !important;\n}\n.filing-form-group-select-option[_ngcontent-%COMP%] .mat-pseudo-checkbox-checked {\n background: transparent !important;\n}\n.filing-form-group-select-option[_ngcontent-%COMP%] .mdc-list-item__primary-text {\n font-family: "Open Sans";\n font-size: 14px !important;\n}\n/*# sourceMappingURL=filing-form-group.component.css.map */'], changeDetection: 0 });
80565
80573
  };
80566
80574
  (() => {
80567
80575
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FilingFormGroupComponent, [{
@@ -80815,7 +80823,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80815
80823
  }\r
80816
80824
  </div>\r
80817
80825
  </section>\r
80818
- `, styles: ['/* src/app/components/form/filing-form-group/filing-form-group.component.scss */\n:host {\n overflow: hidden;\n}\n:host .filling-form-fields {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n column-gap: 16px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select {\n display: flex;\n}\n:host .filling-form-fields ::ng-deep .mdc-checkbox__background {\n border: 3px solid #6a6c6f;\n}\n:host .filling-form-fields ::ng-deep .filling-form-fields-radio {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding-bottom: 8px;\n}\n:host .filling-form-fields ::ng-deep .filling-form-fields-radio-group {\n display: flex;\n flex-wrap: wrap;\n column-gap: 24px;\n}\n:host .filling-form-fields ::ng-deep .filling-form-fields-radio .mdc-form-field > label {\n padding-left: 0;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-arrow-wrapper {\n display: none;\n}\n:host .filling-form-fields ::ng-deep .suffix-container {\n display: flex;\n align-items: center;\n padding-right: 12px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-icon-suffix {\n display: flex;\n align-items: center;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-icon-suffix .mat-icon {\n display: flex;\n align-items: center;\n}\n:host .filling-form-fields ::ng-deep .arrow-icon {\n pointer-events: none;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-infix {\n display: flex !important;\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value-text {\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value {\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mdc-label {\n font-size: 14px !important;\n}\n:host .filling-form-fields-checkbox {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 2rem;\n}\n:host .filling-form-fields-checkbox:not(.last) {\n padding-bottom: 16px;\n}\n:host .filling-form-fields-checkbox-text {\n display: flex;\n align-items: center;\n gap: 8px;\n line-height: 20px;\n color: var(--filing-modal-color-grey);\n}\n:host .filling-form-fields-empty {\n width: 100%;\n height: 80px;\n}\n:host .filling-form-fields-item {\n --mat-sys-primary: #6b6f76;\n --mat-sys-primary-container: #e4e5e8;\n --mat-sys-surface-tint: #6b6f76;\n --mat-sys-outline: #c7c9cf;\n --mat-sys-outline-variant: #dfe1e6;\n --mdc-icon-button-state-layer-size: 36px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .filling-form-fields-item.text-area ::ng-deep .mat-mdc-text-field-wrapper {\n padding: 0 !important;\n}\n:host .filling-form-fields-item.text-area ::ng-deep .mat-mdc-input-element {\n padding: 0 12px;\n min-height: 230px !important;\n max-height: 230px !important;\n}\n:host .filling-form-fields-item-text {\n font-size: 14px !important;\n}\n:host .filling-form-fields-item-text:not(.last) {\n padding-bottom: 16px;\n}\n:host .filling-form-fields-item-hint {\n display: flex;\n align-items: center;\n font-size: 12px;\n}\n:host .filling-form-fields-item.warning {\n --mdc-outlined-text-field-outline-color: #845400;\n --mdc-outlined-text-field-outline-width: 2px;\n --mat-sys-on-surface: #845400;\n color: #845400;\n padding-bottom: 16px;\n}\n:host .filling-form-fields-item-label {\n color: var(--filing-modal-color-grey);\n}\n:host .filling-form-fields-item-label.warning {\n color: #845400;\n}\n:host .filling-form-fields-item-info {\n position: relative;\n display: inline-flex;\n align-items: center;\n margin-left: 6px;\n vertical-align: middle;\n}\n:host .filling-form-fields-item-info .mat-icon {\n width: 18px;\n height: 18px;\n font-size: 18px;\n line-height: 18px;\n color: #0b70d9 !important;\n}\n:host .filling-form-fields-item-info:hover .filling-form-fields-item-info-tooltip,\n:host .filling-form-fields-item-info:focus .filling-form-fields-item-info-tooltip {\n display: flex;\n}\n:host .filling-form-fields-item-info.dismissed .filling-form-fields-item-info-tooltip {\n display: none;\n}\n:host .filling-form-fields-item-info-tooltip {\n position: absolute;\n z-index: 10;\n top: -12px;\n left: 28px;\n display: none;\n width: 220px;\n flex-direction: column;\n gap: 8px;\n padding: 16px 18px;\n border: 1px solid #d8dbe1;\n border-radius: 8px;\n background: #f5f6f8;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);\n color: #2f343b;\n line-height: 20px;\n white-space: normal;\n}\n:host .filling-form-fields-item-hint.warning {\n color: #845400;\n}\n:host .filling-form-fields-item-icon {\n font-size: 22px;\n line-height: 22px;\n height: 22px;\n width: 22px;\n}\n:host .filling-form-fields-item-icon.warning {\n color: #845400;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-mdc-checkbox.ng-invalid .mdc-checkbox__background {\n border-color: #E22222 !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid {\n padding: 0 0 12px;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mdc-notched-outline__leading {\n border-color: #ff3e3e !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mdc-notched-outline__trailing {\n border-color: #E22222 !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-datepicker-toggle-default-icon {\n color: #E22222 !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-form-field-error-wrapper {\n padding: 0;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-form-field-error {\n color: #E22222 !important;\n font-size: 12px;\n font-family: "Open Sans";\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-select-arrow {\n color: #E22222 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-icon {\n color: #4a4a4a !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mdc-notched-outline__leading {\n border-color: #d6d6d6 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mdc-notched-outline__trailing {\n border-color: #d6d6d6 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-datepicker-toggle-default-icon {\n color: #4a4a4a !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-mdc-form-field-error {\n display: none;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-mdc-select-arrow {\n color: #d6d6d6 !important;\n}\n:host .filling-form-fields ::ng-deep {\n --mat-form-field-container-vertical-padding: 6px;\n --mat-form-field-container-height: 36px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value {\n line-height: 18px;\n}\n:host .filling-form-fields ::ng-deep input,\n:host .filling-form-fields ::ng-deep textarea {\n font-family: "Open Sans";\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value-text {\n font-family: "Open Sans";\n}\n:host .filling-form-fields ::ng-deep .mdc-text-field--disabled {\n background-color: #F5F5F5 !important;\n}\n:host .filling-form-fields ::ng-deep .mdc-notched-outline__leading {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n}\n:host .filling-form-fields ::ng-deep .mdc-notched-outline__trailing {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n}\n:host .filling-form-fields ::ng-deep .mdc-icon-button .mat-icon {\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n}\n:host .span-1 {\n grid-column: span 1;\n}\n:host .span-2 {\n grid-column: span 2;\n}\n:host .span-3 {\n grid-column: span 3;\n}\n:host .span-4 {\n grid-column: span 4;\n}\n:host .span-5 {\n grid-column: span 5;\n}\n:host .span-6 {\n grid-column: span 6;\n}\n:host .span-8 {\n grid-column: span 8;\n}\n:host .span-12 {\n grid-column: span 12;\n}\n:host .column-1 {\n grid-column: 1/span 2;\n}\n:host .column-2 {\n grid-column: 1/span 4;\n}\n:host .column-3 {\n grid-column: 1/span 6;\n}\n:host .epl-readonly-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .beside-select {\n align-self: end;\n display: flex;\n align-items: center;\n min-height: 60px;\n margin: 0;\n}\n:host .spaced-text {\n margin: 8px 0;\n}\n:host .fee-warning {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 8px 0;\n padding: 8px 12px !important;\n border: 1px solid #f0d78c;\n border-radius: 4px;\n background-color: #fff8e1;\n color: #845400;\n font-size: 12px !important;\n}\n:host .fee-warning::before {\n content: "!";\n flex: none;\n width: 12px;\n height: 12px;\n border: 1px solid #845400;\n border-radius: 50%;\n font-size: 9px;\n font-weight: 700;\n line-height: 12px;\n text-align: center;\n}\n:host .epl-info-panel-field {\n container-type: inline-size;\n}\n:host ::ng-deep input {\n font-size: 14px !important;\n color: var(--filing-modal-color-grey) !important;\n}\n:host ::ng-deep .epl-readonly-value {\n display: flex;\n align-items: center;\n min-height: 36px;\n padding: 0 16px;\n border: 1px solid #F5F5F5;\n border-radius: 8px;\n background-color: #F5F5F5;\n overflow-wrap: anywhere;\n}\n:host ::ng-deep .epl-info-panel {\n display: grid;\n grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);\n column-gap: 16px;\n row-gap: 12px;\n padding: 12px;\n border-radius: 8px;\n background-color: #F5F5F5;\n}\n:host ::ng-deep .epl-info-panel-item {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n@container (max-width: 560px) {\n :host ::ng-deep .epl-info-panel {\n grid-template-columns: minmax(0, 1fr);\n }\n}\n.filing-form-group-select-option {\n background: white !important;\n}\n.filing-form-group-select-option ::ng-deep .mat-pseudo-checkbox-checked {\n background: transparent !important;\n}\n.filing-form-group-select-option ::ng-deep .mdc-list-item__primary-text {\n font-family: "Open Sans";\n font-size: 14px !important;\n}\n/*# sourceMappingURL=filing-form-group.component.css.map */\n'] }]
80826
+ `, styles: ['/* src/app/components/form/filing-form-group/filing-form-group.component.scss */\n:host {\n overflow: hidden;\n}\n:host .filling-form-fields {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n column-gap: 16px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select {\n display: flex;\n}\n:host .filling-form-fields ::ng-deep .mdc-checkbox__background {\n border: 3px solid #6a6c6f;\n}\n:host .filling-form-fields ::ng-deep .filling-form-fields-radio {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding-bottom: 8px;\n}\n:host .filling-form-fields ::ng-deep .filling-form-fields-radio-group {\n display: flex;\n flex-wrap: wrap;\n column-gap: 24px;\n}\n:host .filling-form-fields ::ng-deep .filling-form-fields-radio .mdc-form-field > label {\n padding-left: 0;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-arrow-wrapper {\n display: none;\n}\n:host .filling-form-fields ::ng-deep .suffix-container {\n display: flex;\n align-items: center;\n padding-right: 12px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-icon-suffix {\n display: flex;\n align-items: center;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-icon-suffix .mat-icon {\n display: flex;\n align-items: center;\n}\n:host .filling-form-fields ::ng-deep .arrow-icon {\n pointer-events: none;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-infix {\n display: flex !important;\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value-text {\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value {\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mdc-label {\n font-size: 14px !important;\n}\n:host .filling-form-fields-checkbox {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 2rem;\n}\n:host .filling-form-fields-checkbox:not(.last) {\n padding-bottom: 16px;\n}\n:host .filling-form-fields-checkbox-text {\n display: flex;\n align-items: center;\n gap: 8px;\n line-height: 20px;\n color: var(--filing-modal-color-grey);\n}\n:host .filling-form-fields-empty {\n width: 100%;\n height: 80px;\n}\n:host .filling-form-fields-item {\n --mat-sys-primary: #6b6f76;\n --mat-sys-primary-container: #e4e5e8;\n --mat-sys-surface-tint: #6b6f76;\n --mat-sys-outline: #c7c9cf;\n --mat-sys-outline-variant: #dfe1e6;\n --mdc-icon-button-state-layer-size: 36px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .filling-form-fields-item.text-area ::ng-deep .mat-mdc-text-field-wrapper {\n padding: 0 !important;\n}\n:host .filling-form-fields-item.text-area ::ng-deep .mat-mdc-input-element {\n padding: 0 12px;\n min-height: 230px !important;\n max-height: 230px !important;\n}\n:host .filling-form-fields-item-text {\n font-size: 14px !important;\n}\n:host .filling-form-fields-item-text:not(.last) {\n padding-bottom: 16px;\n}\n:host .filling-form-fields-item-hint {\n display: flex;\n align-items: center;\n font-size: 12px;\n}\n:host .filling-form-fields-item.warning {\n --mdc-outlined-text-field-outline-color: #845400;\n --mdc-outlined-text-field-outline-width: 2px;\n --mat-sys-on-surface: #845400;\n color: #845400;\n padding-bottom: 16px;\n}\n:host .filling-form-fields-item-label {\n color: var(--filing-modal-color-grey);\n}\n:host .filling-form-fields-item-label.warning {\n color: #845400;\n}\n:host .filling-form-fields-item-info {\n position: relative;\n display: inline-flex;\n align-items: center;\n margin-left: 6px;\n vertical-align: middle;\n}\n:host .filling-form-fields-item-info .mat-icon {\n width: 18px;\n height: 18px;\n font-size: 18px;\n line-height: 18px;\n color: #0b70d9 !important;\n}\n:host .filling-form-fields-item-info:hover .filling-form-fields-item-info-tooltip,\n:host .filling-form-fields-item-info:focus .filling-form-fields-item-info-tooltip {\n display: flex;\n}\n:host .filling-form-fields-item-info.dismissed .filling-form-fields-item-info-tooltip {\n display: none;\n}\n:host .filling-form-fields-item-info-tooltip {\n position: absolute;\n z-index: 10;\n top: -12px;\n left: 28px;\n display: none;\n width: 220px;\n flex-direction: column;\n gap: 8px;\n padding: 16px 18px;\n border: 1px solid #d8dbe1;\n border-radius: 8px;\n background: #f5f6f8;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);\n color: #2f343b;\n line-height: 20px;\n white-space: normal;\n}\n:host .filling-form-fields-item-hint.warning {\n color: #845400;\n}\n:host .filling-form-fields-item-icon {\n font-size: 22px;\n line-height: 22px;\n height: 22px;\n width: 22px;\n}\n:host .filling-form-fields-item-icon.warning {\n color: #845400;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-mdc-checkbox.ng-invalid .mdc-checkbox__background {\n border-color: #E22222 !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid {\n padding: 0 0 12px;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mdc-notched-outline__leading {\n border-color: #ff3e3e !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mdc-notched-outline__trailing {\n border-color: #E22222 !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-datepicker-toggle-default-icon {\n color: #E22222 !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-form-field-error-wrapper {\n padding: 0;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-form-field-error {\n color: #E22222 !important;\n font-size: 12px;\n font-family: "Open Sans";\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-select-arrow {\n color: #E22222 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-icon {\n color: #4a4a4a !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mdc-notched-outline__leading {\n border-color: #d6d6d6 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mdc-notched-outline__trailing {\n border-color: #d6d6d6 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-datepicker-toggle-default-icon {\n color: #4a4a4a !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-mdc-form-field-error {\n display: none;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-mdc-select-arrow {\n color: #d6d6d6 !important;\n}\n:host .filling-form-fields ::ng-deep {\n --mat-form-field-container-vertical-padding: 6px;\n --mat-form-field-container-height: 36px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value {\n line-height: 18px;\n}\n:host .filling-form-fields ::ng-deep input,\n:host .filling-form-fields ::ng-deep textarea {\n font-family: "Open Sans";\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value-text {\n font-family: "Open Sans";\n}\n:host .filling-form-fields ::ng-deep .mdc-text-field--disabled {\n background-color: #F5F5F5 !important;\n}\n:host .filling-form-fields ::ng-deep .mdc-notched-outline__leading {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n}\n:host .filling-form-fields ::ng-deep .mdc-notched-outline__trailing {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n}\n:host .filling-form-fields ::ng-deep .mdc-icon-button .mat-icon {\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n}\n:host .span-1 {\n grid-column: span 1;\n}\n:host .span-2 {\n grid-column: span 2;\n}\n:host .span-3 {\n grid-column: span 3;\n}\n:host .span-4 {\n grid-column: span 4;\n}\n:host .span-5 {\n grid-column: span 5;\n}\n:host .span-6 {\n grid-column: span 6;\n}\n:host .span-8 {\n grid-column: span 8;\n}\n:host .span-12 {\n grid-column: span 12;\n}\n:host .note-box {\n padding: 16px 24px;\n border: 1px solid #f0dea0;\n border-radius: 4px;\n background-color: #fdf9ee;\n color: #7a5d00;\n}\n:host .note-box ::ng-deep .body-1-semibold {\n color: inherit;\n}\n:host .column-1 {\n grid-column: 1/span 2;\n}\n:host .column-2 {\n grid-column: 1/span 4;\n}\n:host .column-3 {\n grid-column: 1/span 6;\n}\n:host .epl-readonly-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .beside-select {\n align-self: end;\n display: flex;\n align-items: center;\n min-height: 60px;\n margin: 0;\n}\n:host .spaced-text {\n margin: 8px 0;\n}\n:host .fee-warning {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 8px 0;\n padding: 8px 12px !important;\n border: 1px solid #f0d78c;\n border-radius: 4px;\n background-color: #fff8e1;\n color: #845400;\n font-size: 12px !important;\n}\n:host .fee-warning::before {\n content: "!";\n flex: none;\n width: 12px;\n height: 12px;\n border: 1px solid #845400;\n border-radius: 50%;\n font-size: 9px;\n font-weight: 700;\n line-height: 12px;\n text-align: center;\n}\n:host .epl-info-panel-field {\n container-type: inline-size;\n}\n:host ::ng-deep input {\n font-size: 14px !important;\n color: var(--filing-modal-color-grey) !important;\n}\n:host ::ng-deep .epl-readonly-value {\n display: flex;\n align-items: center;\n min-height: 36px;\n padding: 0 16px;\n border: 1px solid #F5F5F5;\n border-radius: 8px;\n background-color: #F5F5F5;\n overflow-wrap: anywhere;\n}\n:host ::ng-deep .epl-info-panel {\n display: grid;\n grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);\n column-gap: 16px;\n row-gap: 12px;\n padding: 12px;\n border-radius: 8px;\n background-color: #F5F5F5;\n}\n:host ::ng-deep .epl-info-panel-item {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n@container (max-width: 560px) {\n :host ::ng-deep .epl-info-panel {\n grid-template-columns: minmax(0, 1fr);\n }\n}\n.filing-form-group-select-option {\n background: white !important;\n}\n.filing-form-group-select-option ::ng-deep .mat-pseudo-checkbox-checked {\n background: transparent !important;\n}\n.filing-form-group-select-option ::ng-deep .mdc-list-item__primary-text {\n font-family: "Open Sans";\n font-size: 14px !important;\n}\n/*# sourceMappingURL=filing-form-group.component.css.map */\n'] }]
80819
80827
  }], () => [], { dismissOpenTooltip: [{
80820
80828
  type: HostListener,
80821
80829
  args: ["document:keydown.escape"]
@@ -81305,12 +81313,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81305
81313
  federalUpdateMaintainInitialDelta = signal(null);
81306
81314
  bcChangeOfDirectorsInitialDelta = signal(null);
81307
81315
  bcFormationInitialDelta = signal(null);
81316
+ bcChangeOfOfficeAddressesInitialDelta = signal(null);
81308
81317
  setFormationInitialDelta(delta) {
81309
81318
  this.formationInitialDelta.set(delta);
81310
81319
  }
81311
81320
  setBCFormationInitialDelta(delta) {
81312
81321
  this.bcFormationInitialDelta.set(delta);
81313
81322
  }
81323
+ setBCChangeOfOfficeAddressesInitialDelta(delta) {
81324
+ this.bcChangeOfOfficeAddressesInitialDelta.set(delta);
81325
+ }
81314
81326
  setInitialReturnInitialDelta(delta) {
81315
81327
  this.initialReturnInitialDelta.set(delta);
81316
81328
  }
@@ -81330,6 +81342,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81330
81342
  this.federalUpdateMaintainInitialDelta.set(null);
81331
81343
  this.bcChangeOfDirectorsInitialDelta.set(null);
81332
81344
  this.bcFormationInitialDelta.set(null);
81345
+ this.bcChangeOfOfficeAddressesInitialDelta.set(null);
81333
81346
  }
81334
81347
  static \u0275fac = function DeltaStateService_Factory(__ngFactoryType__) {
81335
81348
  return new (__ngFactoryType__ || _DeltaStateService)();
@@ -84137,7 +84150,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84137
84150
  });
84138
84151
 
84139
84152
  // src/app/constants/BritishColumbiaConstants.ts
84140
- var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BCNotificationMethod, BCNotificationMethodLabel, BC_NOTIFICATION_METHOD_OPTIONS, BC_CHANGE_OF_DIRECTORS_FILING_FEE, BCAnnualReportReminder, BCAnnualReportReminderLabel, BC_ANNUAL_REPORT_REMINDER_OPTIONS, BC_DEFAULT_COUNTRY, BC_FUTURE_EFFECTIVE_DATE_FEE, BC_PASSWORD_MIN_LENGTH, BC_PASSWORD_MAX_LENGTH, BC_PASSWORD_PATTERN, BC_COMPANY_EMAIL_MAX_LENGTH, BC_CANADIAN_POSTAL_PATTERN, BC_NAME_RESERVATION_MAX_LENGTH, BC_NAME_RESERVATION_PATTERN, BC_COMPLETING_PARTY_COUNTRY_OPTIONS;
84153
+ var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BCNotificationMethod, BCNotificationMethodLabel, BC_NOTIFICATION_METHOD_OPTIONS, BC_CHANGE_OF_DIRECTORS_FILING_FEE, BCAnnualReportReminder, BCAnnualReportReminderLabel, BC_ANNUAL_REPORT_REMINDER_OPTIONS, BC_DEFAULT_PROVINCE_STATE, BC_DEFAULT_COUNTRY, BC_FUTURE_EFFECTIVE_DATE_FEE, BC_PASSWORD_MIN_LENGTH, BC_PASSWORD_MAX_LENGTH, BC_PASSWORD_PATTERN, BC_COMPANY_EMAIL_MAX_LENGTH, BC_CANADIAN_POSTAL_PATTERN, BC_NAME_RESERVATION_MAX_LENGTH, BC_NAME_RESERVATION_PATTERN, BC_COMPLETING_PARTY_COUNTRY_OPTIONS;
84141
84154
  var init_BritishColumbiaConstants = __esm({
84142
84155
  "src/app/constants/BritishColumbiaConstants.ts"() {
84143
84156
  init_app_enums();
@@ -84171,7 +84184,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84171
84184
  };
84172
84185
  BC_ANNUAL_REPORT_REMINDER_OPTIONS = Object.values(BCAnnualReportReminder).map((value) => ({ value, label: BCAnnualReportReminderLabel[value] }));
84173
84186
  Object.values(CANProvinces).map((province) => ({ value: province, label: province }));
84174
- CANProvinces.BritishColumbia;
84187
+ BC_DEFAULT_PROVINCE_STATE = CANProvinces.BritishColumbia;
84175
84188
  BC_DEFAULT_COUNTRY = "Canada";
84176
84189
  BC_FUTURE_EFFECTIVE_DATE_FEE = "$100";
84177
84190
  BC_PASSWORD_MIN_LENGTH = 8;
@@ -84190,7 +84203,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84190
84203
  });
84191
84204
 
84192
84205
  // src/app/enums/british-columbia-form.enums.ts
84193
- var BCChangeOfDirectorsFormControls, BCChangeOfDirectorsFormGroups, BCFormationFormControls, BCFormationFormGroups;
84206
+ var BCChangeOfDirectorsFormControls, BCChangeOfDirectorsFormGroups, BCFormationFormControls, BCChangeOfOfficeAddressesFormControls, BCChangeOfOfficeAddressesFormGroups, BCFormationFormGroups;
84194
84207
  var init_british_columbia_form_enums = __esm({
84195
84208
  "src/app/enums/british-columbia-form.enums.ts"() {
84196
84209
  (function(BCChangeOfDirectorsFormControls2) {
@@ -84255,6 +84268,31 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84255
84268
  BCFormationFormControls2["HasConfirmedCompletion"] = "hasConfirmedCompletion";
84256
84269
  BCFormationFormControls2["HasRequiredDocuments"] = "hasRequiredDocuments";
84257
84270
  })(BCFormationFormControls || (BCFormationFormControls = {}));
84271
+ (function(BCChangeOfOfficeAddressesFormControls2) {
84272
+ BCChangeOfOfficeAddressesFormControls2["ClientMatterNumber"] = "ClientMatterNumber";
84273
+ BCChangeOfOfficeAddressesFormControls2["DocketNumber"] = "docketNumber";
84274
+ BCChangeOfOfficeAddressesFormControls2["CorporationName"] = "corporationName";
84275
+ BCChangeOfOfficeAddressesFormControls2["IncorporationNumber"] = "incorporationNumber";
84276
+ BCChangeOfOfficeAddressesFormControls2["CompanyEmail"] = "companyEmail";
84277
+ BCChangeOfOfficeAddressesFormControls2["CurrentMailingAddress"] = "currentMailingAddress";
84278
+ BCChangeOfOfficeAddressesFormControls2["CurrentDeliveryAddress"] = "currentDeliveryAddress";
84279
+ BCChangeOfOfficeAddressesFormControls2["NewMailingAddress"] = "newMailingAddress";
84280
+ BCChangeOfOfficeAddressesFormControls2["NewDeliveryAddress"] = "newDeliveryAddress";
84281
+ BCChangeOfOfficeAddressesFormControls2["DeliverySameAsMailing"] = "deliverySameAsMailing";
84282
+ BCChangeOfOfficeAddressesFormControls2["SameAsRegisteredOffice"] = "sameAsRegisteredOffice";
84283
+ BCChangeOfOfficeAddressesFormControls2["AddressLine1"] = "addressLine1";
84284
+ BCChangeOfOfficeAddressesFormControls2["AddressLine2"] = "addressLine2";
84285
+ BCChangeOfOfficeAddressesFormControls2["City"] = "city";
84286
+ BCChangeOfOfficeAddressesFormControls2["PostalCode"] = "postalCode";
84287
+ BCChangeOfOfficeAddressesFormControls2["Province"] = "province";
84288
+ BCChangeOfOfficeAddressesFormControls2["Country"] = "country";
84289
+ })(BCChangeOfOfficeAddressesFormControls || (BCChangeOfOfficeAddressesFormControls = {}));
84290
+ (function(BCChangeOfOfficeAddressesFormGroups2) {
84291
+ BCChangeOfOfficeAddressesFormGroups2["ReferenceNumbers"] = "Reference Numbers";
84292
+ BCChangeOfOfficeAddressesFormGroups2["CorporationDetails"] = "Corporation Details";
84293
+ BCChangeOfOfficeAddressesFormGroups2["RegisteredOfficeAddress"] = "Registered Office Address";
84294
+ BCChangeOfOfficeAddressesFormGroups2["RecordsOfficeAddress"] = "Records Office Address";
84295
+ })(BCChangeOfOfficeAddressesFormGroups || (BCChangeOfOfficeAddressesFormGroups = {}));
84258
84296
  (function(BCFormationFormGroups2) {
84259
84297
  BCFormationFormGroups2["ReferenceNumbers"] = "Reference Numbers";
84260
84298
  BCFormationFormGroups2["CorporationDetails"] = "Corporation Details";
@@ -84329,7 +84367,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84329
84367
  }
84330
84368
  const password = request.password ?? "";
84331
84369
  if (password.length < BC_PASSWORD_MIN_LENGTH || password.length > BC_PASSWORD_MAX_LENGTH || !/^[A-Za-z0-9]+$/.test(password)) {
84332
- issues.push(`The company password (taken from the entity's registry ID) must be ${BC_PASSWORD_MIN_LENGTH} to ${BC_PASSWORD_MAX_LENGTH} letters or digits only. Update the registry ID in Athennian.`);
84370
+ issues.push(`Company Password must be ${BC_PASSWORD_MIN_LENGTH} to ${BC_PASSWORD_MAX_LENGTH} letters or digits only. Enter it in Corporation Details.`);
84333
84371
  }
84334
84372
  return issues;
84335
84373
  }
@@ -84721,10 +84759,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84721
84759
  // Prefilled from the entity's Business Email when Athennian has one; otherwise the user
84722
84760
  // enters it here (the API requires it).
84723
84761
  [BCFormationFormControls.CompanyEmail]: new FormControl(deltaData?.companyEmail ?? companyEmail, [Validators.required, Validators.email, Validators.maxLength(BC_COMPANY_EMAIL_MAX_LENGTH)]),
84724
- // Not shown on screen: taken from the registry ID when it satisfies the BC password rule
84725
- // (otherwise empty). No validators here, as the user cannot fix it; the payload pre-flight
84726
- // check (`findBCRequestIssues`) reports an unusable value.
84727
- [BCFormationFormControls.CompanyPassword]: new FormControl(deltaData?.password ?? this.suggestPassword(task.entity._profile.registry_id)),
84762
+ // The registry ID is only a suggestion: it is used when it already satisfies the BC
84763
+ // password rule, otherwise the field starts empty for the user to fill in.
84764
+ [BCFormationFormControls.CompanyPassword]: new FormControl(deltaData?.password ?? this.suggestPassword(task.entity._profile.registry_id), [
84765
+ Validators.required,
84766
+ Validators.minLength(BC_PASSWORD_MIN_LENGTH),
84767
+ Validators.maxLength(BC_PASSWORD_MAX_LENGTH),
84768
+ Validators.pattern(BC_PASSWORD_PATTERN)
84769
+ ]),
84728
84770
  [BCFormationFormControls.UsesNameTranslation]: new FormControl(usesNameTranslation),
84729
84771
  [BCFormationFormControls.NameTranslations]: new FormArray(translationRows)
84730
84772
  });
@@ -84826,15 +84868,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84826
84868
  })
84827
84869
  });
84828
84870
  }
84829
- /**
84830
- * Company Email dropdown options: the task's `emailOptions` (distinct addresses), plus the
84831
- * current value when it is not among them (a saved or fallback-prefilled address).
84832
- */
84833
- static buildCompanyEmailOptions(task, currentValue) {
84834
- const emails = (task?.entity.emailOptions ?? []).map((option) => option.value?.trim());
84835
- const current = currentValue?.trim();
84836
- return [...new Set([...emails, current].filter((email) => Boolean(email)))].map((email) => ({ label: email, value: email }));
84837
- }
84838
84871
  static suggestPassword(registryId) {
84839
84872
  const value = registryId?.trim() ?? "";
84840
84873
  return value.length >= BC_PASSWORD_MIN_LENGTH && value.length <= BC_PASSWORD_MAX_LENGTH && BC_PASSWORD_PATTERN.test(value) ? value : "";
@@ -84878,7 +84911,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84878
84911
  init_british_columbia_formation_form_helper();
84879
84912
  Controls = BCChangeOfDirectorsFormControls;
84880
84913
  BritishColumbiaChangeOfDirectorsFormHelper = class {
84881
- static generateConfig(task, _translateFn, currentDataExtract) {
84914
+ static generateConfig(task, _translateFn) {
84882
84915
  const affiliations = task.entity.affiliations ?? [];
84883
84916
  const delta = task.deltaData;
84884
84917
  const format = BritishColumbiaFormationFormHelper.formatFullAddress;
@@ -84907,9 +84940,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84907
84940
  ]),
84908
84941
  [Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
84909
84942
  });
84910
- const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
84911
84943
  const directors = [
84912
- ...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
84944
+ ...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Add)),
84913
84945
  ...outgoing.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Ceased))
84914
84946
  ];
84915
84947
  const fallbackDirectors = directors.length ? [] : this.generateDirectorFormGroupsFromChangeDirectors(task);
@@ -84927,45 +84959,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84927
84959
  });
84928
84960
  return config2;
84929
84961
  }
84930
- static getCurrentDirectorKeys(extract) {
84931
- const keys = /* @__PURE__ */ new Set();
84932
- const visit = (value) => {
84933
- if (Array.isArray(value)) {
84934
- value.forEach((item) => {
84935
- if (item && typeof item === "object") {
84936
- const record = item;
84937
- const role = String(record["role"] ?? record["Role"] ?? record["position"] ?? "").toLowerCase();
84938
- if (!role || role.includes("director")) {
84939
- const person = record["PersonName"] ?? record["personName"] ?? record["person"] ?? record;
84940
- const name = [
84941
- person.firstName ?? person.FirstName,
84942
- person.middleName ?? person.MiddleName,
84943
- person.lastName ?? person.LastName
84944
- ].filter(Boolean).join(" ");
84945
- const id = record["Id"] ?? record["id"] ?? record["affiliationId"] ?? record["AffiliationId"];
84946
- if (id)
84947
- keys.add(this.normaliseDirectorKey(id));
84948
- if (name)
84949
- keys.add(this.normaliseDirectorKey(name));
84950
- }
84951
- }
84952
- visit(item);
84953
- });
84954
- return;
84955
- }
84956
- if (value && typeof value === "object") {
84957
- Object.values(value).forEach(visit);
84958
- }
84959
- };
84960
- visit(extract);
84961
- return keys;
84962
- }
84963
- static getDirectorKey(affiliation) {
84964
- return this.normaliseDirectorKey(generateTaskAffiliationFullName(affiliation));
84965
- }
84966
- static normaliseDirectorKey(value) {
84967
- return String(value ?? "").trim().toLowerCase().replace(/\s+/g, " ");
84968
- }
84969
84962
  static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber, savedClientMatterNumber) {
84970
84963
  return new FormGroup({
84971
84964
  [Controls.ClientMatterNumber]: new FormControl(clientMatterNumber ?? savedClientMatterNumber ?? ""),
@@ -85025,8 +85018,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85025
85018
  const postalAddress = director?.PostalAddress ?? director?.postalAddress;
85026
85019
  const address = postalAddress?.AddressCA ?? postalAddress?.AddressUS ?? postalAddress?.AddressINTL ?? director?.address ?? {};
85027
85020
  return [
85028
- address.streetAddress,
85029
- address.additionalStreetAddress,
85030
85021
  address.Address1 ?? address.address1,
85031
85022
  address.Address2 ?? address.address2,
85032
85023
  address.Address3 ?? address.address3,
@@ -85043,14 +85034,119 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85043
85034
  }
85044
85035
  });
85045
85036
 
85037
+ // src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts
85038
+ var Controls2, EDITABLE_ADDRESS_CONTROLS, BritishColumbiaChangeOfOfficeAddressesFormHelper;
85039
+ var init_british_columbia_change_of_office_addresses_form_helper = __esm({
85040
+ "src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts"() {
85041
+ init_forms();
85042
+ init_common_models();
85043
+ init_british_columbia_form_enums();
85044
+ init_BritishColumbiaConstants();
85045
+ init_british_columbia_formation_form_helper();
85046
+ Controls2 = BCChangeOfOfficeAddressesFormControls;
85047
+ EDITABLE_ADDRESS_CONTROLS = [
85048
+ Controls2.AddressLine1,
85049
+ Controls2.AddressLine2,
85050
+ Controls2.City,
85051
+ Controls2.PostalCode
85052
+ ];
85053
+ BritishColumbiaChangeOfOfficeAddressesFormHelper = class {
85054
+ static generateConfig(task, _translateFn) {
85055
+ const affiliations = task.entity.affiliations ?? [];
85056
+ const delta = task.deltaData;
85057
+ const format = BritishColumbiaFormationFormHelper.formatFullAddress;
85058
+ const pick = BritishColumbiaFormationFormHelper.pickAddress;
85059
+ const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
85060
+ const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
85061
+ const companyEmail = this.resolveCompanyEmail(task);
85062
+ const config2 = {};
85063
+ config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
85064
+ config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
85065
+ [Controls2.CorporationName]: this.readOnly(task.entity._profile.name),
85066
+ [Controls2.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
85067
+ [Controls2.CompanyEmail]: this.readOnly(companyEmail)
85068
+ });
85069
+ const regDeliverySame = delta?.registeredOffice?.deliverySameAsMailing ?? true;
85070
+ config2[BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress] = new FormGroup({
85071
+ [Controls2.CurrentMailingAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Mailing"))),
85072
+ [Controls2.CurrentDeliveryAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Delivery"))),
85073
+ [Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(delta?.registeredOffice?.mailingAddress, true),
85074
+ [Controls2.DeliverySameAsMailing]: new FormControl(regDeliverySame),
85075
+ [Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(delta?.registeredOffice?.deliveryAddress, !regDeliverySame)
85076
+ });
85077
+ const recSameAsRegistered = delta?.recordsOffice?.sameAsRegisteredOffice ?? true;
85078
+ const recDeliverySame = delta?.recordsOffice?.deliverySameAsMailing ?? true;
85079
+ config2[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress] = new FormGroup({
85080
+ [Controls2.CurrentMailingAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Mailing"))),
85081
+ [Controls2.CurrentDeliveryAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Delivery"))),
85082
+ [Controls2.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
85083
+ [Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(delta?.recordsOffice?.mailingAddress, !recSameAsRegistered),
85084
+ [Controls2.DeliverySameAsMailing]: new FormControl(recDeliverySame),
85085
+ [Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(delta?.recordsOffice?.deliveryAddress, !recSameAsRegistered && !recDeliverySame)
85086
+ });
85087
+ return config2;
85088
+ }
85089
+ /**
85090
+ * The company's email, looked up the same way as in the BC Incorporation Application: the
85091
+ * entity's email options, then the Registered Office's Business Email, then the entity's own,
85092
+ * then any other address of the entity (e.g. a Head Office).
85093
+ */
85094
+ static resolveCompanyEmail(task) {
85095
+ const affiliations = task.entity.affiliations ?? [];
85096
+ const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
85097
+ return task.entity.emailOptions?.[0]?.value ?? registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.addresses?.flatMap((a) => a.communications ?? []).find((c) => c.type === "Business Email")?.value ?? "";
85098
+ }
85099
+ /**
85100
+ * Address Line 1*, Address Line 2, City*, Postal Code*, Province (BC), Country (Canada).
85101
+ * Province and Country are always disabled; the rest follow `enabled`.
85102
+ */
85103
+ static createOfficeAddressFormGroup(delta, enabled = true) {
85104
+ const group2 = new FormGroup({
85105
+ [Controls2.AddressLine1]: new FormControl(delta?.addressLine1 ?? "", Validators.required),
85106
+ [Controls2.AddressLine2]: new FormControl(delta?.addressLine2 ?? ""),
85107
+ [Controls2.City]: new FormControl(delta?.city ?? "", Validators.required),
85108
+ [Controls2.PostalCode]: new FormControl(delta?.postalCode ?? "", Validators.required),
85109
+ [Controls2.Province]: this.readOnly(delta?.province ?? BC_DEFAULT_PROVINCE_STATE),
85110
+ [Controls2.Country]: this.readOnly(delta?.country ?? BC_DEFAULT_COUNTRY)
85111
+ });
85112
+ this.setOfficeAddressEnabled(group2, enabled);
85113
+ return group2;
85114
+ }
85115
+ /** Enables or disables the editable controls of an address grid (used by "Same as…" checkboxes). */
85116
+ static setOfficeAddressEnabled(group2, enabled) {
85117
+ if (!group2) {
85118
+ return;
85119
+ }
85120
+ EDITABLE_ADDRESS_CONTROLS.forEach((name) => {
85121
+ const control = group2.get(name);
85122
+ enabled ? control?.enable({ emitEvent: false }) : control?.disable({ emitEvent: false });
85123
+ });
85124
+ group2.updateValueAndValidity({ emitEvent: false });
85125
+ }
85126
+ static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
85127
+ return new FormGroup({
85128
+ [Controls2.ClientMatterNumber]: new FormControl(
85129
+ // `||`, not `??`: a draft saved with the field empty stores '' and must not hide the entity's number.
85130
+ deltaData?.referenceNumber || clientMatterNumber || ""
85131
+ ),
85132
+ [Controls2.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
85133
+ });
85134
+ }
85135
+ static readOnly(value) {
85136
+ return new FormControl({ value: value ?? "", disabled: true });
85137
+ }
85138
+ };
85139
+ }
85140
+ });
85141
+
85046
85142
  // src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
85047
- var Controls2, labelledValue, readOnlyRow, directorsAddedOrDeleted, isNotifyByMail, BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS, BC_COD_CARD_FORM_DIRECTORS_FIELDS, BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
85143
+ var Controls3, labelledValue, readOnlyRow, directorsAddedOrDeleted, isNotifyByMail, BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS, generateBCChangeOfDirectorsIntroFields, BC_COD_CARD_FORM_DIRECTORS_FIELDS, BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
85048
85144
  var init_british_columbia_change_of_directors_form_constants = __esm({
85049
85145
  "src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
85050
85146
  init_form_enums();
85051
85147
  init_british_columbia_form_enums();
85052
85148
  init_BritishColumbiaConstants();
85053
- Controls2 = BCChangeOfDirectorsFormControls;
85149
+ Controls3 = BCChangeOfDirectorsFormControls;
85054
85150
  labelledValue = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("Not specified")}`;
85055
85151
  readOnlyRow = (label, control, className = "span-12") => ({
85056
85152
  type: FormType.Text,
@@ -85058,24 +85154,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85058
85154
  class: className,
85059
85155
  dynamicLabel: (form, t) => labelledValue(label, form.get(control)?.value, t)
85060
85156
  });
85061
- directorsAddedOrDeleted = (form) => Boolean(form.get(Controls2.DirectorsAddedOrDeleted)?.value);
85062
- isNotifyByMail = (form) => form.get(Controls2.NotificationMethod)?.value === BCNotificationMethod.Mail;
85157
+ directorsAddedOrDeleted = (form) => Boolean(form.get(Controls3.DirectorsAddedOrDeleted)?.value);
85158
+ isNotifyByMail = (form) => form.get(Controls3.NotificationMethod)?.value === BCNotificationMethod.Mail;
85063
85159
  BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS = [
85064
85160
  {
85065
85161
  type: FormType.Input,
85066
85162
  label: "Client/Matter Number",
85067
- formControlName: Controls2.ClientMatterNumber
85163
+ formControlName: Controls3.ClientMatterNumber
85068
85164
  },
85069
85165
  {
85070
85166
  type: FormType.Input,
85071
85167
  label: "Docket Number",
85072
- formControlName: Controls2.DocketNumber
85168
+ formControlName: Controls3.DocketNumber
85073
85169
  }
85074
85170
  ];
85075
85171
  BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS = [
85076
- readOnlyRow("Corporation Name", Controls2.CorporationName),
85077
- readOnlyRow("Incorporation Number", Controls2.IncorporationNumber),
85078
- readOnlyRow("Company Email", Controls2.CompanyEmail)
85172
+ readOnlyRow("Corporation Name", Controls3.CorporationName),
85173
+ readOnlyRow("Incorporation Number", Controls3.IncorporationNumber),
85174
+ readOnlyRow("Company Email", Controls3.CompanyEmail)
85079
85175
  ];
85080
85176
  BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS = [
85081
85177
  {
@@ -85087,24 +85183,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85087
85183
  {
85088
85184
  type: FormType.Checkbox,
85089
85185
  label: "Directors will be added and/or deleted as part of this filing",
85090
- formControlName: Controls2.DirectorsAddedOrDeleted,
85186
+ formControlName: Controls3.DirectorsAddedOrDeleted,
85091
85187
  class: "span-12",
85092
85188
  onChange: (form) => {
85093
85189
  if (!directorsAddedOrDeleted(form)) {
85094
- form.get(Controls2.ChangeDate)?.setValue("", { emitEvent: false });
85190
+ form.get(Controls3.ChangeDate)?.setValue("", { emitEvent: false });
85095
85191
  }
85096
- form.get(Controls2.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
85192
+ form.get(Controls3.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
85097
85193
  }
85098
85194
  },
85099
85195
  {
85100
85196
  type: FormType.Date,
85101
85197
  label: "Date Directors were added or deleted",
85102
- formControlName: Controls2.ChangeDate,
85198
+ formControlName: Controls3.ChangeDate,
85103
85199
  required: true,
85104
85200
  isVisible: directorsAddedOrDeleted,
85105
85201
  class: "span-8"
85106
85202
  },
85107
- __spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls2.FilingFee, "span-4")), {
85203
+ __spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls3.FilingFee, "span-4")), {
85108
85204
  isVisible: directorsAddedOrDeleted
85109
85205
  }),
85110
85206
  {
@@ -85115,35 +85211,43 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85115
85211
  dynamicLabel: (_, t) => t("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.")
85116
85212
  }
85117
85213
  ];
85214
+ generateBCChangeOfDirectorsIntroFields = (registerAsOf) => [
85215
+ {
85216
+ type: FormType.Text,
85217
+ formControlName: "",
85218
+ class: "span-12",
85219
+ dynamicLabel: (_, t) => t("These are the directors on the corporate register as of {{date}}. Director appointments, cessations and changes to a director's details are made on the task before this filing \u2014 they cannot be added, ceased, or edited here. Ceasing or adding a director requires the checkbox and date in Filing Details above.").replace("{{date}}", registerAsOf)
85220
+ }
85221
+ ];
85118
85222
  BC_COD_CARD_FORM_DIRECTORS_FIELDS = [
85119
- readOnlyRow("Mailing Address - Full Address", Controls2.MailingAddress),
85120
- readOnlyRow("Delivery Address - Full Address", Controls2.DeliveryAddress)
85223
+ readOnlyRow("Mailing Address - Full Address", Controls3.MailingAddress),
85224
+ readOnlyRow("Delivery Address - Full Address", Controls3.DeliveryAddress)
85121
85225
  ];
85122
85226
  [
85123
85227
  {
85124
85228
  type: FormType.Select,
85125
85229
  label: "Notification Method",
85126
- formControlName: Controls2.NotificationMethod,
85230
+ formControlName: Controls3.NotificationMethod,
85127
85231
  required: true,
85128
85232
  options: BC_NOTIFICATION_METHOD_OPTIONS,
85129
85233
  needTranslate: true,
85130
85234
  class: "span-6",
85131
- onChange: (form) => form.get(Controls2.NotificationEmail)?.updateValueAndValidity({ emitEvent: false })
85235
+ onChange: (form) => form.get(Controls3.NotificationEmail)?.updateValueAndValidity({ emitEvent: false })
85132
85236
  },
85133
85237
  {
85134
85238
  type: FormType.Input,
85135
85239
  label: "Notification Email",
85136
- formControlName: Controls2.NotificationEmail,
85240
+ formControlName: Controls3.NotificationEmail,
85137
85241
  required: true,
85138
85242
  isVisible: (form) => !isNotifyByMail(form),
85139
85243
  class: "column-3"
85140
85244
  },
85141
85245
  {
85142
85246
  type: FormType.Text,
85143
- formControlName: Controls2.NotificationMailingAddress,
85247
+ formControlName: Controls3.NotificationMailingAddress,
85144
85248
  class: "span-12",
85145
85249
  isVisible: isNotifyByMail,
85146
- dynamicLabel: (form, t) => `<span class="body-1-semibold">${t("Mailing Address")}:</span> ${t("defaults to Registered Office mailing address")} (${form.get(Controls2.NotificationMailingAddress)?.value || t("Not specified")})`
85250
+ dynamicLabel: (form, t) => `<span class="body-1-semibold">${t("Mailing Address")}:</span> ${t("defaults to Registered Office mailing address")} (${form.get(Controls3.NotificationMailingAddress)?.value || t("Not specified")})`
85147
85251
  }
85148
85252
  ];
85149
85253
  BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS = [
@@ -85156,7 +85260,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85156
85260
  {
85157
85261
  type: FormType.Select,
85158
85262
  label: "Annual Report Reminder",
85159
- formControlName: Controls2.AnnualReportReminder,
85263
+ formControlName: Controls3.AnnualReportReminder,
85160
85264
  required: true,
85161
85265
  options: BC_ANNUAL_REPORT_REMINDER_OPTIONS,
85162
85266
  needTranslate: true,
@@ -85188,7 +85292,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85188
85292
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template(rf, ctx) {
85189
85293
  if (rf & 1) {
85190
85294
  const _r2 = \u0275\u0275getCurrentView();
85191
- \u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 10);
85295
+ \u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 11);
85192
85296
  \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
85193
85297
  \u0275\u0275restoreView(_r2);
85194
85298
  const ctx_r0 = \u0275\u0275nextContext();
@@ -85206,7 +85310,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85206
85310
  }
85207
85311
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template(rf, ctx) {
85208
85312
  if (rf & 1) {
85209
- \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p")(3, "strong");
85313
+ \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 12)(2, "p")(3, "strong");
85210
85314
  \u0275\u0275text(4);
85211
85315
  \u0275\u0275pipe(5, "translate");
85212
85316
  \u0275\u0275elementEnd();
@@ -85249,13 +85353,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85249
85353
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template(rf, ctx) {
85250
85354
  if (rf & 1) {
85251
85355
  const _r7 = \u0275\u0275getCurrentView();
85252
- \u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "label");
85356
+ \u0275\u0275elementStart(0, "div", 16)(1, "div", 17)(2, "label");
85253
85357
  \u0275\u0275text(3);
85254
85358
  \u0275\u0275pipe(4, "translate");
85255
85359
  \u0275\u0275elementStart(5, "span");
85256
85360
  \u0275\u0275text(6, "*");
85257
85361
  \u0275\u0275elementEnd()();
85258
- \u0275\u0275elementStart(7, "mat-form-field", 17)(8, "input", 18);
85362
+ \u0275\u0275elementStart(7, "mat-form-field", 18)(8, "input", 19);
85259
85363
  \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_click_8_listener() {
85260
85364
  \u0275\u0275restoreView(_r7);
85261
85365
  const changeDatePicker_r8 = \u0275\u0275reference(12);
@@ -85267,21 +85371,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85267
85371
  return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
85268
85372
  });
85269
85373
  \u0275\u0275elementEnd();
85270
- \u0275\u0275elementStart(9, "button", 19);
85374
+ \u0275\u0275elementStart(9, "button", 20);
85271
85375
  \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_button_click_9_listener() {
85272
85376
  \u0275\u0275restoreView(_r7);
85273
85377
  const changeDatePicker_r8 = \u0275\u0275reference(12);
85274
85378
  return \u0275\u0275resetView(changeDatePicker_r8.open());
85275
85379
  });
85276
- \u0275\u0275element(10, "span", 20);
85380
+ \u0275\u0275element(10, "span", 21);
85277
85381
  \u0275\u0275elementEnd();
85278
85382
  \u0275\u0275element(11, "mat-datepicker", null, 0);
85279
85383
  \u0275\u0275elementEnd();
85280
- \u0275\u0275elementStart(13, "p", 21);
85384
+ \u0275\u0275elementStart(13, "p", 22);
85281
85385
  \u0275\u0275text(14);
85282
85386
  \u0275\u0275pipe(15, "translate");
85283
85387
  \u0275\u0275elementEnd()();
85284
- \u0275\u0275elementStart(16, "p", 22)(17, "strong");
85388
+ \u0275\u0275elementStart(16, "p", 23)(17, "strong");
85285
85389
  \u0275\u0275text(18);
85286
85390
  \u0275\u0275pipe(19, "translate");
85287
85391
  \u0275\u0275elementEnd();
@@ -85308,14 +85412,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85308
85412
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
85309
85413
  if (rf & 1) {
85310
85414
  const _r5 = \u0275\u0275getCurrentView();
85311
- \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 12)(2, "div", 13)(3, "strong");
85415
+ \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 13)(2, "div", 14)(3, "strong");
85312
85416
  \u0275\u0275text(4);
85313
85417
  \u0275\u0275pipe(5, "translate");
85314
85418
  \u0275\u0275elementEnd();
85315
85419
  \u0275\u0275text(6);
85316
85420
  \u0275\u0275pipe(7, "translate");
85317
85421
  \u0275\u0275elementEnd();
85318
- \u0275\u0275elementStart(8, "mat-checkbox", 14);
85422
+ \u0275\u0275elementStart(8, "mat-checkbox", 15);
85319
85423
  \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
85320
85424
  let tmp_7_0;
85321
85425
  let tmp_8_0;
@@ -85329,7 +85433,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85329
85433
  \u0275\u0275text(9);
85330
85434
  \u0275\u0275pipe(10, "translate");
85331
85435
  \u0275\u0275elementEnd();
85332
- \u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div", 15);
85436
+ \u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div", 16);
85333
85437
  \u0275\u0275elementEnd()();
85334
85438
  }
85335
85439
  if (rf & 2) {
@@ -85351,9 +85455,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85351
85455
  \u0275\u0275conditional(((tmp_14_0 = filingDetails_r6.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_14_0.value) ? 11 : -1);
85352
85456
  }
85353
85457
  }
85354
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
85458
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
85355
85459
  if (rf & 1) {
85356
- \u0275\u0275elementStart(0, "span", 27);
85460
+ \u0275\u0275elementStart(0, "span", 28);
85357
85461
  \u0275\u0275text(1);
85358
85462
  \u0275\u0275pipe(2, "translate");
85359
85463
  \u0275\u0275elementEnd();
@@ -85363,9 +85467,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85363
85467
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "NEW"));
85364
85468
  }
85365
85469
  }
85366
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
85470
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
85367
85471
  if (rf & 1) {
85368
- \u0275\u0275elementStart(0, "span", 28);
85472
+ \u0275\u0275elementStart(0, "span", 29);
85369
85473
  \u0275\u0275text(1);
85370
85474
  \u0275\u0275pipe(2, "translate");
85371
85475
  \u0275\u0275elementEnd();
@@ -85375,17 +85479,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85375
85479
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "CEASE"));
85376
85480
  }
85377
85481
  }
85378
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
85482
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Template(rf, ctx) {
85379
85483
  if (rf & 1) {
85380
- \u0275\u0275elementStart(0, "div", 25)(1, "div", 26)(2, "strong");
85484
+ \u0275\u0275elementStart(0, "div", 26)(1, "div", 27)(2, "strong");
85381
85485
  \u0275\u0275text(3);
85382
85486
  \u0275\u0275elementEnd();
85383
- \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);
85487
+ \u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 28)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 29);
85384
85488
  \u0275\u0275elementEnd();
85385
- \u0275\u0275elementStart(6, "div", 26);
85489
+ \u0275\u0275elementStart(6, "div", 27);
85386
85490
  \u0275\u0275text(7);
85387
85491
  \u0275\u0275elementEnd();
85388
- \u0275\u0275elementStart(8, "div", 26);
85492
+ \u0275\u0275elementStart(8, "div", 27);
85389
85493
  \u0275\u0275text(9);
85390
85494
  \u0275\u0275elementEnd()();
85391
85495
  }
@@ -85408,33 +85512,33 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85408
85512
  \u0275\u0275textInterpolate((tmp_23_0 = directorForm_r9.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
85409
85513
  }
85410
85514
  }
85411
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
85515
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Template(rf, ctx) {
85412
85516
  if (rf & 1) {
85413
85517
  \u0275\u0275declareLet(0);
85414
- \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 25);
85518
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Template, 10, 5, "div", 26);
85415
85519
  }
85416
85520
  if (rf & 2) {
85417
- const \u0275$index_115_r10 = ctx.$index;
85418
- const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_115_r10));
85521
+ const \u0275$index_117_r10 = ctx.$index;
85522
+ const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_117_r10));
85419
85523
  \u0275\u0275advance();
85420
85524
  \u0275\u0275conditional(directorForm_r11 ? 1 : -1);
85421
85525
  }
85422
85526
  }
85423
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
85527
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
85424
85528
  if (rf & 1) {
85425
- \u0275\u0275elementStart(0, "div", 8)(1, "div", 23)(2, "div", 24);
85529
+ \u0275\u0275elementStart(0, "div", 9)(1, "div", 24)(2, "div", 25);
85426
85530
  \u0275\u0275text(3);
85427
85531
  \u0275\u0275pipe(4, "translate");
85428
85532
  \u0275\u0275elementEnd();
85429
- \u0275\u0275elementStart(5, "div", 24);
85533
+ \u0275\u0275elementStart(5, "div", 25);
85430
85534
  \u0275\u0275text(6);
85431
85535
  \u0275\u0275pipe(7, "translate");
85432
85536
  \u0275\u0275elementEnd();
85433
- \u0275\u0275elementStart(8, "div", 24);
85537
+ \u0275\u0275elementStart(8, "div", 25);
85434
85538
  \u0275\u0275text(9);
85435
85539
  \u0275\u0275pipe(10, "translate");
85436
85540
  \u0275\u0275elementEnd()();
85437
- \u0275\u0275repeaterCreate(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template, 2, 2, null, null, \u0275\u0275repeaterTrackByIdentity);
85541
+ \u0275\u0275repeaterCreate(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Template, 2, 2, null, null, \u0275\u0275repeaterTrackByIdentity);
85438
85542
  \u0275\u0275elementEnd();
85439
85543
  }
85440
85544
  if (rf & 2) {
@@ -85450,9 +85554,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85450
85554
  \u0275\u0275repeater(directorsArray_r12.controls);
85451
85555
  }
85452
85556
  }
85453
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
85557
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_14_Template(rf, ctx) {
85454
85558
  if (rf & 1) {
85455
- \u0275\u0275elementStart(0, "h2", 9);
85559
+ \u0275\u0275elementStart(0, "h2", 10);
85456
85560
  \u0275\u0275text(1);
85457
85561
  \u0275\u0275pipe(2, "translate");
85458
85562
  \u0275\u0275elementEnd();
@@ -85462,32 +85566,32 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85462
85566
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "Unchanged"));
85463
85567
  }
85464
85568
  }
85465
- function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
85569
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_16_Template(rf, ctx) {
85466
85570
  if (rf & 1) {
85467
85571
  const _r13 = \u0275\u0275getCurrentView();
85468
- \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 29)(2, "p");
85572
+ \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 30)(2, "p");
85469
85573
  \u0275\u0275text(3);
85470
85574
  \u0275\u0275pipe(4, "translate");
85471
85575
  \u0275\u0275elementEnd();
85472
- \u0275\u0275elementStart(5, "mat-radio-group", 30);
85473
- \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template_mat_radio_group_change_5_listener() {
85576
+ \u0275\u0275elementStart(5, "mat-radio-group", 31);
85577
+ \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_16_Template_mat_radio_group_change_5_listener() {
85474
85578
  \u0275\u0275restoreView(_r13);
85475
85579
  const ctx_r0 = \u0275\u0275nextContext();
85476
- const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
85580
+ const annualReportReminder_r14 = \u0275\u0275readContextLet(15);
85477
85581
  return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r14.valid));
85478
85582
  });
85479
- \u0275\u0275elementStart(6, "mat-radio-button", 31);
85583
+ \u0275\u0275elementStart(6, "mat-radio-button", 32);
85480
85584
  \u0275\u0275text(7);
85481
85585
  \u0275\u0275pipe(8, "translate");
85482
85586
  \u0275\u0275elementEnd();
85483
- \u0275\u0275elementStart(9, "mat-radio-button", 31);
85587
+ \u0275\u0275elementStart(9, "mat-radio-button", 32);
85484
85588
  \u0275\u0275text(10);
85485
85589
  \u0275\u0275pipe(11, "translate");
85486
85590
  \u0275\u0275elementEnd()()()();
85487
85591
  }
85488
85592
  if (rf & 2) {
85489
85593
  const ctx_r0 = \u0275\u0275nextContext();
85490
- const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
85594
+ const annualReportReminder_r14 = \u0275\u0275readContextLet(15);
85491
85595
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
85492
85596
  \u0275\u0275advance();
85493
85597
  \u0275\u0275property("formGroup", annualReportReminder_r14);
@@ -85542,6 +85646,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85542
85646
  filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
85543
85647
  directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
85544
85648
  annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
85649
+ directorsIntroFields = computed(() => {
85650
+ const date = this.form().get(this.groups.Notification)?.get(this.controls.RegisterAsOfDate)?.value ?? "";
85651
+ return generateBCChangeOfDirectorsIntroFields(date);
85652
+ });
85545
85653
  initiallyOpenCardsCount = 3;
85546
85654
  sectionValidity = {};
85547
85655
  isVisiblyValid() {
@@ -85576,7 +85684,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85576
85684
  static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
85577
85685
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
85578
85686
  };
85579
- 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) {
85687
+ 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: 17, vars: 17, 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"], [3, "isSubmitted", "form", "config"], ["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) {
85580
85688
  if (rf & 1) {
85581
85689
  \u0275\u0275elementStart(0, "div", 1);
85582
85690
  \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 2)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 3);
@@ -85589,10 +85697,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85589
85697
  \u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 7);
85590
85698
  \u0275\u0275declareLet(10);
85591
85699
  \u0275\u0275elementStart(11, "expandable-card", 6);
85592
- \u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 8)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 9);
85700
+ \u0275\u0275element(12, "filing-form-group", 8);
85701
+ \u0275\u0275template(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 13, 9, "div", 9)(14, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_14_Template, 3, 3, "h2", 10);
85593
85702
  \u0275\u0275elementEnd();
85594
- \u0275\u0275declareLet(14);
85595
- \u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 7);
85703
+ \u0275\u0275declareLet(15);
85704
+ \u0275\u0275template(16, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_16_Template, 12, 16, "expandable-card", 7);
85596
85705
  \u0275\u0275elementEnd()();
85597
85706
  }
85598
85707
  if (rf & 2) {
@@ -85617,11 +85726,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85617
85726
  \u0275\u0275advance();
85618
85727
  \u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
85619
85728
  \u0275\u0275advance();
85620
- \u0275\u0275conditional(directorsArray_r18 && directorsArray_r18.length ? 12 : 13);
85729
+ \u0275\u0275property("isSubmitted", ctx.isSubmitted())("form", ctx.form())("config", ctx.directorsIntroFields());
85730
+ \u0275\u0275advance();
85731
+ \u0275\u0275conditional(directorsArray_r18 && directorsArray_r18.length ? 13 : 14);
85621
85732
  \u0275\u0275advance(2);
85622
85733
  const annualReportReminder_r19 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85623
85734
  \u0275\u0275advance();
85624
- \u0275\u0275conditional(annualReportReminder_r19 ? 15 : -1);
85735
+ \u0275\u0275conditional(annualReportReminder_r19 ? 16 : -1);
85625
85736
  }
85626
85737
  }, dependencies: [
85627
85738
  FilingFormGroupComponent,
@@ -85790,8 +85901,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85790
85901
  \r
85791
85902
  @let directorsArray = getFormArray(groups.Directors);\r
85792
85903
  \r
85793
- <expandable-card [isStatusIcon]="false" [title]="groups.Directors">
85794
- @if (directorsArray && directorsArray.length) {
85904
+ <expandable-card [isStatusIcon]="false" [title]="groups.Directors">\r
85905
+ <filing-form-group\r
85906
+ [isSubmitted]="isSubmitted()"\r
85907
+ [form]="form()"\r
85908
+ [config]="directorsIntroFields()"\r
85909
+ />\r
85910
+ \r
85911
+ @if (directorsArray && directorsArray.length) {\r
85795
85912
  <div class="directors-table" role="table">\r
85796
85913
  <div class="directors-table-header" role="row">\r
85797
85914
  <div role="columnheader">{{ 'Name' | translate }}</div>\r
@@ -85858,7 +85975,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85858
85975
  }], null, null);
85859
85976
  })();
85860
85977
  (() => {
85861
- (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 });
85978
+ (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 });
85862
85979
  })();
85863
85980
  }
85864
85981
  });
@@ -86166,15 +86283,27 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86166
86283
  dynamicLabel: (_, t) => t("There is an additional fee of {{fee}} for an effective date in the future.").replace("{{fee}}", BC_FUTURE_EFFECTIVE_DATE_FEE)
86167
86284
  },
86168
86285
  {
86169
- // Options are filled per task from `task.entity.emailOptions` by the incorporation form.
86170
- type: FormType.Select,
86286
+ type: FormType.Input,
86287
+ inputType: "email",
86171
86288
  label: "Company Email",
86172
86289
  formControlName: BCFormationFormControls.CompanyEmail,
86173
86290
  required: true,
86174
- options: [],
86291
+ maxLength: BC_COMPANY_EMAIL_MAX_LENGTH,
86292
+ errorMessage: "Enter a valid email address",
86293
+ showRequiredMessage: true,
86294
+ class: "span-6"
86295
+ },
86296
+ {
86297
+ type: FormType.Input,
86298
+ inputType: "password",
86299
+ label: "Company Password",
86300
+ formControlName: BCFormationFormControls.CompanyPassword,
86301
+ required: true,
86302
+ maxLength: BC_PASSWORD_MAX_LENGTH,
86303
+ errorMessage: "Company Password must be 8 to 15 characters",
86304
+ showRequiredMessage: true,
86175
86305
  class: "span-6"
86176
86306
  }
86177
- // The company password is not shown: it is taken from the entity's registry ID.
86178
86307
  ];
86179
86308
  BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS = [
86180
86309
  {
@@ -86533,7 +86662,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86533
86662
  const corporationDetails_r11 = \u0275\u0275readContextLet(6);
86534
86663
  \u0275\u0275property("isValid", ctx_r0.sectionValidity["corpDetails"] && ctx_r0.sectionValidity["nameTranslation"] && ctx_r0.areNameTranslationsValid())("isStatusIcon", ctx_r0.statusIcon())("title", ctx_r0.groups.CorporationDetails);
86535
86664
  \u0275\u0275advance(2);
86536
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r11)("config", ctx_r0.corporationDetailsFields());
86665
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r11)("config", ctx_r0.corporationDetailsFields);
86537
86666
  \u0275\u0275advance(2);
86538
86667
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(5, 11, "Name Translation"));
86539
86668
  \u0275\u0275advance(2);
@@ -86768,12 +86897,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86768
86897
  groups = BCFormationFormGroups;
86769
86898
  controls = BCFormationFormControls;
86770
86899
  referenceNumbersFields = BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS;
86771
- /** Corporation Details fields, with the Company Email dropdown filled from the task. */
86772
- corporationDetailsFields = computed(() => {
86773
- const currentEmail = this.form().get(this.groups.CorporationDetails)?.get(this.controls.CompanyEmail)?.value;
86774
- const emailOptions = BritishColumbiaFormationFormHelper.buildCompanyEmailOptions(this.task(), currentEmail);
86775
- return BC_FORMATION_DELTA_CARD_FORM_CORPORATION_DETAILS_FIELDS.map((field) => field.formControlName === this.controls.CompanyEmail ? __spreadProps(__spreadValues({}, field), { options: emailOptions }) : field);
86776
- });
86900
+ corporationDetailsFields = BC_FORMATION_DELTA_CARD_FORM_CORPORATION_DETAILS_FIELDS;
86777
86901
  nameTranslationFields = BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS;
86778
86902
  nameTranslationRowFields = BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS;
86779
86903
  registeredOfficeFields = BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS;
@@ -86963,7 +87087,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86963
87087
  <filing-form-group\r
86964
87088
  [isSubmitted]="isSubmitted()"\r
86965
87089
  [form]="corporationDetails"\r
86966
- [config]="corporationDetailsFields()"\r
87090
+ [config]="corporationDetailsFields"\r
86967
87091
  (visiblyValidChange)="onSectionValidChange('corpDetails', $event)"\r
86968
87092
  />\r
86969
87093
  \r
@@ -87384,11 +87508,895 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87384
87508
  }
87385
87509
  });
87386
87510
 
87511
+ // src/app/constants/ui/british-columbia-change-of-office-addresses-form.constants.ts
87512
+ var Controls4, labelledValue3, readOnlyRow2, isChecked, addressGroup, BC_COA_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, effectiveDateNote, BC_COA_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_COA_CARD_FORM_CURRENT_ADDRESSES_FIELDS, BC_COA_DELTA_CARD_FORM_OFFICE_ADDRESS_FIELDS, BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS, BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS, BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
87513
+ var init_british_columbia_change_of_office_addresses_form_constants = __esm({
87514
+ "src/app/constants/ui/british-columbia-change-of-office-addresses-form.constants.ts"() {
87515
+ init_form_enums();
87516
+ init_british_columbia_form_enums();
87517
+ init_british_columbia_change_of_office_addresses_form_helper();
87518
+ Controls4 = BCChangeOfOfficeAddressesFormControls;
87519
+ labelledValue3 = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("Not specified")}`;
87520
+ readOnlyRow2 = (label, control, className = "span-12") => ({
87521
+ type: FormType.Text,
87522
+ formControlName: control,
87523
+ class: className,
87524
+ dynamicLabel: (form, t) => labelledValue3(label, form.get(control)?.value, t)
87525
+ });
87526
+ isChecked = (form, control) => Boolean(form.get(control)?.value);
87527
+ addressGroup = (form, control) => form.get(control);
87528
+ BC_COA_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS = [
87529
+ {
87530
+ type: FormType.Input,
87531
+ label: "Client/Matter Number",
87532
+ formControlName: Controls4.ClientMatterNumber
87533
+ },
87534
+ {
87535
+ type: FormType.Input,
87536
+ label: "Docket Number",
87537
+ formControlName: Controls4.DocketNumber
87538
+ }
87539
+ ];
87540
+ effectiveDateNote = {
87541
+ type: FormType.Text,
87542
+ formControlName: "",
87543
+ class: "span-12 note-box",
87544
+ dynamicLabel: (_, t) => `<span class="body-1-semibold">${t("Note")}:</span> ${t("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.")}`
87545
+ };
87546
+ BC_COA_CARD_FORM_CORPORATION_DETAILS_FIELDS = [
87547
+ readOnlyRow2("Corporation Name", Controls4.CorporationName),
87548
+ readOnlyRow2("Incorporation Number", Controls4.IncorporationNumber),
87549
+ readOnlyRow2("Company Email", Controls4.CompanyEmail),
87550
+ effectiveDateNote
87551
+ ];
87552
+ BC_COA_CARD_FORM_CURRENT_ADDRESSES_FIELDS = [
87553
+ readOnlyRow2("Current Mailing Address", Controls4.CurrentMailingAddress),
87554
+ readOnlyRow2("Current Delivery Address", Controls4.CurrentDeliveryAddress)
87555
+ ];
87556
+ BC_COA_DELTA_CARD_FORM_OFFICE_ADDRESS_FIELDS = [
87557
+ {
87558
+ type: FormType.Input,
87559
+ label: "Address Line 1",
87560
+ formControlName: Controls4.AddressLine1,
87561
+ required: true,
87562
+ class: "span-6"
87563
+ },
87564
+ {
87565
+ type: FormType.Input,
87566
+ label: "Address Line 2",
87567
+ formControlName: Controls4.AddressLine2,
87568
+ class: "span-6"
87569
+ },
87570
+ {
87571
+ type: FormType.Input,
87572
+ label: "City",
87573
+ formControlName: Controls4.City,
87574
+ required: true,
87575
+ class: "span-6"
87576
+ },
87577
+ {
87578
+ type: FormType.Input,
87579
+ label: "Postal Code",
87580
+ formControlName: Controls4.PostalCode,
87581
+ required: true,
87582
+ class: "span-6"
87583
+ },
87584
+ {
87585
+ type: FormType.Input,
87586
+ label: "Province",
87587
+ formControlName: Controls4.Province,
87588
+ readonly: true,
87589
+ class: "span-6"
87590
+ },
87591
+ {
87592
+ type: FormType.Input,
87593
+ label: "Country",
87594
+ formControlName: Controls4.Country,
87595
+ readonly: true,
87596
+ class: "span-6"
87597
+ }
87598
+ ];
87599
+ BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS = [
87600
+ {
87601
+ type: FormType.Text,
87602
+ formControlName: "",
87603
+ class: "span-12",
87604
+ dynamicLabel: (_, t) => t("The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.")
87605
+ }
87606
+ ];
87607
+ BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS = [
87608
+ {
87609
+ type: FormType.Checkbox,
87610
+ label: "Same as Mailing Address",
87611
+ formControlName: Controls4.DeliverySameAsMailing,
87612
+ class: "span-12",
87613
+ onChange: (form) => BritishColumbiaChangeOfOfficeAddressesFormHelper.setOfficeAddressEnabled(addressGroup(form, Controls4.NewDeliveryAddress), !isChecked(form, Controls4.DeliverySameAsMailing))
87614
+ }
87615
+ ];
87616
+ BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS = [
87617
+ {
87618
+ type: FormType.Checkbox,
87619
+ label: "Same as Registered Office",
87620
+ formControlName: Controls4.SameAsRegisteredOffice,
87621
+ class: "span-12",
87622
+ onChange: (form) => {
87623
+ const sameAsRegistered = isChecked(form, Controls4.SameAsRegisteredOffice);
87624
+ const deliverySame = isChecked(form, Controls4.DeliverySameAsMailing);
87625
+ BritishColumbiaChangeOfOfficeAddressesFormHelper.setOfficeAddressEnabled(addressGroup(form, Controls4.NewMailingAddress), !sameAsRegistered);
87626
+ BritishColumbiaChangeOfOfficeAddressesFormHelper.setOfficeAddressEnabled(addressGroup(form, Controls4.NewDeliveryAddress), !sameAsRegistered && !deliverySame);
87627
+ }
87628
+ }
87629
+ ];
87630
+ }
87631
+ });
87632
+
87633
+ // src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts
87634
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template(rf, ctx) {
87635
+ if (rf & 1) {
87636
+ \u0275\u0275element(0, "alert", 1);
87637
+ }
87638
+ if (rf & 2) {
87639
+ const ctx_r0 = \u0275\u0275nextContext();
87640
+ \u0275\u0275property("type", ctx_r0.alertType.Info);
87641
+ }
87642
+ }
87643
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template(rf, ctx) {
87644
+ if (rf & 1) {
87645
+ \u0275\u0275element(0, "alert", 2);
87646
+ }
87647
+ if (rf & 2) {
87648
+ const ctx_r0 = \u0275\u0275nextContext();
87649
+ \u0275\u0275property("content", ctx_r0.errors());
87650
+ }
87651
+ }
87652
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template(rf, ctx) {
87653
+ if (rf & 1) {
87654
+ const _r2 = \u0275\u0275getCurrentView();
87655
+ \u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 7);
87656
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
87657
+ \u0275\u0275restoreView(_r2);
87658
+ const ctx_r0 = \u0275\u0275nextContext();
87659
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
87660
+ });
87661
+ \u0275\u0275elementEnd()();
87662
+ }
87663
+ if (rf & 2) {
87664
+ const ctx_r0 = \u0275\u0275nextContext();
87665
+ const referenceNumbers_r3 = \u0275\u0275readContextLet(4);
87666
+ \u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
87667
+ \u0275\u0275advance();
87668
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
87669
+ }
87670
+ }
87671
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template(rf, ctx) {
87672
+ if (rf & 1) {
87673
+ \u0275\u0275elementStart(0, "expandable-card", 5);
87674
+ \u0275\u0275element(1, "filing-form-group", 8);
87675
+ \u0275\u0275elementEnd();
87676
+ }
87677
+ if (rf & 2) {
87678
+ const ctx_r0 = \u0275\u0275nextContext();
87679
+ const corporationDetails_r4 = \u0275\u0275readContextLet(6);
87680
+ \u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.CorporationDetails);
87681
+ \u0275\u0275advance();
87682
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r4)("config", ctx_r0.corporationDetailsFields);
87683
+ }
87684
+ }
87685
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template(rf, ctx) {
87686
+ if (rf & 1) {
87687
+ const _r6 = \u0275\u0275getCurrentView();
87688
+ \u0275\u0275elementStart(0, "filing-form-group", 7);
87689
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template_filing_form_group_visiblyValidChange_0_listener() {
87690
+ \u0275\u0275restoreView(_r6);
87691
+ const ctx_r0 = \u0275\u0275nextContext(2);
87692
+ return \u0275\u0275resetView(ctx_r0.emitValidity());
87693
+ });
87694
+ \u0275\u0275elementEnd();
87695
+ }
87696
+ if (rf & 2) {
87697
+ \u0275\u0275nextContext();
87698
+ const registeredMailing_r7 = \u0275\u0275readContextLet(0);
87699
+ const ctx_r0 = \u0275\u0275nextContext();
87700
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredMailing_r7)("config", ctx_r0.addressFields);
87701
+ }
87702
+ }
87703
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template(rf, ctx) {
87704
+ if (rf & 1) {
87705
+ const _r8 = \u0275\u0275getCurrentView();
87706
+ \u0275\u0275element(0, "filing-form-group", 8);
87707
+ \u0275\u0275elementStart(1, "filing-form-group", 7);
87708
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template_filing_form_group_visiblyValidChange_1_listener() {
87709
+ \u0275\u0275restoreView(_r8);
87710
+ const ctx_r0 = \u0275\u0275nextContext(2);
87711
+ return \u0275\u0275resetView(ctx_r0.emitValidity());
87712
+ });
87713
+ \u0275\u0275elementEnd();
87714
+ }
87715
+ if (rf & 2) {
87716
+ \u0275\u0275nextContext();
87717
+ const registeredDelivery_r9 = \u0275\u0275readContextLet(1);
87718
+ const ctx_r0 = \u0275\u0275nextContext();
87719
+ const registeredOffice_r10 = \u0275\u0275readContextLet(8);
87720
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r10)("config", ctx_r0.deliveryNoteFields);
87721
+ \u0275\u0275advance();
87722
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredDelivery_r9)("config", ctx_r0.addressFields);
87723
+ }
87724
+ }
87725
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template(rf, ctx) {
87726
+ if (rf & 1) {
87727
+ const _r5 = \u0275\u0275getCurrentView();
87728
+ \u0275\u0275declareLet(0)(1)(2);
87729
+ \u0275\u0275elementStart(3, "expandable-card", 6)(4, "div", 9);
87730
+ \u0275\u0275element(5, "filing-form-group", 8);
87731
+ \u0275\u0275elementStart(6, "h4", 10);
87732
+ \u0275\u0275text(7);
87733
+ \u0275\u0275pipe(8, "translate");
87734
+ \u0275\u0275elementEnd();
87735
+ \u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template, 1, 3, "filing-form-group", 8);
87736
+ \u0275\u0275elementStart(10, "h4", 10);
87737
+ \u0275\u0275text(11);
87738
+ \u0275\u0275pipe(12, "translate");
87739
+ \u0275\u0275elementEnd();
87740
+ \u0275\u0275elementStart(13, "filing-form-group", 7);
87741
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template_filing_form_group_visiblyValidChange_13_listener() {
87742
+ \u0275\u0275restoreView(_r5);
87743
+ const ctx_r0 = \u0275\u0275nextContext();
87744
+ return \u0275\u0275resetView(ctx_r0.emitValidity());
87745
+ });
87746
+ \u0275\u0275elementEnd();
87747
+ \u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template, 2, 6);
87748
+ \u0275\u0275elementEnd()();
87749
+ }
87750
+ if (rf & 2) {
87751
+ const ctx_r0 = \u0275\u0275nextContext();
87752
+ const registeredOffice_r10 = \u0275\u0275readContextLet(8);
87753
+ const registeredMailing_r11 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r10, ctx_r0.controls.NewMailingAddress));
87754
+ \u0275\u0275advance();
87755
+ const registeredDelivery_r12 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r10, ctx_r0.controls.NewDeliveryAddress));
87756
+ const registeredDeliverySame_r13 = ctx_r0.isChecked(registeredOffice_r10, ctx_r0.controls.DeliverySameAsMailing);
87757
+ \u0275\u0275advance(2);
87758
+ \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
87759
+ \u0275\u0275advance(2);
87760
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r10)("config", ctx_r0.currentAddressesFields);
87761
+ \u0275\u0275advance(2);
87762
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(8, 15, "New Mailing Address"));
87763
+ \u0275\u0275advance(2);
87764
+ \u0275\u0275conditional(registeredMailing_r11 ? 9 : -1);
87765
+ \u0275\u0275advance(2);
87766
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(12, 17, "New Delivery Address"));
87767
+ \u0275\u0275advance(2);
87768
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r10)("config", ctx_r0.deliverySameAsMailingFields);
87769
+ \u0275\u0275advance();
87770
+ \u0275\u0275conditional(!registeredDeliverySame_r13 && registeredDelivery_r12 ? 14 : -1);
87771
+ }
87772
+ }
87773
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template(rf, ctx) {
87774
+ if (rf & 1) {
87775
+ const _r16 = \u0275\u0275getCurrentView();
87776
+ \u0275\u0275elementStart(0, "filing-form-group", 7);
87777
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template_filing_form_group_visiblyValidChange_0_listener() {
87778
+ \u0275\u0275restoreView(_r16);
87779
+ const ctx_r0 = \u0275\u0275nextContext(3);
87780
+ return \u0275\u0275resetView(ctx_r0.emitValidity());
87781
+ });
87782
+ \u0275\u0275elementEnd();
87783
+ }
87784
+ if (rf & 2) {
87785
+ \u0275\u0275nextContext(2);
87786
+ const recordsMailing_r17 = \u0275\u0275readContextLet(0);
87787
+ const ctx_r0 = \u0275\u0275nextContext();
87788
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsMailing_r17)("config", ctx_r0.addressFields);
87789
+ }
87790
+ }
87791
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template(rf, ctx) {
87792
+ if (rf & 1) {
87793
+ const _r18 = \u0275\u0275getCurrentView();
87794
+ \u0275\u0275elementStart(0, "filing-form-group", 7);
87795
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template_filing_form_group_visiblyValidChange_0_listener() {
87796
+ \u0275\u0275restoreView(_r18);
87797
+ const ctx_r0 = \u0275\u0275nextContext(3);
87798
+ return \u0275\u0275resetView(ctx_r0.emitValidity());
87799
+ });
87800
+ \u0275\u0275elementEnd();
87801
+ }
87802
+ if (rf & 2) {
87803
+ \u0275\u0275nextContext(2);
87804
+ const recordsDelivery_r19 = \u0275\u0275readContextLet(1);
87805
+ const ctx_r0 = \u0275\u0275nextContext();
87806
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsDelivery_r19)("config", ctx_r0.addressFields);
87807
+ }
87808
+ }
87809
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template(rf, ctx) {
87810
+ if (rf & 1) {
87811
+ const _r15 = \u0275\u0275getCurrentView();
87812
+ \u0275\u0275elementStart(0, "h4", 10);
87813
+ \u0275\u0275text(1);
87814
+ \u0275\u0275pipe(2, "translate");
87815
+ \u0275\u0275elementEnd();
87816
+ \u0275\u0275template(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template, 1, 3, "filing-form-group", 8);
87817
+ \u0275\u0275elementStart(4, "h4", 10);
87818
+ \u0275\u0275text(5);
87819
+ \u0275\u0275pipe(6, "translate");
87820
+ \u0275\u0275elementEnd();
87821
+ \u0275\u0275elementStart(7, "filing-form-group", 7);
87822
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template_filing_form_group_visiblyValidChange_7_listener() {
87823
+ \u0275\u0275restoreView(_r15);
87824
+ const ctx_r0 = \u0275\u0275nextContext(2);
87825
+ return \u0275\u0275resetView(ctx_r0.emitValidity());
87826
+ });
87827
+ \u0275\u0275elementEnd();
87828
+ \u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template, 1, 3, "filing-form-group", 8);
87829
+ }
87830
+ if (rf & 2) {
87831
+ \u0275\u0275nextContext();
87832
+ const recordsMailing_r17 = \u0275\u0275readContextLet(0);
87833
+ const recordsDelivery_r19 = \u0275\u0275readContextLet(1);
87834
+ const recordsDeliverySame_r20 = \u0275\u0275readContextLet(3);
87835
+ const ctx_r0 = \u0275\u0275nextContext();
87836
+ const recordsOffice_r21 = \u0275\u0275readContextLet(10);
87837
+ \u0275\u0275advance();
87838
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 7, "New Mailing Address"));
87839
+ \u0275\u0275advance(2);
87840
+ \u0275\u0275conditional(recordsMailing_r17 ? 3 : -1);
87841
+ \u0275\u0275advance(2);
87842
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 9, "New Delivery Address"));
87843
+ \u0275\u0275advance(2);
87844
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r21)("config", ctx_r0.deliverySameAsMailingFields);
87845
+ \u0275\u0275advance();
87846
+ \u0275\u0275conditional(!recordsDeliverySame_r20 && recordsDelivery_r19 ? 8 : -1);
87847
+ }
87848
+ }
87849
+ function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template(rf, ctx) {
87850
+ if (rf & 1) {
87851
+ const _r14 = \u0275\u0275getCurrentView();
87852
+ \u0275\u0275declareLet(0)(1)(2)(3);
87853
+ \u0275\u0275elementStart(4, "expandable-card", 6)(5, "div", 9);
87854
+ \u0275\u0275element(6, "filing-form-group", 8);
87855
+ \u0275\u0275elementStart(7, "filing-form-group", 7);
87856
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_7_listener() {
87857
+ \u0275\u0275restoreView(_r14);
87858
+ const ctx_r0 = \u0275\u0275nextContext();
87859
+ return \u0275\u0275resetView(ctx_r0.emitValidity());
87860
+ });
87861
+ \u0275\u0275elementEnd();
87862
+ \u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template, 9, 11);
87863
+ \u0275\u0275elementEnd()();
87864
+ }
87865
+ if (rf & 2) {
87866
+ const ctx_r0 = \u0275\u0275nextContext();
87867
+ const recordsOffice_r21 = \u0275\u0275readContextLet(10);
87868
+ \u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r21, ctx_r0.controls.NewMailingAddress));
87869
+ \u0275\u0275advance();
87870
+ \u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r21, ctx_r0.controls.NewDeliveryAddress));
87871
+ const recordsSameAsRegistered_r22 = ctx_r0.isChecked(recordsOffice_r21, ctx_r0.controls.SameAsRegisteredOffice);
87872
+ \u0275\u0275advance(2);
87873
+ \u0275\u0275storeLet(ctx_r0.isChecked(recordsOffice_r21, ctx_r0.controls.DeliverySameAsMailing));
87874
+ \u0275\u0275advance();
87875
+ \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
87876
+ \u0275\u0275advance(2);
87877
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r21)("config", ctx_r0.currentAddressesFields);
87878
+ \u0275\u0275advance();
87879
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r21)("config", ctx_r0.sameAsRegisteredOfficeFields);
87880
+ \u0275\u0275advance();
87881
+ \u0275\u0275conditional(!recordsSameAsRegistered_r22 ? 8 : -1);
87882
+ }
87883
+ }
87884
+ var BritishColumbiaChangeOfOfficeAddressesFormComponent;
87885
+ var init_change_of_office_addresses_form_component = __esm({
87886
+ "src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts"() {
87887
+ init_core();
87888
+ init_ngx_translate_core();
87889
+ init_filing_form_group_component();
87890
+ init_alert_component();
87891
+ init_alert_enum();
87892
+ init_expandable_card_component();
87893
+ init_british_columbia_form_enums();
87894
+ init_british_columbia_change_of_office_addresses_form_constants();
87895
+ init_forms_utils();
87896
+ init_core();
87897
+ BritishColumbiaChangeOfOfficeAddressesFormComponent = class _BritishColumbiaChangeOfOfficeAddressesFormComponent {
87898
+ form = input.required();
87899
+ task = input();
87900
+ errors = input([]);
87901
+ isNote = input(false);
87902
+ isSubmitted = input(false);
87903
+ readonly = input(false);
87904
+ visiblyValidChange = output();
87905
+ alertType = AlertType;
87906
+ groups = BCChangeOfOfficeAddressesFormGroups;
87907
+ controls = BCChangeOfOfficeAddressesFormControls;
87908
+ referenceNumbersFields = BC_COA_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS;
87909
+ corporationDetailsFields = BC_COA_CARD_FORM_CORPORATION_DETAILS_FIELDS;
87910
+ currentAddressesFields = BC_COA_CARD_FORM_CURRENT_ADDRESSES_FIELDS;
87911
+ addressFields = BC_COA_DELTA_CARD_FORM_OFFICE_ADDRESS_FIELDS;
87912
+ deliveryNoteFields = BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS;
87913
+ deliverySameAsMailingFields = BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS;
87914
+ sameAsRegisteredOfficeFields = BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
87915
+ sectionValidity = {};
87916
+ isVisiblyValid() {
87917
+ return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
87918
+ }
87919
+ isRegisteredOfficeValid() {
87920
+ const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
87921
+ return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
87922
+ }
87923
+ isRecordsOfficeValid() {
87924
+ const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
87925
+ return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
87926
+ }
87927
+ isChecked(office, control) {
87928
+ return Boolean(office?.get(control)?.value);
87929
+ }
87930
+ onSectionValidChange(section, valid) {
87931
+ this.sectionValidity = __spreadProps(__spreadValues({}, this.sectionValidity), { [section]: valid });
87932
+ this.emitValidity();
87933
+ }
87934
+ emitValidity() {
87935
+ queueMicrotask(() => this.visiblyValidChange.emit(this.isVisiblyValid()));
87936
+ }
87937
+ getFormGroup(key) {
87938
+ return this.form().get(key) ?? null;
87939
+ }
87940
+ getAddressGroup(office, control) {
87941
+ return office?.get(control) ?? null;
87942
+ }
87943
+ isAddressValid(office, control) {
87944
+ const group2 = this.getAddressGroup(office, control);
87945
+ return !group2 || group2.disabled || isFormGroupVisiblyValid(group2, this.addressFields);
87946
+ }
87947
+ static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
87948
+ return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
87949
+ };
87950
+ 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: 12, vars: 10, consts: [[1, "change-of-office-addresses-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "change-of-office-addresses-form-content"], [3, "title"], [3, "isStatusIcon", "title"], [3, "isStatusIcon", "isValid", "title"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [3, "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item"], [1, "change-of-office-addresses-form-item-title"]], template: function BritishColumbiaChangeOfOfficeAddressesFormComponent_Template(rf, ctx) {
87951
+ if (rf & 1) {
87952
+ \u0275\u0275elementStart(0, "div", 0);
87953
+ \u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
87954
+ \u0275\u0275elementStart(3, "div", 3);
87955
+ \u0275\u0275declareLet(4);
87956
+ \u0275\u0275template(5, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 4);
87957
+ \u0275\u0275declareLet(6);
87958
+ \u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template, 2, 5, "expandable-card", 5);
87959
+ \u0275\u0275declareLet(8);
87960
+ \u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template, 15, 19, "expandable-card", 6);
87961
+ \u0275\u0275declareLet(10);
87962
+ \u0275\u0275template(11, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template, 9, 13, "expandable-card", 6);
87963
+ \u0275\u0275elementEnd()();
87964
+ }
87965
+ if (rf & 2) {
87966
+ \u0275\u0275advance();
87967
+ \u0275\u0275conditional(ctx.isNote() ? 1 : -1);
87968
+ \u0275\u0275advance();
87969
+ \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
87970
+ \u0275\u0275advance(2);
87971
+ const referenceNumbers_r23 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
87972
+ \u0275\u0275advance();
87973
+ \u0275\u0275conditional(referenceNumbers_r23 ? 5 : -1);
87974
+ \u0275\u0275advance();
87975
+ const corporationDetails_r24 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
87976
+ \u0275\u0275advance();
87977
+ \u0275\u0275conditional(corporationDetails_r24 ? 7 : -1);
87978
+ \u0275\u0275advance();
87979
+ const registeredOffice_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
87980
+ \u0275\u0275advance();
87981
+ \u0275\u0275conditional(registeredOffice_r25 ? 9 : -1);
87982
+ \u0275\u0275advance();
87983
+ const recordsOffice_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RecordsOfficeAddress));
87984
+ \u0275\u0275advance();
87985
+ \u0275\u0275conditional(recordsOffice_r26 ? 11 : -1);
87986
+ }
87987
+ }, dependencies: [FilingFormGroupComponent, AlertComponent, ExpandableCardComponent, TranslatePipe], 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-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 });
87988
+ };
87989
+ (() => {
87990
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
87991
+ type: Component,
87992
+ args: [{ standalone: true, selector: "british-columbia-change-of-office-addresses-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [FilingFormGroupComponent, AlertComponent, ExpandableCardComponent, TranslatePipe], template: `<div class="change-of-office-addresses-form">\r
87993
+ @if (isNote()) {\r
87994
+ <alert\r
87995
+ [type]="alertType.Info"\r
87996
+ title="Entity changed"\r
87997
+ content="A new draft needs to be generated as the Entity was changed since the last draft was produced."\r
87998
+ />\r
87999
+ }\r
88000
+ \r
88001
+ @if (errors().length) {\r
88002
+ <alert\r
88003
+ title="The following issues need to be resolved before proceeding:"\r
88004
+ [content]="errors()"\r
88005
+ />\r
88006
+ }\r
88007
+ \r
88008
+ <div class="change-of-office-addresses-form-content">\r
88009
+ @let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
88010
+ \r
88011
+ @if (referenceNumbers) {\r
88012
+ <expandable-card [title]="groups.ReferenceNumbers">\r
88013
+ <filing-form-group\r
88014
+ [isSubmitted]="isSubmitted()"\r
88015
+ [form]="referenceNumbers"\r
88016
+ [config]="referenceNumbersFields"\r
88017
+ (visiblyValidChange)="onSectionValidChange('refNumbers', $event)"\r
88018
+ />\r
88019
+ </expandable-card>\r
88020
+ }\r
88021
+ \r
88022
+ @let corporationDetails = getFormGroup(groups.CorporationDetails);\r
88023
+ \r
88024
+ @if (corporationDetails) {\r
88025
+ <expandable-card [isStatusIcon]="false" [title]="groups.CorporationDetails">\r
88026
+ <filing-form-group\r
88027
+ [isSubmitted]="isSubmitted()"\r
88028
+ [form]="corporationDetails"\r
88029
+ [config]="corporationDetailsFields"\r
88030
+ />\r
88031
+ </expandable-card>\r
88032
+ }\r
88033
+ \r
88034
+ <!-- ===== REGISTERED OFFICE ADDRESS ===== -->\r
88035
+ @let registeredOffice = getFormGroup(groups.RegisteredOfficeAddress);\r
88036
+ \r
88037
+ @if (registeredOffice) {\r
88038
+ @let registeredMailing = getAddressGroup(registeredOffice, controls.NewMailingAddress);\r
88039
+ @let registeredDelivery = getAddressGroup(registeredOffice, controls.NewDeliveryAddress);\r
88040
+ @let registeredDeliverySame = isChecked(registeredOffice, controls.DeliverySameAsMailing);\r
88041
+ \r
88042
+ <expandable-card\r
88043
+ [isStatusIcon]="!readonly()"\r
88044
+ [isValid]="isRegisteredOfficeValid()"\r
88045
+ [title]="groups.RegisteredOfficeAddress"\r
88046
+ >\r
88047
+ <div class="change-of-office-addresses-form-item">\r
88048
+ <filing-form-group\r
88049
+ [isSubmitted]="isSubmitted()"\r
88050
+ [form]="registeredOffice"\r
88051
+ [config]="currentAddressesFields"\r
88052
+ />\r
88053
+ \r
88054
+ <h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
88055
+ \r
88056
+ @if (registeredMailing) {\r
88057
+ <filing-form-group\r
88058
+ [isSubmitted]="isSubmitted()"\r
88059
+ [form]="registeredMailing"\r
88060
+ [config]="addressFields"\r
88061
+ (visiblyValidChange)="emitValidity()"\r
88062
+ />\r
88063
+ }\r
88064
+ \r
88065
+ <h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
88066
+ \r
88067
+ <filing-form-group\r
88068
+ [isSubmitted]="isSubmitted()"\r
88069
+ [form]="registeredOffice"\r
88070
+ [config]="deliverySameAsMailingFields"\r
88071
+ (visiblyValidChange)="emitValidity()"\r
88072
+ />\r
88073
+ \r
88074
+ @if (!registeredDeliverySame && registeredDelivery) {\r
88075
+ <filing-form-group\r
88076
+ [isSubmitted]="isSubmitted()"\r
88077
+ [form]="registeredOffice"\r
88078
+ [config]="deliveryNoteFields"\r
88079
+ />\r
88080
+ <filing-form-group\r
88081
+ [isSubmitted]="isSubmitted()"\r
88082
+ [form]="registeredDelivery"\r
88083
+ [config]="addressFields"\r
88084
+ (visiblyValidChange)="emitValidity()"\r
88085
+ />\r
88086
+ }\r
88087
+ </div>\r
88088
+ </expandable-card>\r
88089
+ }\r
88090
+ \r
88091
+ <!-- ===== RECORDS OFFICE ADDRESS ===== -->\r
88092
+ @let recordsOffice = getFormGroup(groups.RecordsOfficeAddress);\r
88093
+ \r
88094
+ @if (recordsOffice) {\r
88095
+ @let recordsMailing = getAddressGroup(recordsOffice, controls.NewMailingAddress);\r
88096
+ @let recordsDelivery = getAddressGroup(recordsOffice, controls.NewDeliveryAddress);\r
88097
+ @let recordsSameAsRegistered = isChecked(recordsOffice, controls.SameAsRegisteredOffice);\r
88098
+ @let recordsDeliverySame = isChecked(recordsOffice, controls.DeliverySameAsMailing);\r
88099
+ \r
88100
+ <expandable-card\r
88101
+ [isStatusIcon]="!readonly()"\r
88102
+ [isValid]="isRecordsOfficeValid()"\r
88103
+ [title]="groups.RecordsOfficeAddress"\r
88104
+ >\r
88105
+ <div class="change-of-office-addresses-form-item">\r
88106
+ <filing-form-group\r
88107
+ [isSubmitted]="isSubmitted()"\r
88108
+ [form]="recordsOffice"\r
88109
+ [config]="currentAddressesFields"\r
88110
+ />\r
88111
+ \r
88112
+ <filing-form-group\r
88113
+ [isSubmitted]="isSubmitted()"\r
88114
+ [form]="recordsOffice"\r
88115
+ [config]="sameAsRegisteredOfficeFields"\r
88116
+ (visiblyValidChange)="emitValidity()"\r
88117
+ />\r
88118
+ \r
88119
+ @if (!recordsSameAsRegistered) {\r
88120
+ <h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
88121
+ \r
88122
+ @if (recordsMailing) {\r
88123
+ <filing-form-group\r
88124
+ [isSubmitted]="isSubmitted()"\r
88125
+ [form]="recordsMailing"\r
88126
+ [config]="addressFields"\r
88127
+ (visiblyValidChange)="emitValidity()"\r
88128
+ />\r
88129
+ }\r
88130
+ \r
88131
+ <h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
88132
+ \r
88133
+ <filing-form-group\r
88134
+ [isSubmitted]="isSubmitted()"\r
88135
+ [form]="recordsOffice"\r
88136
+ [config]="deliverySameAsMailingFields"\r
88137
+ (visiblyValidChange)="emitValidity()"\r
88138
+ />\r
88139
+ \r
88140
+ @if (!recordsDeliverySame && recordsDelivery) {\r
88141
+ <filing-form-group\r
88142
+ [isSubmitted]="isSubmitted()"\r
88143
+ [form]="recordsDelivery"\r
88144
+ [config]="addressFields"\r
88145
+ (visiblyValidChange)="emitValidity()"\r
88146
+ />\r
88147
+ }\r
88148
+ }\r
88149
+ </div>\r
88150
+ </expandable-card>\r
88151
+ }\r
88152
+ </div>\r
88153
+ </div>\r
88154
+ `, 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-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"] }]
88155
+ }], null, null);
88156
+ })();
88157
+ (() => {
88158
+ (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: 43 });
88159
+ })();
88160
+ }
88161
+ });
88162
+
88163
+ // src/app/components/british-columbia/change-of-office-addresses/steps/delta/change-of-office-addresses-delta-form.component.ts
88164
+ var BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent;
88165
+ var init_change_of_office_addresses_delta_form_component = __esm({
88166
+ "src/app/components/british-columbia/change-of-office-addresses/steps/delta/change-of-office-addresses-delta-form.component.ts"() {
88167
+ init_core();
88168
+ init_button();
88169
+ init_ngx_translate_core();
88170
+ init_common_utils();
88171
+ init_change_of_office_addresses_form_component();
88172
+ init_core();
88173
+ BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent = class _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent {
88174
+ form = input.required();
88175
+ actionsDisabled = input(false);
88176
+ isNote = input(false);
88177
+ task = input();
88178
+ errors = input([]);
88179
+ close = output();
88180
+ save = output();
88181
+ validate = output();
88182
+ submitted = signal(false);
88183
+ visiblyValid = signal(true);
88184
+ clientErrors = signal([]);
88185
+ translate = inject(TranslateService);
88186
+ combinedErrors = computed(() => {
88187
+ const client = this.clientErrors();
88188
+ return client.length ? client : this.errors();
88189
+ });
88190
+ onVisiblyValidChange(valid) {
88191
+ this.visiblyValid.set(valid);
88192
+ if (this.submitted()) {
88193
+ this.clientErrors.set(valid ? [] : [this.requiredFieldsMessage()]);
88194
+ }
88195
+ }
88196
+ onValidate() {
88197
+ this.submitted.set(true);
88198
+ this.clientErrors.set([]);
88199
+ markFormGroupTouched(this.form());
88200
+ if (!this.visiblyValid()) {
88201
+ this.clientErrors.set([this.requiredFieldsMessage()]);
88202
+ return;
88203
+ }
88204
+ this.validate.emit();
88205
+ }
88206
+ requiredFieldsMessage() {
88207
+ return this.translate.instant("Some required fields aren't completed.");
88208
+ }
88209
+ static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Factory(__ngFactoryType__) {
88210
+ return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent)();
88211
+ };
88212
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent, selectors: [["british-columbia-change-of-office-addresses-delta-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], isNote: [1, "isNote"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", save: "save", validate: "validate" }, decls: 15, vars: 18, consts: [[1, "change-of-office-addresses-delta-form"], [1, "change-of-office-addresses-delta-form-content", 3, "visiblyValidChange", "form", "task", "errors", "isNote", "isSubmitted", "readonly"], [1, "change-of-office-addresses-delta-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template(rf, ctx) {
88213
+ if (rf & 1) {
88214
+ \u0275\u0275elementStart(0, "div", 0)(1, "british-columbia-change-of-office-addresses-form", 1);
88215
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_british_columbia_change_of_office_addresses_form_visiblyValidChange_1_listener($event) {
88216
+ return ctx.onVisiblyValidChange($event);
88217
+ });
88218
+ \u0275\u0275elementEnd();
88219
+ \u0275\u0275elementStart(2, "div", 2)(3, "button", 3);
88220
+ \u0275\u0275listener("click", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_button_click_3_listener() {
88221
+ return ctx.close.emit();
88222
+ });
88223
+ \u0275\u0275elementStart(4, "span", 4);
88224
+ \u0275\u0275text(5);
88225
+ \u0275\u0275pipe(6, "translate");
88226
+ \u0275\u0275elementEnd()();
88227
+ \u0275\u0275elementStart(7, "button", 3);
88228
+ \u0275\u0275listener("click", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_button_click_7_listener() {
88229
+ return ctx.save.emit();
88230
+ });
88231
+ \u0275\u0275elementStart(8, "span", 4);
88232
+ \u0275\u0275text(9);
88233
+ \u0275\u0275pipe(10, "translate");
88234
+ \u0275\u0275elementEnd()();
88235
+ \u0275\u0275elementStart(11, "button", 5);
88236
+ \u0275\u0275listener("click", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_button_click_11_listener() {
88237
+ return ctx.onValidate();
88238
+ });
88239
+ \u0275\u0275elementStart(12, "span", 4);
88240
+ \u0275\u0275text(13);
88241
+ \u0275\u0275pipe(14, "translate");
88242
+ \u0275\u0275elementEnd()()()();
88243
+ }
88244
+ if (rf & 2) {
88245
+ \u0275\u0275advance();
88246
+ \u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("isSubmitted", ctx.submitted())("readonly", false);
88247
+ \u0275\u0275advance(2);
88248
+ \u0275\u0275property("disabled", ctx.actionsDisabled());
88249
+ \u0275\u0275advance(2);
88250
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 12, "Close"));
88251
+ \u0275\u0275advance(2);
88252
+ \u0275\u0275property("disabled", ctx.actionsDisabled());
88253
+ \u0275\u0275advance(2);
88254
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 14, "Save Changes"));
88255
+ \u0275\u0275advance(2);
88256
+ \u0275\u0275property("disabled", ctx.actionsDisabled());
88257
+ \u0275\u0275advance(2);
88258
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 16, "Validate & Generate Draft"));
88259
+ }
88260
+ }, dependencies: [MatButton, TranslatePipe, BritishColumbiaChangeOfOfficeAddressesFormComponent], styles: ["\n\n[_nghost-%COMP%] .change-of-office-addresses-delta-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-office-addresses-delta-form-content[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-delta-form-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-delta-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-delta-form-actions[_ngcontent-%COMP%] .submit[_ngcontent-%COMP%] {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=change-of-office-addresses-delta-form.component.css.map */"], changeDetection: 0 });
88261
+ };
88262
+ (() => {
88263
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent, [{
88264
+ type: Component,
88265
+ args: [{ standalone: true, selector: "british-columbia-change-of-office-addresses-delta-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, TranslatePipe, BritishColumbiaChangeOfOfficeAddressesFormComponent], template: `<div class="change-of-office-addresses-delta-form">\r
88266
+ <british-columbia-change-of-office-addresses-form\r
88267
+ class="change-of-office-addresses-delta-form-content"\r
88268
+ [form]="form()"\r
88269
+ [task]="task()"\r
88270
+ [errors]="combinedErrors()"\r
88271
+ [isNote]="isNote()"\r
88272
+ [isSubmitted]="submitted()"\r
88273
+ [readonly]="false"\r
88274
+ (visiblyValidChange)="onVisiblyValidChange($event)"\r
88275
+ />\r
88276
+ \r
88277
+ <div class="change-of-office-addresses-delta-form-actions">\r
88278
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
88279
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
88280
+ </button>\r
88281
+ <button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>\r
88282
+ <span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>\r
88283
+ </button>\r
88284
+ <button\r
88285
+ class="submit"\r
88286
+ color="primary"\r
88287
+ mat-flat-button\r
88288
+ [disabled]="actionsDisabled()"\r
88289
+ (click)="onValidate()"\r
88290
+ >\r
88291
+ <span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>\r
88292
+ </button>\r
88293
+ </div>\r
88294
+ </div>\r
88295
+ `, styles: ["/* src/app/components/british-columbia/change-of-office-addresses/steps/delta/change-of-office-addresses-delta-form.component.scss */\n:host .change-of-office-addresses-delta-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-office-addresses-delta-form-content {\n flex: 1;\n min-height: 0;\n}\n:host .change-of-office-addresses-delta-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .change-of-office-addresses-delta-form-actions button {\n margin: 0;\n}\n:host .change-of-office-addresses-delta-form-actions .submit {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=change-of-office-addresses-delta-form.component.css.map */\n"] }]
88296
+ }], null, null);
88297
+ })();
88298
+ (() => {
88299
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent, { className: "BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent", filePath: "src/app/components/british-columbia/change-of-office-addresses/steps/delta/change-of-office-addresses-delta-form.component.ts", lineNumber: 25 });
88300
+ })();
88301
+ }
88302
+ });
88303
+
88304
+ // src/app/components/british-columbia/change-of-office-addresses/steps/preview/change-of-office-addresses-preview-form.component.ts
88305
+ var BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent;
88306
+ var init_change_of_office_addresses_preview_form_component = __esm({
88307
+ "src/app/components/british-columbia/change-of-office-addresses/steps/preview/change-of-office-addresses-preview-form.component.ts"() {
88308
+ init_core();
88309
+ init_button();
88310
+ init_ngx_translate_core();
88311
+ init_change_of_office_addresses_form_component();
88312
+ init_core();
88313
+ BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent = class _BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent {
88314
+ form = input.required();
88315
+ actionsDisabled = input(false);
88316
+ task = input();
88317
+ errors = input([]);
88318
+ close = output();
88319
+ file = output();
88320
+ static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent_Factory(__ngFactoryType__) {
88321
+ return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent)();
88322
+ };
88323
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent, selectors: [["british-columbia-change-of-office-addresses-preview-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", file: "file" }, decls: 11, vars: 13, consts: [[1, "change-of-office-addresses-preview-form"], [1, "change-of-office-addresses-preview-form-content", 3, "form", "task", "errors", "isSubmitted", "readonly"], [1, "change-of-office-addresses-preview-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent_Template(rf, ctx) {
88324
+ if (rf & 1) {
88325
+ \u0275\u0275elementStart(0, "div", 0);
88326
+ \u0275\u0275element(1, "british-columbia-change-of-office-addresses-form", 1);
88327
+ \u0275\u0275elementStart(2, "div", 2)(3, "button", 3);
88328
+ \u0275\u0275listener("click", function BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent_Template_button_click_3_listener() {
88329
+ return ctx.close.emit();
88330
+ });
88331
+ \u0275\u0275elementStart(4, "span", 4);
88332
+ \u0275\u0275text(5);
88333
+ \u0275\u0275pipe(6, "translate");
88334
+ \u0275\u0275elementEnd()();
88335
+ \u0275\u0275elementStart(7, "button", 5);
88336
+ \u0275\u0275listener("click", function BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent_Template_button_click_7_listener() {
88337
+ return ctx.file.emit();
88338
+ });
88339
+ \u0275\u0275elementStart(8, "span", 4);
88340
+ \u0275\u0275text(9);
88341
+ \u0275\u0275pipe(10, "translate");
88342
+ \u0275\u0275elementEnd()()()();
88343
+ }
88344
+ if (rf & 2) {
88345
+ \u0275\u0275advance();
88346
+ \u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.errors())("isSubmitted", false)("readonly", true);
88347
+ \u0275\u0275advance(2);
88348
+ \u0275\u0275property("disabled", ctx.actionsDisabled());
88349
+ \u0275\u0275advance(2);
88350
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 9, "Close"));
88351
+ \u0275\u0275advance(2);
88352
+ \u0275\u0275property("disabled", ctx.actionsDisabled());
88353
+ \u0275\u0275advance(2);
88354
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 11, "File"));
88355
+ }
88356
+ }, dependencies: [MatButton, TranslatePipe, BritishColumbiaChangeOfOfficeAddressesFormComponent], styles: ["\n\n[_nghost-%COMP%] .change-of-office-addresses-preview-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-office-addresses-preview-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-office-addresses-preview-form-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-preview-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n/*# sourceMappingURL=change-of-office-addresses-preview-form.component.css.map */"], changeDetection: 0 });
88357
+ };
88358
+ (() => {
88359
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent, [{
88360
+ type: Component,
88361
+ args: [{ standalone: true, selector: "british-columbia-change-of-office-addresses-preview-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, TranslatePipe, BritishColumbiaChangeOfOfficeAddressesFormComponent], template: `<div class="change-of-office-addresses-preview-form">\r
88362
+ <british-columbia-change-of-office-addresses-form\r
88363
+ class="change-of-office-addresses-preview-form-content"\r
88364
+ [form]="form()"\r
88365
+ [task]="task()"\r
88366
+ [errors]="errors()"\r
88367
+ [isSubmitted]="false"\r
88368
+ [readonly]="true"\r
88369
+ />\r
88370
+ \r
88371
+ <div class="change-of-office-addresses-preview-form-actions">\r
88372
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
88373
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
88374
+ </button>\r
88375
+ <button\r
88376
+ class="submit"\r
88377
+ color="primary"\r
88378
+ mat-flat-button\r
88379
+ [disabled]="actionsDisabled()"\r
88380
+ (click)="file.emit()"\r
88381
+ >\r
88382
+ <span class="body-1-semibold">{{ 'File' | translate }}</span>\r
88383
+ </button>\r
88384
+ </div>\r
88385
+ </div>\r
88386
+ `, styles: ["/* src/app/components/british-columbia/change-of-office-addresses/steps/preview/change-of-office-addresses-preview-form.component.scss */\n:host .change-of-office-addresses-preview-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-office-addresses-preview-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-office-addresses-preview-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .change-of-office-addresses-preview-form-actions button {\n margin: 0;\n}\n/*# sourceMappingURL=change-of-office-addresses-preview-form.component.css.map */\n"] }]
88387
+ }], null, null);
88388
+ })();
88389
+ (() => {
88390
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent, { className: "BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent", filePath: "src/app/components/british-columbia/change-of-office-addresses/steps/preview/change-of-office-addresses-preview-form.component.ts", lineNumber: 21 });
88391
+ })();
88392
+ }
88393
+ });
88394
+
87387
88395
  // src/app/components/british-columbia/british-columbia.component.ts
87388
88396
  function BritishColumbiaComponent_Conditional_1_Conditional_0_Template(rf, ctx) {
87389
88397
  if (rf & 1) {
87390
88398
  const _r1 = \u0275\u0275getCurrentView();
87391
- \u0275\u0275elementStart(0, "british-columbia-change-of-directors-delta-form", 2);
88399
+ \u0275\u0275elementStart(0, "british-columbia-change-of-directors-delta-form", 3);
87392
88400
  \u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_1_Conditional_0_Template_british_columbia_change_of_directors_delta_form_validate_0_listener() {
87393
88401
  \u0275\u0275restoreView(_r1);
87394
88402
  const ctx_r1 = \u0275\u0275nextContext(2);
@@ -87413,7 +88421,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87413
88421
  function BritishColumbiaComponent_Conditional_1_Conditional_1_Template(rf, ctx) {
87414
88422
  if (rf & 1) {
87415
88423
  const _r4 = \u0275\u0275getCurrentView();
87416
- \u0275\u0275elementStart(0, "british-columbia-change-of-directors-preview-form", 3);
88424
+ \u0275\u0275elementStart(0, "british-columbia-change-of-directors-preview-form", 4);
87417
88425
  \u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_change_of_directors_preview_form_close_0_listener() {
87418
88426
  \u0275\u0275restoreView(_r4);
87419
88427
  const ctx_r1 = \u0275\u0275nextContext(2);
@@ -87421,7 +88429,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87421
88429
  })("file", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_change_of_directors_preview_form_file_0_listener() {
87422
88430
  \u0275\u0275restoreView(_r4);
87423
88431
  const ctx_r1 = \u0275\u0275nextContext(2);
87424
- return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsSubmit());
88432
+ return \u0275\u0275resetView(ctx_r1.nextStep.emit());
87425
88433
  });
87426
88434
  \u0275\u0275elementEnd();
87427
88435
  }
@@ -87431,31 +88439,57 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87431
88439
  \u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors());
87432
88440
  }
87433
88441
  }
88442
+ function BritishColumbiaComponent_Conditional_1_Conditional_2_Template(rf, ctx) {
88443
+ if (rf & 1) {
88444
+ const _r5 = \u0275\u0275getCurrentView();
88445
+ \u0275\u0275elementStart(0, "terms-and-conditions", 5);
88446
+ \u0275\u0275listener("prev", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_prev_0_listener() {
88447
+ \u0275\u0275restoreView(_r5);
88448
+ const ctx_r1 = \u0275\u0275nextContext(2);
88449
+ return \u0275\u0275resetView(ctx_r1.prevStep.emit());
88450
+ })("close", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_close_0_listener() {
88451
+ \u0275\u0275restoreView(_r5);
88452
+ const ctx_r1 = \u0275\u0275nextContext(2);
88453
+ return \u0275\u0275resetView(ctx_r1.close.emit());
88454
+ })("confirm", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_confirm_0_listener($event) {
88455
+ \u0275\u0275restoreView(_r5);
88456
+ const ctx_r1 = \u0275\u0275nextContext(2);
88457
+ return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsSubmit($event));
88458
+ });
88459
+ \u0275\u0275elementEnd();
88460
+ }
88461
+ if (rf & 2) {
88462
+ const ctx_r1 = \u0275\u0275nextContext(2);
88463
+ \u0275\u0275property("errors", ctx_r1.errors());
88464
+ }
88465
+ }
87434
88466
  function BritishColumbiaComponent_Conditional_1_Template(rf, ctx) {
87435
88467
  if (rf & 1) {
87436
- \u0275\u0275template(0, BritishColumbiaComponent_Conditional_1_Conditional_0_Template, 1, 5, "british-columbia-change-of-directors-delta-form", 0)(1, BritishColumbiaComponent_Conditional_1_Conditional_1_Template, 1, 4, "british-columbia-change-of-directors-preview-form", 1);
88468
+ \u0275\u0275template(0, BritishColumbiaComponent_Conditional_1_Conditional_0_Template, 1, 5, "british-columbia-change-of-directors-delta-form", 0)(1, BritishColumbiaComponent_Conditional_1_Conditional_1_Template, 1, 4, "british-columbia-change-of-directors-preview-form", 1)(2, BritishColumbiaComponent_Conditional_1_Conditional_2_Template, 1, 1, "terms-and-conditions", 2);
87437
88469
  }
87438
88470
  if (rf & 2) {
87439
88471
  const ctx_r1 = \u0275\u0275nextContext();
87440
88472
  \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.Validate ? 0 : -1);
87441
88473
  \u0275\u0275advance();
87442
88474
  \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
88475
+ \u0275\u0275advance();
88476
+ \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.TermsAndConditions ? 2 : -1);
87443
88477
  }
87444
88478
  }
87445
88479
  function BritishColumbiaComponent_Conditional_2_Conditional_0_Template(rf, ctx) {
87446
88480
  if (rf & 1) {
87447
- const _r5 = \u0275\u0275getCurrentView();
87448
- \u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form", 6);
88481
+ const _r6 = \u0275\u0275getCurrentView();
88482
+ \u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form", 8);
87449
88483
  \u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_validate_0_listener() {
87450
- \u0275\u0275restoreView(_r5);
88484
+ \u0275\u0275restoreView(_r6);
87451
88485
  const ctx_r1 = \u0275\u0275nextContext(2);
87452
88486
  return \u0275\u0275resetView(ctx_r1.onFormationValidate());
87453
88487
  })("close", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_close_0_listener() {
87454
- \u0275\u0275restoreView(_r5);
88488
+ \u0275\u0275restoreView(_r6);
87455
88489
  const ctx_r1 = \u0275\u0275nextContext(2);
87456
88490
  return \u0275\u0275resetView(ctx_r1.onClose());
87457
88491
  })("save", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_save_0_listener() {
87458
- \u0275\u0275restoreView(_r5);
88492
+ \u0275\u0275restoreView(_r6);
87459
88493
  const ctx_r1 = \u0275\u0275nextContext(2);
87460
88494
  return \u0275\u0275resetView(ctx_r1.onFormationSave());
87461
88495
  });
@@ -87469,14 +88503,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87469
88503
  }
87470
88504
  function BritishColumbiaComponent_Conditional_2_Conditional_1_Template(rf, ctx) {
87471
88505
  if (rf & 1) {
87472
- const _r6 = \u0275\u0275getCurrentView();
87473
- \u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 7);
88506
+ const _r7 = \u0275\u0275getCurrentView();
88507
+ \u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 9);
87474
88508
  \u0275\u0275listener("next", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_next_0_listener() {
87475
- \u0275\u0275restoreView(_r6);
88509
+ \u0275\u0275restoreView(_r7);
87476
88510
  const ctx_r1 = \u0275\u0275nextContext(2);
87477
88511
  return \u0275\u0275resetView(ctx_r1.onFormationSubmit());
87478
88512
  })("close", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_close_0_listener() {
87479
- \u0275\u0275restoreView(_r6);
88513
+ \u0275\u0275restoreView(_r7);
87480
88514
  const ctx_r1 = \u0275\u0275nextContext(2);
87481
88515
  return \u0275\u0275resetView(ctx_r1.close.emit());
87482
88516
  });
@@ -87490,7 +88524,64 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87490
88524
  }
87491
88525
  function BritishColumbiaComponent_Conditional_2_Template(rf, ctx) {
87492
88526
  if (rf & 1) {
87493
- \u0275\u0275template(0, BritishColumbiaComponent_Conditional_2_Conditional_0_Template, 1, 5, "british-columbia-incorporation-delta-form", 4)(1, BritishColumbiaComponent_Conditional_2_Conditional_1_Template, 1, 4, "british-columbia-incorporation-preview-form", 5);
88527
+ \u0275\u0275template(0, BritishColumbiaComponent_Conditional_2_Conditional_0_Template, 1, 5, "british-columbia-incorporation-delta-form", 6)(1, BritishColumbiaComponent_Conditional_2_Conditional_1_Template, 1, 4, "british-columbia-incorporation-preview-form", 7);
88528
+ }
88529
+ if (rf & 2) {
88530
+ const ctx_r1 = \u0275\u0275nextContext();
88531
+ \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.Validate ? 0 : -1);
88532
+ \u0275\u0275advance();
88533
+ \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
88534
+ }
88535
+ }
88536
+ function BritishColumbiaComponent_Conditional_3_Conditional_0_Template(rf, ctx) {
88537
+ if (rf & 1) {
88538
+ const _r8 = \u0275\u0275getCurrentView();
88539
+ \u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-delta-form", 3);
88540
+ \u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_validate_0_listener() {
88541
+ \u0275\u0275restoreView(_r8);
88542
+ const ctx_r1 = \u0275\u0275nextContext(2);
88543
+ return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesValidate());
88544
+ })("close", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_close_0_listener() {
88545
+ \u0275\u0275restoreView(_r8);
88546
+ const ctx_r1 = \u0275\u0275nextContext(2);
88547
+ return \u0275\u0275resetView(ctx_r1.onClose());
88548
+ })("save", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_save_0_listener() {
88549
+ \u0275\u0275restoreView(_r8);
88550
+ const ctx_r1 = \u0275\u0275nextContext(2);
88551
+ return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesSave());
88552
+ });
88553
+ \u0275\u0275elementEnd();
88554
+ }
88555
+ if (rf & 2) {
88556
+ const ctx_r1 = \u0275\u0275nextContext(2);
88557
+ const taskData_r3 = \u0275\u0275readContextLet(0);
88558
+ \u0275\u0275property("task", taskData_r3)("form", ctx_r1.deltaForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors())("isNote", ctx_r1.isNote());
88559
+ }
88560
+ }
88561
+ function BritishColumbiaComponent_Conditional_3_Conditional_1_Template(rf, ctx) {
88562
+ if (rf & 1) {
88563
+ const _r9 = \u0275\u0275getCurrentView();
88564
+ \u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-preview-form", 4);
88565
+ \u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_close_0_listener() {
88566
+ \u0275\u0275restoreView(_r9);
88567
+ const ctx_r1 = \u0275\u0275nextContext(2);
88568
+ return \u0275\u0275resetView(ctx_r1.close.emit());
88569
+ })("file", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_file_0_listener() {
88570
+ \u0275\u0275restoreView(_r9);
88571
+ const ctx_r1 = \u0275\u0275nextContext(2);
88572
+ return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesFile());
88573
+ });
88574
+ \u0275\u0275elementEnd();
88575
+ }
88576
+ if (rf & 2) {
88577
+ const ctx_r1 = \u0275\u0275nextContext(2);
88578
+ const taskData_r3 = \u0275\u0275readContextLet(0);
88579
+ \u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors());
88580
+ }
88581
+ }
88582
+ function BritishColumbiaComponent_Conditional_3_Template(rf, ctx) {
88583
+ if (rf & 1) {
88584
+ \u0275\u0275template(0, BritishColumbiaComponent_Conditional_3_Conditional_0_Template, 1, 5, "british-columbia-change-of-office-addresses-delta-form", 0)(1, BritishColumbiaComponent_Conditional_3_Conditional_1_Template, 1, 4, "british-columbia-change-of-office-addresses-preview-form", 1);
87494
88585
  }
87495
88586
  if (rf & 2) {
87496
88587
  const ctx_r1 = \u0275\u0275nextContext();
@@ -87511,13 +88602,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87511
88602
  init_british_columbia_form_enums();
87512
88603
  init_british_columbia_change_of_directors_form_helper();
87513
88604
  init_british_columbia_formation_form_helper();
88605
+ init_british_columbia_change_of_office_addresses_form_helper();
87514
88606
  init_delta_state_service();
87515
88607
  init_common_utils();
87516
88608
  init_confirm_modal_component();
88609
+ init_terms_and_conditions_component();
87517
88610
  init_change_of_directors_delta_form_component();
87518
88611
  init_change_of_directors_preview_form_component();
87519
88612
  init_british_columbia_incorporation_delta_form_component();
87520
88613
  init_british_columbia_incorporation_preview_form_component();
88614
+ init_change_of_office_addresses_delta_form_component();
88615
+ init_change_of_office_addresses_preview_form_component();
87521
88616
  init_core();
87522
88617
  BritishColumbiaComponent = class _BritishColumbiaComponent {
87523
88618
  task = input();
@@ -87526,7 +88621,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87526
88621
  isNote = input(false);
87527
88622
  actionsDisabled = input(false);
87528
88623
  errors = input([]);
87529
- currentDataExtract = input();
87530
88624
  close = output();
87531
88625
  codValidate = output();
87532
88626
  saveCodDeltaData = output();
@@ -87536,25 +88630,34 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87536
88630
  saveFormationDeltaData = output();
87537
88631
  nextStep = output();
87538
88632
  prevStep = output();
88633
+ // Change of Office Addresses outputs
88634
+ coaValidate = output();
88635
+ saveCoaDeltaData = output();
88636
+ coaSubmit = output();
87539
88637
  dialog = inject(MatDialog);
87540
88638
  deltaState = inject(DeltaStateService);
87541
88639
  translate = inject(TranslateService);
87542
88640
  steps = Step;
87543
88641
  isChangeOfDirectorsTask = isChangeOfPrincipalsTask;
87544
88642
  isFormationTask = isFormationTask2;
88643
+ isChangeOfOfficeAddressesTask = isChangeOfAddressTask;
87545
88644
  deltaForm = signal(new FormGroup({}));
87546
88645
  previewForm = signal(new FormGroup({}));
87547
88646
  constructor() {
87548
88647
  effect(() => {
87549
88648
  const task = this.task();
87550
88649
  if (task && isChangeOfPrincipalsTask(task)) {
87551
- this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract())));
88650
+ this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key))));
87552
88651
  this.deltaState.setBCChangeOfDirectorsInitialDelta(this.generateChangeOfDirectorsDeltaData());
87553
88652
  }
87554
88653
  if (task && isFormationTask2(task)) {
87555
88654
  this.deltaForm.set(new FormGroup(BritishColumbiaFormationFormHelper.generateConfig(task, (key) => this.translate.instant(key), untracked2(() => this.currentUser()))));
87556
88655
  this.deltaState.setBCFormationInitialDelta(this.generateFormationDeltaData());
87557
88656
  }
88657
+ if (task && isChangeOfAddressTask(task)) {
88658
+ this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key))));
88659
+ this.deltaState.setBCChangeOfOfficeAddressesInitialDelta(this.generateChangeOfOfficeAddressesDeltaData());
88660
+ }
87558
88661
  });
87559
88662
  effect(() => {
87560
88663
  const task = this.task();
@@ -87563,7 +88666,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87563
88666
  return;
87564
88667
  }
87565
88668
  if (isChangeOfPrincipalsTask(task)) {
87566
- const form = new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract()));
88669
+ const form = new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
87567
88670
  form.disable();
87568
88671
  this.previewForm.set(form);
87569
88672
  if (untracked2(() => this.activeStep()) === Step.Validate) {
@@ -87578,8 +88681,64 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87578
88681
  this.nextStep.emit();
87579
88682
  }
87580
88683
  }
88684
+ if (task && isChangeOfAddressTask(task) && deltaData) {
88685
+ const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
88686
+ form.disable();
88687
+ this.previewForm.set(form);
88688
+ if (untracked2(() => this.activeStep()) === Step.Validate) {
88689
+ this.nextStep.emit();
88690
+ }
88691
+ }
87581
88692
  });
87582
88693
  }
88694
+ onChangeOfOfficeAddressesValidate() {
88695
+ markFormGroupTouched(this.deltaForm());
88696
+ this.coaValidate.emit(this.generateChangeOfOfficeAddressesDeltaData());
88697
+ }
88698
+ onChangeOfOfficeAddressesSave() {
88699
+ const delta = this.generateChangeOfOfficeAddressesDeltaData();
88700
+ this.deltaState.setBCChangeOfOfficeAddressesInitialDelta(delta);
88701
+ this.saveCoaDeltaData.emit(delta);
88702
+ }
88703
+ /** No certification step for this filing: "File" submits the staged draft directly. */
88704
+ onChangeOfOfficeAddressesFile() {
88705
+ this.coaSubmit.emit(this.generateChangeOfOfficeAddressesDeltaData());
88706
+ }
88707
+ generateChangeOfOfficeAddressesDeltaData() {
88708
+ const c = BCChangeOfOfficeAddressesFormControls;
88709
+ const formData = this.deltaForm().getRawValue();
88710
+ const refNumbers = formData[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers];
88711
+ const registered = formData[BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress];
88712
+ const records = formData[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress];
88713
+ const toAddress = (src) => ({
88714
+ addressLine1: src?.[c.AddressLine1] ?? null,
88715
+ addressLine2: src?.[c.AddressLine2] ?? null,
88716
+ city: src?.[c.City] ?? null,
88717
+ postalCode: src?.[c.PostalCode] ?? null,
88718
+ province: src?.[c.Province] ?? null,
88719
+ country: src?.[c.Country] ?? null
88720
+ });
88721
+ const regDeliverySame = Boolean(registered?.[c.DeliverySameAsMailing]);
88722
+ const recSameAsRegistered = Boolean(records?.[c.SameAsRegisteredOffice]);
88723
+ const recDeliverySame = Boolean(records?.[c.DeliverySameAsMailing]);
88724
+ return {
88725
+ referenceNumbers: {
88726
+ referenceNumber: refNumbers?.[c.ClientMatterNumber] ?? null,
88727
+ docketNumber: refNumbers?.[c.DocketNumber] ?? null
88728
+ },
88729
+ registeredOffice: {
88730
+ mailingAddress: toAddress(registered?.[c.NewMailingAddress]),
88731
+ deliverySameAsMailing: regDeliverySame,
88732
+ deliveryAddress: regDeliverySame ? void 0 : toAddress(registered?.[c.NewDeliveryAddress])
88733
+ },
88734
+ recordsOffice: {
88735
+ sameAsRegisteredOffice: recSameAsRegistered,
88736
+ mailingAddress: recSameAsRegistered ? void 0 : toAddress(records?.[c.NewMailingAddress]),
88737
+ deliverySameAsMailing: recSameAsRegistered ? void 0 : recDeliverySame,
88738
+ deliveryAddress: recSameAsRegistered || recDeliverySame ? void 0 : toAddress(records?.[c.NewDeliveryAddress])
88739
+ }
88740
+ };
88741
+ }
87583
88742
  onChangeOfDirectorsValidate() {
87584
88743
  markFormGroupTouched(this.deltaForm());
87585
88744
  this.codValidate.emit(this.generateChangeOfDirectorsDeltaData());
@@ -87589,8 +88748,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87589
88748
  this.deltaState.setBCChangeOfDirectorsInitialDelta(delta);
87590
88749
  this.saveCodDeltaData.emit(delta);
87591
88750
  }
87592
- onChangeOfDirectorsSubmit() {
87593
- this.codSubmit.emit();
88751
+ onChangeOfDirectorsSubmit(termsAndConditions) {
88752
+ this.codSubmit.emit(__spreadProps(__spreadValues({}, this.generateChangeOfDirectorsDeltaData()), {
88753
+ signatoryFirstName: termsAndConditions.firstName,
88754
+ signatoryLastName: termsAndConditions.lastName
88755
+ }));
87594
88756
  }
87595
88757
  onFormationValidate() {
87596
88758
  markFormGroupTouched(this.deltaForm());
@@ -87611,7 +88773,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87611
88773
  const filing = formData[BCChangeOfDirectorsFormGroups.FilingDetails];
87612
88774
  const notification = formData[BCChangeOfDirectorsFormGroups.Notification];
87613
88775
  const reminder = formData[BCChangeOfDirectorsFormGroups.AnnualReportReminder];
87614
- const directors = formData[BCChangeOfDirectorsFormGroups.Directors] ?? [];
87615
88776
  const addedOrDeleted = Boolean(filing?.[c.DirectorsAddedOrDeleted]);
87616
88777
  const notifyByMail = notification?.[c.NotificationMethod] === BCNotificationMethod.Mail;
87617
88778
  return {
@@ -87627,15 +88788,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87627
88788
  method: notification?.[c.NotificationMethod] ?? null,
87628
88789
  email: notifyByMail ? void 0 : notification?.[c.NotificationEmail] ?? null
87629
88790
  },
87630
- annualReportReminder: reminder?.[c.AnnualReportReminder] ?? null,
87631
- directorChanges: {
87632
- addIds: directors.filter((d) => d[c.AffiliationType] === "Add").map((d) => d[c.Id]).filter(Boolean),
87633
- editIds: directors.filter((d) => d[c.AffiliationType] === "Update").map((d) => d[c.Id]).filter(Boolean),
87634
- ceaseIds: directors.filter((d) => d[c.AffiliationType] === "Cease").map((d) => d[c.Id]).filter(Boolean)
87635
- }
88791
+ annualReportReminder: reminder?.[c.AnnualReportReminder] ?? null
87636
88792
  };
87637
88793
  }
87638
- generateFormationDeltaData() {
88794
+ generateFormationDeltaData(termsAndConditions) {
87639
88795
  const formData = this.deltaForm().getRawValue();
87640
88796
  const refNumbers = formData[BCFormationFormGroups.ReferenceNumbers];
87641
88797
  const corpDetails = formData[BCFormationFormGroups.CorporationDetails];
@@ -87679,7 +88835,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87679
88835
  }
87680
88836
  onClose() {
87681
88837
  const task = this.task();
87682
- const hasChanges = task && isFormationTask2(task) ? !deepEqual(this.deltaState.bcFormationInitialDelta(), this.generateFormationDeltaData()) : !deepEqual(this.deltaState.bcChangeOfDirectorsInitialDelta(), this.generateChangeOfDirectorsDeltaData());
88838
+ const hasChanges = task && isFormationTask2(task) ? !deepEqual(this.deltaState.bcFormationInitialDelta(), this.generateFormationDeltaData()) : task && isChangeOfAddressTask(task) ? !deepEqual(this.deltaState.bcChangeOfOfficeAddressesInitialDelta(), this.generateChangeOfOfficeAddressesDeltaData()) : !deepEqual(this.deltaState.bcChangeOfDirectorsInitialDelta(), this.generateChangeOfDirectorsDeltaData());
87683
88839
  if (!hasChanges) {
87684
88840
  this.close.emit();
87685
88841
  return;
@@ -87697,6 +88853,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87697
88853
  if (val) {
87698
88854
  if (task && isFormationTask2(task)) {
87699
88855
  this.onFormationSave();
88856
+ } else if (task && isChangeOfAddressTask(task)) {
88857
+ this.onChangeOfOfficeAddressesSave();
87700
88858
  } else {
87701
88859
  this.onChangeOfDirectorsSave();
87702
88860
  }
@@ -87707,23 +88865,28 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87707
88865
  static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
87708
88866
  return new (__ngFactoryType__ || _BritishColumbiaComponent)();
87709
88867
  };
87710
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaComponent, selectors: [["british-columbia"]], inputs: { task: [1, "task"], currentUser: [1, "currentUser"], activeStep: [1, "activeStep"], isNote: [1, "isNote"], actionsDisabled: [1, "actionsDisabled"], errors: [1, "errors"], currentDataExtract: [1, "currentDataExtract"] }, outputs: { close: "close", codValidate: "codValidate", saveCodDeltaData: "saveCodDeltaData", codSubmit: "codSubmit", formationValidate: "formationValidate", formationSubmit: "formationSubmit", saveFormationDeltaData: "saveFormationDeltaData", nextStep: "nextStep", prevStep: "prevStep" }, decls: 3, vars: 3, consts: [[3, "task", "form", "actionsDisabled", "errors", "isNote"], [3, "task", "form", "actionsDisabled", "errors"], [3, "validate", "close", "save", "task", "form", "actionsDisabled", "errors", "isNote"], [3, "close", "file", "task", "form", "actionsDisabled", "errors"], [3, "task", "errors", "isNote", "actionsDisabled", "form"], [3, "task", "form", "errors", "actionsDisabled"], [3, "validate", "close", "save", "task", "errors", "isNote", "actionsDisabled", "form"], [3, "next", "close", "task", "form", "errors", "actionsDisabled"]], template: function BritishColumbiaComponent_Template(rf, ctx) {
88868
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaComponent, selectors: [["british-columbia"]], inputs: { task: [1, "task"], currentUser: [1, "currentUser"], activeStep: [1, "activeStep"], isNote: [1, "isNote"], actionsDisabled: [1, "actionsDisabled"], errors: [1, "errors"] }, outputs: { close: "close", codValidate: "codValidate", saveCodDeltaData: "saveCodDeltaData", codSubmit: "codSubmit", formationValidate: "formationValidate", formationSubmit: "formationSubmit", saveFormationDeltaData: "saveFormationDeltaData", nextStep: "nextStep", prevStep: "prevStep", coaValidate: "coaValidate", saveCoaDeltaData: "saveCoaDeltaData", coaSubmit: "coaSubmit" }, decls: 4, vars: 4, consts: [[3, "task", "form", "actionsDisabled", "errors", "isNote"], [3, "task", "form", "actionsDisabled", "errors"], [3, "errors"], [3, "validate", "close", "save", "task", "form", "actionsDisabled", "errors", "isNote"], [3, "close", "file", "task", "form", "actionsDisabled", "errors"], [3, "prev", "close", "confirm", "errors"], [3, "task", "errors", "isNote", "actionsDisabled", "form"], [3, "task", "form", "errors", "actionsDisabled"], [3, "validate", "close", "save", "task", "errors", "isNote", "actionsDisabled", "form"], [3, "next", "close", "task", "form", "errors", "actionsDisabled"]], template: function BritishColumbiaComponent_Template(rf, ctx) {
87711
88869
  if (rf & 1) {
87712
88870
  \u0275\u0275declareLet(0);
87713
- \u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2);
88871
+ \u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 3, 3)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2)(3, BritishColumbiaComponent_Conditional_3_Template, 2, 2);
87714
88872
  }
87715
88873
  if (rf & 2) {
87716
- const taskData_r7 = \u0275\u0275storeLet(ctx.task());
88874
+ const taskData_r10 = \u0275\u0275storeLet(ctx.task());
88875
+ \u0275\u0275advance();
88876
+ \u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r10) ? 1 : -1);
87717
88877
  \u0275\u0275advance();
87718
- \u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r7) ? 1 : -1);
88878
+ \u0275\u0275conditional(ctx.isFormationTask(taskData_r10) ? 2 : -1);
87719
88879
  \u0275\u0275advance();
87720
- \u0275\u0275conditional(ctx.isFormationTask(taskData_r7) ? 2 : -1);
88880
+ \u0275\u0275conditional(ctx.isChangeOfOfficeAddressesTask(taskData_r10) ? 3 : -1);
87721
88881
  }
87722
88882
  }, dependencies: [
87723
88883
  BritishColumbiaChangeOfDirectorsDeltaFormComponent,
87724
88884
  BritishColumbiaChangeOfDirectorsPreviewFormComponent,
87725
88885
  BritishColumbiaIncorporationDeltaFormComponent,
87726
- BritishColumbiaIncorporationPreviewFormComponent
88886
+ BritishColumbiaIncorporationPreviewFormComponent,
88887
+ BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent,
88888
+ BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent,
88889
+ TermsAndConditionsComponent
87727
88890
  ], styles: ["\n\n[_nghost-%COMP%] {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */"], changeDetection: 0 });
87728
88891
  };
87729
88892
  (() => {
@@ -87733,12 +88896,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87733
88896
  BritishColumbiaChangeOfDirectorsDeltaFormComponent,
87734
88897
  BritishColumbiaChangeOfDirectorsPreviewFormComponent,
87735
88898
  BritishColumbiaIncorporationDeltaFormComponent,
87736
- BritishColumbiaIncorporationPreviewFormComponent
87737
- ], template: '@let taskData = this.task();\r\n\r\n@if (isChangeOfDirectorsTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-change-of-directors-delta-form\r\n [task]="taskData"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onChangeOfDirectorsValidate()"\r\n (close)="onClose()"\r\n (save)="onChangeOfDirectorsSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-change-of-directors-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="onChangeOfDirectorsSubmit()"\r\n />\r\n }\r\n}\r\n\r\n@if (isFormationTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-incorporation-delta-form\r\n [task]="taskData"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [form]="deltaForm()"\r\n (validate)="onFormationValidate()"\r\n (close)="onClose()"\r\n (save)="onFormationSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-incorporation-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [errors]="errors()"\r\n [actionsDisabled]="actionsDisabled()"\r\n (next)="onFormationSubmit()"\r\n (close)="close.emit()"\r\n />\r\n }\r\n}\r\n', styles: ["/* src/app/components/british-columbia/british-columbia.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */\n"] }]
88899
+ BritishColumbiaIncorporationPreviewFormComponent,
88900
+ BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent,
88901
+ BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent,
88902
+ TermsAndConditionsComponent
88903
+ ], template: '@let taskData = this.task();\r\n\r\n@if (isChangeOfDirectorsTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-change-of-directors-delta-form\r\n [task]="taskData"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onChangeOfDirectorsValidate()"\r\n (close)="onClose()"\r\n (save)="onChangeOfDirectorsSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-change-of-directors-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="nextStep.emit()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.TermsAndConditions) {\r\n <terms-and-conditions\r\n [errors]="errors()"\r\n (prev)="prevStep.emit()"\r\n (close)="close.emit()"\r\n (confirm)="onChangeOfDirectorsSubmit($event)"\r\n />\r\n }\r\n}\r\n\r\n@if (isFormationTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-incorporation-delta-form\r\n [task]="taskData"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [form]="deltaForm()"\r\n (validate)="onFormationValidate()"\r\n (close)="onClose()"\r\n (save)="onFormationSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-incorporation-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [errors]="errors()"\r\n [actionsDisabled]="actionsDisabled()"\r\n (next)="onFormationSubmit()"\r\n (close)="close.emit()"\r\n />\r\n }\r\n}\r\n\r\n@if (isChangeOfOfficeAddressesTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-change-of-office-addresses-delta-form\r\n [task]="taskData"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onChangeOfOfficeAddressesValidate()"\r\n (close)="onClose()"\r\n (save)="onChangeOfOfficeAddressesSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-change-of-office-addresses-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="onChangeOfOfficeAddressesFile()"\r\n />\r\n }\r\n}\r\n', styles: ["/* src/app/components/british-columbia/british-columbia.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */\n"] }]
87738
88904
  }], () => [], null);
87739
88905
  })();
87740
88906
  (() => {
87741
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber: 62 });
88907
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber: 75 });
87742
88908
  })();
87743
88909
  }
87744
88910
  });
@@ -93959,55 +95125,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
93959
95125
  init_core();
93960
95126
  BritishColumbiaChangeOfDirectorsService = class _BritishColumbiaChangeOfDirectorsService {
93961
95127
  config;
93962
- currentDataExtract;
93963
95128
  setConfig(config2) {
93964
95129
  this.config = config2;
93965
95130
  }
93966
- /**
93967
- * Orders the corporation's current data extract and waits until it is ready, returning the
93968
- * `currentDataServiceOrderId` that Validate Filing needs. The registry bot can take a while,
93969
- * so the extract is polled every `intervalMs` for up to `maxAttempts` times.
93970
- */
93971
- ensureCurrentDataExtract(_0, _1) {
93972
- return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3, maxAttempts = 40 } = {}) {
93973
- ensureAuthInputs(signature);
93974
- const fetchFn = opts.fetchImpl ?? fetch;
93975
- const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
93976
- const orderResp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, signature.proxyApiUrl, signature.jwtToken, order, __spreadValues({
93977
- "x-target-url": `${dataExtractUrl}/order`
93978
- }, opts.headers ?? {})));
93979
- const ordered = yield this.readJson(orderResp, "BC current data extract order");
93980
- const orderId = ordered.currentDataServiceOrderId;
93981
- if (!orderResp.ok || !orderId || ordered.status === "failed") {
93982
- throw buildGenericError(orderResp.status, "BC current data extract order failed", __spreadProps(__spreadValues({}, ordered), {
93983
- errors: ordered.errors?.length ? ordered.errors : (ordered.additionalInformation ?? []).map((message) => ({ message }))
93984
- }));
93985
- }
93986
- for (let attempt = 0; attempt < maxAttempts; attempt++) {
93987
- const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
93988
- method: "GET",
93989
- headers: __spreadValues({
93990
- Authorization: `Bearer ${signature.jwtToken}`,
93991
- "x-target-url": `${dataExtractUrl}/${encodeURIComponent(orderId)}`
93992
- }, opts.headers ?? {})
93993
- }));
93994
- const extract = yield this.readJson(extractResp, "BC current data extract");
93995
- if (extractResp.ok && extract.status === "success") {
93996
- this.currentDataExtract = extract;
93997
- return orderId;
93998
- }
93999
- if (!extractResp.ok || extract.status === "failed" || extract.status === "sourceUnavailable") {
94000
- const reasons = extract.additionalInformation ?? [];
94001
- throw new Error(`BC current data extract ${extract.status ?? "failed"} (HTTP ${extractResp.status})${reasons.length ? `: ${reasons.join(" | ")}` : "."}`);
94002
- }
94003
- yield new Promise((resolve) => setTimeout(resolve, intervalMs));
94004
- }
94005
- throw new Error("BC current data extract is still processing. Please try again in a moment.");
94006
- });
94007
- }
94008
- getCurrentDataExtract() {
94009
- return this.currentDataExtract;
94010
- }
94011
95131
  validate(_0, _1) {
94012
95132
  return __async(this, arguments, function* (signature, requestBody, opts = {}) {
94013
95133
  ensureAuthInputs(signature);
@@ -94025,12 +95145,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94025
95145
  throw err2;
94026
95146
  }
94027
95147
  const payload = unwrapRequestResults(parsed.value);
94028
- if (resp.ok && !payload.Errors?.length && !payload["errors"]?.length) {
94029
- return __spreadProps(__spreadValues({}, payload), {
94030
- Status: payload.Status ?? payload["status"],
94031
- ServiceOrderId: payload.ServiceOrderId ?? payload["serviceOrderId"],
94032
- Draft: payload.Draft ?? payload["draft"]
94033
- });
95148
+ if (resp.ok && !payload.Errors?.length) {
95149
+ return payload;
94034
95150
  }
94035
95151
  const err = buildValidationError(resp.status, payload);
94036
95152
  err.validateResult = payload;
@@ -94090,16 +95206,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94090
95206
  throw err;
94091
95207
  });
94092
95208
  }
94093
- readJson(resp, what) {
94094
- return __async(this, null, function* () {
94095
- const raw = yield resp.text();
94096
- const parsed = tryParseJson(raw);
94097
- if (!parsed.ok) {
94098
- throw new Error(`${what} returned ${resp.status} ${resp.statusText}: ${raw || "(empty response)"}`);
94099
- }
94100
- return unwrapRequestResults(parsed.value);
94101
- });
94102
- }
94103
95209
  getOnbisOrigin() {
94104
95210
  const filingUrl = this.config?.BCFiling;
94105
95211
  if (!filingUrl) {
@@ -94124,30 +95230,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94124
95230
  });
94125
95231
 
94126
95232
  // src/app/helpers/mappers/british-columbia-change-of-directors.mapper.ts
94127
- function getBritishColumbiaAccessCode(task, password) {
94128
- return password?.trim() || task.entity._profile.registry_id?.trim() || "";
94129
- }
94130
- function buildBritishColumbiaDataExtractOrder(task, password) {
94131
- const incorporationDate = toYyyyMmDd(task.entity._compliance.incorporation_date) ?? "";
94132
- const request = {
94133
- corporationNumber: task.entity._profile.corp_number?.trim() ?? "",
94134
- accessCodeOrPassword: getBritishColumbiaAccessCode(task, password),
94135
- incorporationDate: /^\d{4}-\d{2}-\d{2}$/.test(incorporationDate) ? incorporationDate : "",
94136
- filingType: "changeOfDirectorsFiling"
94137
- };
94138
- const issues = [];
94139
- if (!request.corporationNumber) {
94140
- issues.push("The corporation number is missing on the entity.");
94141
- }
94142
- if (!/^[A-Za-z0-9]+$/.test(request.accessCodeOrPassword)) {
94143
- issues.push("The company's BC Online access code or password is missing or contains characters other than letters and numbers.");
94144
- }
94145
- if (!request.incorporationDate) {
94146
- issues.push("The incorporation date is missing on the entity.");
94147
- }
94148
- return { request, issues };
94149
- }
94150
- function buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData, currentDataServiceOrderId, currentDataExtract) {
95233
+ function buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData) {
94151
95234
  const source = task.changeDirectors ?? task.deltaData?.changeDirectors ?? task.deltaData?.validatedData?.ChangeDirectors ?? task.deltaData?.validatedData?.filing;
94152
95235
  const incomingDirectors = (task.incomingAffiliations ?? []).filter(isDirectorAffiliation);
94153
95236
  const outgoingDirectors = (task.outgoingAffiliations ?? []).filter(isDirectorAffiliation);
@@ -94155,107 +95238,73 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94155
95238
  const ceasedDirectors = [...source?.CeasedDirectors ?? [], ...source?.CeaseDirector ?? [], ...source?.ceaseDirectors ?? []];
94156
95239
  const editedDirectors = [...source?.EditedDirectors ?? [], ...source?.EditDirector ?? [], ...source?.editDirectors ?? []];
94157
95240
  const companyEmail = findCompanyEmail(task);
94158
- const byId = new Map([
94159
- ...incomingDirectors,
94160
- ...outgoingDirectors
94161
- ].map((affiliation) => [String(affiliation._id), affiliation]));
94162
- const selected = deltaData.directorChanges;
94163
- const addSource = selected ? selected.addIds.map((id) => byId.get(String(id))).filter(Boolean) : incomingDirectors.length ? incomingDirectors : addedDirectors;
94164
- const editSource = selected ? selected.editIds.map((id) => byId.get(String(id))).filter(Boolean) : editedDirectors;
94165
- const ceaseSource = selected ? selected.ceaseIds.map((id) => byId.get(String(id))).filter(Boolean) : outgoingDirectors.length ? outgoingDirectors : ceasedDirectors;
94166
- const addDirectors = addSource.map((affiliation) => buildDirector(affiliation));
94167
- const ceaseDirectors = ceaseSource.map((affiliation) => buildCeasedDirector(affiliation));
94168
- const editDirectors = editSource.map((director) => {
94169
- const directorNumber = findDirectorNumber(director, currentDataExtract);
94170
- return directorNumber === void 0 ? null : buildDirector(director, directorNumber);
94171
- }).filter((director) => director !== null);
94172
- const effectiveDate = toYyyyMmDd(deltaData.filingDetails.changeDate);
94173
- return {
95241
+ const serviceOrderId = deltaData.serviceOrderId;
95242
+ return __spreadValues({
94174
95243
  filingType: "changeOfDirectorsFiling",
94175
- currentDataServiceOrderId,
94176
- filing: __spreadProps(__spreadValues({
94177
- corporationNumber: task.entity._profile.corp_number ?? "",
94178
- accessCodeOrPassword: getBritishColumbiaAccessCode(task),
95244
+ filing: {
94179
95245
  reference: deltaData.referenceNumbers.referenceNumber ?? null,
94180
- docket: deltaData.referenceNumbers.docketNumber ?? null
94181
- }, (addDirectors.length || ceaseDirectors.length) && effectiveDate ? { effectiveDate } : {}), {
94182
- addDirectors,
94183
- ceaseDirectors,
94184
- editDirectors,
95246
+ docket: deltaData.referenceNumbers.docketNumber ?? null,
95247
+ addOrDeleteDirectors: deltaData.filingDetails.directorsAddedOrDeleted,
95248
+ effectiveDate: toYyyyMmDd(deltaData.filingDetails.changeDate) ?? toYyyyMmDd(/* @__PURE__ */ new Date()),
95249
+ addDirectors: (incomingDirectors.length ? incomingDirectors : addedDirectors).map((affiliation) => buildDirector(affiliation)),
95250
+ ceaseDirectors: (outgoingDirectors.length ? outgoingDirectors : ceasedDirectors).map((affiliation) => buildDirector(affiliation)),
95251
+ editDirectors: editedDirectors.length ? editedDirectors.map((director) => buildDirector(director)) : [],
94185
95252
  companyEmail,
94186
95253
  isAnnualReportReminderRequired: deltaData.annualReportReminder === BCAnnualReportReminder.Yes
94187
- })
94188
- };
95254
+ }
95255
+ }, serviceOrderId ? { ServiceOrderId: serviceOrderId } : {});
94189
95256
  }
94190
95257
  function isDirectorAffiliation(affiliation) {
94191
95258
  return isPrincipalAffiliation2(affiliation) && affiliation.role?.role_name === "Director";
94192
95259
  }
94193
- function buildCeasedDirector(affiliation) {
94194
- const _a = buildDirector(affiliation), { isDeliveryAddressSameAsMailing: _omitted } = _a, director = __objRest(_a, ["isDeliveryAddressSameAsMailing"]);
94195
- return __spreadProps(__spreadValues({}, director), { deliveryAddress: director.deliveryAddress ?? director.mailingAddress });
94196
- }
94197
- function buildDirector(affiliation, directorNumber) {
95260
+ function buildDirector(affiliation) {
94198
95261
  if (affiliation?.PersonName || affiliation?.personName || affiliation?.firstName || affiliation?.FirstName) {
94199
95262
  const name = affiliation.PersonName ?? affiliation.personName ?? affiliation;
94200
- return __spreadProps(__spreadValues({}, directorNumber === void 0 ? {} : { directorNumber }), {
95263
+ return {
94201
95264
  firstName: name.FirstName ?? name.firstName ?? "",
94202
95265
  middleName: name.MiddleName ?? name.middleName ?? "",
94203
95266
  lastName: name.LastName ?? name.lastName ?? "",
94204
95267
  mailingAddress: affiliation.mailingAddress ?? affiliation.MailingAddress,
94205
- deliveryAddress: affiliation.isDeliveryAddressSameAsMailing ? void 0 : affiliation.deliveryAddress ?? affiliation.DeliveryAddress,
95268
+ deliveryAddress: affiliation.deliveryAddress ?? affiliation.DeliveryAddress,
94206
95269
  isDeliveryAddressSameAsMailing: affiliation.isDeliveryAddressSameAsMailing
94207
- });
95270
+ };
94208
95271
  }
94209
95272
  const profile = affiliation.participant?._profile ?? {};
94210
95273
  const addresses = getAffiliationAddresses(affiliation);
94211
95274
  const mailingAddress = mapAddress4(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Mailing"));
94212
95275
  const deliveryAddress = mapAddress4(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Delivery"));
94213
- const isSameAsMailing = isDeliveryAddressSameAsMailing(addresses);
94214
- return __spreadProps(__spreadValues({}, directorNumber === void 0 ? {} : { directorNumber }), {
95276
+ return {
94215
95277
  firstName: profile.firstName ?? "",
94216
95278
  middleName: profile.middleName ?? "",
94217
95279
  lastName: profile.lastName ?? "",
94218
95280
  mailingAddress,
94219
- // The API rejects a delivery address when it is the same as the mailing address.
94220
- deliveryAddress: isSameAsMailing ? void 0 : deliveryAddress,
94221
- isDeliveryAddressSameAsMailing: isSameAsMailing
94222
- });
94223
- }
94224
- function findDirectorNumber(affiliation, extract) {
94225
- const target = normaliseDirectorName(affiliation);
94226
- let result;
94227
- const visit = (value) => {
94228
- if (result !== void 0 || value === null || value === void 0)
94229
- return;
94230
- if (Array.isArray(value)) {
94231
- value.forEach(visit);
94232
- return;
94233
- }
94234
- if (typeof value !== "object")
94235
- return;
94236
- const record = value;
94237
- const number = record["directorNumber"] ?? record["DirectorNumber"];
94238
- if (number !== void 0 && normaliseDirectorName(record) === target) {
94239
- const parsed = Number(number);
94240
- if (Number.isFinite(parsed))
94241
- result = parsed;
94242
- return;
94243
- }
94244
- Object.values(record).forEach(visit);
95281
+ deliveryAddress,
95282
+ isDeliveryAddressSameAsMailing: isDeliveryAddressSameAsMailing(addresses)
94245
95283
  };
94246
- visit(extract);
94247
- return result;
94248
- }
94249
- function normaliseDirectorName(value) {
94250
- const name = value?.PersonName ?? value?.personName ?? value;
94251
- return [
94252
- name?.FirstName ?? name?.firstName,
94253
- name?.MiddleName ?? name?.middleName,
94254
- name?.LastName ?? name?.lastName
94255
- ].filter(Boolean).join(" ").trim().toLowerCase();
94256
95284
  }
94257
95285
  function mapAddress4(address) {
94258
- return address ? mapAddress(address) : void 0;
95286
+ if (!address)
95287
+ return void 0;
95288
+ const raw = address;
95289
+ const postalAddress = raw.PostalAddress ?? raw.postalAddress;
95290
+ const source = postalAddress?.AddressCA ?? postalAddress?.AddressUS ?? postalAddress?.AddressINTL ?? raw;
95291
+ const streetNumber = address.components?.find((component) => component.name === "Street Number Only")?.value;
95292
+ const streetName = address.components?.find((component) => component.name === "Street Only")?.value;
95293
+ const suite = address.components?.find((component) => component.name === "Suite/Apartment")?.value;
95294
+ const streetAddress = [streetNumber, streetName].filter(Boolean).join(" ") || address.components?.find((component) => component.name === "Street Address")?.value || source.streetAddress || source.Address1 || raw.street || "";
95295
+ const country = source.country ?? source.CountryCodeName ?? raw.country ?? "";
95296
+ const postal = source.postalOrZipCode ?? source.PostCode ?? source.postalZip ?? raw.postal_zip ?? "";
95297
+ return {
95298
+ streetAddress: [streetAddress, suite].filter(Boolean).join(", "),
95299
+ city: source.city ?? source.CityTown ?? raw.city ?? "",
95300
+ provinceState: source.provinceState ?? source.RegionName ?? raw.province_state ?? "",
95301
+ country,
95302
+ postalOrZipCode: country === "CA" ? normalizeCanadianPostal(postal) : postal
95303
+ };
95304
+ }
95305
+ function normalizeCanadianPostal(value) {
95306
+ const compact = value.replace(/[\s-]+/g, "").toUpperCase();
95307
+ return /^[A-Z]\d[A-Z]\d[A-Z]\d$/.test(compact) ? `${compact.slice(0, 3)} ${compact.slice(3)}` : value;
94259
95308
  }
94260
95309
  function findCompanyEmail(task) {
94261
95310
  const affiliations = task.entity.affiliations ?? [];
@@ -94274,12 +95323,288 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94274
95323
  "src/app/helpers/mappers/british-columbia-change-of-directors.mapper.ts"() {
94275
95324
  init_BritishColumbiaConstants();
94276
95325
  init_common_models();
94277
- init_british_columbia_formation_mapper();
94278
95326
  init_british_columbia_formation_form_helper();
94279
95327
  init_common_utils();
94280
95328
  }
94281
95329
  });
94282
95330
 
95331
+ // src/app/services/british-columbia/british-columbia-maintenance.service.ts
95332
+ var MAINTENANCE_FILING_PATH, TEMP_UAT_BC_FILING_URL2, DATA_EXTRACT_PATH, DEFAULT_EXTRACT_POLL, DEFAULT_RESULT_POLL, BritishColumbiaMaintenanceService;
95333
+ var init_british_columbia_maintenance_service = __esm({
95334
+ "src/app/services/british-columbia/british-columbia-maintenance.service.ts"() {
95335
+ init_core();
95336
+ init_common_utils();
95337
+ init_core();
95338
+ MAINTENANCE_FILING_PATH = "/filings/ca/bc/maintenance-filing";
95339
+ TEMP_UAT_BC_FILING_URL2 = "https://uat3-onbis.oncorp.com/eCoreBcApi/";
95340
+ DATA_EXTRACT_PATH = "/filings/ca/bc/data-extract";
95341
+ DEFAULT_EXTRACT_POLL = { intervalMs: 3e3, timeoutMs: 6e5 };
95342
+ DEFAULT_RESULT_POLL = { intervalMs: 3e3, timeoutMs: 6e5 };
95343
+ BritishColumbiaMaintenanceService = class _BritishColumbiaMaintenanceService {
95344
+ config;
95345
+ setConfig(config2) {
95346
+ this.config = config2;
95347
+ }
95348
+ /** Orders the registry's current data for the corporation; returns the extract's id. */
95349
+ orderCurrentDataExtract(_0, _1) {
95350
+ return __async(this, arguments, function* (signature, context2, opts = {}) {
95351
+ const { status, ok, body, raw } = yield this.send(signature, "POST", `${DATA_EXTRACT_PATH}/order`, {
95352
+ corporationNumber: context2.corporationNumber,
95353
+ accessCodeOrPassword: context2.accessCodeOrPassword,
95354
+ incorporationDate: context2.incorporationDate,
95355
+ filingType: "changeOfAddressFiling"
95356
+ }, opts);
95357
+ const id = body?.currentDataServiceOrderId ?? body?.CurrentDataServiceOrderId;
95358
+ if (!ok || !id || String(body?.status ?? "").toLowerCase() === "failed") {
95359
+ throw this.failure(status, "Ordering the current data from the registry failed", body, raw);
95360
+ }
95361
+ return String(id);
95362
+ });
95363
+ }
95364
+ /** Polls the extract until the registry has it ready (`success`). */
95365
+ waitForCurrentDataExtract(_0, _1) {
95366
+ return __async(this, arguments, function* (signature, extractId, opts = {}, poll = {}) {
95367
+ const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_EXTRACT_POLL), poll);
95368
+ const deadline = Date.now() + timeoutMs;
95369
+ for (; ; ) {
95370
+ const { status, ok, body, raw } = yield this.send(signature, "GET", `${DATA_EXTRACT_PATH}/${encodeURIComponent(extractId)}`, void 0, opts);
95371
+ const state2 = String(body?.status ?? "").toLowerCase();
95372
+ if (ok && state2 === "success") {
95373
+ return;
95374
+ }
95375
+ if (!ok || state2 === "failed" || state2 === "sourceunavailable") {
95376
+ throw this.failure(status, "Retrieving the current data from the registry failed", body, raw);
95377
+ }
95378
+ if (Date.now() >= deadline) {
95379
+ throw new Error("The registry is still preparing the current data after 10 minutes. Please try again later.");
95380
+ }
95381
+ yield this.sleep(intervalMs);
95382
+ }
95383
+ });
95384
+ }
95385
+ /**
95386
+ * Validates the filing against the extract and returns the draft. `context` supplies the
95387
+ * corporation number and password; they are added here so they never become part of the
95388
+ * saved request used to detect Entity changes.
95389
+ */
95390
+ validate(_0, _1, _2, _3) {
95391
+ return __async(this, arguments, function* (signature, requestBody, extractId, context2, opts = {}) {
95392
+ const { status, ok, body, raw } = yield this.send(signature, "POST", MAINTENANCE_FILING_PATH, {
95393
+ currentDataServiceOrderId: extractId,
95394
+ filingType: requestBody.filingType,
95395
+ filing: __spreadProps(__spreadValues({}, requestBody.filing), {
95396
+ corporationNumber: context2.corporationNumber,
95397
+ accessCodeOrPassword: context2.accessCodeOrPassword
95398
+ })
95399
+ }, opts);
95400
+ if (body === null) {
95401
+ throw this.failure(status, "eCore validation failed", body, raw);
95402
+ }
95403
+ const result = this.normalize(unwrapRequestResults(body));
95404
+ if (ok && !this.hasFailed(result)) {
95405
+ return result;
95406
+ }
95407
+ const err = new Error(this.describeFailure(status, "eCore validation failed", result));
95408
+ err.validateResult = result;
95409
+ err.httpStatus = status;
95410
+ throw err;
95411
+ });
95412
+ }
95413
+ /**
95414
+ * Submits the staged filing, then waits for the registry's result. Resolves once the filing
95415
+ * is `success` (or its documents are pending); throws if it `failed`. If the registry is
95416
+ * still `processing` when the wait ends, the filing is already submitted, so it resolves
95417
+ * with `Status: 'Success'` and `Processing: true` rather than inviting a second submit.
95418
+ */
95419
+ submitAndWait(_0, _1) {
95420
+ return __async(this, arguments, function* (signature, serviceOrderId, opts = {}, poll = {}) {
95421
+ if (!serviceOrderId) {
95422
+ throw new Error("Missing serviceOrderId.");
95423
+ }
95424
+ const submitted = yield this.send(signature, "POST", `${MAINTENANCE_FILING_PATH}/${encodeURIComponent(serviceOrderId)}/submit`, void 0, opts);
95425
+ if (!submitted.ok || this.normalize(submitted.body).Status === "Failure") {
95426
+ const result = this.normalize(submitted.body);
95427
+ const err = new Error(this.describeFailure(submitted.status, "eCore submit failed", result));
95428
+ err.submitResult = result;
95429
+ err.httpStatus = submitted.status;
95430
+ throw err;
95431
+ }
95432
+ const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_RESULT_POLL), poll);
95433
+ const deadline = Date.now() + timeoutMs;
95434
+ let processing = true;
95435
+ let files;
95436
+ while (processing) {
95437
+ const { status, ok, body, raw } = yield this.send(signature, "GET", `${MAINTENANCE_FILING_PATH}/${encodeURIComponent(serviceOrderId)}`, void 0, opts);
95438
+ const state2 = String(body?.status ?? "").toLowerCase();
95439
+ if (ok && (state2 === "success" || state2 === "pendingdocuments")) {
95440
+ files = body?.files;
95441
+ processing = false;
95442
+ break;
95443
+ }
95444
+ if (!ok || state2 === "failed" || state2 === "sourceunavailable") {
95445
+ throw this.failure(status, "The registry could not complete the filing", body, raw);
95446
+ }
95447
+ if (Date.now() >= deadline) {
95448
+ break;
95449
+ }
95450
+ yield this.sleep(intervalMs);
95451
+ }
95452
+ signature.filingSubmitSuccess?.({ filedOn: /* @__PURE__ */ new Date(), serviceOrderId });
95453
+ return { Status: "Success", ServiceOrderId: serviceOrderId, Processing: processing, Files: files };
95454
+ });
95455
+ }
95456
+ getBaseUrl(env) {
95457
+ const baseUrl = this.config?.BCFiling || (env === "TEST" ? TEMP_UAT_BC_FILING_URL2 : void 0);
95458
+ if (!baseUrl) {
95459
+ throw new Error("BritishColumbiaMaintenanceService: missing EnvConfig.BCFiling.");
95460
+ }
95461
+ return baseUrl;
95462
+ }
95463
+ /** One call to the BC API through the proxy. `body` is `null` when the response isn't JSON. */
95464
+ send(signature, method, path, payload, opts) {
95465
+ return __async(this, null, function* () {
95466
+ ensureAuthInputs(signature);
95467
+ const fetchFn = opts.fetchImpl ?? fetch;
95468
+ const targetUrl = joinUrl(this.getBaseUrl(signature.env), path);
95469
+ const headers = __spreadValues({ "x-target-url": targetUrl }, opts.headers ?? {});
95470
+ const resp = yield fetchWithJwtRetry(signature, () => method === "POST" && payload !== void 0 ? postJson(fetchFn, signature.proxyApiUrl, signature.jwtToken, payload, headers) : fetchFn(signature.proxyApiUrl, {
95471
+ method,
95472
+ headers: __spreadValues({ Authorization: `Bearer ${signature.jwtToken}` }, headers)
95473
+ }));
95474
+ const raw = yield resp.text();
95475
+ const parsed = tryParseJson(raw);
95476
+ const body = parsed.ok ? unwrapRequestResults(parsed.value) : null;
95477
+ return { status: resp.status, ok: resp.ok, body, raw };
95478
+ });
95479
+ }
95480
+ failure(status, prefix, body, raw) {
95481
+ const result = body ? this.normalize(body) : void 0;
95482
+ const message = result ? this.describeFailure(status, prefix, result) : `${prefix} (HTTP ${status}): ${raw || "(empty response)"}`;
95483
+ const err = new Error(message);
95484
+ err.httpStatus = status;
95485
+ return err;
95486
+ }
95487
+ sleep(ms) {
95488
+ return new Promise((resolve) => setTimeout(resolve, ms));
95489
+ }
95490
+ /**
95491
+ * Maps a BC API body to the shared result shape. `status` becomes `Success` or `Failure`
95492
+ * (`failed` and any other non-success value are failures). When a failure carries no
95493
+ * `errors`, `additionalInformation` is used as the error messages.
95494
+ */
95495
+ normalize(body) {
95496
+ const rawErrors = body?.errors ?? body?.Errors ?? [];
95497
+ const errors = rawErrors.map((e) => ({
95498
+ Code: e?.code ?? e?.Code,
95499
+ Message: e?.message ?? e?.Message ?? e?.ErrorMessage
95500
+ }));
95501
+ const status = String(body?.status ?? body?.Status ?? "").toLowerCase();
95502
+ const succeeded = status === "success" || status === "alreadysubmitted";
95503
+ if (!succeeded && !errors.length) {
95504
+ const additional = body?.additionalInformation ?? [];
95505
+ errors.push(...additional.map((Message) => ({ Message })));
95506
+ }
95507
+ return {
95508
+ Status: succeeded ? "Success" : "Failure",
95509
+ ServiceOrderId: body?.serviceOrderId ?? body?.ServiceOrderId,
95510
+ Draft: body?.draft ?? body?.Draft,
95511
+ Errors: errors
95512
+ };
95513
+ }
95514
+ /** A body-level failure: the normalised status is `Failure` or errors were returned. */
95515
+ hasFailed(result) {
95516
+ return result.Status === "Failure" || Boolean(result.Errors?.length);
95517
+ }
95518
+ describeFailure(httpStatus, prefix, result) {
95519
+ const messages = (result.Errors ?? []).map((e) => e.Message || e.Code).filter(Boolean).join(" | ");
95520
+ return messages ? `${prefix} (HTTP ${httpStatus}): ${messages}` : `${prefix} (HTTP ${httpStatus}).`;
95521
+ }
95522
+ static \u0275fac = function BritishColumbiaMaintenanceService_Factory(__ngFactoryType__) {
95523
+ return new (__ngFactoryType__ || _BritishColumbiaMaintenanceService)();
95524
+ };
95525
+ static \u0275prov = /* @__PURE__ */ \u0275\u0275defineInjectable({ token: _BritishColumbiaMaintenanceService, factory: _BritishColumbiaMaintenanceService.\u0275fac, providedIn: "root" });
95526
+ };
95527
+ (() => {
95528
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaMaintenanceService, [{
95529
+ type: Injectable,
95530
+ args: [{
95531
+ providedIn: "root"
95532
+ }]
95533
+ }], null, null);
95534
+ })();
95535
+ }
95536
+ });
95537
+
95538
+ // src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts
95539
+ function formatPostalCode(value) {
95540
+ const compact = clean(value).replace(/[\s-]+/g, "").toUpperCase();
95541
+ return compact.length === 6 ? `${compact.slice(0, 3)} ${compact.slice(3)}` : clean(value).toUpperCase();
95542
+ }
95543
+ function toEcoreAddress(address) {
95544
+ const line2 = clean(address?.addressLine2);
95545
+ return __spreadProps(__spreadValues({
95546
+ streetAddress: clean(address?.addressLine1)
95547
+ }, line2 ? { additionalStreetAddress: line2 } : {}), {
95548
+ city: clean(address?.city),
95549
+ provinceOrState: BC_PROVINCE_CODE,
95550
+ postalOrZipCode: formatPostalCode(address?.postalCode),
95551
+ country: CANADA_COUNTRY_CODE
95552
+ });
95553
+ }
95554
+ function buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData) {
95555
+ const registered = deltaData.registeredOffice;
95556
+ const records = deltaData.recordsOffice;
95557
+ const registeredDeliverySame = Boolean(registered?.deliverySameAsMailing);
95558
+ const recordsSameAsRegistered = Boolean(records?.sameAsRegisteredOffice);
95559
+ const recordsDeliverySame = recordsSameAsRegistered ? registeredDeliverySame : Boolean(records?.deliverySameAsMailing);
95560
+ const recordsDeliveryAddress = recordsSameAsRegistered ? registered?.deliveryAddress : records?.deliveryAddress;
95561
+ const filing = {
95562
+ registeredOfficeMailingAddress: toEcoreAddress(registered?.mailingAddress),
95563
+ isRegisteredOfficeDeliveryAddressSameAsMailing: registeredDeliverySame,
95564
+ isRecordsOfficeMailingAddressSameAsRegisteredOfficeMailing: recordsSameAsRegistered,
95565
+ isRecordsOfficeDeliveryAddressSameAsRecordsOfficeMailing: recordsDeliverySame,
95566
+ // The entity's company email, shown read-only in Corporation Details.
95567
+ companyEmail: BritishColumbiaChangeOfOfficeAddressesFormHelper.resolveCompanyEmail(task),
95568
+ // Not captured on this form; the reminder preference is not changed by an address filing.
95569
+ isAnnualReportReminderRequired: false
95570
+ };
95571
+ const reference = clean(deltaData.referenceNumbers?.referenceNumber);
95572
+ const docket = clean(deltaData.referenceNumbers?.docketNumber);
95573
+ if (reference) {
95574
+ filing.reference = reference;
95575
+ }
95576
+ if (docket) {
95577
+ filing.docket = docket;
95578
+ }
95579
+ if (!registeredDeliverySame) {
95580
+ filing.registeredOfficeDeliveryAddress = toEcoreAddress(registered?.deliveryAddress);
95581
+ }
95582
+ if (!recordsSameAsRegistered) {
95583
+ filing.recordsOfficeMailingAddress = toEcoreAddress(records?.mailingAddress);
95584
+ }
95585
+ if (!recordsDeliverySame) {
95586
+ filing.recordsOfficeDeliveryAddress = toEcoreAddress(recordsDeliveryAddress);
95587
+ }
95588
+ return { filingType: "changeOfAddressFiling", filing };
95589
+ }
95590
+ function getBritishColumbiaAccessCode(task, env) {
95591
+ const registryId = task.entity._profile.registry_id?.trim() ?? "";
95592
+ if (registryId) {
95593
+ return registryId;
95594
+ }
95595
+ return env === "TEST" ? TEMP_UAT_TEST_ACCESS_CODE : "";
95596
+ }
95597
+ var TEMP_UAT_TEST_ACCESS_CODE, BC_PROVINCE_CODE, CANADA_COUNTRY_CODE, clean;
95598
+ var init_british_columbia_change_of_office_addresses_mapper = __esm({
95599
+ "src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
95600
+ init_british_columbia_change_of_office_addresses_form_helper();
95601
+ TEMP_UAT_TEST_ACCESS_CODE = "12345678";
95602
+ BC_PROVINCE_CODE = "BC";
95603
+ CANADA_COUNTRY_CODE = "CA";
95604
+ clean = (value) => (value ?? "").trim();
95605
+ }
95606
+ });
95607
+
94283
95608
  // src/app/components/filing/filing.component.ts
94284
95609
  function FilingComponent_Conditional_7_Template(rf, ctx) {
94285
95610
  if (rf & 1) {
@@ -94379,6 +95704,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94379
95704
  \u0275\u0275restoreView(_r6);
94380
95705
  const ctx_r2 = \u0275\u0275nextContext(2);
94381
95706
  return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfDirectorsSubmit());
95707
+ })("coaValidate", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_coaValidate_0_listener($event) {
95708
+ \u0275\u0275restoreView(_r6);
95709
+ const ctx_r2 = \u0275\u0275nextContext(2);
95710
+ return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfOfficeAddressesValidate($event));
95711
+ })("saveCoaDeltaData", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_saveCoaDeltaData_0_listener($event) {
95712
+ \u0275\u0275restoreView(_r6);
95713
+ const ctx_r2 = \u0275\u0275nextContext(2);
95714
+ return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfOfficeAddressesSave($event));
95715
+ })("coaSubmit", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_coaSubmit_0_listener() {
95716
+ \u0275\u0275restoreView(_r6);
95717
+ const ctx_r2 = \u0275\u0275nextContext(2);
95718
+ return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfOfficeAddressesSubmit());
94382
95719
  })("formationValidate", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_formationValidate_0_listener($event) {
94383
95720
  \u0275\u0275restoreView(_r6);
94384
95721
  const ctx_r2 = \u0275\u0275nextContext(2);
@@ -94397,7 +95734,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94397
95734
  if (rf & 2) {
94398
95735
  const ctx_r2 = \u0275\u0275nextContext(2);
94399
95736
  const currentTask_r5 = \u0275\u0275readContextLet(9);
94400
- \u0275\u0275property("task", currentTask_r5)("currentUser", ctx_r2.currentUser())("activeStep", ctx_r2.activeStep())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("errors", ctx_r2.errors())("currentDataExtract", ctx_r2.currentDataExtract());
95737
+ \u0275\u0275property("task", currentTask_r5)("currentUser", ctx_r2.currentUser())("activeStep", ctx_r2.activeStep())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("errors", ctx_r2.errors());
94401
95738
  }
94402
95739
  }
94403
95740
  function FilingComponent_Conditional_10_Conditional_2_Template(rf, ctx) {
@@ -94447,7 +95784,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94447
95784
  }
94448
95785
  function FilingComponent_Conditional_10_Template(rf, ctx) {
94449
95786
  if (rf & 1) {
94450
- \u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1, 7, "british-columbia", 9)(2, FilingComponent_Conditional_10_Conditional_2_Template, 1, 5, "federal", 10);
95787
+ \u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1, 6, "british-columbia", 9)(2, FilingComponent_Conditional_10_Conditional_2_Template, 1, 5, "federal", 10);
94451
95788
  }
94452
95789
  if (rf & 2) {
94453
95790
  const ctx_r2 = \u0275\u0275nextContext();
@@ -94494,6 +95831,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94494
95831
  init_delta_state_service();
94495
95832
  init_british_columbia_change_of_directors_service();
94496
95833
  init_british_columbia_change_of_directors_mapper();
95834
+ init_british_columbia_maintenance_service();
95835
+ init_british_columbia_change_of_office_addresses_mapper();
94497
95836
  init_core();
94498
95837
  init_button();
94499
95838
  FilingComponent = class _FilingComponent {
@@ -94550,6 +95889,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94550
95889
  federalUpdateMaintainService = inject(FederalUpdateMaintainService);
94551
95890
  updateMaintainService = inject(OntarioUpdateMaintainService);
94552
95891
  britishColumbiaChangeOfDirectorsService = inject(BritishColumbiaChangeOfDirectorsService);
95892
+ bcMaintenanceService = inject(BritishColumbiaMaintenanceService);
94553
95893
  translate = inject(TranslateService);
94554
95894
  isEditButton = computed(() => {
94555
95895
  const task = this.task();
@@ -94565,9 +95905,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94565
95905
  });
94566
95906
  dataWasChanged = signal(false);
94567
95907
  serviceOrderId = "";
94568
- bcCurrentDataServiceOrderId = "";
94569
- currentDataExtract = signal(void 0);
94570
- bcDataExtractTaskId = "";
94571
95908
  activeStep = signal(Step.Validate);
94572
95909
  isLoading = signal(false);
94573
95910
  validationConfig = signal(null);
@@ -94594,6 +95931,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94594
95931
  if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
94595
95932
  return "File British Columbia Notice of Change of Directors";
94596
95933
  }
95934
+ if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
95935
+ return "File British Columbia Change of Office Addresses";
95936
+ }
94597
95937
  return "";
94598
95938
  });
94599
95939
  constructor() {
@@ -94606,6 +95946,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94606
95946
  this.bcFormationService.setConfig(config2);
94607
95947
  this.federalUpdateMaintainService.setConfig(config2);
94608
95948
  this.britishColumbiaChangeOfDirectorsService.setConfig(config2);
95949
+ this.bcMaintenanceService.setConfig(config2);
94609
95950
  }
94610
95951
  });
94611
95952
  addStylesVariables();
@@ -94631,26 +95972,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94631
95972
  this.serviceOrderId = serviceOrderId;
94632
95973
  }
94633
95974
  }
94634
- if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
94635
- const signature = this._signature();
94636
- if (!signature)
94637
- return;
94638
- this.bcDataExtractTaskId = task._id;
94639
- const { request, issues } = buildBritishColumbiaDataExtractOrder(task, deltaData?.companyPassword);
94640
- if (issues.length) {
94641
- this.errors.set(issues);
94642
- return;
94643
- }
94644
- this.isLoading.set(true);
94645
- try {
94646
- this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
94647
- this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
94648
- } catch (error) {
94649
- this.handleCatchError(error);
94650
- } finally {
94651
- this.isLoading.set(false);
94652
- }
94653
- }
94654
95975
  }));
94655
95976
  }
94656
95977
  getCurrentData() {
@@ -94774,14 +96095,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94774
96095
  try {
94775
96096
  this.isLoading.set(true);
94776
96097
  this.errors.set([]);
94777
- const options = this.validateOptions() ?? {};
94778
- const currentDataServiceOrderId = this.bcCurrentDataServiceOrderId;
94779
- if (!currentDataServiceOrderId) {
94780
- this.errors.set(["The current BC data extract is not ready yet. Please wait and try again."]);
94781
- return;
94782
- }
94783
- const requestBody = buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData, currentDataServiceOrderId, this.currentDataExtract());
94784
- const response = yield this.britishColumbiaChangeOfDirectorsService.validate(signature, requestBody, options);
96098
+ const requestBody = buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData);
96099
+ const response = yield this.britishColumbiaChangeOfDirectorsService.validate(signature, requestBody, this.validateOptions() ?? {});
94785
96100
  if (this.hasResponseErrors(response))
94786
96101
  return;
94787
96102
  const serviceOrderId = response.ServiceOrderId ?? "";
@@ -94790,7 +96105,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94790
96105
  searchOrFilingType: getSearchOrFilingType(task),
94791
96106
  serviceOrderId,
94792
96107
  validatedOn: /* @__PURE__ */ new Date(),
94793
- provider: "bcreg",
96108
+ provider: "obr",
94794
96109
  draftPdf: response.Draft,
94795
96110
  documentName: this.validateOptions()?.documentName ?? "BC Change of Directors Draft",
94796
96111
  documentType: "pdf"
@@ -94930,6 +96245,93 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94930
96245
  }
94931
96246
  });
94932
96247
  }
96248
+ /**
96249
+ * British Columbia Change of Office Addresses "Validate & Generate Draft": sends the filing
96250
+ * to eCore, hands the draft PDF to the host, and saves the delta together with the
96251
+ * ServiceOrderId and the full request (`validatedData`) used to detect later Entity changes.
96252
+ */
96253
+ onBritishColumbiaChangeOfOfficeAddressesValidate(deltaData) {
96254
+ return __async(this, null, function* () {
96255
+ const task = this.task();
96256
+ const signature = this._signature();
96257
+ try {
96258
+ if (!task || !signature) {
96259
+ throw new Error("The filing is not ready yet. Please try again.");
96260
+ }
96261
+ this.isLoading.set(true);
96262
+ this.errors.set([]);
96263
+ const requestBody = buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData);
96264
+ const opts = this.validateOptions() ?? {};
96265
+ const context2 = {
96266
+ corporationNumber: task.entity._profile.corp_number ?? "",
96267
+ accessCodeOrPassword: getBritishColumbiaAccessCode(task, signature.env),
96268
+ incorporationDate: String(task.entity._compliance?.incorporation_date ?? "").slice(0, 10)
96269
+ };
96270
+ const extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
96271
+ yield this.bcMaintenanceService.waitForCurrentDataExtract(signature, extractId, opts);
96272
+ const response = yield this.bcMaintenanceService.validate(signature, requestBody, extractId, context2, opts);
96273
+ if (this.hasResponseErrors(response))
96274
+ return;
96275
+ const serviceOrderId = response.ServiceOrderId ?? "";
96276
+ const draftPdf = response.Draft ?? "";
96277
+ const searchOrFilingType = getSearchOrFilingType(task);
96278
+ if (draftPdf && searchOrFilingType) {
96279
+ this.filingValidateSuccess.emit({
96280
+ searchOrFilingType,
96281
+ serviceOrderId,
96282
+ validatedOn: /* @__PURE__ */ new Date(),
96283
+ provider: "obr",
96284
+ draftPdf,
96285
+ documentName: this.validateOptions()?.documentName ?? "British Columbia Change of Office Addresses Draft",
96286
+ documentType: "pdf"
96287
+ });
96288
+ }
96289
+ this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
96290
+ serviceOrderId,
96291
+ validatedData: JSON.parse(JSON.stringify(requestBody))
96292
+ }));
96293
+ this.close.emit();
96294
+ } catch (response) {
96295
+ this.handleCatchError(response);
96296
+ } finally {
96297
+ this.isLoading.set(false);
96298
+ }
96299
+ });
96300
+ }
96301
+ /**
96302
+ * British Columbia Change of Office Addresses save – propagates delta data to the host.
96303
+ */
96304
+ onBritishColumbiaChangeOfOfficeAddressesSave(deltaData) {
96305
+ const oldDeltaData = this.task()?.deltaData;
96306
+ if (oldDeltaData) {
96307
+ delete this.task()?.deltaData;
96308
+ }
96309
+ this.deltaDataChange.emit(deltaData);
96310
+ }
96311
+ /**
96312
+ * British Columbia Change of Office Addresses submit/file: submits the filing staged by
96313
+ * "Validate & Generate Draft" using the ServiceOrderId saved with the delta.
96314
+ */
96315
+ onBritishColumbiaChangeOfOfficeAddressesSubmit() {
96316
+ return __async(this, null, function* () {
96317
+ const signature = this._signature();
96318
+ const serviceOrderId = this.task()?.deltaData?.serviceOrderId;
96319
+ if (!signature || !serviceOrderId) {
96320
+ this.handleCatchError(new Error("Missing serviceOrderId. Generate a draft before filing."));
96321
+ return;
96322
+ }
96323
+ try {
96324
+ this.isLoading.set(true);
96325
+ this.errors.set([]);
96326
+ yield this.bcMaintenanceService.submitAndWait(signature, serviceOrderId, this.validateOptions() ?? {});
96327
+ this.close.emit();
96328
+ } catch (response) {
96329
+ this.handleCatchError(response);
96330
+ } finally {
96331
+ this.isLoading.set(false);
96332
+ }
96333
+ });
96334
+ }
94933
96335
  /**
94934
96336
  * Ontario Update/Maintain (IR / NOC / Annual Return) save – propagates delta data to the host.
94935
96337
  */
@@ -95198,7 +96600,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95198
96600
  this.errors.set(this.parseError(errors));
95199
96601
  return;
95200
96602
  }
95201
- const fallbackMessage = parsed?.message || (typeof parsed === "string" ? parsed : "") || this.translate.instant("An unexpected error occurred. Please try again.");
96603
+ const fallbackMessage = (response instanceof Error ? response.message : "") || parsed?.message || (typeof parsed === "string" ? parsed : "") || this.translate.instant("An unexpected error occurred. Please try again.");
95202
96604
  this.errors.set([fallbackMessage]);
95203
96605
  }
95204
96606
  onClose() {
@@ -95265,6 +96667,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95265
96667
  let initialDelta;
95266
96668
  if (isFormationTask2(task)) {
95267
96669
  initialDelta = isOntarioTask(task) ? this.deltaState.formationInitialDelta() : isBritishColumbiaTask(task) ? this.deltaState.bcFormationInitialDelta() : this.deltaState.federalFormationInitialDelta();
96670
+ } else if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
96671
+ initialDelta = this.deltaState.bcChangeOfOfficeAddressesInitialDelta();
95268
96672
  } else if (isUpdateMaintain(task)) {
95269
96673
  initialDelta = isOntarioTask(task) ? this.deltaState.initialReturnInitialDelta() : this.deltaState.federalUpdateMaintainInitialDelta();
95270
96674
  } else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
@@ -95298,6 +96702,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95298
96702
  }
95299
96703
  return federalPayload;
95300
96704
  }
96705
+ if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
96706
+ return buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData);
96707
+ }
95301
96708
  if (isUpdateMaintain(task) && isOntarioTask(task)) {
95302
96709
  const serviceOrderId = deltaData?.serviceOrderId ?? this.serviceOrderId;
95303
96710
  if (!serviceOrderId) {
@@ -95326,7 +96733,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95326
96733
  if (rf & 2) {
95327
96734
  \u0275\u0275styleProp("height", ctx.modalHeight());
95328
96735
  }
95329
- }, inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], currentUser: [1, "currentUser"], height: [1, "height"], validateOptions: [1, "validateOptions"], getDocumentBytes: [1, "getDocumentBytes"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 9, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract"], [3, "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "prevStep", "irValidate", "saveIrDeltaData", "irSubmit", "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "close", "nextStep", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "formationValidate", "saveFormationDeltaData", "formationSubmit", "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
96736
+ }, inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], currentUser: [1, "currentUser"], height: [1, "height"], validateOptions: [1, "validateOptions"], getDocumentBytes: [1, "getDocumentBytes"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 9, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors"], [3, "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "prevStep", "irValidate", "saveIrDeltaData", "irSubmit", "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "close", "nextStep", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "coaValidate", "saveCoaDeltaData", "coaSubmit", "formationValidate", "saveFormationDeltaData", "formationSubmit", "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
95330
96737
  if (rf & 1) {
95331
96738
  const _r1 = \u0275\u0275getCurrentView();
95332
96739
  \u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
@@ -95408,7 +96815,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95408
96815
  [activeStep]="activeStep()"\r
95409
96816
  [isNote]="dataWasChanged()"\r
95410
96817
  [actionsDisabled]="isLoading()"\r
95411
- [errors]="errors()"
96818
+ [errors]="errors()"\r
95412
96819
  [prevData]="prevData()"\r
95413
96820
  (close)="close.emit()"\r
95414
96821
  (formationValidate)="onOntarioFormationValidate($event)"\r
@@ -95427,15 +96834,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95427
96834
  [currentUser]="currentUser()"\r
95428
96835
  [activeStep]="activeStep()"\r
95429
96836
  [isNote]="dataWasChanged()"\r
95430
- [actionsDisabled]="isLoading()"
95431
- [errors]="errors()"
95432
- [currentDataExtract]="currentDataExtract()"
96837
+ [actionsDisabled]="isLoading()"\r
96838
+ [errors]="errors()"\r
95433
96839
  (close)="close.emit()"\r
95434
96840
  (nextStep)="onNextStepClick()"\r
95435
96841
  (prevStep)="onOntarioPrevStep()"\r
95436
96842
  (codValidate)="onBritishColumbiaChangeOfDirectorsValidate($event)"\r
95437
96843
  (saveCodDeltaData)="onBritishColumbiaChangeOfDirectorsSave($event)"\r
95438
96844
  (codSubmit)="onBritishColumbiaChangeOfDirectorsSubmit()"\r
96845
+ (coaValidate)="onBritishColumbiaChangeOfOfficeAddressesValidate($event)"\r
96846
+ (saveCoaDeltaData)="onBritishColumbiaChangeOfOfficeAddressesSave($event)"\r
96847
+ (coaSubmit)="onBritishColumbiaChangeOfOfficeAddressesSubmit()"\r
95439
96848
  (formationValidate)="onBritishColumbiaFormationValidate($event)"\r
95440
96849
  (saveFormationDeltaData)="onBritishColumbiaFormationSave($event)"\r
95441
96850
  (formationSubmit)="onBritishColumbiaFormationSubmit()"\r
@@ -95465,12 +96874,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
95465
96874
  </div>\r
95466
96875
  }\r
95467
96876
  </div>\r
95468
- </div>\r
95469
- `, styles: ["/* src/app/components/filing/filing.component.scss */\n:host {\n display: flex;\n width: 100%;\n min-width: 0;\n min-height: 480px;\n box-sizing: border-box;\n overflow: hidden;\n}\n:host .filing {\n position: relative;\n width: 100%;\n min-width: 0;\n min-height: 0;\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 16px;\n box-sizing: border-box;\n background: #ffffff;\n}\n:host .filing-title {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n:host .filing-title-text {\n color: #666666;\n}\n:host .filing-title-action {\n cursor: pointer;\n}\n:host .filing-header {\n display: flex;\n width: 100%;\n justify-content: flex-end;\n}\n:host .filing-content {\n min-height: 0;\n height: calc(100% - 44px);\n}\n:host .filing-content.edit {\n height: calc(100% - 95px);\n}\n:host .filing-content-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n background: transparent;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.pointer {\n cursor: pointer;\n}\n/*# sourceMappingURL=filing.component.css.map */\n", '/* src/app/components/filing/typography.scss */\n:host {\n --filing-modal-color-grey: #444444;\n --filing-modal-color-dark-blue: #485673;\n --filing-modal-color-grey-mid: #A0A0A0;\n --filing-modal-color-light-blue: #3778E4;\n --filing-modal-color-black: #444444;\n}\nmat-icon {\n font-family: "Material Icons" !important;\n font-size: 20px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n}\nh1 {\n font-size: 24px;\n line-height: 28px;\n font-weight: 700;\n font-family: "Open Sans";\n margin: 0;\n}\nh2 {\n font-size: 22px;\n line-height: 26px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh3 {\n font-size: 18px;\n font-weight: 600;\n font-family: "Open Sans";\n margin-top: 0;\n margin-bottom: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 22px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 20px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\n.body-1-regular {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-1-bold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-1-semibold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 600;\n font-family: "Open Sans";\n}\n.body-2-regular {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-2-bold {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-3-regular {\n line-height: 20px;\n font-size: 16px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-regular {\n line-height: 18px;\n font-size: 18px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-bold {\n line-height: 20px;\n font-size: 20px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n margin: 0;\n}\n.black {\n color: var(--filing-modal-color-black);\n}\n.grey {\n color: var(--filing-modal-color-grey);\n}\n.dark-blue {\n color: var(--filing-modal-color-dark-blue);\n}\n.grey-mid {\n color: var(--filing-modal-color-grey-mid);\n}\n.light-blue {\n color: var(--filing-modal-color-light-blue);\n}\n/*# sourceMappingURL=typography.css.map */\n', '/* src/app/components/filing/material-theme.scss */\n.filling {\n height: 100%;\n overflow: hidden;\n}\n* {\n box-sizing: border-box;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n}\n.filling {\n margin: 0;\n font-family: "Helvetica Neue", sans-serif;\n}\n.filing {\n --app-font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Helvetica Neue",\n Helvetica,\n Arial,\n sans-serif;\n --mat-sys-background: #faf9fd;\n --mat-sys-error: #ba1a1a;\n --mat-sys-error-container: #ffdad6;\n --mat-sys-inverse-on-surface: #f2f0f4;\n --mat-sys-inverse-primary: #abc7ff;\n --mat-sys-inverse-surface: #2f3033;\n --mat-sys-on-background: #1a1b1f;\n --mat-sys-on-error: #ffffff;\n --mat-sys-on-error-container: #93000a;\n --mat-sys-on-primary: #ffffff;\n --mat-sys-on-primary-container: #00458f;\n --mat-sys-on-primary-fixed: #001b3f;\n --mat-sys-on-primary-fixed-variant: #00458f;\n --mat-sys-on-secondary: #ffffff;\n --mat-sys-on-secondary-container: #3e4759;\n --mat-sys-on-secondary-fixed: #131c2b;\n --mat-sys-on-secondary-fixed-variant: #3e4759;\n --mat-sys-on-surface: #1a1b1f;\n --mat-sys-on-surface-variant: var(--filing-modal-color-grey);\n --mat-sys-on-tertiary: #ffffff;\n --mat-sys-on-tertiary-container: #0000ef;\n --mat-sys-on-tertiary-fixed: #00006e;\n --mat-sys-on-tertiary-fixed-variant: #0000ef;\n --mat-sys-outline: #74777f;\n --mat-sys-outline-variant: #c4c6d0;\n --mat-sys-primary: #3778e4;\n --mat-sys-primary-container: #d7e3ff;\n --mat-sys-primary-fixed: #d7e3ff;\n --mat-sys-primary-fixed-dim: #abc7ff;\n --mat-sys-scrim: #000000;\n --mat-sys-secondary: #565e71;\n --mat-sys-secondary-container: #dae2f9;\n --mat-sys-secondary-fixed: #dae2f9;\n --mat-sys-secondary-fixed-dim: #bec6dc;\n --mat-sys-shadow: #000000;\n --mat-sys-surface: #faf9fd;\n --mat-sys-surface-bright: #faf9fd;\n --mat-sys-surface-container: #efedf0;\n --mat-sys-surface-container-high: #e9e7eb;\n --mat-sys-surface-container-highest: #e3e2e6;\n --mat-sys-surface-container-low: #f4f3f6;\n --mat-sys-surface-container-lowest: #ffffff;\n --mat-sys-surface-dim: #dbd9dd;\n --mat-sys-surface-tint: #005cbb;\n --mat-sys-surface-variant: #e0e2ec;\n --mat-sys-tertiary: #343dff;\n --mat-sys-tertiary-container: #e0e0ff;\n --mat-sys-tertiary-fixed: #e0e0ff;\n --mat-sys-tertiary-fixed-dim: #bec2ff;\n --mat-sys-neutral-variant20: #2d3038;\n --mat-sys-neutral10: #1a1b1f;\n --mdc-filled-button-container-height: 35px;\n --mdc-outlined-button-container-height: 35px;\n --mdc-text-button-label-text-color: #808090;\n --mdc-filled-button-label-text-weight: 600;\n --mdc-text-button-label-text-weight: 600;\n --mdc-filled-button-container-shape: 4px;\n --mdc-outlined-button-outline-color: none;\n --mdc-outlined-button-container-shape: 6px;\n --mat-sys-level0:\n 0px 0px 0px 0px rgba(0, 0, 0, 0.2),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.14),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level1:\n 0px 2px 1px -1px rgba(0, 0, 0, 0.2),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level2:\n 0px 3px 3px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 4px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 8px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level3:\n 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 6px 10px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level4:\n 0px 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0px 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n --mat-sys-level5:\n 0px 7px 8px -4px rgba(0, 0, 0, 0.2),\n 0px 12px 17px 2px rgba(0, 0, 0, 0.14),\n 0px 5px 22px 4px rgba(0, 0, 0, 0.12);\n --mdc-outlined-button-label-text-size: 14px;\n --mdc-filled-button-label-text-size: 14px;\n --mdc-filled-text-field-label-text-size: 16px;\n --mat-sys-body-large: 400 1rem / 1.5rem var(--app-font-family);\n --mat-sys-body-large-font: var(--app-font-family);\n --mat-sys-body-large-line-height: 1.5rem;\n --mat-sys-body-large-size: 14px;\n --mat-sys-body-large-tracking: 0.031rem;\n --mat-sys-body-large-weight: 400;\n --mat-sys-body-medium: 400 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-body-medium-font: var(--app-font-family);\n --mat-sys-body-medium-line-height: 1.25rem;\n --mat-sys-body-medium-size: 0.875rem;\n --mat-sys-body-medium-tracking: 0.016rem;\n --mat-sys-body-medium-weight: 400;\n --mat-sys-body-small: 400 0.75rem / 1rem var(--app-font-family);\n --mat-sys-body-small-font: var(--app-font-family);\n --mat-sys-body-small-line-height: 1rem;\n --mat-sys-body-small-size: 0.75rem;\n --mat-sys-body-small-tracking: 0.025rem;\n --mat-sys-body-small-weight: 400;\n --mat-sys-display-large: 400 3.562rem / 4rem var(--app-font-family);\n --mat-sys-display-large-font: var(--app-font-family);\n --mat-sys-display-large-line-height: 4rem;\n --mat-sys-display-large-size: 3.562rem;\n --mat-sys-display-large-tracking: -0.016rem;\n --mat-sys-display-large-weight: 400;\n --mat-sys-display-medium: 400 2.812rem / 3.25rem var(--app-font-family);\n --mat-sys-display-medium-font: var(--app-font-family);\n --mat-sys-display-medium-line-height: 3.25rem;\n --mat-sys-display-medium-size: 2.812rem;\n --mat-sys-display-medium-tracking: 0;\n --mat-sys-display-medium-weight: 400;\n --mat-sys-display-small: 400 2.25rem / 2.75rem var(--app-font-family);\n --mat-sys-display-small-font: var(--app-font-family);\n --mat-sys-display-small-line-height: 2.75rem;\n --mat-sys-display-small-size: 2.25rem;\n --mat-sys-display-small-tracking: 0;\n --mat-sys-display-small-weight: 400;\n --mat-sys-headline-large: 400 2rem / 2.5rem var(--app-font-family);\n --mat-sys-headline-large-font: var(--app-font-family);\n --mat-sys-headline-large-line-height: 2.5rem;\n --mat-sys-headline-large-size: 2rem;\n --mat-sys-headline-large-tracking: 0;\n --mat-sys-headline-large-weight: 400;\n --mat-sys-headline-medium: 400 1.75rem / 2.25rem var(--app-font-family);\n --mat-sys-headline-medium-font: var(--app-font-family);\n --mat-sys-headline-medium-line-height: 2.25rem;\n --mat-sys-headline-medium-size: 1.75rem;\n --mat-sys-headline-medium-tracking: 0;\n --mat-sys-headline-medium-weight: 400;\n --mat-sys-headline-small: 400 1.5rem / 2rem var(--app-font-family);\n --mat-sys-headline-small-font: var(--app-font-family);\n --mat-sys-headline-small-line-height: 2rem;\n --mat-sys-headline-small-size: 1.5rem;\n --mat-sys-headline-small-tracking: 0;\n --mat-sys-headline-small-weight: 400;\n --mat-sys-label-large: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-label-large-font: var(--app-font-family);\n --mat-sys-label-large-line-height: 1.25rem;\n --mat-sys-label-large-size: 0.875rem;\n --mat-sys-label-large-tracking: 0.006rem;\n --mat-sys-label-large-weight: 500;\n --mat-sys-label-large-weight-prominent: 700;\n --mat-sys-label-medium: 500 0.75rem / 1rem var(--app-font-family);\n --mat-sys-label-medium-font: var(--app-font-family);\n --mat-sys-label-medium-line-height: 1rem;\n --mat-sys-label-medium-size: 0.75rem;\n --mat-sys-label-medium-tracking: 0.031rem;\n --mat-sys-label-medium-weight: 500;\n --mat-sys-label-medium-weight-prominent: 700;\n --mat-sys-label-small: 500 0.688rem / 1rem var(--app-font-family);\n --mat-sys-label-small-font: var(--app-font-family);\n --mat-sys-label-small-line-height: 1rem;\n --mat-sys-label-small-size: 0.688rem;\n --mat-sys-label-small-tracking: 0.031rem;\n --mat-sys-label-small-weight: 500;\n --mat-sys-title-large: 400 1.375rem / 1.75rem var(--app-font-family);\n --mat-sys-title-large-font: var(--app-font-family);\n --mat-sys-title-large-line-height: 1.75rem;\n --mat-sys-title-large-size: 1.375rem;\n --mat-sys-title-large-tracking: 0;\n --mat-sys-title-large-weight: 400;\n --mat-sys-title-medium: 500 1rem / 1.5rem var(--app-font-family);\n --mat-sys-title-medium-font: var(--app-font-family);\n --mat-sys-title-medium-line-height: 1.5rem;\n --mat-sys-title-medium-size: 1rem;\n --mat-sys-title-medium-tracking: 0.009rem;\n --mat-sys-title-medium-weight: 500;\n --mat-sys-title-small: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-title-small-font: var(--app-font-family);\n --mat-sys-title-small-line-height: 1.25rem;\n --mat-sys-title-small-size: 0.875rem;\n --mat-sys-title-small-tracking: 0.006rem;\n --mat-sys-title-small-weight: 500;\n --mat-sys-corner-extra-large: 28px;\n --mat-sys-corner-extra-large-top: 28px 28px 0 0;\n --mat-sys-corner-extra-small: 4px;\n --mat-sys-corner-extra-small-top: 4px 4px 0 0;\n --mat-sys-corner-full: 9999px;\n --mat-sys-corner-large: 16px;\n --mat-sys-corner-large-end: 0 16px 16px 0;\n --mat-sys-corner-large-start: 16px 0 0 16px;\n --mat-sys-corner-large-top: 16px 16px 0 0;\n --mat-sys-corner-medium: 12px;\n --mat-sys-corner-none: 0;\n --mat-sys-corner-small: 8px;\n --mat-sys-dragged-state-layer-opacity: 0.16;\n --mat-sys-focus-state-layer-opacity: 0.12;\n --mat-sys-hover-state-layer-opacity: 0.08;\n --mat-sys-pressed-state-layer-opacity: 0.12;\n}\n.filing .mat-primary .mat-pseudo-checkbox-checked,\n.filing .mat-primary .mat-pseudo-checkbox-indeterminate {\n background: transparent !important;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox {\n width: 24px;\n height: 24px;\n flex-basis: 24px;\n padding: 0;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__background {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n top: 0;\n left: 0;\n border: 3px solid var(--filing-modal-color-grey);\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__checkmark {\n height: 20px;\n width: 20px;\n font-size: 20px;\n top: 1px;\n left: 1px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__ripple,\n.filing .mat-mdc-checkbox[cardView] .mat-ripple {\n display: none;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-label {\n padding-left: 8px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-button__label {\n line-height: 10px;\n}\n/*# sourceMappingURL=material-theme.css.map */\n'] }]
96877
+ </div>`, styles: ["/* src/app/components/filing/filing.component.scss */\n:host {\n display: flex;\n width: 100%;\n min-width: 0;\n min-height: 480px;\n box-sizing: border-box;\n overflow: hidden;\n}\n:host .filing {\n position: relative;\n width: 100%;\n min-width: 0;\n min-height: 0;\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 16px;\n box-sizing: border-box;\n background: #ffffff;\n}\n:host .filing-title {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n:host .filing-title-text {\n color: #666666;\n}\n:host .filing-title-action {\n cursor: pointer;\n}\n:host .filing-header {\n display: flex;\n width: 100%;\n justify-content: flex-end;\n}\n:host .filing-content {\n min-height: 0;\n height: calc(100% - 44px);\n}\n:host .filing-content.edit {\n height: calc(100% - 95px);\n}\n:host .filing-content-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n background: transparent;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.pointer {\n cursor: pointer;\n}\n/*# sourceMappingURL=filing.component.css.map */\n", '/* src/app/components/filing/typography.scss */\n:host {\n --filing-modal-color-grey: #444444;\n --filing-modal-color-dark-blue: #485673;\n --filing-modal-color-grey-mid: #A0A0A0;\n --filing-modal-color-light-blue: #3778E4;\n --filing-modal-color-black: #444444;\n}\nmat-icon {\n font-family: "Material Icons" !important;\n font-size: 20px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n}\nh1 {\n font-size: 24px;\n line-height: 28px;\n font-weight: 700;\n font-family: "Open Sans";\n margin: 0;\n}\nh2 {\n font-size: 22px;\n line-height: 26px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh3 {\n font-size: 18px;\n font-weight: 600;\n font-family: "Open Sans";\n margin-top: 0;\n margin-bottom: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 22px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 20px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\n.body-1-regular {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-1-bold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-1-semibold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 600;\n font-family: "Open Sans";\n}\n.body-2-regular {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-2-bold {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-3-regular {\n line-height: 20px;\n font-size: 16px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-regular {\n line-height: 18px;\n font-size: 18px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-bold {\n line-height: 20px;\n font-size: 20px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n margin: 0;\n}\n.black {\n color: var(--filing-modal-color-black);\n}\n.grey {\n color: var(--filing-modal-color-grey);\n}\n.dark-blue {\n color: var(--filing-modal-color-dark-blue);\n}\n.grey-mid {\n color: var(--filing-modal-color-grey-mid);\n}\n.light-blue {\n color: var(--filing-modal-color-light-blue);\n}\n/*# sourceMappingURL=typography.css.map */\n', '/* src/app/components/filing/material-theme.scss */\n.filling {\n height: 100%;\n overflow: hidden;\n}\n* {\n box-sizing: border-box;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n}\n.filling {\n margin: 0;\n font-family: "Helvetica Neue", sans-serif;\n}\n.filing {\n --app-font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Helvetica Neue",\n Helvetica,\n Arial,\n sans-serif;\n --mat-sys-background: #faf9fd;\n --mat-sys-error: #ba1a1a;\n --mat-sys-error-container: #ffdad6;\n --mat-sys-inverse-on-surface: #f2f0f4;\n --mat-sys-inverse-primary: #abc7ff;\n --mat-sys-inverse-surface: #2f3033;\n --mat-sys-on-background: #1a1b1f;\n --mat-sys-on-error: #ffffff;\n --mat-sys-on-error-container: #93000a;\n --mat-sys-on-primary: #ffffff;\n --mat-sys-on-primary-container: #00458f;\n --mat-sys-on-primary-fixed: #001b3f;\n --mat-sys-on-primary-fixed-variant: #00458f;\n --mat-sys-on-secondary: #ffffff;\n --mat-sys-on-secondary-container: #3e4759;\n --mat-sys-on-secondary-fixed: #131c2b;\n --mat-sys-on-secondary-fixed-variant: #3e4759;\n --mat-sys-on-surface: #1a1b1f;\n --mat-sys-on-surface-variant: var(--filing-modal-color-grey);\n --mat-sys-on-tertiary: #ffffff;\n --mat-sys-on-tertiary-container: #0000ef;\n --mat-sys-on-tertiary-fixed: #00006e;\n --mat-sys-on-tertiary-fixed-variant: #0000ef;\n --mat-sys-outline: #74777f;\n --mat-sys-outline-variant: #c4c6d0;\n --mat-sys-primary: #3778e4;\n --mat-sys-primary-container: #d7e3ff;\n --mat-sys-primary-fixed: #d7e3ff;\n --mat-sys-primary-fixed-dim: #abc7ff;\n --mat-sys-scrim: #000000;\n --mat-sys-secondary: #565e71;\n --mat-sys-secondary-container: #dae2f9;\n --mat-sys-secondary-fixed: #dae2f9;\n --mat-sys-secondary-fixed-dim: #bec6dc;\n --mat-sys-shadow: #000000;\n --mat-sys-surface: #faf9fd;\n --mat-sys-surface-bright: #faf9fd;\n --mat-sys-surface-container: #efedf0;\n --mat-sys-surface-container-high: #e9e7eb;\n --mat-sys-surface-container-highest: #e3e2e6;\n --mat-sys-surface-container-low: #f4f3f6;\n --mat-sys-surface-container-lowest: #ffffff;\n --mat-sys-surface-dim: #dbd9dd;\n --mat-sys-surface-tint: #005cbb;\n --mat-sys-surface-variant: #e0e2ec;\n --mat-sys-tertiary: #343dff;\n --mat-sys-tertiary-container: #e0e0ff;\n --mat-sys-tertiary-fixed: #e0e0ff;\n --mat-sys-tertiary-fixed-dim: #bec2ff;\n --mat-sys-neutral-variant20: #2d3038;\n --mat-sys-neutral10: #1a1b1f;\n --mdc-filled-button-container-height: 35px;\n --mdc-outlined-button-container-height: 35px;\n --mdc-text-button-label-text-color: #808090;\n --mdc-filled-button-label-text-weight: 600;\n --mdc-text-button-label-text-weight: 600;\n --mdc-filled-button-container-shape: 4px;\n --mdc-outlined-button-outline-color: none;\n --mdc-outlined-button-container-shape: 6px;\n --mat-sys-level0:\n 0px 0px 0px 0px rgba(0, 0, 0, 0.2),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.14),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level1:\n 0px 2px 1px -1px rgba(0, 0, 0, 0.2),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level2:\n 0px 3px 3px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 4px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 8px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level3:\n 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 6px 10px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level4:\n 0px 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0px 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n --mat-sys-level5:\n 0px 7px 8px -4px rgba(0, 0, 0, 0.2),\n 0px 12px 17px 2px rgba(0, 0, 0, 0.14),\n 0px 5px 22px 4px rgba(0, 0, 0, 0.12);\n --mdc-outlined-button-label-text-size: 14px;\n --mdc-filled-button-label-text-size: 14px;\n --mdc-filled-text-field-label-text-size: 16px;\n --mat-sys-body-large: 400 1rem / 1.5rem var(--app-font-family);\n --mat-sys-body-large-font: var(--app-font-family);\n --mat-sys-body-large-line-height: 1.5rem;\n --mat-sys-body-large-size: 14px;\n --mat-sys-body-large-tracking: 0.031rem;\n --mat-sys-body-large-weight: 400;\n --mat-sys-body-medium: 400 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-body-medium-font: var(--app-font-family);\n --mat-sys-body-medium-line-height: 1.25rem;\n --mat-sys-body-medium-size: 0.875rem;\n --mat-sys-body-medium-tracking: 0.016rem;\n --mat-sys-body-medium-weight: 400;\n --mat-sys-body-small: 400 0.75rem / 1rem var(--app-font-family);\n --mat-sys-body-small-font: var(--app-font-family);\n --mat-sys-body-small-line-height: 1rem;\n --mat-sys-body-small-size: 0.75rem;\n --mat-sys-body-small-tracking: 0.025rem;\n --mat-sys-body-small-weight: 400;\n --mat-sys-display-large: 400 3.562rem / 4rem var(--app-font-family);\n --mat-sys-display-large-font: var(--app-font-family);\n --mat-sys-display-large-line-height: 4rem;\n --mat-sys-display-large-size: 3.562rem;\n --mat-sys-display-large-tracking: -0.016rem;\n --mat-sys-display-large-weight: 400;\n --mat-sys-display-medium: 400 2.812rem / 3.25rem var(--app-font-family);\n --mat-sys-display-medium-font: var(--app-font-family);\n --mat-sys-display-medium-line-height: 3.25rem;\n --mat-sys-display-medium-size: 2.812rem;\n --mat-sys-display-medium-tracking: 0;\n --mat-sys-display-medium-weight: 400;\n --mat-sys-display-small: 400 2.25rem / 2.75rem var(--app-font-family);\n --mat-sys-display-small-font: var(--app-font-family);\n --mat-sys-display-small-line-height: 2.75rem;\n --mat-sys-display-small-size: 2.25rem;\n --mat-sys-display-small-tracking: 0;\n --mat-sys-display-small-weight: 400;\n --mat-sys-headline-large: 400 2rem / 2.5rem var(--app-font-family);\n --mat-sys-headline-large-font: var(--app-font-family);\n --mat-sys-headline-large-line-height: 2.5rem;\n --mat-sys-headline-large-size: 2rem;\n --mat-sys-headline-large-tracking: 0;\n --mat-sys-headline-large-weight: 400;\n --mat-sys-headline-medium: 400 1.75rem / 2.25rem var(--app-font-family);\n --mat-sys-headline-medium-font: var(--app-font-family);\n --mat-sys-headline-medium-line-height: 2.25rem;\n --mat-sys-headline-medium-size: 1.75rem;\n --mat-sys-headline-medium-tracking: 0;\n --mat-sys-headline-medium-weight: 400;\n --mat-sys-headline-small: 400 1.5rem / 2rem var(--app-font-family);\n --mat-sys-headline-small-font: var(--app-font-family);\n --mat-sys-headline-small-line-height: 2rem;\n --mat-sys-headline-small-size: 1.5rem;\n --mat-sys-headline-small-tracking: 0;\n --mat-sys-headline-small-weight: 400;\n --mat-sys-label-large: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-label-large-font: var(--app-font-family);\n --mat-sys-label-large-line-height: 1.25rem;\n --mat-sys-label-large-size: 0.875rem;\n --mat-sys-label-large-tracking: 0.006rem;\n --mat-sys-label-large-weight: 500;\n --mat-sys-label-large-weight-prominent: 700;\n --mat-sys-label-medium: 500 0.75rem / 1rem var(--app-font-family);\n --mat-sys-label-medium-font: var(--app-font-family);\n --mat-sys-label-medium-line-height: 1rem;\n --mat-sys-label-medium-size: 0.75rem;\n --mat-sys-label-medium-tracking: 0.031rem;\n --mat-sys-label-medium-weight: 500;\n --mat-sys-label-medium-weight-prominent: 700;\n --mat-sys-label-small: 500 0.688rem / 1rem var(--app-font-family);\n --mat-sys-label-small-font: var(--app-font-family);\n --mat-sys-label-small-line-height: 1rem;\n --mat-sys-label-small-size: 0.688rem;\n --mat-sys-label-small-tracking: 0.031rem;\n --mat-sys-label-small-weight: 500;\n --mat-sys-title-large: 400 1.375rem / 1.75rem var(--app-font-family);\n --mat-sys-title-large-font: var(--app-font-family);\n --mat-sys-title-large-line-height: 1.75rem;\n --mat-sys-title-large-size: 1.375rem;\n --mat-sys-title-large-tracking: 0;\n --mat-sys-title-large-weight: 400;\n --mat-sys-title-medium: 500 1rem / 1.5rem var(--app-font-family);\n --mat-sys-title-medium-font: var(--app-font-family);\n --mat-sys-title-medium-line-height: 1.5rem;\n --mat-sys-title-medium-size: 1rem;\n --mat-sys-title-medium-tracking: 0.009rem;\n --mat-sys-title-medium-weight: 500;\n --mat-sys-title-small: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-title-small-font: var(--app-font-family);\n --mat-sys-title-small-line-height: 1.25rem;\n --mat-sys-title-small-size: 0.875rem;\n --mat-sys-title-small-tracking: 0.006rem;\n --mat-sys-title-small-weight: 500;\n --mat-sys-corner-extra-large: 28px;\n --mat-sys-corner-extra-large-top: 28px 28px 0 0;\n --mat-sys-corner-extra-small: 4px;\n --mat-sys-corner-extra-small-top: 4px 4px 0 0;\n --mat-sys-corner-full: 9999px;\n --mat-sys-corner-large: 16px;\n --mat-sys-corner-large-end: 0 16px 16px 0;\n --mat-sys-corner-large-start: 16px 0 0 16px;\n --mat-sys-corner-large-top: 16px 16px 0 0;\n --mat-sys-corner-medium: 12px;\n --mat-sys-corner-none: 0;\n --mat-sys-corner-small: 8px;\n --mat-sys-dragged-state-layer-opacity: 0.16;\n --mat-sys-focus-state-layer-opacity: 0.12;\n --mat-sys-hover-state-layer-opacity: 0.08;\n --mat-sys-pressed-state-layer-opacity: 0.12;\n}\n.filing .mat-primary .mat-pseudo-checkbox-checked,\n.filing .mat-primary .mat-pseudo-checkbox-indeterminate {\n background: transparent !important;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox {\n width: 24px;\n height: 24px;\n flex-basis: 24px;\n padding: 0;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__background {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n top: 0;\n left: 0;\n border: 3px solid var(--filing-modal-color-grey);\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__checkmark {\n height: 20px;\n width: 20px;\n font-size: 20px;\n top: 1px;\n left: 1px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__ripple,\n.filing .mat-mdc-checkbox[cardView] .mat-ripple {\n display: none;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-label {\n padding-left: 8px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-button__label {\n line-height: 10px;\n}\n/*# sourceMappingURL=material-theme.css.map */\n'] }]
95470
96878
  }], () => [], null);
95471
96879
  })();
95472
96880
  (() => {
95473
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 89 });
96881
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 93 });
95474
96882
  })();
95475
96883
  }
95476
96884
  });
@@ -100116,7 +101524,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
100116
101524
  Currency: "Currency",
100117
101525
  "Special Rights or Restrictions": "Special Rights or Restrictions",
100118
101526
  Unlimited: "Unlimited",
100119
- "Without Par Value": "Without Par Value"
101527
+ "Without Par Value": "Without Par Value",
101528
+ "File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
101529
+ "Records Office Address": "Records Office Address",
101530
+ "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.",
101531
+ "Current Mailing Address": "Current Mailing Address",
101532
+ "Current Delivery Address": "Current Delivery Address",
101533
+ "New Mailing Address": "New Mailing Address",
101534
+ "New Delivery Address": "New Delivery Address",
101535
+ "Same as Mailing Address": "Same as Mailing Address",
101536
+ "Same as Registered Office": "Same as Registered Office",
101537
+ "The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.": "The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable."
100120
101538
  };
100121
101539
  }
100122
101540
  });
@@ -100463,7 +101881,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
100463
101881
  Currency: "Devise",
100464
101882
  "Special Rights or Restrictions": "Droits ou restrictions sp\xE9ciaux",
100465
101883
  Unlimited: "Illimit\xE9",
100466
- "Without Par Value": "Sans valeur nominale"
101884
+ "Without Par Value": "Sans valeur nominale",
101885
+ "File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
101886
+ "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.",
101887
+ "Current Mailing Address": "Adresse postale actuelle",
101888
+ "Current Delivery Address": "Adresse de livraison actuelle",
101889
+ "New Mailing Address": "Nouvelle adresse postale",
101890
+ "New Delivery Address": "Nouvelle adresse de livraison",
101891
+ "Same as Mailing Address": "Identique \xE0 l'adresse postale",
101892
+ "Same as Registered Office": "Identique au si\xE8ge social",
101893
+ "The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.": "L'adresse de livraison doit \xEAtre un lieu physique en Colombie-Britannique o\xF9 des documents peuvent \xEAtre livr\xE9s pendant les heures d'ouverture l\xE9gales. Une case postale n'est pas accept\xE9e."
100467
101894
  };
100468
101895
  }
100469
101896
  });