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