@dyedurham/search-and-file-widget 2.0.97 → 2.0.99
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.
- package/dnd-filing-shell.js +1851 -46
- package/package.json +11 -11
package/dnd-filing-shell.js
CHANGED
|
@@ -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";
|
|
@@ -58087,6 +58088,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58087
58088
|
function isChangeOfPrincipalsTask(task) {
|
|
58088
58089
|
return task?._taskType === TaskType.ChangeOfPrincipals;
|
|
58089
58090
|
}
|
|
58091
|
+
function isChangeOfAddressTask(task) {
|
|
58092
|
+
return task?._taskType === TaskType.ChangeOfSharedAddress || task?._taskType === TaskType.ChangeOfAddress;
|
|
58093
|
+
}
|
|
58090
58094
|
function isBritishColumbiaTask(task) {
|
|
58091
58095
|
return task.entity._compliance.home_jurisdiction === "British Columbia";
|
|
58092
58096
|
}
|
|
@@ -58114,6 +58118,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58114
58118
|
if (!task) {
|
|
58115
58119
|
return void 0;
|
|
58116
58120
|
}
|
|
58121
|
+
if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
|
|
58122
|
+
return "bcChangeOfAddress";
|
|
58123
|
+
}
|
|
58117
58124
|
const prefix = isOntarioTask(task) ? "ontario" : isBritishColumbiaTask(task) ? "bc" : "federal";
|
|
58118
58125
|
if (isFormationTask2(task)) {
|
|
58119
58126
|
return `${prefix}Incorporation`;
|
|
@@ -61002,10 +61009,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
61002
61009
|
this._inputElement.nativeElement.focus();
|
|
61003
61010
|
}
|
|
61004
61011
|
/** Creates the change event that will be emitted by the checkbox. */
|
|
61005
|
-
_createChangeEvent(
|
|
61012
|
+
_createChangeEvent(isChecked2) {
|
|
61006
61013
|
const event = new MatCheckboxChange();
|
|
61007
61014
|
event.source = this;
|
|
61008
|
-
event.checked =
|
|
61015
|
+
event.checked = isChecked2;
|
|
61009
61016
|
return event;
|
|
61010
61017
|
}
|
|
61011
61018
|
/** Gets the element on which to add the animation CSS classes. */
|
|
@@ -80561,7 +80568,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
80561
80568
|
MatRadioButton,
|
|
80562
80569
|
TranslatePipe,
|
|
80563
80570
|
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 });
|
|
80571
|
+
], 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
80572
|
};
|
|
80566
80573
|
(() => {
|
|
80567
80574
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(FilingFormGroupComponent, [{
|
|
@@ -80815,7 +80822,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
80815
80822
|
}\r
|
|
80816
80823
|
</div>\r
|
|
80817
80824
|
</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'] }]
|
|
80825
|
+
`, 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
80826
|
}], () => [], { dismissOpenTooltip: [{
|
|
80820
80827
|
type: HostListener,
|
|
80821
80828
|
args: ["document:keydown.escape"]
|
|
@@ -81305,12 +81312,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81305
81312
|
federalUpdateMaintainInitialDelta = signal(null);
|
|
81306
81313
|
bcChangeOfDirectorsInitialDelta = signal(null);
|
|
81307
81314
|
bcFormationInitialDelta = signal(null);
|
|
81315
|
+
bcChangeOfOfficeAddressesInitialDelta = signal(null);
|
|
81308
81316
|
setFormationInitialDelta(delta) {
|
|
81309
81317
|
this.formationInitialDelta.set(delta);
|
|
81310
81318
|
}
|
|
81311
81319
|
setBCFormationInitialDelta(delta) {
|
|
81312
81320
|
this.bcFormationInitialDelta.set(delta);
|
|
81313
81321
|
}
|
|
81322
|
+
setBCChangeOfOfficeAddressesInitialDelta(delta) {
|
|
81323
|
+
this.bcChangeOfOfficeAddressesInitialDelta.set(delta);
|
|
81324
|
+
}
|
|
81314
81325
|
setInitialReturnInitialDelta(delta) {
|
|
81315
81326
|
this.initialReturnInitialDelta.set(delta);
|
|
81316
81327
|
}
|
|
@@ -81330,6 +81341,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81330
81341
|
this.federalUpdateMaintainInitialDelta.set(null);
|
|
81331
81342
|
this.bcChangeOfDirectorsInitialDelta.set(null);
|
|
81332
81343
|
this.bcFormationInitialDelta.set(null);
|
|
81344
|
+
this.bcChangeOfOfficeAddressesInitialDelta.set(null);
|
|
81333
81345
|
}
|
|
81334
81346
|
static \u0275fac = function DeltaStateService_Factory(__ngFactoryType__) {
|
|
81335
81347
|
return new (__ngFactoryType__ || _DeltaStateService)();
|
|
@@ -84137,7 +84149,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84137
84149
|
});
|
|
84138
84150
|
|
|
84139
84151
|
// 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;
|
|
84152
|
+
var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BCNotificationMethod, BCNotificationMethodLabel, BC_NOTIFICATION_METHOD_OPTIONS, BC_CHANGE_OF_DIRECTORS_FILING_FEE, BCAnnualReportReminder, BCAnnualReportReminderLabel, BC_ANNUAL_REPORT_REMINDER_OPTIONS, BC_DEFAULT_PROVINCE_STATE, BC_DEFAULT_COUNTRY, BC_FUTURE_EFFECTIVE_DATE_FEE, BC_PASSWORD_MIN_LENGTH, BC_PASSWORD_MAX_LENGTH, BC_PASSWORD_PATTERN, BC_COMPANY_EMAIL_MAX_LENGTH, BC_CANADIAN_POSTAL_PATTERN, BC_NAME_RESERVATION_MAX_LENGTH, BC_NAME_RESERVATION_PATTERN, BC_COMPLETING_PARTY_COUNTRY_OPTIONS;
|
|
84141
84153
|
var init_BritishColumbiaConstants = __esm({
|
|
84142
84154
|
"src/app/constants/BritishColumbiaConstants.ts"() {
|
|
84143
84155
|
init_app_enums();
|
|
@@ -84171,7 +84183,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84171
84183
|
};
|
|
84172
84184
|
BC_ANNUAL_REPORT_REMINDER_OPTIONS = Object.values(BCAnnualReportReminder).map((value) => ({ value, label: BCAnnualReportReminderLabel[value] }));
|
|
84173
84185
|
Object.values(CANProvinces).map((province) => ({ value: province, label: province }));
|
|
84174
|
-
CANProvinces.BritishColumbia;
|
|
84186
|
+
BC_DEFAULT_PROVINCE_STATE = CANProvinces.BritishColumbia;
|
|
84175
84187
|
BC_DEFAULT_COUNTRY = "Canada";
|
|
84176
84188
|
BC_FUTURE_EFFECTIVE_DATE_FEE = "$100";
|
|
84177
84189
|
BC_PASSWORD_MIN_LENGTH = 8;
|
|
@@ -84190,7 +84202,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84190
84202
|
});
|
|
84191
84203
|
|
|
84192
84204
|
// src/app/enums/british-columbia-form.enums.ts
|
|
84193
|
-
var BCChangeOfDirectorsFormControls, BCChangeOfDirectorsFormGroups, BCFormationFormControls, BCFormationFormGroups;
|
|
84205
|
+
var BCChangeOfDirectorsFormControls, BCChangeOfDirectorsFormGroups, BCFormationFormControls, BCChangeOfOfficeAddressesFormControls, BCChangeOfOfficeAddressesFormGroups, BCFormationFormGroups;
|
|
84194
84206
|
var init_british_columbia_form_enums = __esm({
|
|
84195
84207
|
"src/app/enums/british-columbia-form.enums.ts"() {
|
|
84196
84208
|
(function(BCChangeOfDirectorsFormControls2) {
|
|
@@ -84255,6 +84267,33 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84255
84267
|
BCFormationFormControls2["HasConfirmedCompletion"] = "hasConfirmedCompletion";
|
|
84256
84268
|
BCFormationFormControls2["HasRequiredDocuments"] = "hasRequiredDocuments";
|
|
84257
84269
|
})(BCFormationFormControls || (BCFormationFormControls = {}));
|
|
84270
|
+
(function(BCChangeOfOfficeAddressesFormControls2) {
|
|
84271
|
+
BCChangeOfOfficeAddressesFormControls2["ClientMatterNumber"] = "ClientMatterNumber";
|
|
84272
|
+
BCChangeOfOfficeAddressesFormControls2["DocketNumber"] = "docketNumber";
|
|
84273
|
+
BCChangeOfOfficeAddressesFormControls2["CorporationName"] = "corporationName";
|
|
84274
|
+
BCChangeOfOfficeAddressesFormControls2["IncorporationNumber"] = "incorporationNumber";
|
|
84275
|
+
BCChangeOfOfficeAddressesFormControls2["CompanyEmail"] = "companyEmail";
|
|
84276
|
+
BCChangeOfOfficeAddressesFormControls2["AnnualReportReminder"] = "annualReportReminder";
|
|
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
|
+
BCChangeOfOfficeAddressesFormGroups2["AnnualReportReminder"] = "Annual Report Reminder";
|
|
84296
|
+
})(BCChangeOfOfficeAddressesFormGroups || (BCChangeOfOfficeAddressesFormGroups = {}));
|
|
84258
84297
|
(function(BCFormationFormGroups2) {
|
|
84259
84298
|
BCFormationFormGroups2["ReferenceNumbers"] = "Reference Numbers";
|
|
84260
84299
|
BCFormationFormGroups2["CorporationDetails"] = "Corporation Details";
|
|
@@ -85043,14 +85082,215 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85043
85082
|
}
|
|
85044
85083
|
});
|
|
85045
85084
|
|
|
85085
|
+
// src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts
|
|
85086
|
+
var Controls2, COMPANY_EMAIL_TYPES, isCompanyEmail, incomingAddressByGrid, EDITABLE_ADDRESS_CONTROLS, BritishColumbiaChangeOfOfficeAddressesFormHelper;
|
|
85087
|
+
var init_british_columbia_change_of_office_addresses_form_helper = __esm({
|
|
85088
|
+
"src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts"() {
|
|
85089
|
+
init_forms();
|
|
85090
|
+
init_common_models();
|
|
85091
|
+
init_british_columbia_form_enums();
|
|
85092
|
+
init_BritishColumbiaConstants();
|
|
85093
|
+
init_british_columbia_formation_form_helper();
|
|
85094
|
+
init_BritishColumbiaConstants();
|
|
85095
|
+
init_common_utils();
|
|
85096
|
+
Controls2 = BCChangeOfOfficeAddressesFormControls;
|
|
85097
|
+
COMPANY_EMAIL_TYPES = ["Business Email", "Email"];
|
|
85098
|
+
isCompanyEmail = (communication) => Boolean(communication?.value) && COMPANY_EMAIL_TYPES.includes(communication?.type ?? "");
|
|
85099
|
+
incomingAddressByGrid = /* @__PURE__ */ new WeakMap();
|
|
85100
|
+
EDITABLE_ADDRESS_CONTROLS = [
|
|
85101
|
+
Controls2.AddressLine1,
|
|
85102
|
+
Controls2.AddressLine2,
|
|
85103
|
+
Controls2.City,
|
|
85104
|
+
Controls2.PostalCode
|
|
85105
|
+
];
|
|
85106
|
+
BritishColumbiaChangeOfOfficeAddressesFormHelper = class {
|
|
85107
|
+
static generateConfig(task, _translateFn) {
|
|
85108
|
+
const affiliations = task.entity.affiliations ?? [];
|
|
85109
|
+
const delta = task.deltaData;
|
|
85110
|
+
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
85111
|
+
const pick = BritishColumbiaFormationFormHelper.pickAddress;
|
|
85112
|
+
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85113
|
+
const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
85114
|
+
const seed = delta?.registeredOffice ? delta : this.seedFromIncomingAffiliations(task);
|
|
85115
|
+
const config2 = {};
|
|
85116
|
+
config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
|
|
85117
|
+
config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
|
|
85118
|
+
[Controls2.CorporationName]: this.readOnly(task.entity._profile.name),
|
|
85119
|
+
[Controls2.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
|
|
85120
|
+
[Controls2.CompanyEmail]: new FormControl(delta?.companyEmail || this.resolveCompanyEmail(task), Validators.required)
|
|
85121
|
+
});
|
|
85122
|
+
config2[BCChangeOfOfficeAddressesFormGroups.AnnualReportReminder] = new FormGroup({
|
|
85123
|
+
[Controls2.AnnualReportReminder]: new FormControl(delta?.annualReportReminder ?? BCAnnualReportReminder.Yes, Validators.required)
|
|
85124
|
+
});
|
|
85125
|
+
const incoming = this.incomingOfficeAddresses(task);
|
|
85126
|
+
const regDeliverySame = seed.registeredOffice?.deliverySameAsMailing ?? true;
|
|
85127
|
+
config2[BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress] = new FormGroup({
|
|
85128
|
+
[Controls2.CurrentMailingAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Mailing"))),
|
|
85129
|
+
[Controls2.CurrentDeliveryAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Delivery"))),
|
|
85130
|
+
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.mailingAddress, true),
|
|
85131
|
+
[Controls2.DeliverySameAsMailing]: new FormControl(regDeliverySame),
|
|
85132
|
+
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress, !regDeliverySame)
|
|
85133
|
+
});
|
|
85134
|
+
const recSameAsRegistered = seed.recordsOffice?.sameAsRegisteredOffice ?? true;
|
|
85135
|
+
const recDeliverySame = seed.recordsOffice?.deliverySameAsMailing ?? true;
|
|
85136
|
+
config2[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress] = new FormGroup({
|
|
85137
|
+
[Controls2.CurrentMailingAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Mailing"))),
|
|
85138
|
+
[Controls2.CurrentDeliveryAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Delivery"))),
|
|
85139
|
+
[Controls2.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
|
|
85140
|
+
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.mailingAddress, !recSameAsRegistered),
|
|
85141
|
+
[Controls2.DeliverySameAsMailing]: new FormControl(recDeliverySame),
|
|
85142
|
+
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.deliveryAddress, !recSameAsRegistered && !recDeliverySame)
|
|
85143
|
+
});
|
|
85144
|
+
const grid = (group2, control) => config2[group2].get(control);
|
|
85145
|
+
const register = (target, address) => address && incomingAddressByGrid.set(target, address);
|
|
85146
|
+
register(grid(BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress, Controls2.NewDeliveryAddress), incoming.regDelivery);
|
|
85147
|
+
register(grid(BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress, Controls2.NewMailingAddress), incoming.recMailing);
|
|
85148
|
+
register(grid(BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress, Controls2.NewDeliveryAddress), incoming.recDelivery);
|
|
85149
|
+
return config2;
|
|
85150
|
+
}
|
|
85151
|
+
/** The company email choices: the entity's email options, plus the resolved default if it isn't one. */
|
|
85152
|
+
static getCompanyEmailOptions(task) {
|
|
85153
|
+
const values = (task.entity.emailOptions ?? []).filter(isCompanyEmail).map((o) => o.value);
|
|
85154
|
+
const fallback = this.resolveCompanyEmail(task);
|
|
85155
|
+
return [...new Set(fallback ? [...values, fallback] : values)].map((value) => ({
|
|
85156
|
+
value,
|
|
85157
|
+
label: value
|
|
85158
|
+
}));
|
|
85159
|
+
}
|
|
85160
|
+
/**
|
|
85161
|
+
* Pre-fills the new addresses from the task's incoming "Shared Address" affiliations (Registered
|
|
85162
|
+
* Office / Records Office), taking each Mailing / Delivery address from the affiliation or, when
|
|
85163
|
+
* it has none, from its parent affiliation. Nothing is pre-filled without an incoming address.
|
|
85164
|
+
*/
|
|
85165
|
+
static seedFromIncomingAffiliations(task) {
|
|
85166
|
+
const { regMailing, regDelivery, recMailing, recDelivery } = this.incomingOfficeAddresses(task);
|
|
85167
|
+
if (!regMailing && !recMailing) {
|
|
85168
|
+
return {};
|
|
85169
|
+
}
|
|
85170
|
+
const regDeliverySame = !regDelivery || this.isSameOfficeAddress(regDelivery, regMailing);
|
|
85171
|
+
const recDeliverySame = !recDelivery || this.isSameOfficeAddress(recDelivery, recMailing);
|
|
85172
|
+
const recSameAsRegistered = !recMailing || this.isSameOfficeAddress(recMailing, regMailing) && this.isSameOfficeAddress(recDelivery ?? recMailing, regDelivery ?? regMailing);
|
|
85173
|
+
return {
|
|
85174
|
+
registeredOffice: {
|
|
85175
|
+
mailingAddress: regMailing,
|
|
85176
|
+
deliverySameAsMailing: regDeliverySame,
|
|
85177
|
+
deliveryAddress: regDeliverySame ? void 0 : regDelivery
|
|
85178
|
+
},
|
|
85179
|
+
recordsOffice: {
|
|
85180
|
+
sameAsRegisteredOffice: recSameAsRegistered,
|
|
85181
|
+
mailingAddress: recSameAsRegistered ? void 0 : recMailing,
|
|
85182
|
+
deliverySameAsMailing: recDeliverySame,
|
|
85183
|
+
deliveryAddress: recDeliverySame ? void 0 : recDelivery
|
|
85184
|
+
}
|
|
85185
|
+
};
|
|
85186
|
+
}
|
|
85187
|
+
/** The four office addresses of the task's incoming Shared Address, as form values. */
|
|
85188
|
+
static incomingOfficeAddresses(task) {
|
|
85189
|
+
const incoming = task.incomingAffiliations ?? [];
|
|
85190
|
+
const pickBy = (title, locationType) => {
|
|
85191
|
+
const affiliation = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(incoming, title);
|
|
85192
|
+
const pool = affiliation?.addresses?.length ? affiliation.addresses : affiliation?.parent_affiliation?.addresses;
|
|
85193
|
+
const address = pool?.find((a) => (a.computed_location_type ?? a.location_type)?.toLowerCase() === locationType.toLowerCase());
|
|
85194
|
+
return address ? this.toOfficeAddressDelta(address) : void 0;
|
|
85195
|
+
};
|
|
85196
|
+
return {
|
|
85197
|
+
regMailing: pickBy(AddressTitle2.REGISTERED_OFFICE, "Mailing"),
|
|
85198
|
+
regDelivery: pickBy(AddressTitle2.REGISTERED_OFFICE, "Delivery"),
|
|
85199
|
+
recMailing: pickBy(AddressTitle2.RECORDS_OFFICE, "Mailing"),
|
|
85200
|
+
recDelivery: pickBy(AddressTitle2.RECORDS_OFFICE, "Delivery")
|
|
85201
|
+
};
|
|
85202
|
+
}
|
|
85203
|
+
/** Street = street number + street name; the suite goes to Address Line 2. */
|
|
85204
|
+
static toOfficeAddressDelta(address) {
|
|
85205
|
+
const street = [getAddressComponent(address, "Street Number Only"), getAddressComponent(address, "Street Only")].filter(Boolean).join(" ") || address.street || "";
|
|
85206
|
+
return {
|
|
85207
|
+
addressLine1: street,
|
|
85208
|
+
addressLine2: getAddressComponent(address, "Suite/Apartment"),
|
|
85209
|
+
city: address.city ?? "",
|
|
85210
|
+
postalCode: address.postal_zip ?? "",
|
|
85211
|
+
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85212
|
+
country: BC_DEFAULT_COUNTRY
|
|
85213
|
+
};
|
|
85214
|
+
}
|
|
85215
|
+
static isSameOfficeAddress(a, b) {
|
|
85216
|
+
const key = (x) => [x?.addressLine1, x?.addressLine2, x?.city, x?.postalCode].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
85217
|
+
return key(a) === key(b);
|
|
85218
|
+
}
|
|
85219
|
+
/**
|
|
85220
|
+
* The company's email: the entity's email options, then the Registered Office's email, then the
|
|
85221
|
+
* entity's own, then any other address of the entity (e.g. a Head Office). Only a Business Email
|
|
85222
|
+
* or an Email counts; a Personal Email never does.
|
|
85223
|
+
*/
|
|
85224
|
+
static resolveCompanyEmail(task) {
|
|
85225
|
+
const affiliations = task.entity.affiliations ?? [];
|
|
85226
|
+
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85227
|
+
return task.entity.emailOptions?.find(isCompanyEmail)?.value || registeredOffice?.addresses?.[0]?.communications?.find(isCompanyEmail)?.value || task.entity.communications?.find(isCompanyEmail)?.value || task.entity.addresses?.flatMap((a) => a.communications ?? []).find(isCompanyEmail)?.value || "";
|
|
85228
|
+
}
|
|
85229
|
+
/**
|
|
85230
|
+
* Address Line 1*, Address Line 2, City*, Postal Code*, Province (BC), Country (Canada).
|
|
85231
|
+
* Province and Country are always disabled; the rest follow `enabled`.
|
|
85232
|
+
*/
|
|
85233
|
+
static createOfficeAddressFormGroup(delta, enabled = true) {
|
|
85234
|
+
const group2 = new FormGroup({
|
|
85235
|
+
[Controls2.AddressLine1]: new FormControl(delta?.addressLine1 ?? "", Validators.required),
|
|
85236
|
+
[Controls2.AddressLine2]: new FormControl(delta?.addressLine2 ?? ""),
|
|
85237
|
+
[Controls2.City]: new FormControl(delta?.city ?? "", Validators.required),
|
|
85238
|
+
[Controls2.PostalCode]: new FormControl(delta?.postalCode ?? "", Validators.required),
|
|
85239
|
+
[Controls2.Province]: this.readOnly(delta?.province ?? BC_DEFAULT_PROVINCE_STATE),
|
|
85240
|
+
[Controls2.Country]: this.readOnly(delta?.country ?? BC_DEFAULT_COUNTRY)
|
|
85241
|
+
});
|
|
85242
|
+
this.setOfficeAddressEnabled(group2, enabled);
|
|
85243
|
+
return group2;
|
|
85244
|
+
}
|
|
85245
|
+
/**
|
|
85246
|
+
* Enables or disables the editable controls of an address grid (used by "Same as…" checkboxes).
|
|
85247
|
+
* Hiding a grid also clears it. Showing it again refills it with the address Athennian sent for
|
|
85248
|
+
* it, or leaves it empty when there is none (and when the user has already typed something).
|
|
85249
|
+
*/
|
|
85250
|
+
static setOfficeAddressEnabled(group2, enabled) {
|
|
85251
|
+
if (!group2) {
|
|
85252
|
+
return;
|
|
85253
|
+
}
|
|
85254
|
+
const restore = incomingAddressByGrid.get(group2);
|
|
85255
|
+
const isEmpty = EDITABLE_ADDRESS_CONTROLS.every((name) => !group2.get(name)?.value);
|
|
85256
|
+
EDITABLE_ADDRESS_CONTROLS.forEach((name) => {
|
|
85257
|
+
const control = group2.get(name);
|
|
85258
|
+
if (enabled) {
|
|
85259
|
+
control?.enable({ emitEvent: false });
|
|
85260
|
+
if (restore && isEmpty) {
|
|
85261
|
+
control?.setValue(restore[name] ?? "", { emitEvent: false });
|
|
85262
|
+
}
|
|
85263
|
+
} else {
|
|
85264
|
+
control?.setValue("", { emitEvent: false });
|
|
85265
|
+
control?.disable({ emitEvent: false });
|
|
85266
|
+
}
|
|
85267
|
+
});
|
|
85268
|
+
group2.updateValueAndValidity({ emitEvent: false });
|
|
85269
|
+
}
|
|
85270
|
+
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
|
|
85271
|
+
return new FormGroup({
|
|
85272
|
+
[Controls2.ClientMatterNumber]: new FormControl(
|
|
85273
|
+
// `??`: an explicitly cleared value ('') in a saved draft must be preserved; the entity default applies only when absent.
|
|
85274
|
+
deltaData?.referenceNumber ?? clientMatterNumber ?? ""
|
|
85275
|
+
),
|
|
85276
|
+
[Controls2.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
|
|
85277
|
+
});
|
|
85278
|
+
}
|
|
85279
|
+
static readOnly(value) {
|
|
85280
|
+
return new FormControl({ value: value ?? "", disabled: true });
|
|
85281
|
+
}
|
|
85282
|
+
};
|
|
85283
|
+
}
|
|
85284
|
+
});
|
|
85285
|
+
|
|
85046
85286
|
// src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
|
|
85047
|
-
var
|
|
85287
|
+
var Controls3, labelledValue, readOnlyRow, directorsAddedOrDeleted, isNotifyByMail, BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS, BC_COD_CARD_FORM_DIRECTORS_FIELDS, BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
85048
85288
|
var init_british_columbia_change_of_directors_form_constants = __esm({
|
|
85049
85289
|
"src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
|
|
85050
85290
|
init_form_enums();
|
|
85051
85291
|
init_british_columbia_form_enums();
|
|
85052
85292
|
init_BritishColumbiaConstants();
|
|
85053
|
-
|
|
85293
|
+
Controls3 = BCChangeOfDirectorsFormControls;
|
|
85054
85294
|
labelledValue = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("Not specified")}`;
|
|
85055
85295
|
readOnlyRow = (label, control, className = "span-12") => ({
|
|
85056
85296
|
type: FormType.Text,
|
|
@@ -85058,24 +85298,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85058
85298
|
class: className,
|
|
85059
85299
|
dynamicLabel: (form, t) => labelledValue(label, form.get(control)?.value, t)
|
|
85060
85300
|
});
|
|
85061
|
-
directorsAddedOrDeleted = (form) => Boolean(form.get(
|
|
85062
|
-
isNotifyByMail = (form) => form.get(
|
|
85301
|
+
directorsAddedOrDeleted = (form) => Boolean(form.get(Controls3.DirectorsAddedOrDeleted)?.value);
|
|
85302
|
+
isNotifyByMail = (form) => form.get(Controls3.NotificationMethod)?.value === BCNotificationMethod.Mail;
|
|
85063
85303
|
BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS = [
|
|
85064
85304
|
{
|
|
85065
85305
|
type: FormType.Input,
|
|
85066
85306
|
label: "Client/Matter Number",
|
|
85067
|
-
formControlName:
|
|
85307
|
+
formControlName: Controls3.ClientMatterNumber
|
|
85068
85308
|
},
|
|
85069
85309
|
{
|
|
85070
85310
|
type: FormType.Input,
|
|
85071
85311
|
label: "Docket Number",
|
|
85072
|
-
formControlName:
|
|
85312
|
+
formControlName: Controls3.DocketNumber
|
|
85073
85313
|
}
|
|
85074
85314
|
];
|
|
85075
85315
|
BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS = [
|
|
85076
|
-
readOnlyRow("Corporation Name",
|
|
85077
|
-
readOnlyRow("Incorporation Number",
|
|
85078
|
-
readOnlyRow("Company Email",
|
|
85316
|
+
readOnlyRow("Corporation Name", Controls3.CorporationName),
|
|
85317
|
+
readOnlyRow("Incorporation Number", Controls3.IncorporationNumber),
|
|
85318
|
+
readOnlyRow("Company Email", Controls3.CompanyEmail)
|
|
85079
85319
|
];
|
|
85080
85320
|
BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS = [
|
|
85081
85321
|
{
|
|
@@ -85087,24 +85327,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85087
85327
|
{
|
|
85088
85328
|
type: FormType.Checkbox,
|
|
85089
85329
|
label: "Directors will be added and/or deleted as part of this filing",
|
|
85090
|
-
formControlName:
|
|
85330
|
+
formControlName: Controls3.DirectorsAddedOrDeleted,
|
|
85091
85331
|
class: "span-12",
|
|
85092
85332
|
onChange: (form) => {
|
|
85093
85333
|
if (!directorsAddedOrDeleted(form)) {
|
|
85094
|
-
form.get(
|
|
85334
|
+
form.get(Controls3.ChangeDate)?.setValue("", { emitEvent: false });
|
|
85095
85335
|
}
|
|
85096
|
-
form.get(
|
|
85336
|
+
form.get(Controls3.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
|
|
85097
85337
|
}
|
|
85098
85338
|
},
|
|
85099
85339
|
{
|
|
85100
85340
|
type: FormType.Date,
|
|
85101
85341
|
label: "Date Directors were added or deleted",
|
|
85102
|
-
formControlName:
|
|
85342
|
+
formControlName: Controls3.ChangeDate,
|
|
85103
85343
|
required: true,
|
|
85104
85344
|
isVisible: directorsAddedOrDeleted,
|
|
85105
85345
|
class: "span-8"
|
|
85106
85346
|
},
|
|
85107
|
-
__spreadProps(__spreadValues({}, readOnlyRow("Filing Fee",
|
|
85347
|
+
__spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls3.FilingFee, "span-4")), {
|
|
85108
85348
|
isVisible: directorsAddedOrDeleted
|
|
85109
85349
|
}),
|
|
85110
85350
|
{
|
|
@@ -85116,34 +85356,34 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85116
85356
|
}
|
|
85117
85357
|
];
|
|
85118
85358
|
BC_COD_CARD_FORM_DIRECTORS_FIELDS = [
|
|
85119
|
-
readOnlyRow("Mailing Address - Full Address",
|
|
85120
|
-
readOnlyRow("Delivery Address - Full Address",
|
|
85359
|
+
readOnlyRow("Mailing Address - Full Address", Controls3.MailingAddress),
|
|
85360
|
+
readOnlyRow("Delivery Address - Full Address", Controls3.DeliveryAddress)
|
|
85121
85361
|
];
|
|
85122
85362
|
[
|
|
85123
85363
|
{
|
|
85124
85364
|
type: FormType.Select,
|
|
85125
85365
|
label: "Notification Method",
|
|
85126
|
-
formControlName:
|
|
85366
|
+
formControlName: Controls3.NotificationMethod,
|
|
85127
85367
|
required: true,
|
|
85128
85368
|
options: BC_NOTIFICATION_METHOD_OPTIONS,
|
|
85129
85369
|
needTranslate: true,
|
|
85130
85370
|
class: "span-6",
|
|
85131
|
-
onChange: (form) => form.get(
|
|
85371
|
+
onChange: (form) => form.get(Controls3.NotificationEmail)?.updateValueAndValidity({ emitEvent: false })
|
|
85132
85372
|
},
|
|
85133
85373
|
{
|
|
85134
85374
|
type: FormType.Input,
|
|
85135
85375
|
label: "Notification Email",
|
|
85136
|
-
formControlName:
|
|
85376
|
+
formControlName: Controls3.NotificationEmail,
|
|
85137
85377
|
required: true,
|
|
85138
85378
|
isVisible: (form) => !isNotifyByMail(form),
|
|
85139
85379
|
class: "column-3"
|
|
85140
85380
|
},
|
|
85141
85381
|
{
|
|
85142
85382
|
type: FormType.Text,
|
|
85143
|
-
formControlName:
|
|
85383
|
+
formControlName: Controls3.NotificationMailingAddress,
|
|
85144
85384
|
class: "span-12",
|
|
85145
85385
|
isVisible: isNotifyByMail,
|
|
85146
|
-
dynamicLabel: (form, t) => `<span class="body-1-semibold">${t("Mailing Address")}:</span> ${t("defaults to Registered Office mailing address")} (${form.get(
|
|
85386
|
+
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
85387
|
}
|
|
85148
85388
|
];
|
|
85149
85389
|
BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS = [
|
|
@@ -85156,7 +85396,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85156
85396
|
{
|
|
85157
85397
|
type: FormType.Select,
|
|
85158
85398
|
label: "Annual Report Reminder",
|
|
85159
|
-
formControlName:
|
|
85399
|
+
formControlName: Controls3.AnnualReportReminder,
|
|
85160
85400
|
required: true,
|
|
85161
85401
|
options: BC_ANNUAL_REPORT_REMINDER_OPTIONS,
|
|
85162
85402
|
needTranslate: true,
|
|
@@ -87384,6 +87624,1000 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87384
87624
|
}
|
|
87385
87625
|
});
|
|
87386
87626
|
|
|
87627
|
+
// src/app/constants/ui/british-columbia-change-of-office-addresses-form.constants.ts
|
|
87628
|
+
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;
|
|
87629
|
+
var init_british_columbia_change_of_office_addresses_form_constants = __esm({
|
|
87630
|
+
"src/app/constants/ui/british-columbia-change-of-office-addresses-form.constants.ts"() {
|
|
87631
|
+
init_form_enums();
|
|
87632
|
+
init_british_columbia_form_enums();
|
|
87633
|
+
init_british_columbia_change_of_office_addresses_form_helper();
|
|
87634
|
+
Controls4 = BCChangeOfOfficeAddressesFormControls;
|
|
87635
|
+
labelledValue3 = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("Not specified")}`;
|
|
87636
|
+
readOnlyRow2 = (label, control, className = "span-12") => ({
|
|
87637
|
+
type: FormType.Text,
|
|
87638
|
+
formControlName: control,
|
|
87639
|
+
class: className,
|
|
87640
|
+
dynamicLabel: (form, t) => labelledValue3(label, form.get(control)?.value, t)
|
|
87641
|
+
});
|
|
87642
|
+
isChecked = (form, control) => Boolean(form.get(control)?.value);
|
|
87643
|
+
addressGroup = (form, control) => form.get(control);
|
|
87644
|
+
BC_COA_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS = [
|
|
87645
|
+
{
|
|
87646
|
+
type: FormType.Input,
|
|
87647
|
+
label: "Client/Matter Number",
|
|
87648
|
+
formControlName: Controls4.ClientMatterNumber
|
|
87649
|
+
},
|
|
87650
|
+
{
|
|
87651
|
+
type: FormType.Input,
|
|
87652
|
+
label: "Docket Number",
|
|
87653
|
+
formControlName: Controls4.DocketNumber
|
|
87654
|
+
}
|
|
87655
|
+
];
|
|
87656
|
+
effectiveDateNote = {
|
|
87657
|
+
type: FormType.Text,
|
|
87658
|
+
formControlName: "",
|
|
87659
|
+
class: "span-12 note-box",
|
|
87660
|
+
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.")}`
|
|
87661
|
+
};
|
|
87662
|
+
BC_COA_CARD_FORM_CORPORATION_DETAILS_FIELDS = (emailOptions) => [
|
|
87663
|
+
readOnlyRow2("Corporation Name", Controls4.CorporationName),
|
|
87664
|
+
readOnlyRow2("Incorporation Number", Controls4.IncorporationNumber),
|
|
87665
|
+
{
|
|
87666
|
+
type: FormType.Select,
|
|
87667
|
+
label: "Company Email",
|
|
87668
|
+
formControlName: Controls4.CompanyEmail,
|
|
87669
|
+
required: true,
|
|
87670
|
+
options: emailOptions,
|
|
87671
|
+
class: "span-6"
|
|
87672
|
+
},
|
|
87673
|
+
effectiveDateNote
|
|
87674
|
+
];
|
|
87675
|
+
BC_COA_CARD_FORM_CURRENT_ADDRESSES_FIELDS = [
|
|
87676
|
+
readOnlyRow2("Current Mailing Address", Controls4.CurrentMailingAddress),
|
|
87677
|
+
readOnlyRow2("Current Delivery Address", Controls4.CurrentDeliveryAddress)
|
|
87678
|
+
];
|
|
87679
|
+
BC_COA_DELTA_CARD_FORM_OFFICE_ADDRESS_FIELDS = [
|
|
87680
|
+
{
|
|
87681
|
+
type: FormType.Input,
|
|
87682
|
+
label: "Address Line 1",
|
|
87683
|
+
formControlName: Controls4.AddressLine1,
|
|
87684
|
+
required: true,
|
|
87685
|
+
class: "span-6"
|
|
87686
|
+
},
|
|
87687
|
+
{
|
|
87688
|
+
type: FormType.Input,
|
|
87689
|
+
label: "Address Line 2",
|
|
87690
|
+
formControlName: Controls4.AddressLine2,
|
|
87691
|
+
class: "span-6"
|
|
87692
|
+
},
|
|
87693
|
+
{
|
|
87694
|
+
type: FormType.Input,
|
|
87695
|
+
label: "City",
|
|
87696
|
+
formControlName: Controls4.City,
|
|
87697
|
+
required: true,
|
|
87698
|
+
class: "span-6"
|
|
87699
|
+
},
|
|
87700
|
+
{
|
|
87701
|
+
type: FormType.Input,
|
|
87702
|
+
label: "Postal Code",
|
|
87703
|
+
formControlName: Controls4.PostalCode,
|
|
87704
|
+
required: true,
|
|
87705
|
+
class: "span-6"
|
|
87706
|
+
},
|
|
87707
|
+
{
|
|
87708
|
+
type: FormType.Input,
|
|
87709
|
+
label: "Province",
|
|
87710
|
+
formControlName: Controls4.Province,
|
|
87711
|
+
readonly: true,
|
|
87712
|
+
class: "span-6"
|
|
87713
|
+
},
|
|
87714
|
+
{
|
|
87715
|
+
type: FormType.Input,
|
|
87716
|
+
label: "Country",
|
|
87717
|
+
formControlName: Controls4.Country,
|
|
87718
|
+
readonly: true,
|
|
87719
|
+
class: "span-6"
|
|
87720
|
+
}
|
|
87721
|
+
];
|
|
87722
|
+
BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS = [
|
|
87723
|
+
{
|
|
87724
|
+
type: FormType.Text,
|
|
87725
|
+
formControlName: "",
|
|
87726
|
+
class: "span-12",
|
|
87727
|
+
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.")
|
|
87728
|
+
}
|
|
87729
|
+
];
|
|
87730
|
+
BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS = [
|
|
87731
|
+
{
|
|
87732
|
+
type: FormType.Checkbox,
|
|
87733
|
+
label: "Same as Mailing Address",
|
|
87734
|
+
formControlName: Controls4.DeliverySameAsMailing,
|
|
87735
|
+
class: "span-12",
|
|
87736
|
+
onChange: (form) => BritishColumbiaChangeOfOfficeAddressesFormHelper.setOfficeAddressEnabled(addressGroup(form, Controls4.NewDeliveryAddress), !isChecked(form, Controls4.DeliverySameAsMailing))
|
|
87737
|
+
}
|
|
87738
|
+
];
|
|
87739
|
+
BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS = [
|
|
87740
|
+
{
|
|
87741
|
+
type: FormType.Checkbox,
|
|
87742
|
+
label: "Same as Registered Office",
|
|
87743
|
+
formControlName: Controls4.SameAsRegisteredOffice,
|
|
87744
|
+
class: "span-12",
|
|
87745
|
+
onChange: (form) => {
|
|
87746
|
+
const sameAsRegistered = isChecked(form, Controls4.SameAsRegisteredOffice);
|
|
87747
|
+
const deliverySame = isChecked(form, Controls4.DeliverySameAsMailing);
|
|
87748
|
+
BritishColumbiaChangeOfOfficeAddressesFormHelper.setOfficeAddressEnabled(addressGroup(form, Controls4.NewMailingAddress), !sameAsRegistered);
|
|
87749
|
+
BritishColumbiaChangeOfOfficeAddressesFormHelper.setOfficeAddressEnabled(addressGroup(form, Controls4.NewDeliveryAddress), !sameAsRegistered && !deliverySame);
|
|
87750
|
+
}
|
|
87751
|
+
}
|
|
87752
|
+
];
|
|
87753
|
+
}
|
|
87754
|
+
});
|
|
87755
|
+
|
|
87756
|
+
// src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts
|
|
87757
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template(rf, ctx) {
|
|
87758
|
+
if (rf & 1) {
|
|
87759
|
+
\u0275\u0275element(0, "alert", 1);
|
|
87760
|
+
}
|
|
87761
|
+
if (rf & 2) {
|
|
87762
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87763
|
+
\u0275\u0275property("type", ctx_r0.alertType.Info);
|
|
87764
|
+
}
|
|
87765
|
+
}
|
|
87766
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template(rf, ctx) {
|
|
87767
|
+
if (rf & 1) {
|
|
87768
|
+
\u0275\u0275element(0, "alert", 2);
|
|
87769
|
+
}
|
|
87770
|
+
if (rf & 2) {
|
|
87771
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87772
|
+
\u0275\u0275property("content", ctx_r0.errors());
|
|
87773
|
+
}
|
|
87774
|
+
}
|
|
87775
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template(rf, ctx) {
|
|
87776
|
+
if (rf & 1) {
|
|
87777
|
+
const _r2 = \u0275\u0275getCurrentView();
|
|
87778
|
+
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 7);
|
|
87779
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87780
|
+
\u0275\u0275restoreView(_r2);
|
|
87781
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87782
|
+
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
|
|
87783
|
+
});
|
|
87784
|
+
\u0275\u0275elementEnd()();
|
|
87785
|
+
}
|
|
87786
|
+
if (rf & 2) {
|
|
87787
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87788
|
+
const referenceNumbers_r3 = \u0275\u0275readContextLet(4);
|
|
87789
|
+
\u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
|
|
87790
|
+
\u0275\u0275advance();
|
|
87791
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
|
|
87792
|
+
}
|
|
87793
|
+
}
|
|
87794
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template(rf, ctx) {
|
|
87795
|
+
if (rf & 1) {
|
|
87796
|
+
const _r4 = \u0275\u0275getCurrentView();
|
|
87797
|
+
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 7);
|
|
87798
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87799
|
+
\u0275\u0275restoreView(_r4);
|
|
87800
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87801
|
+
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corpDetails", $event));
|
|
87802
|
+
});
|
|
87803
|
+
\u0275\u0275elementEnd()();
|
|
87804
|
+
}
|
|
87805
|
+
if (rf & 2) {
|
|
87806
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87807
|
+
const corporationDetails_r5 = \u0275\u0275readContextLet(6);
|
|
87808
|
+
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["corpDetails"] !== false)("title", ctx_r0.groups.CorporationDetails);
|
|
87809
|
+
\u0275\u0275advance();
|
|
87810
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r5)("config", ctx_r0.corporationDetailsFields());
|
|
87811
|
+
}
|
|
87812
|
+
}
|
|
87813
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template(rf, ctx) {
|
|
87814
|
+
if (rf & 1) {
|
|
87815
|
+
const _r7 = \u0275\u0275getCurrentView();
|
|
87816
|
+
\u0275\u0275elementStart(0, "filing-form-group", 7);
|
|
87817
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template_filing_form_group_visiblyValidChange_0_listener() {
|
|
87818
|
+
\u0275\u0275restoreView(_r7);
|
|
87819
|
+
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87820
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87821
|
+
});
|
|
87822
|
+
\u0275\u0275elementEnd();
|
|
87823
|
+
}
|
|
87824
|
+
if (rf & 2) {
|
|
87825
|
+
\u0275\u0275nextContext();
|
|
87826
|
+
const registeredMailing_r8 = \u0275\u0275readContextLet(0);
|
|
87827
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87828
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredMailing_r8)("config", ctx_r0.addressFields);
|
|
87829
|
+
}
|
|
87830
|
+
}
|
|
87831
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template(rf, ctx) {
|
|
87832
|
+
if (rf & 1) {
|
|
87833
|
+
const _r9 = \u0275\u0275getCurrentView();
|
|
87834
|
+
\u0275\u0275element(0, "filing-form-group", 9);
|
|
87835
|
+
\u0275\u0275elementStart(1, "filing-form-group", 7);
|
|
87836
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template_filing_form_group_visiblyValidChange_1_listener() {
|
|
87837
|
+
\u0275\u0275restoreView(_r9);
|
|
87838
|
+
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87839
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87840
|
+
});
|
|
87841
|
+
\u0275\u0275elementEnd();
|
|
87842
|
+
}
|
|
87843
|
+
if (rf & 2) {
|
|
87844
|
+
\u0275\u0275nextContext();
|
|
87845
|
+
const registeredDelivery_r10 = \u0275\u0275readContextLet(1);
|
|
87846
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87847
|
+
const registeredOffice_r11 = \u0275\u0275readContextLet(8);
|
|
87848
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliveryNoteFields);
|
|
87849
|
+
\u0275\u0275advance();
|
|
87850
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredDelivery_r10)("config", ctx_r0.addressFields);
|
|
87851
|
+
}
|
|
87852
|
+
}
|
|
87853
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template(rf, ctx) {
|
|
87854
|
+
if (rf & 1) {
|
|
87855
|
+
const _r6 = \u0275\u0275getCurrentView();
|
|
87856
|
+
\u0275\u0275declareLet(0)(1)(2);
|
|
87857
|
+
\u0275\u0275elementStart(3, "expandable-card", 5)(4, "div", 8);
|
|
87858
|
+
\u0275\u0275element(5, "filing-form-group", 9);
|
|
87859
|
+
\u0275\u0275elementStart(6, "h4", 10);
|
|
87860
|
+
\u0275\u0275text(7);
|
|
87861
|
+
\u0275\u0275pipe(8, "translate");
|
|
87862
|
+
\u0275\u0275elementEnd();
|
|
87863
|
+
\u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template, 1, 3, "filing-form-group", 9);
|
|
87864
|
+
\u0275\u0275elementStart(10, "h4", 10);
|
|
87865
|
+
\u0275\u0275text(11);
|
|
87866
|
+
\u0275\u0275pipe(12, "translate");
|
|
87867
|
+
\u0275\u0275elementEnd();
|
|
87868
|
+
\u0275\u0275elementStart(13, "filing-form-group", 7);
|
|
87869
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template_filing_form_group_visiblyValidChange_13_listener() {
|
|
87870
|
+
\u0275\u0275restoreView(_r6);
|
|
87871
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87872
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87873
|
+
});
|
|
87874
|
+
\u0275\u0275elementEnd();
|
|
87875
|
+
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template, 2, 6);
|
|
87876
|
+
\u0275\u0275elementEnd()();
|
|
87877
|
+
}
|
|
87878
|
+
if (rf & 2) {
|
|
87879
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87880
|
+
const registeredOffice_r11 = \u0275\u0275readContextLet(8);
|
|
87881
|
+
const registeredMailing_r12 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewMailingAddress));
|
|
87882
|
+
\u0275\u0275advance();
|
|
87883
|
+
const registeredDelivery_r13 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewDeliveryAddress));
|
|
87884
|
+
const registeredDeliverySame_r14 = ctx_r0.isChecked(registeredOffice_r11, ctx_r0.controls.DeliverySameAsMailing);
|
|
87885
|
+
\u0275\u0275advance(2);
|
|
87886
|
+
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
87887
|
+
\u0275\u0275advance(2);
|
|
87888
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.currentAddressesFields);
|
|
87889
|
+
\u0275\u0275advance(2);
|
|
87890
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(8, 15, "New Mailing Address"));
|
|
87891
|
+
\u0275\u0275advance(2);
|
|
87892
|
+
\u0275\u0275conditional(registeredMailing_r12 ? 9 : -1);
|
|
87893
|
+
\u0275\u0275advance(2);
|
|
87894
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(12, 17, "New Delivery Address"));
|
|
87895
|
+
\u0275\u0275advance(2);
|
|
87896
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliverySameAsMailingFields);
|
|
87897
|
+
\u0275\u0275advance();
|
|
87898
|
+
\u0275\u0275conditional(!registeredDeliverySame_r14 && registeredDelivery_r13 ? 14 : -1);
|
|
87899
|
+
}
|
|
87900
|
+
}
|
|
87901
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template(rf, ctx) {
|
|
87902
|
+
if (rf & 1) {
|
|
87903
|
+
const _r17 = \u0275\u0275getCurrentView();
|
|
87904
|
+
\u0275\u0275elementStart(0, "filing-form-group", 7);
|
|
87905
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template_filing_form_group_visiblyValidChange_0_listener() {
|
|
87906
|
+
\u0275\u0275restoreView(_r17);
|
|
87907
|
+
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
87908
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87909
|
+
});
|
|
87910
|
+
\u0275\u0275elementEnd();
|
|
87911
|
+
}
|
|
87912
|
+
if (rf & 2) {
|
|
87913
|
+
\u0275\u0275nextContext(2);
|
|
87914
|
+
const recordsMailing_r18 = \u0275\u0275readContextLet(0);
|
|
87915
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87916
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsMailing_r18)("config", ctx_r0.addressFields);
|
|
87917
|
+
}
|
|
87918
|
+
}
|
|
87919
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template(rf, ctx) {
|
|
87920
|
+
if (rf & 1) {
|
|
87921
|
+
const _r19 = \u0275\u0275getCurrentView();
|
|
87922
|
+
\u0275\u0275elementStart(0, "filing-form-group", 7);
|
|
87923
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template_filing_form_group_visiblyValidChange_0_listener() {
|
|
87924
|
+
\u0275\u0275restoreView(_r19);
|
|
87925
|
+
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
87926
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87927
|
+
});
|
|
87928
|
+
\u0275\u0275elementEnd();
|
|
87929
|
+
}
|
|
87930
|
+
if (rf & 2) {
|
|
87931
|
+
\u0275\u0275nextContext(2);
|
|
87932
|
+
const recordsDelivery_r20 = \u0275\u0275readContextLet(1);
|
|
87933
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87934
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsDelivery_r20)("config", ctx_r0.addressFields);
|
|
87935
|
+
}
|
|
87936
|
+
}
|
|
87937
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template(rf, ctx) {
|
|
87938
|
+
if (rf & 1) {
|
|
87939
|
+
const _r16 = \u0275\u0275getCurrentView();
|
|
87940
|
+
\u0275\u0275elementStart(0, "h4", 10);
|
|
87941
|
+
\u0275\u0275text(1);
|
|
87942
|
+
\u0275\u0275pipe(2, "translate");
|
|
87943
|
+
\u0275\u0275elementEnd();
|
|
87944
|
+
\u0275\u0275template(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template, 1, 3, "filing-form-group", 9);
|
|
87945
|
+
\u0275\u0275elementStart(4, "h4", 10);
|
|
87946
|
+
\u0275\u0275text(5);
|
|
87947
|
+
\u0275\u0275pipe(6, "translate");
|
|
87948
|
+
\u0275\u0275elementEnd();
|
|
87949
|
+
\u0275\u0275elementStart(7, "filing-form-group", 7);
|
|
87950
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
87951
|
+
\u0275\u0275restoreView(_r16);
|
|
87952
|
+
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87953
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87954
|
+
});
|
|
87955
|
+
\u0275\u0275elementEnd();
|
|
87956
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template, 1, 3, "filing-form-group", 9);
|
|
87957
|
+
}
|
|
87958
|
+
if (rf & 2) {
|
|
87959
|
+
\u0275\u0275nextContext();
|
|
87960
|
+
const recordsMailing_r18 = \u0275\u0275readContextLet(0);
|
|
87961
|
+
const recordsDelivery_r20 = \u0275\u0275readContextLet(1);
|
|
87962
|
+
const recordsDeliverySame_r21 = \u0275\u0275readContextLet(3);
|
|
87963
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87964
|
+
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
87965
|
+
\u0275\u0275advance();
|
|
87966
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 7, "New Mailing Address"));
|
|
87967
|
+
\u0275\u0275advance(2);
|
|
87968
|
+
\u0275\u0275conditional(recordsMailing_r18 ? 3 : -1);
|
|
87969
|
+
\u0275\u0275advance(2);
|
|
87970
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 9, "New Delivery Address"));
|
|
87971
|
+
\u0275\u0275advance(2);
|
|
87972
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.deliverySameAsMailingFields);
|
|
87973
|
+
\u0275\u0275advance();
|
|
87974
|
+
\u0275\u0275conditional(!recordsDeliverySame_r21 && recordsDelivery_r20 ? 8 : -1);
|
|
87975
|
+
}
|
|
87976
|
+
}
|
|
87977
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template(rf, ctx) {
|
|
87978
|
+
if (rf & 1) {
|
|
87979
|
+
const _r15 = \u0275\u0275getCurrentView();
|
|
87980
|
+
\u0275\u0275declareLet(0)(1)(2)(3);
|
|
87981
|
+
\u0275\u0275elementStart(4, "expandable-card", 5)(5, "div", 8);
|
|
87982
|
+
\u0275\u0275element(6, "filing-form-group", 9);
|
|
87983
|
+
\u0275\u0275elementStart(7, "filing-form-group", 7);
|
|
87984
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
87985
|
+
\u0275\u0275restoreView(_r15);
|
|
87986
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87987
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87988
|
+
});
|
|
87989
|
+
\u0275\u0275elementEnd();
|
|
87990
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template, 9, 11);
|
|
87991
|
+
\u0275\u0275elementEnd()();
|
|
87992
|
+
}
|
|
87993
|
+
if (rf & 2) {
|
|
87994
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87995
|
+
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
87996
|
+
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewMailingAddress));
|
|
87997
|
+
\u0275\u0275advance();
|
|
87998
|
+
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewDeliveryAddress));
|
|
87999
|
+
const recordsSameAsRegistered_r23 = ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.SameAsRegisteredOffice);
|
|
88000
|
+
\u0275\u0275advance(2);
|
|
88001
|
+
\u0275\u0275storeLet(ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.DeliverySameAsMailing));
|
|
88002
|
+
\u0275\u0275advance();
|
|
88003
|
+
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
|
|
88004
|
+
\u0275\u0275advance(2);
|
|
88005
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.currentAddressesFields);
|
|
88006
|
+
\u0275\u0275advance();
|
|
88007
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.sameAsRegisteredOfficeFields);
|
|
88008
|
+
\u0275\u0275advance();
|
|
88009
|
+
\u0275\u0275conditional(!recordsSameAsRegistered_r23 ? 8 : -1);
|
|
88010
|
+
}
|
|
88011
|
+
}
|
|
88012
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template(rf, ctx) {
|
|
88013
|
+
if (rf & 1) {
|
|
88014
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p");
|
|
88015
|
+
\u0275\u0275text(3);
|
|
88016
|
+
\u0275\u0275pipe(4, "translate");
|
|
88017
|
+
\u0275\u0275elementEnd();
|
|
88018
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 12)(6, "mat-radio-button", 13);
|
|
88019
|
+
\u0275\u0275text(7);
|
|
88020
|
+
\u0275\u0275pipe(8, "translate");
|
|
88021
|
+
\u0275\u0275elementEnd();
|
|
88022
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 13);
|
|
88023
|
+
\u0275\u0275text(10);
|
|
88024
|
+
\u0275\u0275pipe(11, "translate");
|
|
88025
|
+
\u0275\u0275elementEnd()()()();
|
|
88026
|
+
}
|
|
88027
|
+
if (rf & 2) {
|
|
88028
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
88029
|
+
const annualReportReminder_r24 = \u0275\u0275readContextLet(12);
|
|
88030
|
+
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
|
|
88031
|
+
\u0275\u0275advance();
|
|
88032
|
+
\u0275\u0275property("formGroup", annualReportReminder_r24);
|
|
88033
|
+
\u0275\u0275advance(2);
|
|
88034
|
+
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 9, "Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company."), " ");
|
|
88035
|
+
\u0275\u0275advance(2);
|
|
88036
|
+
\u0275\u0275property("formControlName", ctx_r0.controls.AnnualReportReminder);
|
|
88037
|
+
\u0275\u0275advance();
|
|
88038
|
+
\u0275\u0275property("value", ctx_r0.annualReportReminderOption.Yes);
|
|
88039
|
+
\u0275\u0275advance();
|
|
88040
|
+
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(8, 11, "Yes, send the annual report reminder"), " ");
|
|
88041
|
+
\u0275\u0275advance(2);
|
|
88042
|
+
\u0275\u0275property("value", ctx_r0.annualReportReminderOption.No);
|
|
88043
|
+
\u0275\u0275advance();
|
|
88044
|
+
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(11, 13, "No, I do not need to be reminded"), " ");
|
|
88045
|
+
}
|
|
88046
|
+
}
|
|
88047
|
+
var BritishColumbiaChangeOfOfficeAddressesFormComponent;
|
|
88048
|
+
var init_change_of_office_addresses_form_component = __esm({
|
|
88049
|
+
"src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts"() {
|
|
88050
|
+
init_core();
|
|
88051
|
+
init_forms();
|
|
88052
|
+
init_radio();
|
|
88053
|
+
init_ngx_translate_core();
|
|
88054
|
+
init_filing_form_group_component();
|
|
88055
|
+
init_alert_component();
|
|
88056
|
+
init_alert_enum();
|
|
88057
|
+
init_expandable_card_component();
|
|
88058
|
+
init_british_columbia_form_enums();
|
|
88059
|
+
init_british_columbia_change_of_office_addresses_form_constants();
|
|
88060
|
+
init_forms_utils();
|
|
88061
|
+
init_BritishColumbiaConstants();
|
|
88062
|
+
init_british_columbia_change_of_office_addresses_form_helper();
|
|
88063
|
+
init_core();
|
|
88064
|
+
init_forms();
|
|
88065
|
+
BritishColumbiaChangeOfOfficeAddressesFormComponent = class _BritishColumbiaChangeOfOfficeAddressesFormComponent {
|
|
88066
|
+
form = input.required();
|
|
88067
|
+
task = input();
|
|
88068
|
+
errors = input([]);
|
|
88069
|
+
isNote = input(false);
|
|
88070
|
+
isSubmitted = input(false);
|
|
88071
|
+
readonly = input(false);
|
|
88072
|
+
visiblyValidChange = output();
|
|
88073
|
+
alertType = AlertType;
|
|
88074
|
+
groups = BCChangeOfOfficeAddressesFormGroups;
|
|
88075
|
+
controls = BCChangeOfOfficeAddressesFormControls;
|
|
88076
|
+
annualReportReminderOption = BCAnnualReportReminder;
|
|
88077
|
+
referenceNumbersFields = BC_COA_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS;
|
|
88078
|
+
corporationDetailsFields = computed(() => {
|
|
88079
|
+
const task = this.task();
|
|
88080
|
+
return BC_COA_CARD_FORM_CORPORATION_DETAILS_FIELDS(task ? BritishColumbiaChangeOfOfficeAddressesFormHelper.getCompanyEmailOptions(task) : []);
|
|
88081
|
+
});
|
|
88082
|
+
currentAddressesFields = BC_COA_CARD_FORM_CURRENT_ADDRESSES_FIELDS;
|
|
88083
|
+
addressFields = BC_COA_DELTA_CARD_FORM_OFFICE_ADDRESS_FIELDS;
|
|
88084
|
+
deliveryNoteFields = BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS;
|
|
88085
|
+
deliverySameAsMailingFields = BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS;
|
|
88086
|
+
sameAsRegisteredOfficeFields = BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
|
|
88087
|
+
sectionValidity = {};
|
|
88088
|
+
isVisiblyValid() {
|
|
88089
|
+
return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
|
|
88090
|
+
}
|
|
88091
|
+
isRegisteredOfficeValid() {
|
|
88092
|
+
const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
|
|
88093
|
+
return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
|
|
88094
|
+
}
|
|
88095
|
+
isRecordsOfficeValid() {
|
|
88096
|
+
const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88097
|
+
return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
|
|
88098
|
+
}
|
|
88099
|
+
isChecked(office, control) {
|
|
88100
|
+
return Boolean(office?.get(control)?.value);
|
|
88101
|
+
}
|
|
88102
|
+
onSectionValidChange(section, valid) {
|
|
88103
|
+
this.sectionValidity = __spreadProps(__spreadValues({}, this.sectionValidity), { [section]: valid });
|
|
88104
|
+
this.emitValidity();
|
|
88105
|
+
}
|
|
88106
|
+
emitValidity() {
|
|
88107
|
+
queueMicrotask(() => this.visiblyValidChange.emit(this.isVisiblyValid()));
|
|
88108
|
+
}
|
|
88109
|
+
getFormGroup(key) {
|
|
88110
|
+
return this.form().get(key) ?? null;
|
|
88111
|
+
}
|
|
88112
|
+
getAddressGroup(office, control) {
|
|
88113
|
+
return office?.get(control) ?? null;
|
|
88114
|
+
}
|
|
88115
|
+
isAddressValid(office, control) {
|
|
88116
|
+
const group2 = this.getAddressGroup(office, control);
|
|
88117
|
+
return !group2 || group2.disabled || isFormGroupVisiblyValid(group2, this.addressFields);
|
|
88118
|
+
}
|
|
88119
|
+
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
|
|
88120
|
+
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
|
|
88121
|
+
};
|
|
88122
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesFormComponent, selectors: [["british-columbia-change-of-office-addresses-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 14, vars: 12, consts: [[1, "change-of-office-addresses-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "change-of-office-addresses-form-content"], [3, "title"], [3, "isStatusIcon", "isValid", "title"], [3, "isStatusIcon", "title"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item"], [3, "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item-title"], [1, "annual-reminder", 3, "formGroup"], [3, "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfOfficeAddressesFormComponent_Template(rf, ctx) {
|
|
88123
|
+
if (rf & 1) {
|
|
88124
|
+
\u0275\u0275elementStart(0, "div", 0);
|
|
88125
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
88126
|
+
\u0275\u0275elementStart(3, "div", 3);
|
|
88127
|
+
\u0275\u0275declareLet(4);
|
|
88128
|
+
\u0275\u0275template(5, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 4);
|
|
88129
|
+
\u0275\u0275declareLet(6);
|
|
88130
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template, 2, 6, "expandable-card", 5);
|
|
88131
|
+
\u0275\u0275declareLet(8);
|
|
88132
|
+
\u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template, 15, 19, "expandable-card", 5);
|
|
88133
|
+
\u0275\u0275declareLet(10);
|
|
88134
|
+
\u0275\u0275template(11, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template, 9, 13, "expandable-card", 5);
|
|
88135
|
+
\u0275\u0275declareLet(12);
|
|
88136
|
+
\u0275\u0275template(13, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template, 12, 15, "expandable-card", 6);
|
|
88137
|
+
\u0275\u0275elementEnd()();
|
|
88138
|
+
}
|
|
88139
|
+
if (rf & 2) {
|
|
88140
|
+
\u0275\u0275advance();
|
|
88141
|
+
\u0275\u0275conditional(ctx.isNote() ? 1 : -1);
|
|
88142
|
+
\u0275\u0275advance();
|
|
88143
|
+
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
88144
|
+
\u0275\u0275advance(2);
|
|
88145
|
+
const referenceNumbers_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
88146
|
+
\u0275\u0275advance();
|
|
88147
|
+
\u0275\u0275conditional(referenceNumbers_r25 ? 5 : -1);
|
|
88148
|
+
\u0275\u0275advance();
|
|
88149
|
+
const corporationDetails_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
88150
|
+
\u0275\u0275advance();
|
|
88151
|
+
\u0275\u0275conditional(corporationDetails_r26 ? 7 : -1);
|
|
88152
|
+
\u0275\u0275advance();
|
|
88153
|
+
const registeredOffice_r27 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
|
|
88154
|
+
\u0275\u0275advance();
|
|
88155
|
+
\u0275\u0275conditional(registeredOffice_r27 ? 9 : -1);
|
|
88156
|
+
\u0275\u0275advance();
|
|
88157
|
+
const recordsOffice_r28 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RecordsOfficeAddress));
|
|
88158
|
+
\u0275\u0275advance();
|
|
88159
|
+
\u0275\u0275conditional(recordsOffice_r28 ? 11 : -1);
|
|
88160
|
+
\u0275\u0275advance();
|
|
88161
|
+
const annualReportReminder_r29 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
88162
|
+
\u0275\u0275advance();
|
|
88163
|
+
\u0275\u0275conditional(annualReportReminder_r29 ? 13 : -1);
|
|
88164
|
+
}
|
|
88165
|
+
}, dependencies: [
|
|
88166
|
+
FilingFormGroupComponent,
|
|
88167
|
+
AlertComponent,
|
|
88168
|
+
ExpandableCardComponent,
|
|
88169
|
+
MatRadioButton,
|
|
88170
|
+
MatRadioGroup,
|
|
88171
|
+
ReactiveFormsModule,
|
|
88172
|
+
NgControlStatus,
|
|
88173
|
+
NgControlStatusGroup,
|
|
88174
|
+
FormGroupDirective,
|
|
88175
|
+
FormControlName,
|
|
88176
|
+
TranslatePipe
|
|
88177
|
+
], styles: ["\n\n[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 14px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] .mat-mdc-radio-button .mdc-label {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.45;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] .mat-mdc-radio-button {\n --mdc-radio-state-layer-size: 40px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-item-title[_ngcontent-%COMP%] {\n color: var(--filing-modal-color-dark-blue);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */"], changeDetection: 0 });
|
|
88178
|
+
};
|
|
88179
|
+
(() => {
|
|
88180
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
|
|
88181
|
+
type: Component,
|
|
88182
|
+
args: [{ standalone: true, selector: "british-columbia-change-of-office-addresses-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
88183
|
+
FilingFormGroupComponent,
|
|
88184
|
+
AlertComponent,
|
|
88185
|
+
ExpandableCardComponent,
|
|
88186
|
+
MatRadioButton,
|
|
88187
|
+
MatRadioGroup,
|
|
88188
|
+
ReactiveFormsModule,
|
|
88189
|
+
TranslatePipe
|
|
88190
|
+
], template: `<div class="change-of-office-addresses-form">\r
|
|
88191
|
+
@if (isNote()) {\r
|
|
88192
|
+
<alert\r
|
|
88193
|
+
[type]="alertType.Info"\r
|
|
88194
|
+
title="Entity changed"\r
|
|
88195
|
+
content="A new draft needs to be generated as the Entity was changed since the last draft was produced."\r
|
|
88196
|
+
/>\r
|
|
88197
|
+
}\r
|
|
88198
|
+
\r
|
|
88199
|
+
@if (errors().length) {\r
|
|
88200
|
+
<alert\r
|
|
88201
|
+
title="The following issues need to be resolved before proceeding:"\r
|
|
88202
|
+
[content]="errors()"\r
|
|
88203
|
+
/>\r
|
|
88204
|
+
}\r
|
|
88205
|
+
\r
|
|
88206
|
+
<div class="change-of-office-addresses-form-content">\r
|
|
88207
|
+
@let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
|
|
88208
|
+
\r
|
|
88209
|
+
@if (referenceNumbers) {\r
|
|
88210
|
+
<expandable-card [title]="groups.ReferenceNumbers">\r
|
|
88211
|
+
<filing-form-group\r
|
|
88212
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88213
|
+
[form]="referenceNumbers"\r
|
|
88214
|
+
[config]="referenceNumbersFields"\r
|
|
88215
|
+
(visiblyValidChange)="onSectionValidChange('refNumbers', $event)"\r
|
|
88216
|
+
/>\r
|
|
88217
|
+
</expandable-card>\r
|
|
88218
|
+
}\r
|
|
88219
|
+
\r
|
|
88220
|
+
@let corporationDetails = getFormGroup(groups.CorporationDetails);\r
|
|
88221
|
+
\r
|
|
88222
|
+
@if (corporationDetails) {\r
|
|
88223
|
+
<expandable-card\r
|
|
88224
|
+
[isStatusIcon]="!readonly()"\r
|
|
88225
|
+
[isValid]="sectionValidity['corpDetails'] !== false"\r
|
|
88226
|
+
[title]="groups.CorporationDetails"\r
|
|
88227
|
+
>\r
|
|
88228
|
+
<filing-form-group\r
|
|
88229
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88230
|
+
[form]="corporationDetails"\r
|
|
88231
|
+
[config]="corporationDetailsFields()"\r
|
|
88232
|
+
(visiblyValidChange)="onSectionValidChange('corpDetails', $event)"\r
|
|
88233
|
+
/>\r
|
|
88234
|
+
</expandable-card>\r
|
|
88235
|
+
}\r
|
|
88236
|
+
\r
|
|
88237
|
+
<!-- ===== REGISTERED OFFICE ADDRESS ===== -->\r
|
|
88238
|
+
@let registeredOffice = getFormGroup(groups.RegisteredOfficeAddress);\r
|
|
88239
|
+
\r
|
|
88240
|
+
@if (registeredOffice) {\r
|
|
88241
|
+
@let registeredMailing = getAddressGroup(registeredOffice, controls.NewMailingAddress);\r
|
|
88242
|
+
@let registeredDelivery = getAddressGroup(registeredOffice, controls.NewDeliveryAddress);\r
|
|
88243
|
+
@let registeredDeliverySame = isChecked(registeredOffice, controls.DeliverySameAsMailing);\r
|
|
88244
|
+
\r
|
|
88245
|
+
<expandable-card\r
|
|
88246
|
+
[isStatusIcon]="!readonly()"\r
|
|
88247
|
+
[isValid]="isRegisteredOfficeValid()"\r
|
|
88248
|
+
[title]="groups.RegisteredOfficeAddress"\r
|
|
88249
|
+
>\r
|
|
88250
|
+
<div class="change-of-office-addresses-form-item">\r
|
|
88251
|
+
<filing-form-group\r
|
|
88252
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88253
|
+
[form]="registeredOffice"\r
|
|
88254
|
+
[config]="currentAddressesFields"\r
|
|
88255
|
+
/>\r
|
|
88256
|
+
\r
|
|
88257
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
|
|
88258
|
+
\r
|
|
88259
|
+
@if (registeredMailing) {\r
|
|
88260
|
+
<filing-form-group\r
|
|
88261
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88262
|
+
[form]="registeredMailing"\r
|
|
88263
|
+
[config]="addressFields"\r
|
|
88264
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88265
|
+
/>\r
|
|
88266
|
+
}\r
|
|
88267
|
+
\r
|
|
88268
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
88269
|
+
\r
|
|
88270
|
+
<filing-form-group\r
|
|
88271
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88272
|
+
[form]="registeredOffice"\r
|
|
88273
|
+
[config]="deliverySameAsMailingFields"\r
|
|
88274
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88275
|
+
/>\r
|
|
88276
|
+
\r
|
|
88277
|
+
@if (!registeredDeliverySame && registeredDelivery) {\r
|
|
88278
|
+
<filing-form-group\r
|
|
88279
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88280
|
+
[form]="registeredOffice"\r
|
|
88281
|
+
[config]="deliveryNoteFields"\r
|
|
88282
|
+
/>\r
|
|
88283
|
+
<filing-form-group\r
|
|
88284
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88285
|
+
[form]="registeredDelivery"\r
|
|
88286
|
+
[config]="addressFields"\r
|
|
88287
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88288
|
+
/>\r
|
|
88289
|
+
}\r
|
|
88290
|
+
</div>\r
|
|
88291
|
+
</expandable-card>\r
|
|
88292
|
+
}\r
|
|
88293
|
+
\r
|
|
88294
|
+
<!-- ===== RECORDS OFFICE ADDRESS ===== -->\r
|
|
88295
|
+
@let recordsOffice = getFormGroup(groups.RecordsOfficeAddress);\r
|
|
88296
|
+
\r
|
|
88297
|
+
@if (recordsOffice) {\r
|
|
88298
|
+
@let recordsMailing = getAddressGroup(recordsOffice, controls.NewMailingAddress);\r
|
|
88299
|
+
@let recordsDelivery = getAddressGroup(recordsOffice, controls.NewDeliveryAddress);\r
|
|
88300
|
+
@let recordsSameAsRegistered = isChecked(recordsOffice, controls.SameAsRegisteredOffice);\r
|
|
88301
|
+
@let recordsDeliverySame = isChecked(recordsOffice, controls.DeliverySameAsMailing);\r
|
|
88302
|
+
\r
|
|
88303
|
+
<expandable-card\r
|
|
88304
|
+
[isStatusIcon]="!readonly()"\r
|
|
88305
|
+
[isValid]="isRecordsOfficeValid()"\r
|
|
88306
|
+
[title]="groups.RecordsOfficeAddress"\r
|
|
88307
|
+
>\r
|
|
88308
|
+
<div class="change-of-office-addresses-form-item">\r
|
|
88309
|
+
<filing-form-group\r
|
|
88310
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88311
|
+
[form]="recordsOffice"\r
|
|
88312
|
+
[config]="currentAddressesFields"\r
|
|
88313
|
+
/>\r
|
|
88314
|
+
\r
|
|
88315
|
+
<filing-form-group\r
|
|
88316
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88317
|
+
[form]="recordsOffice"\r
|
|
88318
|
+
[config]="sameAsRegisteredOfficeFields"\r
|
|
88319
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88320
|
+
/>\r
|
|
88321
|
+
\r
|
|
88322
|
+
@if (!recordsSameAsRegistered) {\r
|
|
88323
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
|
|
88324
|
+
\r
|
|
88325
|
+
@if (recordsMailing) {\r
|
|
88326
|
+
<filing-form-group\r
|
|
88327
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88328
|
+
[form]="recordsMailing"\r
|
|
88329
|
+
[config]="addressFields"\r
|
|
88330
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88331
|
+
/>\r
|
|
88332
|
+
}\r
|
|
88333
|
+
\r
|
|
88334
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
88335
|
+
\r
|
|
88336
|
+
<filing-form-group\r
|
|
88337
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88338
|
+
[form]="recordsOffice"\r
|
|
88339
|
+
[config]="deliverySameAsMailingFields"\r
|
|
88340
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88341
|
+
/>\r
|
|
88342
|
+
\r
|
|
88343
|
+
@if (!recordsDeliverySame && recordsDelivery) {\r
|
|
88344
|
+
<filing-form-group\r
|
|
88345
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88346
|
+
[form]="recordsDelivery"\r
|
|
88347
|
+
[config]="addressFields"\r
|
|
88348
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88349
|
+
/>\r
|
|
88350
|
+
}\r
|
|
88351
|
+
}\r
|
|
88352
|
+
</div>\r
|
|
88353
|
+
</expandable-card>\r
|
|
88354
|
+
}\r
|
|
88355
|
+
\r
|
|
88356
|
+
@let annualReportReminder = getFormGroup(groups.AnnualReportReminder);\r
|
|
88357
|
+
\r
|
|
88358
|
+
@if (annualReportReminder) {\r
|
|
88359
|
+
<expandable-card [isStatusIcon]="false" [title]="groups.AnnualReportReminder">\r
|
|
88360
|
+
<div class="annual-reminder" [formGroup]="annualReportReminder">\r
|
|
88361
|
+
<p>\r
|
|
88362
|
+
{{\r
|
|
88363
|
+
"Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company."\r
|
|
88364
|
+
| translate\r
|
|
88365
|
+
}}\r
|
|
88366
|
+
</p>\r
|
|
88367
|
+
<mat-radio-group [formControlName]="controls.AnnualReportReminder">\r
|
|
88368
|
+
<mat-radio-button [value]="annualReportReminderOption.Yes">\r
|
|
88369
|
+
{{ 'Yes, send the annual report reminder' | translate }}\r
|
|
88370
|
+
</mat-radio-button>\r
|
|
88371
|
+
<mat-radio-button [value]="annualReportReminderOption.No">\r
|
|
88372
|
+
{{ 'No, I do not need to be reminded' | translate }}\r
|
|
88373
|
+
</mat-radio-button>\r
|
|
88374
|
+
</mat-radio-group>\r
|
|
88375
|
+
</div>\r
|
|
88376
|
+
</expandable-card>\r
|
|
88377
|
+
}\r
|
|
88378
|
+
</div>\r
|
|
88379
|
+
</div>\r
|
|
88380
|
+
`, styles: ["/* src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.scss */\n:host {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n:host .change-of-office-addresses-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-office-addresses-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n}\n:host .change-of-office-addresses-form .annual-reminder {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n:host .change-of-office-addresses-form .annual-reminder p {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n:host .change-of-office-addresses-form .annual-reminder mat-radio-group {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 14px;\n}\n:host .change-of-office-addresses-form .annual-reminder ::ng-deep .mat-mdc-radio-button .mdc-label {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.45;\n}\n:host .change-of-office-addresses-form .annual-reminder ::ng-deep .mat-mdc-radio-button {\n --mdc-radio-state-layer-size: 40px;\n}\n:host .change-of-office-addresses-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .change-of-office-addresses-form-item-title {\n color: var(--filing-modal-color-dark-blue);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */\n"] }]
|
|
88381
|
+
}], null, null);
|
|
88382
|
+
})();
|
|
88383
|
+
(() => {
|
|
88384
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfOfficeAddressesFormComponent, { className: "BritishColumbiaChangeOfOfficeAddressesFormComponent", filePath: "src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts", lineNumber: 55 });
|
|
88385
|
+
})();
|
|
88386
|
+
}
|
|
88387
|
+
});
|
|
88388
|
+
|
|
88389
|
+
// src/app/components/british-columbia/change-of-office-addresses/steps/delta/change-of-office-addresses-delta-form.component.ts
|
|
88390
|
+
var BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent;
|
|
88391
|
+
var init_change_of_office_addresses_delta_form_component = __esm({
|
|
88392
|
+
"src/app/components/british-columbia/change-of-office-addresses/steps/delta/change-of-office-addresses-delta-form.component.ts"() {
|
|
88393
|
+
init_core();
|
|
88394
|
+
init_button();
|
|
88395
|
+
init_ngx_translate_core();
|
|
88396
|
+
init_common_utils();
|
|
88397
|
+
init_change_of_office_addresses_form_component();
|
|
88398
|
+
init_core();
|
|
88399
|
+
BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent = class _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent {
|
|
88400
|
+
form = input.required();
|
|
88401
|
+
actionsDisabled = input(false);
|
|
88402
|
+
isNote = input(false);
|
|
88403
|
+
task = input();
|
|
88404
|
+
errors = input([]);
|
|
88405
|
+
close = output();
|
|
88406
|
+
save = output();
|
|
88407
|
+
validate = output();
|
|
88408
|
+
submitted = signal(false);
|
|
88409
|
+
visiblyValid = signal(true);
|
|
88410
|
+
clientErrors = signal([]);
|
|
88411
|
+
translate = inject(TranslateService);
|
|
88412
|
+
combinedErrors = computed(() => {
|
|
88413
|
+
const client = this.clientErrors();
|
|
88414
|
+
return client.length ? client : this.errors();
|
|
88415
|
+
});
|
|
88416
|
+
onVisiblyValidChange(valid) {
|
|
88417
|
+
this.visiblyValid.set(valid);
|
|
88418
|
+
if (this.submitted()) {
|
|
88419
|
+
this.clientErrors.set(valid ? [] : [this.requiredFieldsMessage()]);
|
|
88420
|
+
}
|
|
88421
|
+
}
|
|
88422
|
+
onValidate() {
|
|
88423
|
+
this.submitted.set(true);
|
|
88424
|
+
this.clientErrors.set([]);
|
|
88425
|
+
markFormGroupTouched(this.form());
|
|
88426
|
+
if (!this.visiblyValid()) {
|
|
88427
|
+
this.clientErrors.set([this.requiredFieldsMessage()]);
|
|
88428
|
+
return;
|
|
88429
|
+
}
|
|
88430
|
+
this.validate.emit();
|
|
88431
|
+
}
|
|
88432
|
+
requiredFieldsMessage() {
|
|
88433
|
+
return this.translate.instant("Some required fields aren't completed.");
|
|
88434
|
+
}
|
|
88435
|
+
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Factory(__ngFactoryType__) {
|
|
88436
|
+
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent)();
|
|
88437
|
+
};
|
|
88438
|
+
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) {
|
|
88439
|
+
if (rf & 1) {
|
|
88440
|
+
\u0275\u0275elementStart(0, "div", 0)(1, "british-columbia-change-of-office-addresses-form", 1);
|
|
88441
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_british_columbia_change_of_office_addresses_form_visiblyValidChange_1_listener($event) {
|
|
88442
|
+
return ctx.onVisiblyValidChange($event);
|
|
88443
|
+
});
|
|
88444
|
+
\u0275\u0275elementEnd();
|
|
88445
|
+
\u0275\u0275elementStart(2, "div", 2)(3, "button", 3);
|
|
88446
|
+
\u0275\u0275listener("click", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_button_click_3_listener() {
|
|
88447
|
+
return ctx.close.emit();
|
|
88448
|
+
});
|
|
88449
|
+
\u0275\u0275elementStart(4, "span", 4);
|
|
88450
|
+
\u0275\u0275text(5);
|
|
88451
|
+
\u0275\u0275pipe(6, "translate");
|
|
88452
|
+
\u0275\u0275elementEnd()();
|
|
88453
|
+
\u0275\u0275elementStart(7, "button", 3);
|
|
88454
|
+
\u0275\u0275listener("click", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_button_click_7_listener() {
|
|
88455
|
+
return ctx.save.emit();
|
|
88456
|
+
});
|
|
88457
|
+
\u0275\u0275elementStart(8, "span", 4);
|
|
88458
|
+
\u0275\u0275text(9);
|
|
88459
|
+
\u0275\u0275pipe(10, "translate");
|
|
88460
|
+
\u0275\u0275elementEnd()();
|
|
88461
|
+
\u0275\u0275elementStart(11, "button", 5);
|
|
88462
|
+
\u0275\u0275listener("click", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_button_click_11_listener() {
|
|
88463
|
+
return ctx.onValidate();
|
|
88464
|
+
});
|
|
88465
|
+
\u0275\u0275elementStart(12, "span", 4);
|
|
88466
|
+
\u0275\u0275text(13);
|
|
88467
|
+
\u0275\u0275pipe(14, "translate");
|
|
88468
|
+
\u0275\u0275elementEnd()()()();
|
|
88469
|
+
}
|
|
88470
|
+
if (rf & 2) {
|
|
88471
|
+
\u0275\u0275advance();
|
|
88472
|
+
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("isSubmitted", ctx.submitted())("readonly", false);
|
|
88473
|
+
\u0275\u0275advance(2);
|
|
88474
|
+
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
88475
|
+
\u0275\u0275advance(2);
|
|
88476
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 12, "Close"));
|
|
88477
|
+
\u0275\u0275advance(2);
|
|
88478
|
+
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
88479
|
+
\u0275\u0275advance(2);
|
|
88480
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 14, "Save Changes"));
|
|
88481
|
+
\u0275\u0275advance(2);
|
|
88482
|
+
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
88483
|
+
\u0275\u0275advance(2);
|
|
88484
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 16, "Validate & Generate Draft"));
|
|
88485
|
+
}
|
|
88486
|
+
}, 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 });
|
|
88487
|
+
};
|
|
88488
|
+
(() => {
|
|
88489
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent, [{
|
|
88490
|
+
type: Component,
|
|
88491
|
+
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
|
|
88492
|
+
<british-columbia-change-of-office-addresses-form\r
|
|
88493
|
+
class="change-of-office-addresses-delta-form-content"\r
|
|
88494
|
+
[form]="form()"\r
|
|
88495
|
+
[task]="task()"\r
|
|
88496
|
+
[errors]="combinedErrors()"\r
|
|
88497
|
+
[isNote]="isNote()"\r
|
|
88498
|
+
[isSubmitted]="submitted()"\r
|
|
88499
|
+
[readonly]="false"\r
|
|
88500
|
+
(visiblyValidChange)="onVisiblyValidChange($event)"\r
|
|
88501
|
+
/>\r
|
|
88502
|
+
\r
|
|
88503
|
+
<div class="change-of-office-addresses-delta-form-actions">\r
|
|
88504
|
+
<button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
|
|
88505
|
+
<span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
|
|
88506
|
+
</button>\r
|
|
88507
|
+
<button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>\r
|
|
88508
|
+
<span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>\r
|
|
88509
|
+
</button>\r
|
|
88510
|
+
<button\r
|
|
88511
|
+
class="submit"\r
|
|
88512
|
+
color="primary"\r
|
|
88513
|
+
mat-flat-button\r
|
|
88514
|
+
[disabled]="actionsDisabled()"\r
|
|
88515
|
+
(click)="onValidate()"\r
|
|
88516
|
+
>\r
|
|
88517
|
+
<span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>\r
|
|
88518
|
+
</button>\r
|
|
88519
|
+
</div>\r
|
|
88520
|
+
</div>\r
|
|
88521
|
+
`, 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"] }]
|
|
88522
|
+
}], null, null);
|
|
88523
|
+
})();
|
|
88524
|
+
(() => {
|
|
88525
|
+
(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 });
|
|
88526
|
+
})();
|
|
88527
|
+
}
|
|
88528
|
+
});
|
|
88529
|
+
|
|
88530
|
+
// src/app/components/british-columbia/change-of-office-addresses/steps/preview/change-of-office-addresses-preview-form.component.ts
|
|
88531
|
+
var BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent;
|
|
88532
|
+
var init_change_of_office_addresses_preview_form_component = __esm({
|
|
88533
|
+
"src/app/components/british-columbia/change-of-office-addresses/steps/preview/change-of-office-addresses-preview-form.component.ts"() {
|
|
88534
|
+
init_core();
|
|
88535
|
+
init_button();
|
|
88536
|
+
init_ngx_translate_core();
|
|
88537
|
+
init_change_of_office_addresses_form_component();
|
|
88538
|
+
init_core();
|
|
88539
|
+
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent = class _BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent {
|
|
88540
|
+
form = input.required();
|
|
88541
|
+
actionsDisabled = input(false);
|
|
88542
|
+
task = input();
|
|
88543
|
+
errors = input([]);
|
|
88544
|
+
close = output();
|
|
88545
|
+
file = output();
|
|
88546
|
+
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent_Factory(__ngFactoryType__) {
|
|
88547
|
+
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent)();
|
|
88548
|
+
};
|
|
88549
|
+
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) {
|
|
88550
|
+
if (rf & 1) {
|
|
88551
|
+
\u0275\u0275elementStart(0, "div", 0);
|
|
88552
|
+
\u0275\u0275element(1, "british-columbia-change-of-office-addresses-form", 1);
|
|
88553
|
+
\u0275\u0275elementStart(2, "div", 2)(3, "button", 3);
|
|
88554
|
+
\u0275\u0275listener("click", function BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent_Template_button_click_3_listener() {
|
|
88555
|
+
return ctx.close.emit();
|
|
88556
|
+
});
|
|
88557
|
+
\u0275\u0275elementStart(4, "span", 4);
|
|
88558
|
+
\u0275\u0275text(5);
|
|
88559
|
+
\u0275\u0275pipe(6, "translate");
|
|
88560
|
+
\u0275\u0275elementEnd()();
|
|
88561
|
+
\u0275\u0275elementStart(7, "button", 5);
|
|
88562
|
+
\u0275\u0275listener("click", function BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent_Template_button_click_7_listener() {
|
|
88563
|
+
return ctx.file.emit();
|
|
88564
|
+
});
|
|
88565
|
+
\u0275\u0275elementStart(8, "span", 4);
|
|
88566
|
+
\u0275\u0275text(9);
|
|
88567
|
+
\u0275\u0275pipe(10, "translate");
|
|
88568
|
+
\u0275\u0275elementEnd()()()();
|
|
88569
|
+
}
|
|
88570
|
+
if (rf & 2) {
|
|
88571
|
+
\u0275\u0275advance();
|
|
88572
|
+
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.errors())("isSubmitted", false)("readonly", true);
|
|
88573
|
+
\u0275\u0275advance(2);
|
|
88574
|
+
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
88575
|
+
\u0275\u0275advance(2);
|
|
88576
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 9, "Close"));
|
|
88577
|
+
\u0275\u0275advance(2);
|
|
88578
|
+
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
88579
|
+
\u0275\u0275advance(2);
|
|
88580
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 11, "File"));
|
|
88581
|
+
}
|
|
88582
|
+
}, 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 });
|
|
88583
|
+
};
|
|
88584
|
+
(() => {
|
|
88585
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent, [{
|
|
88586
|
+
type: Component,
|
|
88587
|
+
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
|
|
88588
|
+
<british-columbia-change-of-office-addresses-form\r
|
|
88589
|
+
class="change-of-office-addresses-preview-form-content"\r
|
|
88590
|
+
[form]="form()"\r
|
|
88591
|
+
[task]="task()"\r
|
|
88592
|
+
[errors]="errors()"\r
|
|
88593
|
+
[isSubmitted]="false"\r
|
|
88594
|
+
[readonly]="true"\r
|
|
88595
|
+
/>\r
|
|
88596
|
+
\r
|
|
88597
|
+
<div class="change-of-office-addresses-preview-form-actions">\r
|
|
88598
|
+
<button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
|
|
88599
|
+
<span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
|
|
88600
|
+
</button>\r
|
|
88601
|
+
<button\r
|
|
88602
|
+
class="submit"\r
|
|
88603
|
+
color="primary"\r
|
|
88604
|
+
mat-flat-button\r
|
|
88605
|
+
[disabled]="actionsDisabled()"\r
|
|
88606
|
+
(click)="file.emit()"\r
|
|
88607
|
+
>\r
|
|
88608
|
+
<span class="body-1-semibold">{{ 'File' | translate }}</span>\r
|
|
88609
|
+
</button>\r
|
|
88610
|
+
</div>\r
|
|
88611
|
+
</div>\r
|
|
88612
|
+
`, 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"] }]
|
|
88613
|
+
}], null, null);
|
|
88614
|
+
})();
|
|
88615
|
+
(() => {
|
|
88616
|
+
(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 });
|
|
88617
|
+
})();
|
|
88618
|
+
}
|
|
88619
|
+
});
|
|
88620
|
+
|
|
87387
88621
|
// src/app/components/british-columbia/british-columbia.component.ts
|
|
87388
88622
|
function BritishColumbiaComponent_Conditional_1_Conditional_0_Template(rf, ctx) {
|
|
87389
88623
|
if (rf & 1) {
|
|
@@ -87499,6 +88733,63 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87499
88733
|
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
|
|
87500
88734
|
}
|
|
87501
88735
|
}
|
|
88736
|
+
function BritishColumbiaComponent_Conditional_3_Conditional_0_Template(rf, ctx) {
|
|
88737
|
+
if (rf & 1) {
|
|
88738
|
+
const _r7 = \u0275\u0275getCurrentView();
|
|
88739
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-delta-form", 2);
|
|
88740
|
+
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_validate_0_listener() {
|
|
88741
|
+
\u0275\u0275restoreView(_r7);
|
|
88742
|
+
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88743
|
+
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesValidate());
|
|
88744
|
+
})("close", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_close_0_listener() {
|
|
88745
|
+
\u0275\u0275restoreView(_r7);
|
|
88746
|
+
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88747
|
+
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
88748
|
+
})("save", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_save_0_listener() {
|
|
88749
|
+
\u0275\u0275restoreView(_r7);
|
|
88750
|
+
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88751
|
+
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesSave());
|
|
88752
|
+
});
|
|
88753
|
+
\u0275\u0275elementEnd();
|
|
88754
|
+
}
|
|
88755
|
+
if (rf & 2) {
|
|
88756
|
+
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88757
|
+
const taskData_r3 = \u0275\u0275readContextLet(0);
|
|
88758
|
+
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.deltaForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors())("isNote", ctx_r1.isNote());
|
|
88759
|
+
}
|
|
88760
|
+
}
|
|
88761
|
+
function BritishColumbiaComponent_Conditional_3_Conditional_1_Template(rf, ctx) {
|
|
88762
|
+
if (rf & 1) {
|
|
88763
|
+
const _r8 = \u0275\u0275getCurrentView();
|
|
88764
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-preview-form", 3);
|
|
88765
|
+
\u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_close_0_listener() {
|
|
88766
|
+
\u0275\u0275restoreView(_r8);
|
|
88767
|
+
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88768
|
+
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
88769
|
+
})("file", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_file_0_listener() {
|
|
88770
|
+
\u0275\u0275restoreView(_r8);
|
|
88771
|
+
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88772
|
+
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesFile());
|
|
88773
|
+
});
|
|
88774
|
+
\u0275\u0275elementEnd();
|
|
88775
|
+
}
|
|
88776
|
+
if (rf & 2) {
|
|
88777
|
+
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88778
|
+
const taskData_r3 = \u0275\u0275readContextLet(0);
|
|
88779
|
+
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors());
|
|
88780
|
+
}
|
|
88781
|
+
}
|
|
88782
|
+
function BritishColumbiaComponent_Conditional_3_Template(rf, ctx) {
|
|
88783
|
+
if (rf & 1) {
|
|
88784
|
+
\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);
|
|
88785
|
+
}
|
|
88786
|
+
if (rf & 2) {
|
|
88787
|
+
const ctx_r1 = \u0275\u0275nextContext();
|
|
88788
|
+
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.Validate ? 0 : -1);
|
|
88789
|
+
\u0275\u0275advance();
|
|
88790
|
+
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
|
|
88791
|
+
}
|
|
88792
|
+
}
|
|
87502
88793
|
var BritishColumbiaComponent;
|
|
87503
88794
|
var init_british_columbia_component = __esm({
|
|
87504
88795
|
"src/app/components/british-columbia/british-columbia.component.ts"() {
|
|
@@ -87511,6 +88802,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87511
88802
|
init_british_columbia_form_enums();
|
|
87512
88803
|
init_british_columbia_change_of_directors_form_helper();
|
|
87513
88804
|
init_british_columbia_formation_form_helper();
|
|
88805
|
+
init_british_columbia_change_of_office_addresses_form_helper();
|
|
87514
88806
|
init_delta_state_service();
|
|
87515
88807
|
init_common_utils();
|
|
87516
88808
|
init_confirm_modal_component();
|
|
@@ -87518,6 +88810,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87518
88810
|
init_change_of_directors_preview_form_component();
|
|
87519
88811
|
init_british_columbia_incorporation_delta_form_component();
|
|
87520
88812
|
init_british_columbia_incorporation_preview_form_component();
|
|
88813
|
+
init_change_of_office_addresses_delta_form_component();
|
|
88814
|
+
init_change_of_office_addresses_preview_form_component();
|
|
87521
88815
|
init_core();
|
|
87522
88816
|
BritishColumbiaComponent = class _BritishColumbiaComponent {
|
|
87523
88817
|
task = input();
|
|
@@ -87535,13 +88829,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87535
88829
|
formationSubmit = output();
|
|
87536
88830
|
saveFormationDeltaData = output();
|
|
87537
88831
|
nextStep = output();
|
|
88832
|
+
recheckStep = output();
|
|
87538
88833
|
prevStep = output();
|
|
88834
|
+
// Change of Office Addresses outputs
|
|
88835
|
+
coaValidate = output();
|
|
88836
|
+
saveCoaDeltaData = output();
|
|
88837
|
+
coaSubmit = output();
|
|
87539
88838
|
dialog = inject(MatDialog);
|
|
87540
88839
|
deltaState = inject(DeltaStateService);
|
|
87541
88840
|
translate = inject(TranslateService);
|
|
87542
88841
|
steps = Step;
|
|
87543
88842
|
isChangeOfDirectorsTask = isChangeOfPrincipalsTask;
|
|
87544
88843
|
isFormationTask = isFormationTask2;
|
|
88844
|
+
isChangeOfOfficeAddressesTask = isChangeOfAddressTask;
|
|
87545
88845
|
deltaForm = signal(new FormGroup({}));
|
|
87546
88846
|
previewForm = signal(new FormGroup({}));
|
|
87547
88847
|
constructor() {
|
|
@@ -87555,6 +88855,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87555
88855
|
this.deltaForm.set(new FormGroup(BritishColumbiaFormationFormHelper.generateConfig(task, (key) => this.translate.instant(key), untracked2(() => this.currentUser()))));
|
|
87556
88856
|
this.deltaState.setBCFormationInitialDelta(this.generateFormationDeltaData());
|
|
87557
88857
|
}
|
|
88858
|
+
if (task && isChangeOfAddressTask(task)) {
|
|
88859
|
+
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key))));
|
|
88860
|
+
this.deltaState.setBCChangeOfOfficeAddressesInitialDelta(this.generateChangeOfOfficeAddressesDeltaData());
|
|
88861
|
+
}
|
|
87558
88862
|
});
|
|
87559
88863
|
effect(() => {
|
|
87560
88864
|
const task = this.task();
|
|
@@ -87578,8 +88882,71 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87578
88882
|
this.nextStep.emit();
|
|
87579
88883
|
}
|
|
87580
88884
|
}
|
|
88885
|
+
if (task && isChangeOfAddressTask(task) && deltaData) {
|
|
88886
|
+
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
|
|
88887
|
+
form.disable();
|
|
88888
|
+
this.previewForm.set(form);
|
|
88889
|
+
const step = untracked2(() => this.activeStep());
|
|
88890
|
+
if (step === Step.Validate) {
|
|
88891
|
+
this.nextStep.emit();
|
|
88892
|
+
} else if (step === Step.FilingPreview) {
|
|
88893
|
+
this.recheckStep.emit();
|
|
88894
|
+
}
|
|
88895
|
+
}
|
|
87581
88896
|
});
|
|
87582
88897
|
}
|
|
88898
|
+
onChangeOfOfficeAddressesValidate() {
|
|
88899
|
+
markFormGroupTouched(this.deltaForm());
|
|
88900
|
+
this.coaValidate.emit(this.generateChangeOfOfficeAddressesDeltaData());
|
|
88901
|
+
}
|
|
88902
|
+
onChangeOfOfficeAddressesSave() {
|
|
88903
|
+
const delta = this.generateChangeOfOfficeAddressesDeltaData();
|
|
88904
|
+
this.deltaState.setBCChangeOfOfficeAddressesInitialDelta(delta);
|
|
88905
|
+
this.saveCoaDeltaData.emit(delta);
|
|
88906
|
+
}
|
|
88907
|
+
/** No certification step for this filing: "File" submits the staged draft directly. */
|
|
88908
|
+
onChangeOfOfficeAddressesFile() {
|
|
88909
|
+
this.coaSubmit.emit(this.generateChangeOfOfficeAddressesDeltaData());
|
|
88910
|
+
}
|
|
88911
|
+
generateChangeOfOfficeAddressesDeltaData() {
|
|
88912
|
+
const c = BCChangeOfOfficeAddressesFormControls;
|
|
88913
|
+
const formData = this.deltaForm().getRawValue();
|
|
88914
|
+
const refNumbers = formData[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers];
|
|
88915
|
+
const corporation = formData[BCChangeOfOfficeAddressesFormGroups.CorporationDetails];
|
|
88916
|
+
const reminder = formData[BCChangeOfOfficeAddressesFormGroups.AnnualReportReminder];
|
|
88917
|
+
const registered = formData[BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress];
|
|
88918
|
+
const records = formData[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress];
|
|
88919
|
+
const toAddress = (src) => ({
|
|
88920
|
+
addressLine1: src?.[c.AddressLine1] ?? null,
|
|
88921
|
+
addressLine2: src?.[c.AddressLine2] ?? null,
|
|
88922
|
+
city: src?.[c.City] ?? null,
|
|
88923
|
+
postalCode: src?.[c.PostalCode] ?? null,
|
|
88924
|
+
province: src?.[c.Province] ?? null,
|
|
88925
|
+
country: src?.[c.Country] ?? null
|
|
88926
|
+
});
|
|
88927
|
+
const regDeliverySame = Boolean(registered?.[c.DeliverySameAsMailing]);
|
|
88928
|
+
const recSameAsRegistered = Boolean(records?.[c.SameAsRegisteredOffice]);
|
|
88929
|
+
const recDeliverySame = Boolean(records?.[c.DeliverySameAsMailing]);
|
|
88930
|
+
return {
|
|
88931
|
+
referenceNumbers: {
|
|
88932
|
+
referenceNumber: refNumbers?.[c.ClientMatterNumber] ?? null,
|
|
88933
|
+
docketNumber: refNumbers?.[c.DocketNumber] ?? null
|
|
88934
|
+
},
|
|
88935
|
+
companyEmail: corporation?.[c.CompanyEmail] ?? "",
|
|
88936
|
+
annualReportReminder: reminder?.[c.AnnualReportReminder] ?? "",
|
|
88937
|
+
registeredOffice: {
|
|
88938
|
+
mailingAddress: toAddress(registered?.[c.NewMailingAddress]),
|
|
88939
|
+
deliverySameAsMailing: regDeliverySame,
|
|
88940
|
+
deliveryAddress: regDeliverySame ? void 0 : toAddress(registered?.[c.NewDeliveryAddress])
|
|
88941
|
+
},
|
|
88942
|
+
recordsOffice: {
|
|
88943
|
+
sameAsRegisteredOffice: recSameAsRegistered,
|
|
88944
|
+
mailingAddress: recSameAsRegistered ? void 0 : toAddress(records?.[c.NewMailingAddress]),
|
|
88945
|
+
deliverySameAsMailing: recSameAsRegistered ? void 0 : recDeliverySame,
|
|
88946
|
+
deliveryAddress: recSameAsRegistered || recDeliverySame ? void 0 : toAddress(records?.[c.NewDeliveryAddress])
|
|
88947
|
+
}
|
|
88948
|
+
};
|
|
88949
|
+
}
|
|
87583
88950
|
onChangeOfDirectorsValidate() {
|
|
87584
88951
|
markFormGroupTouched(this.deltaForm());
|
|
87585
88952
|
this.codValidate.emit(this.generateChangeOfDirectorsDeltaData());
|
|
@@ -87679,7 +89046,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87679
89046
|
}
|
|
87680
89047
|
onClose() {
|
|
87681
89048
|
const task = this.task();
|
|
87682
|
-
const hasChanges = task && isFormationTask2(task) ? !deepEqual(this.deltaState.bcFormationInitialDelta(), this.generateFormationDeltaData()) : !deepEqual(this.deltaState.bcChangeOfDirectorsInitialDelta(), this.generateChangeOfDirectorsDeltaData());
|
|
89049
|
+
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
89050
|
if (!hasChanges) {
|
|
87684
89051
|
this.close.emit();
|
|
87685
89052
|
return;
|
|
@@ -87697,6 +89064,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87697
89064
|
if (val) {
|
|
87698
89065
|
if (task && isFormationTask2(task)) {
|
|
87699
89066
|
this.onFormationSave();
|
|
89067
|
+
} else if (task && isChangeOfAddressTask(task)) {
|
|
89068
|
+
this.onChangeOfOfficeAddressesSave();
|
|
87700
89069
|
} else {
|
|
87701
89070
|
this.onChangeOfDirectorsSave();
|
|
87702
89071
|
}
|
|
@@ -87707,23 +89076,27 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87707
89076
|
static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
|
|
87708
89077
|
return new (__ngFactoryType__ || _BritishColumbiaComponent)();
|
|
87709
89078
|
};
|
|
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:
|
|
89079
|
+
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", recheckStep: "recheckStep", 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, "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) {
|
|
87711
89080
|
if (rf & 1) {
|
|
87712
89081
|
\u0275\u0275declareLet(0);
|
|
87713
|
-
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2);
|
|
89082
|
+
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2)(3, BritishColumbiaComponent_Conditional_3_Template, 2, 2);
|
|
87714
89083
|
}
|
|
87715
89084
|
if (rf & 2) {
|
|
87716
|
-
const
|
|
89085
|
+
const taskData_r9 = \u0275\u0275storeLet(ctx.task());
|
|
87717
89086
|
\u0275\u0275advance();
|
|
87718
|
-
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(
|
|
89087
|
+
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r9) ? 1 : -1);
|
|
87719
89088
|
\u0275\u0275advance();
|
|
87720
|
-
\u0275\u0275conditional(ctx.isFormationTask(
|
|
89089
|
+
\u0275\u0275conditional(ctx.isFormationTask(taskData_r9) ? 2 : -1);
|
|
89090
|
+
\u0275\u0275advance();
|
|
89091
|
+
\u0275\u0275conditional(ctx.isChangeOfOfficeAddressesTask(taskData_r9) ? 3 : -1);
|
|
87721
89092
|
}
|
|
87722
89093
|
}, dependencies: [
|
|
87723
89094
|
BritishColumbiaChangeOfDirectorsDeltaFormComponent,
|
|
87724
89095
|
BritishColumbiaChangeOfDirectorsPreviewFormComponent,
|
|
87725
89096
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
87726
|
-
BritishColumbiaIncorporationPreviewFormComponent
|
|
89097
|
+
BritishColumbiaIncorporationPreviewFormComponent,
|
|
89098
|
+
BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent,
|
|
89099
|
+
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
87727
89100
|
], styles: ["\n\n[_nghost-%COMP%] {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */"], changeDetection: 0 });
|
|
87728
89101
|
};
|
|
87729
89102
|
(() => {
|
|
@@ -87733,12 +89106,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87733
89106
|
BritishColumbiaChangeOfDirectorsDeltaFormComponent,
|
|
87734
89107
|
BritishColumbiaChangeOfDirectorsPreviewFormComponent,
|
|
87735
89108
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
87736
|
-
BritishColumbiaIncorporationPreviewFormComponent
|
|
87737
|
-
|
|
89109
|
+
BritishColumbiaIncorporationPreviewFormComponent,
|
|
89110
|
+
BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent,
|
|
89111
|
+
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
89112
|
+
], 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\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
89113
|
}], () => [], null);
|
|
87739
89114
|
})();
|
|
87740
89115
|
(() => {
|
|
87741
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber:
|
|
89116
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber: 72 });
|
|
87742
89117
|
})();
|
|
87743
89118
|
}
|
|
87744
89119
|
});
|
|
@@ -94275,6 +95650,293 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94275
95650
|
}
|
|
94276
95651
|
});
|
|
94277
95652
|
|
|
95653
|
+
// src/app/services/british-columbia/british-columbia-maintenance.service.ts
|
|
95654
|
+
var MAINTENANCE_FILING_PATH, TEMP_UAT_BC_FILING_URL2, DATA_EXTRACT_PATH, DEFAULT_EXTRACT_POLL, DEFAULT_RESULT_POLL, BritishColumbiaMaintenanceService;
|
|
95655
|
+
var init_british_columbia_maintenance_service = __esm({
|
|
95656
|
+
"src/app/services/british-columbia/british-columbia-maintenance.service.ts"() {
|
|
95657
|
+
init_core();
|
|
95658
|
+
init_common_utils();
|
|
95659
|
+
init_core();
|
|
95660
|
+
MAINTENANCE_FILING_PATH = "/filings/ca/bc/maintenance-filing";
|
|
95661
|
+
TEMP_UAT_BC_FILING_URL2 = "https://uat3-onbis.oncorp.com/eCoreBcApi/";
|
|
95662
|
+
DATA_EXTRACT_PATH = "/filings/ca/bc/data-extract";
|
|
95663
|
+
DEFAULT_EXTRACT_POLL = { intervalMs: 3e3, timeoutMs: 6e5 };
|
|
95664
|
+
DEFAULT_RESULT_POLL = { intervalMs: 3e3, timeoutMs: 6e5 };
|
|
95665
|
+
BritishColumbiaMaintenanceService = class _BritishColumbiaMaintenanceService {
|
|
95666
|
+
config;
|
|
95667
|
+
setConfig(config2) {
|
|
95668
|
+
this.config = config2;
|
|
95669
|
+
}
|
|
95670
|
+
/** Orders the registry's current data for the corporation; returns the extract's id. */
|
|
95671
|
+
orderCurrentDataExtract(_0, _1) {
|
|
95672
|
+
return __async(this, arguments, function* (signature, context2, opts = {}) {
|
|
95673
|
+
const { status, ok, body, raw } = yield this.send(signature, "POST", `${DATA_EXTRACT_PATH}/order`, {
|
|
95674
|
+
corporationNumber: context2.corporationNumber,
|
|
95675
|
+
accessCodeOrPassword: context2.accessCodeOrPassword,
|
|
95676
|
+
incorporationDate: context2.incorporationDate,
|
|
95677
|
+
filingType: "changeOfAddressFiling"
|
|
95678
|
+
}, opts);
|
|
95679
|
+
const id = body?.currentDataServiceOrderId ?? body?.CurrentDataServiceOrderId;
|
|
95680
|
+
if (!ok || !id || String(body?.status ?? "").toLowerCase() === "failed") {
|
|
95681
|
+
throw this.failure(status, "Ordering the current data from the registry failed", body, raw);
|
|
95682
|
+
}
|
|
95683
|
+
return String(id);
|
|
95684
|
+
});
|
|
95685
|
+
}
|
|
95686
|
+
/** Polls the extract until the registry has it ready (`success`). */
|
|
95687
|
+
waitForCurrentDataExtract(_0, _1) {
|
|
95688
|
+
return __async(this, arguments, function* (signature, extractId, opts = {}, poll = {}) {
|
|
95689
|
+
const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_EXTRACT_POLL), poll);
|
|
95690
|
+
const deadline = Date.now() + timeoutMs;
|
|
95691
|
+
for (; ; ) {
|
|
95692
|
+
const { status, ok, body, raw } = yield this.send(signature, "GET", `${DATA_EXTRACT_PATH}/${encodeURIComponent(extractId)}`, void 0, opts);
|
|
95693
|
+
const state2 = String(body?.status ?? "").toLowerCase();
|
|
95694
|
+
if (ok && state2 === "success") {
|
|
95695
|
+
return;
|
|
95696
|
+
}
|
|
95697
|
+
if (!ok || state2 === "failed" || state2 === "sourceunavailable") {
|
|
95698
|
+
throw this.failure(status, "Retrieving the current data from the registry failed", body, raw);
|
|
95699
|
+
}
|
|
95700
|
+
if (Date.now() >= deadline) {
|
|
95701
|
+
throw new Error("The registry is still preparing the current data after 10 minutes. Please try again later.");
|
|
95702
|
+
}
|
|
95703
|
+
yield this.sleep(intervalMs);
|
|
95704
|
+
}
|
|
95705
|
+
});
|
|
95706
|
+
}
|
|
95707
|
+
/**
|
|
95708
|
+
* Validates the filing against the extract and returns the draft. `context` supplies the
|
|
95709
|
+
* corporation number and password; they are added here so they never become part of the
|
|
95710
|
+
* saved request used to detect Entity changes.
|
|
95711
|
+
*/
|
|
95712
|
+
validate(_0, _1, _2, _3) {
|
|
95713
|
+
return __async(this, arguments, function* (signature, requestBody, extractId, context2, opts = {}) {
|
|
95714
|
+
const { status, ok, body, raw } = yield this.send(signature, "POST", MAINTENANCE_FILING_PATH, {
|
|
95715
|
+
currentDataServiceOrderId: extractId,
|
|
95716
|
+
filingType: requestBody.filingType,
|
|
95717
|
+
filing: __spreadProps(__spreadValues({}, requestBody.filing), {
|
|
95718
|
+
corporationNumber: context2.corporationNumber,
|
|
95719
|
+
accessCodeOrPassword: context2.accessCodeOrPassword
|
|
95720
|
+
})
|
|
95721
|
+
}, opts);
|
|
95722
|
+
if (body === null) {
|
|
95723
|
+
throw this.failure(status, "eCore validation failed", body, raw);
|
|
95724
|
+
}
|
|
95725
|
+
const result = this.normalize(unwrapRequestResults(body));
|
|
95726
|
+
if (ok && !this.hasFailed(result)) {
|
|
95727
|
+
return result;
|
|
95728
|
+
}
|
|
95729
|
+
const err = new Error(this.describeFailure(status, "eCore validation failed", result));
|
|
95730
|
+
err.validateResult = result;
|
|
95731
|
+
err.httpStatus = status;
|
|
95732
|
+
throw err;
|
|
95733
|
+
});
|
|
95734
|
+
}
|
|
95735
|
+
/**
|
|
95736
|
+
* Submits the staged filing, then waits for the registry's result. Resolves once the filing
|
|
95737
|
+
* is `success` (or its documents are pending); throws if it `failed`. If the registry is
|
|
95738
|
+
* still `processing` when the wait ends, the filing is already submitted, so it resolves
|
|
95739
|
+
* with `Status: 'Success'` and `Processing: true` rather than inviting a second submit.
|
|
95740
|
+
*/
|
|
95741
|
+
submitAndWait(_0, _1) {
|
|
95742
|
+
return __async(this, arguments, function* (signature, serviceOrderId, opts = {}, poll = {}) {
|
|
95743
|
+
if (!serviceOrderId) {
|
|
95744
|
+
throw new Error("Missing serviceOrderId.");
|
|
95745
|
+
}
|
|
95746
|
+
const submitted = yield this.send(signature, "POST", `${MAINTENANCE_FILING_PATH}/${encodeURIComponent(serviceOrderId)}/submit`, void 0, opts);
|
|
95747
|
+
const submitResult = this.normalize(submitted.body);
|
|
95748
|
+
if (!submitted.ok || submitResult.Status === "Failure") {
|
|
95749
|
+
const err = new Error(this.describeFailure(submitted.status, "eCore submit failed", submitResult));
|
|
95750
|
+
err.submitResult = submitResult;
|
|
95751
|
+
err.httpStatus = submitted.status;
|
|
95752
|
+
throw err;
|
|
95753
|
+
}
|
|
95754
|
+
const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_RESULT_POLL), poll);
|
|
95755
|
+
const deadline = Date.now() + timeoutMs;
|
|
95756
|
+
let processing = false;
|
|
95757
|
+
let files;
|
|
95758
|
+
for (; ; ) {
|
|
95759
|
+
const { status, ok, body, raw } = yield this.send(signature, "GET", `${MAINTENANCE_FILING_PATH}/${encodeURIComponent(serviceOrderId)}`, void 0, opts);
|
|
95760
|
+
const state2 = String(body?.status ?? "").toLowerCase();
|
|
95761
|
+
if (ok && (state2 === "success" || state2 === "pendingdocuments")) {
|
|
95762
|
+
files = body?.files;
|
|
95763
|
+
break;
|
|
95764
|
+
}
|
|
95765
|
+
if (!ok || state2 === "failed" || state2 === "sourceunavailable") {
|
|
95766
|
+
throw this.failure(status, "The registry could not complete the filing", body, raw);
|
|
95767
|
+
}
|
|
95768
|
+
if (Date.now() >= deadline) {
|
|
95769
|
+
processing = true;
|
|
95770
|
+
break;
|
|
95771
|
+
}
|
|
95772
|
+
yield this.sleep(intervalMs);
|
|
95773
|
+
}
|
|
95774
|
+
signature.filingSubmitSuccess?.({ filedOn: /* @__PURE__ */ new Date(), serviceOrderId });
|
|
95775
|
+
return { Status: "Success", ServiceOrderId: serviceOrderId, Processing: processing, Files: files };
|
|
95776
|
+
});
|
|
95777
|
+
}
|
|
95778
|
+
getBaseUrl(env) {
|
|
95779
|
+
const baseUrl = this.config?.BCFiling || (env === "TEST" ? TEMP_UAT_BC_FILING_URL2 : void 0);
|
|
95780
|
+
if (!baseUrl) {
|
|
95781
|
+
throw new Error("BritishColumbiaMaintenanceService: missing EnvConfig.BCFiling.");
|
|
95782
|
+
}
|
|
95783
|
+
return baseUrl;
|
|
95784
|
+
}
|
|
95785
|
+
/** One call to the BC API through the proxy. `body` is `null` when the response isn't JSON. */
|
|
95786
|
+
send(signature, method, path, payload, opts) {
|
|
95787
|
+
return __async(this, null, function* () {
|
|
95788
|
+
ensureAuthInputs(signature);
|
|
95789
|
+
const fetchFn = opts.fetchImpl ?? fetch;
|
|
95790
|
+
const targetUrl = joinUrl(this.getBaseUrl(signature.env), path);
|
|
95791
|
+
const { ecoreClientId, ecoreUserId } = this.config ?? {};
|
|
95792
|
+
const headers = __spreadValues(__spreadValues(__spreadValues({
|
|
95793
|
+
"x-target-url": targetUrl
|
|
95794
|
+
}, ecoreClientId ? { "x-ecore-client-id": String(ecoreClientId) } : {}), ecoreUserId ? { "x-ecore-user-id": String(ecoreUserId) } : {}), opts.headers ?? {});
|
|
95795
|
+
const resp = yield fetchWithJwtRetry(signature, () => method === "POST" && payload !== void 0 ? postJson(fetchFn, signature.proxyApiUrl, signature.jwtToken, payload, headers) : fetchFn(signature.proxyApiUrl, {
|
|
95796
|
+
method,
|
|
95797
|
+
headers: __spreadValues({ Authorization: `Bearer ${signature.jwtToken}` }, headers)
|
|
95798
|
+
}));
|
|
95799
|
+
const raw = yield resp.text();
|
|
95800
|
+
const parsed = tryParseJson(raw);
|
|
95801
|
+
const body = parsed.ok ? unwrapRequestResults(parsed.value) : null;
|
|
95802
|
+
return { status: resp.status, ok: resp.ok, body, raw };
|
|
95803
|
+
});
|
|
95804
|
+
}
|
|
95805
|
+
failure(status, prefix, body, raw) {
|
|
95806
|
+
const result = body ? this.normalize(body) : void 0;
|
|
95807
|
+
const message = result ? this.describeFailure(status, prefix, result) : `${prefix} (HTTP ${status}): ${raw || "(empty response)"}`;
|
|
95808
|
+
const err = new Error(message);
|
|
95809
|
+
err.httpStatus = status;
|
|
95810
|
+
return err;
|
|
95811
|
+
}
|
|
95812
|
+
sleep(ms) {
|
|
95813
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
95814
|
+
}
|
|
95815
|
+
/**
|
|
95816
|
+
* Maps a BC API body to the shared result shape. `status` becomes `Success` or `Failure`
|
|
95817
|
+
* (`failed` and any other non-success value are failures). When a failure carries no
|
|
95818
|
+
* `errors`, `additionalInformation` is used as the error messages.
|
|
95819
|
+
*/
|
|
95820
|
+
normalize(body) {
|
|
95821
|
+
const rawErrors = body?.errors ?? body?.Errors ?? [];
|
|
95822
|
+
const errors = rawErrors.map((e) => ({
|
|
95823
|
+
Code: e?.code ?? e?.Code,
|
|
95824
|
+
Message: e?.message ?? e?.Message ?? e?.ErrorMessage
|
|
95825
|
+
}));
|
|
95826
|
+
const status = String(body?.status ?? body?.Status ?? "").toLowerCase();
|
|
95827
|
+
const succeeded = status === "success" || status === "alreadysubmitted";
|
|
95828
|
+
if (!succeeded && !errors.length) {
|
|
95829
|
+
const additional = body?.additionalInformation ?? [];
|
|
95830
|
+
errors.push(...additional.map((Message) => ({ Message })));
|
|
95831
|
+
}
|
|
95832
|
+
return {
|
|
95833
|
+
Status: succeeded ? "Success" : "Failure",
|
|
95834
|
+
ServiceOrderId: body?.serviceOrderId ?? body?.ServiceOrderId,
|
|
95835
|
+
Draft: body?.draft ?? body?.Draft,
|
|
95836
|
+
Errors: errors
|
|
95837
|
+
};
|
|
95838
|
+
}
|
|
95839
|
+
/** A body-level failure: the normalised status is `Failure` or errors were returned. */
|
|
95840
|
+
hasFailed(result) {
|
|
95841
|
+
return result.Status === "Failure" || Boolean(result.Errors?.length);
|
|
95842
|
+
}
|
|
95843
|
+
describeFailure(httpStatus, prefix, result) {
|
|
95844
|
+
const messages = (result.Errors ?? []).map((e) => e.Message || e.Code).filter(Boolean).join(" | ");
|
|
95845
|
+
return messages ? `${prefix} (HTTP ${httpStatus}): ${messages}` : `${prefix} (HTTP ${httpStatus}).`;
|
|
95846
|
+
}
|
|
95847
|
+
static \u0275fac = function BritishColumbiaMaintenanceService_Factory(__ngFactoryType__) {
|
|
95848
|
+
return new (__ngFactoryType__ || _BritishColumbiaMaintenanceService)();
|
|
95849
|
+
};
|
|
95850
|
+
static \u0275prov = /* @__PURE__ */ \u0275\u0275defineInjectable({ token: _BritishColumbiaMaintenanceService, factory: _BritishColumbiaMaintenanceService.\u0275fac, providedIn: "root" });
|
|
95851
|
+
};
|
|
95852
|
+
(() => {
|
|
95853
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaMaintenanceService, [{
|
|
95854
|
+
type: Injectable,
|
|
95855
|
+
args: [{
|
|
95856
|
+
providedIn: "root"
|
|
95857
|
+
}]
|
|
95858
|
+
}], null, null);
|
|
95859
|
+
})();
|
|
95860
|
+
}
|
|
95861
|
+
});
|
|
95862
|
+
|
|
95863
|
+
// src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts
|
|
95864
|
+
function formatPostalCode(value) {
|
|
95865
|
+
const compact = clean(value).replace(/[\s-]+/g, "").toUpperCase();
|
|
95866
|
+
return compact.length === 6 ? `${compact.slice(0, 3)} ${compact.slice(3)}` : clean(value).toUpperCase();
|
|
95867
|
+
}
|
|
95868
|
+
function toEcoreAddress(address) {
|
|
95869
|
+
const line2 = clean(address?.addressLine2);
|
|
95870
|
+
return __spreadProps(__spreadValues({
|
|
95871
|
+
streetAddress: clean(address?.addressLine1)
|
|
95872
|
+
}, line2 ? { additionalStreetAddress: line2 } : {}), {
|
|
95873
|
+
city: clean(address?.city),
|
|
95874
|
+
provinceOrState: BC_PROVINCE_CODE,
|
|
95875
|
+
postalOrZipCode: formatPostalCode(address?.postalCode),
|
|
95876
|
+
country: CANADA_COUNTRY_CODE
|
|
95877
|
+
});
|
|
95878
|
+
}
|
|
95879
|
+
function isSameAddress(a, b) {
|
|
95880
|
+
const key = (x) => [x.streetAddress, x.additionalStreetAddress, x.city, x.provinceOrState, x.postalOrZipCode, x.country].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
95881
|
+
return key(a) === key(b);
|
|
95882
|
+
}
|
|
95883
|
+
function buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData) {
|
|
95884
|
+
const registered = deltaData.registeredOffice;
|
|
95885
|
+
const records = deltaData.recordsOffice;
|
|
95886
|
+
const registeredMailing = toEcoreAddress(registered?.mailingAddress);
|
|
95887
|
+
const registeredDelivery = registered?.deliverySameAsMailing ? registeredMailing : toEcoreAddress(registered?.deliveryAddress);
|
|
95888
|
+
const recordsMailing = records?.sameAsRegisteredOffice ? registeredMailing : toEcoreAddress(records?.mailingAddress);
|
|
95889
|
+
const recordsDelivery = records?.sameAsRegisteredOffice ? registeredDelivery : records?.deliverySameAsMailing ? recordsMailing : toEcoreAddress(records?.deliveryAddress);
|
|
95890
|
+
const registeredDeliverySame = isSameAddress(registeredDelivery, registeredMailing);
|
|
95891
|
+
const recordsSameAsRegistered = isSameAddress(recordsMailing, registeredMailing);
|
|
95892
|
+
const recordsDeliverySame = isSameAddress(recordsDelivery, recordsMailing);
|
|
95893
|
+
const filing = {
|
|
95894
|
+
registeredOfficeMailingAddress: registeredMailing,
|
|
95895
|
+
isRegisteredOfficeDeliveryAddressSameAsMailing: registeredDeliverySame,
|
|
95896
|
+
isRecordsOfficeMailingAddressSameAsRegisteredOfficeMailing: recordsSameAsRegistered,
|
|
95897
|
+
isRecordsOfficeDeliveryAddressSameAsRecordsOfficeMailing: recordsDeliverySame,
|
|
95898
|
+
// Both are picked on the form; the fallbacks only cover data saved before they were added.
|
|
95899
|
+
companyEmail: clean(deltaData.companyEmail) || BritishColumbiaChangeOfOfficeAddressesFormHelper.resolveCompanyEmail(task),
|
|
95900
|
+
isAnnualReportReminderRequired: deltaData.annualReportReminder === BCAnnualReportReminder.Yes
|
|
95901
|
+
};
|
|
95902
|
+
const reference = clean(deltaData.referenceNumbers?.referenceNumber);
|
|
95903
|
+
const docket = clean(deltaData.referenceNumbers?.docketNumber);
|
|
95904
|
+
if (reference) {
|
|
95905
|
+
filing.reference = reference;
|
|
95906
|
+
}
|
|
95907
|
+
if (docket) {
|
|
95908
|
+
filing.docket = docket;
|
|
95909
|
+
}
|
|
95910
|
+
if (!registeredDeliverySame) {
|
|
95911
|
+
filing.registeredOfficeDeliveryAddress = registeredDelivery;
|
|
95912
|
+
}
|
|
95913
|
+
if (!recordsSameAsRegistered) {
|
|
95914
|
+
filing.recordsOfficeMailingAddress = recordsMailing;
|
|
95915
|
+
}
|
|
95916
|
+
if (!recordsDeliverySame) {
|
|
95917
|
+
filing.recordsOfficeDeliveryAddress = recordsDelivery;
|
|
95918
|
+
}
|
|
95919
|
+
return { filingType: "changeOfAddressFiling", filing };
|
|
95920
|
+
}
|
|
95921
|
+
function getBritishColumbiaAccessCode2(task, env) {
|
|
95922
|
+
const registryId = task.entity._profile.registry_id?.trim() ?? "";
|
|
95923
|
+
if (registryId) {
|
|
95924
|
+
return registryId;
|
|
95925
|
+
}
|
|
95926
|
+
return env === "TEST" ? TEMP_UAT_TEST_ACCESS_CODE : "";
|
|
95927
|
+
}
|
|
95928
|
+
var TEMP_UAT_TEST_ACCESS_CODE, BC_PROVINCE_CODE, CANADA_COUNTRY_CODE, clean;
|
|
95929
|
+
var init_british_columbia_change_of_office_addresses_mapper = __esm({
|
|
95930
|
+
"src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
|
|
95931
|
+
init_BritishColumbiaConstants();
|
|
95932
|
+
init_british_columbia_change_of_office_addresses_form_helper();
|
|
95933
|
+
TEMP_UAT_TEST_ACCESS_CODE = "12345678";
|
|
95934
|
+
BC_PROVINCE_CODE = "BC";
|
|
95935
|
+
CANADA_COUNTRY_CODE = "CA";
|
|
95936
|
+
clean = (value) => (value ?? "").trim();
|
|
95937
|
+
}
|
|
95938
|
+
});
|
|
95939
|
+
|
|
94278
95940
|
// src/app/components/filing/filing.component.ts
|
|
94279
95941
|
function FilingComponent_Conditional_7_Template(rf, ctx) {
|
|
94280
95942
|
if (rf & 1) {
|
|
@@ -94358,6 +96020,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94358
96020
|
\u0275\u0275restoreView(_r6);
|
|
94359
96021
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
94360
96022
|
return \u0275\u0275resetView(ctx_r2.onNextStepClick());
|
|
96023
|
+
})("recheckStep", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_recheckStep_0_listener() {
|
|
96024
|
+
\u0275\u0275restoreView(_r6);
|
|
96025
|
+
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
96026
|
+
return \u0275\u0275resetView(ctx_r2.defineInitialStep());
|
|
94361
96027
|
})("prevStep", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_prevStep_0_listener() {
|
|
94362
96028
|
\u0275\u0275restoreView(_r6);
|
|
94363
96029
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
@@ -94374,6 +96040,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94374
96040
|
\u0275\u0275restoreView(_r6);
|
|
94375
96041
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
94376
96042
|
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfDirectorsSubmit());
|
|
96043
|
+
})("coaValidate", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_coaValidate_0_listener($event) {
|
|
96044
|
+
\u0275\u0275restoreView(_r6);
|
|
96045
|
+
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
96046
|
+
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfOfficeAddressesValidate($event));
|
|
96047
|
+
})("saveCoaDeltaData", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_saveCoaDeltaData_0_listener($event) {
|
|
96048
|
+
\u0275\u0275restoreView(_r6);
|
|
96049
|
+
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
96050
|
+
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfOfficeAddressesSave($event));
|
|
96051
|
+
})("coaSubmit", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_coaSubmit_0_listener() {
|
|
96052
|
+
\u0275\u0275restoreView(_r6);
|
|
96053
|
+
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
96054
|
+
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfOfficeAddressesSubmit());
|
|
94377
96055
|
})("formationValidate", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_formationValidate_0_listener($event) {
|
|
94378
96056
|
\u0275\u0275restoreView(_r6);
|
|
94379
96057
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
@@ -94489,6 +96167,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94489
96167
|
init_delta_state_service();
|
|
94490
96168
|
init_british_columbia_change_of_directors_service();
|
|
94491
96169
|
init_british_columbia_change_of_directors_mapper();
|
|
96170
|
+
init_british_columbia_maintenance_service();
|
|
96171
|
+
init_british_columbia_change_of_office_addresses_mapper();
|
|
94492
96172
|
init_core();
|
|
94493
96173
|
init_button();
|
|
94494
96174
|
FilingComponent = class _FilingComponent {
|
|
@@ -94545,6 +96225,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94545
96225
|
federalUpdateMaintainService = inject(FederalUpdateMaintainService);
|
|
94546
96226
|
updateMaintainService = inject(OntarioUpdateMaintainService);
|
|
94547
96227
|
britishColumbiaChangeOfDirectorsService = inject(BritishColumbiaChangeOfDirectorsService);
|
|
96228
|
+
bcMaintenanceService = inject(BritishColumbiaMaintenanceService);
|
|
94548
96229
|
translate = inject(TranslateService);
|
|
94549
96230
|
isEditButton = computed(() => {
|
|
94550
96231
|
const task = this.task();
|
|
@@ -94589,6 +96270,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94589
96270
|
if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
94590
96271
|
return "File British Columbia Notice of Change of Directors";
|
|
94591
96272
|
}
|
|
96273
|
+
if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
|
|
96274
|
+
return "File British Columbia Change of Office Addresses";
|
|
96275
|
+
}
|
|
94592
96276
|
return "";
|
|
94593
96277
|
});
|
|
94594
96278
|
constructor() {
|
|
@@ -94601,6 +96285,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94601
96285
|
this.bcFormationService.setConfig(config2);
|
|
94602
96286
|
this.federalUpdateMaintainService.setConfig(config2);
|
|
94603
96287
|
this.britishColumbiaChangeOfDirectorsService.setConfig(config2);
|
|
96288
|
+
this.bcMaintenanceService.setConfig(config2);
|
|
94604
96289
|
}
|
|
94605
96290
|
});
|
|
94606
96291
|
addStylesVariables();
|
|
@@ -94925,6 +96610,97 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94925
96610
|
}
|
|
94926
96611
|
});
|
|
94927
96612
|
}
|
|
96613
|
+
/**
|
|
96614
|
+
* British Columbia Change of Office Addresses "Validate & Generate Draft": sends the filing
|
|
96615
|
+
* to eCore, hands the draft PDF to the host, and saves the delta together with the
|
|
96616
|
+
* ServiceOrderId and the full request (`validatedData`) used to detect later Entity changes.
|
|
96617
|
+
*/
|
|
96618
|
+
onBritishColumbiaChangeOfOfficeAddressesValidate(deltaData) {
|
|
96619
|
+
return __async(this, null, function* () {
|
|
96620
|
+
const task = this.task();
|
|
96621
|
+
const signature = this._signature();
|
|
96622
|
+
try {
|
|
96623
|
+
if (!task || !signature) {
|
|
96624
|
+
throw new Error("The filing is not ready yet. Please try again.");
|
|
96625
|
+
}
|
|
96626
|
+
this.isLoading.set(true);
|
|
96627
|
+
this.errors.set([]);
|
|
96628
|
+
const requestBody = buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData);
|
|
96629
|
+
const opts = this.validateOptions() ?? {};
|
|
96630
|
+
const context2 = {
|
|
96631
|
+
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
96632
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode2(task, signature.env),
|
|
96633
|
+
incorporationDate: String(task.entity._compliance?.incorporation_date ?? "").slice(0, 10)
|
|
96634
|
+
};
|
|
96635
|
+
const extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
96636
|
+
yield this.bcMaintenanceService.waitForCurrentDataExtract(signature, extractId, opts);
|
|
96637
|
+
const response = yield this.bcMaintenanceService.validate(signature, requestBody, extractId, context2, opts);
|
|
96638
|
+
if (this.hasResponseErrors(response))
|
|
96639
|
+
return;
|
|
96640
|
+
const serviceOrderId = response.ServiceOrderId ?? "";
|
|
96641
|
+
const draftPdf = response.Draft ?? "";
|
|
96642
|
+
const searchOrFilingType = getSearchOrFilingType(task);
|
|
96643
|
+
if (draftPdf && searchOrFilingType) {
|
|
96644
|
+
this.filingValidateSuccess.emit({
|
|
96645
|
+
searchOrFilingType,
|
|
96646
|
+
serviceOrderId,
|
|
96647
|
+
validatedOn: /* @__PURE__ */ new Date(),
|
|
96648
|
+
provider: "bcreg",
|
|
96649
|
+
draftPdf,
|
|
96650
|
+
documentName: this.validateOptions()?.documentName ?? "British Columbia Change of Office Addresses Draft",
|
|
96651
|
+
documentType: "pdf"
|
|
96652
|
+
});
|
|
96653
|
+
}
|
|
96654
|
+
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
96655
|
+
serviceOrderId,
|
|
96656
|
+
// The corporation number is added by the service, not by the request builder, so it is
|
|
96657
|
+
// stored explicitly (the access code is deliberately left out) to detect entity changes.
|
|
96658
|
+
validatedData: __spreadProps(__spreadValues({}, JSON.parse(JSON.stringify(requestBody))), {
|
|
96659
|
+
corporationNumber: context2.corporationNumber
|
|
96660
|
+
})
|
|
96661
|
+
}));
|
|
96662
|
+
this.close.emit();
|
|
96663
|
+
} catch (response) {
|
|
96664
|
+
this.handleCatchError(response);
|
|
96665
|
+
} finally {
|
|
96666
|
+
this.isLoading.set(false);
|
|
96667
|
+
}
|
|
96668
|
+
});
|
|
96669
|
+
}
|
|
96670
|
+
/**
|
|
96671
|
+
* British Columbia Change of Office Addresses save – propagates delta data to the host.
|
|
96672
|
+
*/
|
|
96673
|
+
onBritishColumbiaChangeOfOfficeAddressesSave(deltaData) {
|
|
96674
|
+
const oldDeltaData = this.task()?.deltaData;
|
|
96675
|
+
if (oldDeltaData) {
|
|
96676
|
+
delete this.task()?.deltaData;
|
|
96677
|
+
}
|
|
96678
|
+
this.deltaDataChange.emit(deltaData);
|
|
96679
|
+
}
|
|
96680
|
+
/**
|
|
96681
|
+
* British Columbia Change of Office Addresses submit/file: submits the filing staged by
|
|
96682
|
+
* "Validate & Generate Draft" using the ServiceOrderId saved with the delta.
|
|
96683
|
+
*/
|
|
96684
|
+
onBritishColumbiaChangeOfOfficeAddressesSubmit() {
|
|
96685
|
+
return __async(this, null, function* () {
|
|
96686
|
+
const signature = this._signature();
|
|
96687
|
+
const serviceOrderId = this.task()?.deltaData?.serviceOrderId;
|
|
96688
|
+
if (!signature || !serviceOrderId) {
|
|
96689
|
+
this.handleCatchError(new Error("Missing serviceOrderId. Generate a draft before filing."));
|
|
96690
|
+
return;
|
|
96691
|
+
}
|
|
96692
|
+
try {
|
|
96693
|
+
this.isLoading.set(true);
|
|
96694
|
+
this.errors.set([]);
|
|
96695
|
+
yield this.bcMaintenanceService.submitAndWait(signature, serviceOrderId, this.validateOptions() ?? {});
|
|
96696
|
+
this.close.emit();
|
|
96697
|
+
} catch (response) {
|
|
96698
|
+
this.handleCatchError(response);
|
|
96699
|
+
} finally {
|
|
96700
|
+
this.isLoading.set(false);
|
|
96701
|
+
}
|
|
96702
|
+
});
|
|
96703
|
+
}
|
|
94928
96704
|
/**
|
|
94929
96705
|
* Ontario Update/Maintain (IR / NOC / Annual Return) save – propagates delta data to the host.
|
|
94930
96706
|
*/
|
|
@@ -95193,7 +96969,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95193
96969
|
this.errors.set(this.parseError(errors));
|
|
95194
96970
|
return;
|
|
95195
96971
|
}
|
|
95196
|
-
const fallbackMessage = parsed?.message || (typeof parsed === "string" ? parsed : "") || this.translate.instant("An unexpected error occurred. Please try again.");
|
|
96972
|
+
const fallbackMessage = (response instanceof Error ? response.message : "") || parsed?.message || (typeof parsed === "string" ? parsed : "") || this.translate.instant("An unexpected error occurred. Please try again.");
|
|
95197
96973
|
this.errors.set([fallbackMessage]);
|
|
95198
96974
|
}
|
|
95199
96975
|
onClose() {
|
|
@@ -95260,6 +97036,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95260
97036
|
let initialDelta;
|
|
95261
97037
|
if (isFormationTask2(task)) {
|
|
95262
97038
|
initialDelta = isOntarioTask(task) ? this.deltaState.formationInitialDelta() : isBritishColumbiaTask(task) ? this.deltaState.bcFormationInitialDelta() : this.deltaState.federalFormationInitialDelta();
|
|
97039
|
+
} else if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
|
|
97040
|
+
initialDelta = this.deltaState.bcChangeOfOfficeAddressesInitialDelta();
|
|
95263
97041
|
} else if (isUpdateMaintain(task)) {
|
|
95264
97042
|
initialDelta = isOntarioTask(task) ? this.deltaState.initialReturnInitialDelta() : this.deltaState.federalUpdateMaintainInitialDelta();
|
|
95265
97043
|
} else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
@@ -95293,6 +97071,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95293
97071
|
}
|
|
95294
97072
|
return federalPayload;
|
|
95295
97073
|
}
|
|
97074
|
+
if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
|
|
97075
|
+
return __spreadProps(__spreadValues({}, buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData)), {
|
|
97076
|
+
corporationNumber: task.entity._profile.corp_number ?? ""
|
|
97077
|
+
});
|
|
97078
|
+
}
|
|
95296
97079
|
if (isUpdateMaintain(task) && isOntarioTask(task)) {
|
|
95297
97080
|
const serviceOrderId = deltaData?.serviceOrderId ?? this.serviceOrderId;
|
|
95298
97081
|
if (!serviceOrderId) {
|
|
@@ -95321,7 +97104,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95321
97104
|
if (rf & 2) {
|
|
95322
97105
|
\u0275\u0275styleProp("height", ctx.modalHeight());
|
|
95323
97106
|
}
|
|
95324
|
-
}, 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) {
|
|
97107
|
+
}, 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", "recheckStep", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "coaValidate", "saveCoaDeltaData", "coaSubmit", "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) {
|
|
95325
97108
|
if (rf & 1) {
|
|
95326
97109
|
const _r1 = \u0275\u0275getCurrentView();
|
|
95327
97110
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
@@ -95427,10 +97210,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95427
97210
|
[currentDataExtract]="currentDataExtract()"\r
|
|
95428
97211
|
(close)="close.emit()"\r
|
|
95429
97212
|
(nextStep)="onNextStepClick()"\r
|
|
97213
|
+
(recheckStep)="defineInitialStep()"\r
|
|
95430
97214
|
(prevStep)="onOntarioPrevStep()"\r
|
|
95431
97215
|
(codValidate)="onBritishColumbiaChangeOfDirectorsValidate($event)"\r
|
|
95432
97216
|
(saveCodDeltaData)="onBritishColumbiaChangeOfDirectorsSave($event)"\r
|
|
95433
97217
|
(codSubmit)="onBritishColumbiaChangeOfDirectorsSubmit()"\r
|
|
97218
|
+
(coaValidate)="onBritishColumbiaChangeOfOfficeAddressesValidate($event)"\r
|
|
97219
|
+
(saveCoaDeltaData)="onBritishColumbiaChangeOfOfficeAddressesSave($event)"\r
|
|
97220
|
+
(coaSubmit)="onBritishColumbiaChangeOfOfficeAddressesSubmit()"\r
|
|
95434
97221
|
(formationValidate)="onBritishColumbiaFormationValidate($event)"\r
|
|
95435
97222
|
(saveFormationDeltaData)="onBritishColumbiaFormationSave($event)"\r
|
|
95436
97223
|
(formationSubmit)="onBritishColumbiaFormationSubmit()"\r
|
|
@@ -95460,12 +97247,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95460
97247
|
</div>\r
|
|
95461
97248
|
}\r
|
|
95462
97249
|
</div>\r
|
|
95463
|
-
</div>\r
|
|
95464
|
-
`, 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'] }]
|
|
97250
|
+
</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'] }]
|
|
95465
97251
|
}], () => [], null);
|
|
95466
97252
|
})();
|
|
95467
97253
|
(() => {
|
|
95468
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber:
|
|
97254
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 97 });
|
|
95469
97255
|
})();
|
|
95470
97256
|
}
|
|
95471
97257
|
});
|
|
@@ -100111,7 +101897,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
100111
101897
|
Currency: "Currency",
|
|
100112
101898
|
"Special Rights or Restrictions": "Special Rights or Restrictions",
|
|
100113
101899
|
Unlimited: "Unlimited",
|
|
100114
|
-
"Without Par Value": "Without Par Value"
|
|
101900
|
+
"Without Par Value": "Without Par Value",
|
|
101901
|
+
"File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
|
|
101902
|
+
"Records Office Address": "Records Office Address",
|
|
101903
|
+
"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.",
|
|
101904
|
+
"Current Mailing Address": "Current Mailing Address",
|
|
101905
|
+
"Current Delivery Address": "Current Delivery Address",
|
|
101906
|
+
"New Mailing Address": "New Mailing Address",
|
|
101907
|
+
"New Delivery Address": "New Delivery Address",
|
|
101908
|
+
"Same as Mailing Address": "Same as Mailing Address",
|
|
101909
|
+
"Same as Registered Office": "Same as Registered Office",
|
|
101910
|
+
"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."
|
|
100115
101911
|
};
|
|
100116
101912
|
}
|
|
100117
101913
|
});
|
|
@@ -100458,7 +102254,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
100458
102254
|
Currency: "Devise",
|
|
100459
102255
|
"Special Rights or Restrictions": "Droits ou restrictions sp\xE9ciaux",
|
|
100460
102256
|
Unlimited: "Illimit\xE9",
|
|
100461
|
-
"Without Par Value": "Sans valeur nominale"
|
|
102257
|
+
"Without Par Value": "Sans valeur nominale",
|
|
102258
|
+
"File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
|
|
102259
|
+
"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.",
|
|
102260
|
+
"Current Mailing Address": "Adresse postale actuelle",
|
|
102261
|
+
"Current Delivery Address": "Adresse de livraison actuelle",
|
|
102262
|
+
"New Mailing Address": "Nouvelle adresse postale",
|
|
102263
|
+
"New Delivery Address": "Nouvelle adresse de livraison",
|
|
102264
|
+
"Same as Mailing Address": "Identique \xE0 l'adresse postale",
|
|
102265
|
+
"Same as Registered Office": "Identique au si\xE8ge social",
|
|
102266
|
+
"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."
|
|
100462
102267
|
};
|
|
100463
102268
|
}
|
|
100464
102269
|
});
|