@dyedurham/search-and-file-widget 2.1.37 → 2.1.39
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 +160 -428
- package/package.json +2 -2
package/dnd-filing-shell.js
CHANGED
|
@@ -84630,6 +84630,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84630
84630
|
const registeredOffice = findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84631
84631
|
const registeredOfficeAddresses = collectSharedAddresses(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84632
84632
|
const recordsOfficeAddresses = collectSharedAddresses(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
84633
|
+
const recordsOfficeMailing = this.pickAddress(recordsOfficeAddresses, "Mailing", true) ?? this.pickAddress(registeredOfficeAddresses, "Mailing", true);
|
|
84633
84634
|
const companyEmail = task.entity.emailOptions?.[0]?.value ?? registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? // Email only: the entity may carry its Business Email on another address (e.g. Head
|
|
84634
84635
|
// Office) when no Registered Office shared address exists.
|
|
84635
84636
|
task.entity.addresses?.flatMap((a) => a.communications ?? []).find((c) => c.type === "Business Email")?.value ?? "";
|
|
@@ -84645,12 +84646,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84645
84646
|
value: this.formatFullAddress(this.pickAddress(registeredOfficeAddresses, "Delivery", true)),
|
|
84646
84647
|
disabled: true
|
|
84647
84648
|
}),
|
|
84649
|
+
// A Records Office address that is not provided is filed as "same as" (the Mailing one
|
|
84650
|
+
// follows the Registered Office, the Delivery one follows the Records Office Mailing), so
|
|
84651
|
+
// show the address the filing and the draft will use instead of "None".
|
|
84648
84652
|
[BCFormationFormControls.RecordsOfficeMailingAddress]: new FormControl({
|
|
84649
|
-
value: this.formatFullAddress(
|
|
84653
|
+
value: this.formatFullAddress(recordsOfficeMailing),
|
|
84650
84654
|
disabled: true
|
|
84651
84655
|
}),
|
|
84652
84656
|
[BCFormationFormControls.RecordsOfficeDeliveryAddress]: new FormControl({
|
|
84653
|
-
value: this.formatFullAddress(this.pickAddress(recordsOfficeAddresses, "Delivery", true)),
|
|
84657
|
+
value: this.formatFullAddress(this.pickAddress(recordsOfficeAddresses, "Delivery", true) ?? recordsOfficeMailing),
|
|
84654
84658
|
disabled: true
|
|
84655
84659
|
})
|
|
84656
84660
|
});
|
|
@@ -84948,7 +84952,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84948
84952
|
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
84949
84953
|
const pick = BritishColumbiaFormationFormHelper.pickAddress;
|
|
84950
84954
|
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84951
|
-
const companyEmail = registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? "";
|
|
84955
|
+
const companyEmail = delta?.companyEmail ?? registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? "";
|
|
84952
84956
|
const registeredMailing = format(pick(registeredOffice?.addresses, "Mailing"));
|
|
84953
84957
|
const effectiveDate = task._ext._effective_date ?? "";
|
|
84954
84958
|
const today = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
@@ -85154,19 +85158,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85154
85158
|
[Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "regDelivery", format(pick(registeredOffice?.addresses, "Delivery")))),
|
|
85155
85159
|
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.mailingAddress, true),
|
|
85156
85160
|
[Controls2.DeliverySameAsMailing]: new FormControl(regDeliverySame),
|
|
85157
|
-
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress
|
|
85161
|
+
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress, !regDeliverySame)
|
|
85158
85162
|
});
|
|
85159
85163
|
const recSameAsRegistered = seed.recordsOffice?.sameAsRegisteredOffice ?? true;
|
|
85160
85164
|
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);
|
|
85163
85165
|
config2[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress] = new FormGroup({
|
|
85164
85166
|
[Controls2.CurrentMailingAddress]: this.readOnly(this.previousText(extract, "recMailing", format(pick(recordsOffice?.addresses, "Mailing")))),
|
|
85165
85167
|
[Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "recDelivery", format(pick(recordsOffice?.addresses, "Delivery")))),
|
|
85166
85168
|
[Controls2.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
|
|
85167
|
-
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(
|
|
85169
|
+
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.mailingAddress, !recSameAsRegistered),
|
|
85168
85170
|
[Controls2.DeliverySameAsMailing]: new FormControl(recDeliverySame),
|
|
85169
|
-
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(
|
|
85171
|
+
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.deliveryAddress, !recSameAsRegistered && !recDeliverySame)
|
|
85170
85172
|
});
|
|
85171
85173
|
const grid = (group2, control) => config2[group2].get(control);
|
|
85172
85174
|
const register = (target, address) => address && incomingAddressByGrid.set(target, address);
|
|
@@ -85307,7 +85309,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85307
85309
|
addressLine2: address.additionalStreetAddress ?? "",
|
|
85308
85310
|
city: address.city ?? "",
|
|
85309
85311
|
postalCode: address.postalOrZipCode ?? "",
|
|
85310
|
-
province:
|
|
85312
|
+
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85311
85313
|
country: BC_DEFAULT_COUNTRY
|
|
85312
85314
|
};
|
|
85313
85315
|
}
|
|
@@ -85318,7 +85320,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85318
85320
|
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 ?? []);
|
|
85319
85321
|
const wanted = locationType.toLowerCase();
|
|
85320
85322
|
const address = pool.find((a) => (a.computed_location_type ?? "").toLowerCase() === wanted || (a.location_type ?? "").toLowerCase() === wanted);
|
|
85321
|
-
return address ? this.toOfficeAddressDelta(address) : void 0;
|
|
85323
|
+
return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
|
|
85322
85324
|
};
|
|
85323
85325
|
return {
|
|
85324
85326
|
regMailing: pickBy(AddressTitle2.REGISTERED_OFFICE, "Mailing"),
|
|
@@ -85335,8 +85337,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85335
85337
|
addressLine2: getAddressComponent(address, "Suite/Apartment") || address.address2 || "",
|
|
85336
85338
|
city: address.city ?? "",
|
|
85337
85339
|
postalCode: address.postal_zip ?? "",
|
|
85338
|
-
province:
|
|
85339
|
-
country:
|
|
85340
|
+
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85341
|
+
country: BC_DEFAULT_COUNTRY
|
|
85340
85342
|
};
|
|
85341
85343
|
}
|
|
85342
85344
|
/** An address with no province is accepted; the form only ever deals in British Columbia. */
|
|
@@ -85344,10 +85346,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85344
85346
|
const province = (address.province_state ?? "").trim().toLowerCase();
|
|
85345
85347
|
return !province || ["bc", "b.c.", "british columbia"].includes(province);
|
|
85346
85348
|
}
|
|
85347
|
-
static isBritishColumbiaProvince(province) {
|
|
85348
|
-
const p = (province ?? "").trim().toLowerCase();
|
|
85349
|
-
return !p || ["bc", "b.c.", "british columbia"].includes(p);
|
|
85350
|
-
}
|
|
85351
85349
|
static isSameOfficeAddress(a, b) {
|
|
85352
85350
|
const key = (x) => [x?.addressLine1, x?.addressLine2, x?.city, x?.postalCode].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
85353
85351
|
return key(a) === key(b);
|
|
@@ -85420,7 +85418,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85420
85418
|
});
|
|
85421
85419
|
|
|
85422
85420
|
// src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
|
|
85423
|
-
var Controls3, labelledValue, readOnlyRow, directorsAddedOrDeleted, isNotifyByMail, BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS,
|
|
85421
|
+
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;
|
|
85424
85422
|
var init_british_columbia_change_of_directors_form_constants = __esm({
|
|
85425
85423
|
"src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
|
|
85426
85424
|
init_form_enums();
|
|
@@ -85460,7 +85458,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85460
85458
|
class: "span-12"
|
|
85461
85459
|
}
|
|
85462
85460
|
];
|
|
85463
|
-
|
|
85461
|
+
[
|
|
85464
85462
|
{
|
|
85465
85463
|
type: FormType.Checkbox,
|
|
85466
85464
|
label: "Directors will be added and/or deleted as part of this filing",
|
|
@@ -85594,78 +85592,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85594
85592
|
\u0275\u0275elementEnd()()()();
|
|
85595
85593
|
}
|
|
85596
85594
|
if (rf & 2) {
|
|
85597
|
-
let
|
|
85598
|
-
let
|
|
85595
|
+
let tmp_8_0;
|
|
85596
|
+
let tmp_10_0;
|
|
85599
85597
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85600
85598
|
const corporationDetails_r5 = \u0275\u0275readContextLet(6);
|
|
85601
85599
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.CorporationDetails);
|
|
85602
85600
|
\u0275\u0275advance(4);
|
|
85603
85601
|
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Corporation Name"), ":");
|
|
85604
85602
|
\u0275\u0275advance(2);
|
|
85605
|
-
\u0275\u0275textInterpolate1(" ", (
|
|
85603
|
+
\u0275\u0275textInterpolate1(" ", (tmp_8_0 = corporationDetails_r5.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_8_0.value, " ");
|
|
85606
85604
|
\u0275\u0275advance(3);
|
|
85607
85605
|
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 11, "Incorporation Number"), ":");
|
|
85608
85606
|
\u0275\u0275advance(2);
|
|
85609
|
-
\u0275\u0275textInterpolate1(" ", (
|
|
85607
|
+
\u0275\u0275textInterpolate1(" ", (tmp_10_0 = corporationDetails_r5.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_10_0.value, " ");
|
|
85610
85608
|
\u0275\u0275advance(2);
|
|
85611
85609
|
\u0275\u0275property("form", corporationDetails_r5)("config", ctx_r0.companyEmailFields())("isSubmitted", ctx_r0.isSubmitted());
|
|
85612
85610
|
}
|
|
85613
85611
|
}
|
|
85614
|
-
function
|
|
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) {
|
|
85612
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
|
|
85634
85613
|
if (rf & 1) {
|
|
85635
|
-
|
|
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);
|
|
85614
|
+
\u0275\u0275elementStart(0, "span", 17);
|
|
85669
85615
|
\u0275\u0275text(1);
|
|
85670
85616
|
\u0275\u0275pipe(2, "translate");
|
|
85671
85617
|
\u0275\u0275elementEnd();
|
|
@@ -85675,9 +85621,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85675
85621
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "NEW"));
|
|
85676
85622
|
}
|
|
85677
85623
|
}
|
|
85678
|
-
function
|
|
85624
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
|
|
85679
85625
|
if (rf & 1) {
|
|
85680
|
-
\u0275\u0275elementStart(0, "span",
|
|
85626
|
+
\u0275\u0275elementStart(0, "span", 18);
|
|
85681
85627
|
\u0275\u0275text(1);
|
|
85682
85628
|
\u0275\u0275pipe(2, "translate");
|
|
85683
85629
|
\u0275\u0275elementEnd();
|
|
@@ -85687,71 +85633,71 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85687
85633
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "CEASE"));
|
|
85688
85634
|
}
|
|
85689
85635
|
}
|
|
85690
|
-
function
|
|
85636
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Template(rf, ctx) {
|
|
85691
85637
|
if (rf & 1) {
|
|
85692
|
-
\u0275\u0275elementStart(0, "div",
|
|
85638
|
+
\u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "strong");
|
|
85693
85639
|
\u0275\u0275text(3);
|
|
85694
85640
|
\u0275\u0275elementEnd();
|
|
85695
|
-
\u0275\u0275template(4,
|
|
85641
|
+
\u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 17)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 18);
|
|
85696
85642
|
\u0275\u0275elementEnd();
|
|
85697
|
-
\u0275\u0275elementStart(6, "div",
|
|
85643
|
+
\u0275\u0275elementStart(6, "div", 16);
|
|
85698
85644
|
\u0275\u0275text(7);
|
|
85699
85645
|
\u0275\u0275elementEnd();
|
|
85700
|
-
\u0275\u0275elementStart(8, "div",
|
|
85646
|
+
\u0275\u0275elementStart(8, "div", 16);
|
|
85701
85647
|
\u0275\u0275text(9);
|
|
85702
85648
|
\u0275\u0275elementEnd()();
|
|
85703
85649
|
}
|
|
85704
85650
|
if (rf & 2) {
|
|
85705
|
-
let
|
|
85651
|
+
let tmp_18_0;
|
|
85652
|
+
let tmp_21_0;
|
|
85706
85653
|
let tmp_22_0;
|
|
85707
|
-
let tmp_23_0;
|
|
85708
85654
|
\u0275\u0275nextContext();
|
|
85709
|
-
const
|
|
85655
|
+
const directorForm_r6 = \u0275\u0275readContextLet(0);
|
|
85710
85656
|
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
85711
85657
|
\u0275\u0275advance(3);
|
|
85712
|
-
\u0275\u0275textInterpolate((
|
|
85658
|
+
\u0275\u0275textInterpolate((tmp_18_0 = directorForm_r6.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_18_0.value);
|
|
85713
85659
|
\u0275\u0275advance();
|
|
85714
|
-
\u0275\u0275conditional(ctx_r0.isNewDirector(
|
|
85660
|
+
\u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r6) ? 4 : -1);
|
|
85715
85661
|
\u0275\u0275advance();
|
|
85716
|
-
\u0275\u0275conditional(ctx_r0.isCeasedDirector(
|
|
85662
|
+
\u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r6) ? 5 : -1);
|
|
85717
85663
|
\u0275\u0275advance(2);
|
|
85718
|
-
\u0275\u0275textInterpolate((
|
|
85664
|
+
\u0275\u0275textInterpolate((tmp_21_0 = directorForm_r6.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_21_0.value);
|
|
85719
85665
|
\u0275\u0275advance(2);
|
|
85720
|
-
\u0275\u0275textInterpolate((
|
|
85666
|
+
\u0275\u0275textInterpolate((tmp_22_0 = directorForm_r6.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_22_0.value);
|
|
85721
85667
|
}
|
|
85722
85668
|
}
|
|
85723
|
-
function
|
|
85669
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Template(rf, ctx) {
|
|
85724
85670
|
if (rf & 1) {
|
|
85725
85671
|
\u0275\u0275declareLet(0);
|
|
85726
|
-
\u0275\u0275template(1,
|
|
85672
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Conditional_1_Template, 10, 5, "div", 15);
|
|
85727
85673
|
}
|
|
85728
85674
|
if (rf & 2) {
|
|
85729
|
-
const \u0275$
|
|
85730
|
-
const
|
|
85675
|
+
const \u0275$index_61_r7 = ctx.$index;
|
|
85676
|
+
const directorForm_r8 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_61_r7));
|
|
85731
85677
|
\u0275\u0275advance();
|
|
85732
|
-
\u0275\u0275conditional(
|
|
85678
|
+
\u0275\u0275conditional(directorForm_r8 ? 1 : -1);
|
|
85733
85679
|
}
|
|
85734
85680
|
}
|
|
85735
|
-
function
|
|
85681
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_Template(rf, ctx) {
|
|
85736
85682
|
if (rf & 1) {
|
|
85737
|
-
\u0275\u0275elementStart(0, "div",
|
|
85683
|
+
\u0275\u0275elementStart(0, "div", 6)(1, "div", 13)(2, "div", 14);
|
|
85738
85684
|
\u0275\u0275text(3);
|
|
85739
85685
|
\u0275\u0275pipe(4, "translate");
|
|
85740
85686
|
\u0275\u0275elementEnd();
|
|
85741
|
-
\u0275\u0275elementStart(5, "div",
|
|
85687
|
+
\u0275\u0275elementStart(5, "div", 14);
|
|
85742
85688
|
\u0275\u0275text(6);
|
|
85743
85689
|
\u0275\u0275pipe(7, "translate");
|
|
85744
85690
|
\u0275\u0275elementEnd();
|
|
85745
|
-
\u0275\u0275elementStart(8, "div",
|
|
85691
|
+
\u0275\u0275elementStart(8, "div", 14);
|
|
85746
85692
|
\u0275\u0275text(9);
|
|
85747
85693
|
\u0275\u0275pipe(10, "translate");
|
|
85748
85694
|
\u0275\u0275elementEnd()();
|
|
85749
|
-
\u0275\u0275repeaterCreate(11,
|
|
85695
|
+
\u0275\u0275repeaterCreate(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_For_12_Template, 2, 2, null, null, \u0275\u0275repeaterTrackByIdentity);
|
|
85750
85696
|
\u0275\u0275elementEnd();
|
|
85751
85697
|
}
|
|
85752
85698
|
if (rf & 2) {
|
|
85753
85699
|
\u0275\u0275nextContext();
|
|
85754
|
-
const
|
|
85700
|
+
const directorsArray_r9 = \u0275\u0275readContextLet(8);
|
|
85755
85701
|
\u0275\u0275advance(3);
|
|
85756
85702
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4, 3, "Name"));
|
|
85757
85703
|
\u0275\u0275advance(3);
|
|
@@ -85759,12 +85705,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85759
85705
|
\u0275\u0275advance(3);
|
|
85760
85706
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 7, "Delivery Address"));
|
|
85761
85707
|
\u0275\u0275advance(2);
|
|
85762
|
-
\u0275\u0275repeater(
|
|
85708
|
+
\u0275\u0275repeater(directorsArray_r9.controls);
|
|
85763
85709
|
}
|
|
85764
85710
|
}
|
|
85765
|
-
function
|
|
85711
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_11_Template(rf, ctx) {
|
|
85766
85712
|
if (rf & 1) {
|
|
85767
|
-
\u0275\u0275elementStart(0, "h2",
|
|
85713
|
+
\u0275\u0275elementStart(0, "h2", 7);
|
|
85768
85714
|
\u0275\u0275text(1);
|
|
85769
85715
|
\u0275\u0275pipe(2, "translate");
|
|
85770
85716
|
\u0275\u0275elementEnd();
|
|
@@ -85774,35 +85720,35 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85774
85720
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "Unchanged"));
|
|
85775
85721
|
}
|
|
85776
85722
|
}
|
|
85777
|
-
function
|
|
85723
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
|
|
85778
85724
|
if (rf & 1) {
|
|
85779
|
-
const
|
|
85780
|
-
\u0275\u0275elementStart(0, "expandable-card",
|
|
85725
|
+
const _r10 = \u0275\u0275getCurrentView();
|
|
85726
|
+
\u0275\u0275elementStart(0, "expandable-card", 8)(1, "div", 19)(2, "p");
|
|
85781
85727
|
\u0275\u0275text(3);
|
|
85782
85728
|
\u0275\u0275pipe(4, "translate");
|
|
85783
85729
|
\u0275\u0275elementEnd();
|
|
85784
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
85785
|
-
\u0275\u0275listener("change", function
|
|
85786
|
-
\u0275\u0275restoreView(
|
|
85730
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 20);
|
|
85731
|
+
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template_mat_radio_group_change_5_listener() {
|
|
85732
|
+
\u0275\u0275restoreView(_r10);
|
|
85787
85733
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85788
|
-
const
|
|
85789
|
-
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder",
|
|
85734
|
+
const annualReportReminder_r11 = \u0275\u0275readContextLet(12);
|
|
85735
|
+
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r11.valid));
|
|
85790
85736
|
});
|
|
85791
|
-
\u0275\u0275elementStart(6, "mat-radio-button",
|
|
85737
|
+
\u0275\u0275elementStart(6, "mat-radio-button", 21);
|
|
85792
85738
|
\u0275\u0275text(7);
|
|
85793
85739
|
\u0275\u0275pipe(8, "translate");
|
|
85794
85740
|
\u0275\u0275elementEnd();
|
|
85795
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
85741
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 21);
|
|
85796
85742
|
\u0275\u0275text(10);
|
|
85797
85743
|
\u0275\u0275pipe(11, "translate");
|
|
85798
85744
|
\u0275\u0275elementEnd()()()();
|
|
85799
85745
|
}
|
|
85800
85746
|
if (rf & 2) {
|
|
85801
85747
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85802
|
-
const
|
|
85748
|
+
const annualReportReminder_r11 = \u0275\u0275readContextLet(12);
|
|
85803
85749
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
|
|
85804
85750
|
\u0275\u0275advance();
|
|
85805
|
-
\u0275\u0275property("formGroup",
|
|
85751
|
+
\u0275\u0275property("formGroup", annualReportReminder_r11);
|
|
85806
85752
|
\u0275\u0275advance(2);
|
|
85807
85753
|
\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."), " ");
|
|
85808
85754
|
\u0275\u0275advance(2);
|
|
@@ -85822,10 +85768,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85822
85768
|
"src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts"() {
|
|
85823
85769
|
init_core();
|
|
85824
85770
|
init_forms();
|
|
85825
|
-
init_checkbox();
|
|
85826
|
-
init_datepicker();
|
|
85827
|
-
init_form_field();
|
|
85828
|
-
init_input();
|
|
85829
85771
|
init_radio();
|
|
85830
85772
|
init_ngx_translate_core();
|
|
85831
85773
|
init_filing_form_group_component();
|
|
@@ -85858,7 +85800,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85858
85800
|
return BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS.map((field) => field.formControlName === this.controls.CompanyEmail ? __spreadProps(__spreadValues({}, field), { options: emailOptions }) : field);
|
|
85859
85801
|
});
|
|
85860
85802
|
companyEmailFields = computed(() => this.corporationDetailsFields().filter((field) => field.formControlName === this.controls.CompanyEmail));
|
|
85861
|
-
filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
|
|
85862
85803
|
directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
|
|
85863
85804
|
annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
85864
85805
|
initiallyOpenCardsCount = 3;
|
|
@@ -85870,11 +85811,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85870
85811
|
const annualReportReminder = this.getFormGroup(this.groups.AnnualReportReminder);
|
|
85871
85812
|
return Object.values(this.sectionValidity).every((v) => v) && !filingDetails?.invalid && !dateInvalid && !annualReportReminder?.invalid;
|
|
85872
85813
|
}
|
|
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
|
-
}
|
|
85878
85814
|
onSectionValidChange(section, valid) {
|
|
85879
85815
|
this.sectionValidity = __spreadProps(__spreadValues({}, this.sectionValidity), { [section]: valid });
|
|
85880
85816
|
this.visiblyValidChange.emit(this.isVisiblyValid());
|
|
@@ -85900,7 +85836,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85900
85836
|
static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
|
|
85901
85837
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
|
|
85902
85838
|
};
|
|
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:
|
|
85839
|
+
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: 14, vars: 12, 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"], ["role", "table", 1, "directors-table"], [1, "body-1-regular"], [3, "isStatusIcon", "isValid", "title"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "readonly-summary"], [1, "company-email-field"], [3, "visiblyValidChange", "form", "config", "isSubmitted"], ["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) {
|
|
85904
85840
|
if (rf & 1) {
|
|
85905
85841
|
\u0275\u0275elementStart(0, "div", 0);
|
|
85906
85842
|
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
@@ -85910,13 +85846,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85910
85846
|
\u0275\u0275declareLet(6);
|
|
85911
85847
|
\u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 14, 13, "expandable-card", 5);
|
|
85912
85848
|
\u0275\u0275declareLet(8);
|
|
85913
|
-
\u0275\
|
|
85914
|
-
\u0275\
|
|
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);
|
|
85849
|
+
\u0275\u0275elementStart(9, "expandable-card", 5);
|
|
85850
|
+
\u0275\u0275template(10, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_10_Template, 13, 9, "div", 6)(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_11_Template, 3, 3, "h2", 7);
|
|
85917
85851
|
\u0275\u0275elementEnd();
|
|
85918
|
-
\u0275\u0275declareLet(
|
|
85919
|
-
\u0275\u0275template(
|
|
85852
|
+
\u0275\u0275declareLet(12);
|
|
85853
|
+
\u0275\u0275template(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 12, 16, "expandable-card", 8);
|
|
85920
85854
|
\u0275\u0275elementEnd()();
|
|
85921
85855
|
}
|
|
85922
85856
|
if (rf & 2) {
|
|
@@ -85925,33 +85859,28 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85925
85859
|
\u0275\u0275advance();
|
|
85926
85860
|
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
85927
85861
|
\u0275\u0275advance(2);
|
|
85928
|
-
const
|
|
85862
|
+
const referenceNumbers_r12 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
85929
85863
|
\u0275\u0275advance();
|
|
85930
|
-
\u0275\u0275conditional(
|
|
85864
|
+
\u0275\u0275conditional(referenceNumbers_r12 ? 5 : -1);
|
|
85931
85865
|
\u0275\u0275advance();
|
|
85932
|
-
const
|
|
85866
|
+
const corporationDetails_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
85933
85867
|
\u0275\u0275advance();
|
|
85934
|
-
\u0275\u0275conditional(
|
|
85868
|
+
\u0275\u0275conditional(corporationDetails_r13 ? 7 : -1);
|
|
85935
85869
|
\u0275\u0275advance();
|
|
85936
|
-
const
|
|
85937
|
-
\u0275\u0275advance();
|
|
85938
|
-
\u0275\u0275conditional(filingDetails_r16 ? 9 : -1);
|
|
85939
|
-
\u0275\u0275advance();
|
|
85940
|
-
const directorsArray_r17 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
|
|
85870
|
+
const directorsArray_r14 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
|
|
85941
85871
|
\u0275\u0275advance();
|
|
85942
85872
|
\u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
|
|
85943
85873
|
\u0275\u0275advance();
|
|
85944
|
-
\u0275\u0275conditional(
|
|
85874
|
+
\u0275\u0275conditional(directorsArray_r14 && directorsArray_r14.length ? 10 : 11);
|
|
85945
85875
|
\u0275\u0275advance(2);
|
|
85946
|
-
const
|
|
85876
|
+
const annualReportReminder_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
85947
85877
|
\u0275\u0275advance();
|
|
85948
|
-
\u0275\u0275conditional(
|
|
85878
|
+
\u0275\u0275conditional(annualReportReminder_r15 ? 13 : -1);
|
|
85949
85879
|
}
|
|
85950
85880
|
}, dependencies: [
|
|
85951
85881
|
FilingFormGroupComponent,
|
|
85952
85882
|
AlertComponent,
|
|
85953
85883
|
ExpandableCardComponent,
|
|
85954
|
-
MatCheckbox,
|
|
85955
85884
|
MatRadioButton,
|
|
85956
85885
|
MatRadioGroup,
|
|
85957
85886
|
ReactiveFormsModule,
|
|
@@ -85969,179 +85898,118 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85969
85898
|
FilingFormGroupComponent,
|
|
85970
85899
|
AlertComponent,
|
|
85971
85900
|
ExpandableCardComponent,
|
|
85972
|
-
MatCheckbox,
|
|
85973
|
-
MatDatepicker,
|
|
85974
|
-
MatDatepickerInput,
|
|
85975
|
-
MatFormField,
|
|
85976
|
-
MatInput,
|
|
85977
85901
|
MatRadioButton,
|
|
85978
85902
|
MatRadioGroup,
|
|
85979
85903
|
ReactiveFormsModule,
|
|
85980
85904
|
TranslatePipe
|
|
85981
85905
|
], template: `<div class="change-of-directors-form">\r
|
|
85982
85906
|
@if (isNote()) {\r
|
|
85983
|
-
|
|
85984
|
-
|
|
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
|
|
85907
|
+
<alert [type]="alertType.Info" title="Entity changed"\r
|
|
85908
|
+
content="A new draft needs to be generated as the Entity was changed since the last draft was produced." />\r
|
|
85988
85909
|
}\r
|
|
85989
85910
|
\r
|
|
85990
85911
|
@if (errors().length) {\r
|
|
85991
|
-
|
|
85992
|
-
title="The following issues need to be resolved before proceeding:"\r
|
|
85993
|
-
[content]="errors()"\r
|
|
85994
|
-
/>\r
|
|
85912
|
+
<alert title="The following issues need to be resolved before proceeding:" [content]="errors()" />\r
|
|
85995
85913
|
}\r
|
|
85996
85914
|
\r
|
|
85997
85915
|
<div class="change-of-directors-form-content">\r
|
|
85998
85916
|
@let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
|
|
85999
85917
|
\r
|
|
86000
85918
|
@if (referenceNumbers) {\r
|
|
86001
|
-
|
|
86002
|
-
|
|
86003
|
-
|
|
86004
|
-
|
|
86005
|
-
[config]="referenceNumbersFields"\r
|
|
86006
|
-
(visiblyValidChange)="onSectionValidChange('refNumbers', $event)"\r
|
|
86007
|
-
/>\r
|
|
86008
|
-
</expandable-card>\r
|
|
85919
|
+
<expandable-card [title]="groups.ReferenceNumbers">\r
|
|
85920
|
+
<filing-form-group [isSubmitted]="isSubmitted()" [form]="referenceNumbers" [config]="referenceNumbersFields"\r
|
|
85921
|
+
(visiblyValidChange)="onSectionValidChange('refNumbers', $event)" />\r
|
|
85922
|
+
</expandable-card>\r
|
|
86009
85923
|
}\r
|
|
86010
85924
|
\r
|
|
86011
85925
|
@let corporationDetails = getFormGroup(groups.CorporationDetails);\r
|
|
86012
85926
|
\r
|
|
86013
85927
|
@if (corporationDetails) {\r
|
|
86014
|
-
|
|
86015
|
-
|
|
86016
|
-
|
|
86017
|
-
|
|
86018
|
-
|
|
86019
|
-
|
|
86020
|
-
|
|
86021
|
-
|
|
86022
|
-
|
|
86023
|
-
|
|
86024
|
-
|
|
86025
|
-
|
|
86026
|
-
|
|
86027
|
-
[config]="companyEmailFields()"\r
|
|
86028
|
-
[isSubmitted]="isSubmitted()"\r
|
|
86029
|
-
(visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"\r
|
|
86030
|
-
/>\r
|
|
86031
|
-
</div>\r
|
|
86032
|
-
</div>\r
|
|
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
|
|
85928
|
+
<expandable-card [isStatusIcon]="false" [title]="groups.CorporationDetails">\r
|
|
85929
|
+
<div class="readonly-summary">\r
|
|
85930
|
+
<p>\r
|
|
85931
|
+
<strong>{{ 'Corporation Name' | translate }}:</strong>\r
|
|
85932
|
+
{{ corporationDetails.get(controls.CorporationName)?.value }}\r
|
|
85933
|
+
</p>\r
|
|
85934
|
+
<p>\r
|
|
85935
|
+
<strong>{{ 'Incorporation Number' | translate }}:</strong>\r
|
|
85936
|
+
{{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
|
|
85937
|
+
</p>\r
|
|
85938
|
+
<div class="company-email-field">\r
|
|
85939
|
+
<filing-form-group [form]="corporationDetails" [config]="companyEmailFields()" [isSubmitted]="isSubmitted()"\r
|
|
85940
|
+
(visiblyValidChange)="onSectionValidChange('corporationDetails', $event)" />\r
|
|
86070
85941
|
</div>\r
|
|
86071
|
-
</
|
|
85942
|
+
</div>\r
|
|
85943
|
+
</expandable-card>\r
|
|
86072
85944
|
}\r
|
|
86073
85945
|
\r
|
|
86074
85946
|
@let directorsArray = getFormArray(groups.Directors);\r
|
|
86075
85947
|
\r
|
|
86076
85948
|
<expandable-card [isStatusIcon]="false" [title]="groups.Directors">\r
|
|
86077
85949
|
@if (directorsArray && directorsArray.length) {\r
|
|
86078
|
-
|
|
86079
|
-
|
|
86080
|
-
|
|
86081
|
-
|
|
86082
|
-
|
|
86083
|
-
|
|
85950
|
+
<div class="directors-table" role="table">\r
|
|
85951
|
+
<div class="directors-table-header" role="row">\r
|
|
85952
|
+
<div role="columnheader">{{ 'Name' | translate }}</div>\r
|
|
85953
|
+
<div role="columnheader">{{ 'Mailing Address' | translate }}</div>\r
|
|
85954
|
+
<div role="columnheader">{{ 'Delivery Address' | translate }}</div>\r
|
|
85955
|
+
</div>\r
|
|
86084
85956
|
\r
|
|
86085
|
-
|
|
86086
|
-
|
|
86087
|
-
|
|
86088
|
-
|
|
86089
|
-
|
|
86090
|
-
|
|
86091
|
-
|
|
86092
|
-
|
|
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
|
|
85957
|
+
@for (director of directorsArray.controls; track director; let i = $index) {\r
|
|
85958
|
+
@let directorForm = getDirectorForm(i);\r
|
|
85959
|
+
@if (directorForm) {\r
|
|
85960
|
+
<div class="directors-table-row" role="row">\r
|
|
85961
|
+
<div role="cell">\r
|
|
85962
|
+
<strong>{{ directorForm.get(controls.AffiliationName)?.value }}</strong>\r
|
|
85963
|
+
@if (isNewDirector(directorForm)) {\r
|
|
85964
|
+
<span class="status-pill new">{{ 'NEW' | translate }}</span>\r
|
|
86101
85965
|
}\r
|
|
86102
|
-
|
|
85966
|
+
@if (isCeasedDirector(directorForm)) {\r
|
|
85967
|
+
<span class="status-pill ceased">{{ 'CEASE' | translate }}</span>\r
|
|
85968
|
+
}\r
|
|
85969
|
+
</div>\r
|
|
85970
|
+
<div role="cell">{{ directorForm.get(controls.MailingAddress)?.value }}</div>\r
|
|
85971
|
+
<div role="cell">{{ directorForm.get(controls.DeliveryAddress)?.value }}</div>\r
|
|
86103
85972
|
</div>\r
|
|
85973
|
+
}\r
|
|
85974
|
+
}\r
|
|
85975
|
+
</div>\r
|
|
86104
85976
|
} @else {\r
|
|
86105
|
-
|
|
85977
|
+
<h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
|
|
86106
85978
|
}\r
|
|
86107
85979
|
</expandable-card>\r
|
|
86108
85980
|
\r
|
|
86109
85981
|
@let annualReportReminder = getFormGroup(groups.AnnualReportReminder);\r
|
|
86110
85982
|
\r
|
|
86111
85983
|
@if (annualReportReminder) {\r
|
|
86112
|
-
|
|
86113
|
-
|
|
86114
|
-
|
|
86115
|
-
|
|
86116
|
-
|
|
86117
|
-
|
|
86118
|
-
|
|
86119
|
-
|
|
86120
|
-
|
|
86121
|
-
|
|
86122
|
-
|
|
86123
|
-
|
|
86124
|
-
|
|
86125
|
-
|
|
86126
|
-
|
|
86127
|
-
>\r
|
|
86128
|
-
|
|
86129
|
-
|
|
86130
|
-
|
|
86131
|
-
|
|
86132
|
-
|
|
86133
|
-
|
|
86134
|
-
</mat-radio-group>\r
|
|
86135
|
-
</div>\r
|
|
86136
|
-
</expandable-card>\r
|
|
85984
|
+
<expandable-card [isStatusIcon]="!readonly()" [isValid]="sectionValidity['annualReportReminder']"\r
|
|
85985
|
+
[title]="groups.AnnualReportReminder">\r
|
|
85986
|
+
<div class="annual-reminder" [formGroup]="annualReportReminder">\r
|
|
85987
|
+
<p>\r
|
|
85988
|
+
{{\r
|
|
85989
|
+
"Does this company wish to be reminded to file its annual reports? If an email address is specified, the\r
|
|
85990
|
+
reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered\r
|
|
85991
|
+
or head office of the company."\r
|
|
85992
|
+
| translate\r
|
|
85993
|
+
}}\r
|
|
85994
|
+
</p>\r
|
|
85995
|
+
<mat-radio-group [formControlName]="controls.AnnualReportReminder"\r
|
|
85996
|
+
(change)="onSectionValidChange('annualReportReminder', annualReportReminder.valid)">\r
|
|
85997
|
+
<mat-radio-button [value]="annualReportReminderOption.Yes">\r
|
|
85998
|
+
{{ 'Yes, send the annual report reminder' | translate }}\r
|
|
85999
|
+
</mat-radio-button>\r
|
|
86000
|
+
<mat-radio-button [value]="annualReportReminderOption.No">\r
|
|
86001
|
+
{{ 'No, I do not need to be reminded' | translate }}\r
|
|
86002
|
+
</mat-radio-button>\r
|
|
86003
|
+
</mat-radio-group>\r
|
|
86004
|
+
</div>\r
|
|
86005
|
+
</expandable-card>\r
|
|
86137
86006
|
}\r
|
|
86138
86007
|
</div>\r
|
|
86139
|
-
</div
|
|
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'] }]
|
|
86008
|
+
</div>`, 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'] }]
|
|
86141
86009
|
}], null, null);
|
|
86142
86010
|
})();
|
|
86143
86011
|
(() => {
|
|
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:
|
|
86012
|
+
(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: 51 });
|
|
86145
86013
|
})();
|
|
86146
86014
|
}
|
|
86147
86015
|
});
|
|
@@ -88044,85 +87912,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88044
87912
|
return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
|
|
88045
87913
|
}
|
|
88046
87914
|
isRegisteredOfficeValid() {
|
|
88047
|
-
return !this.isRegisteredMissing()
|
|
87915
|
+
return !this.isRegisteredMissing();
|
|
88048
87916
|
}
|
|
88049
87917
|
isRecordsOfficeValid() {
|
|
88050
|
-
return !this.isRecordsMissing()
|
|
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();
|
|
87918
|
+
return !this.isRecordsMissing();
|
|
88126
87919
|
}
|
|
88127
87920
|
/** One message per missing office address, shown in the banner at the top of the form. */
|
|
88128
87921
|
missingMessages() {
|
|
@@ -88134,15 +87927,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88134
87927
|
const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
|
|
88135
87928
|
const [regMailing, regDelivery] = this.registeredRows();
|
|
88136
87929
|
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();
|
|
88141
87930
|
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."),
|
|
88146
87931
|
!regMailing.value && t("The Registered Office mailing address is missing. Add it in UEM, then try again."),
|
|
88147
87932
|
!regDelivery.value && t("The Registered Office delivery address is missing. Add it in UEM, then try again."),
|
|
88148
87933
|
// "Same as Registered Office" is already reported by the registered office messages.
|
|
@@ -88192,8 +87977,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88192
87977
|
}
|
|
88193
87978
|
buildRows(office, deliverySame) {
|
|
88194
87979
|
const current = this.currentOf(office);
|
|
88195
|
-
const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress))
|
|
88196
|
-
const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress))
|
|
87980
|
+
const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress));
|
|
87981
|
+
const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress));
|
|
88197
87982
|
return [
|
|
88198
87983
|
{
|
|
88199
87984
|
label: "Mailing Address",
|
|
@@ -88207,34 +87992,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88207
87992
|
}
|
|
88208
87993
|
];
|
|
88209
87994
|
}
|
|
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
|
-
}
|
|
88238
87995
|
currentOf(office) {
|
|
88239
87996
|
return {
|
|
88240
87997
|
mailing: office?.get(this.controls.CurrentMailingAddress)?.value ?? "",
|
|
@@ -89058,6 +88815,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89058
88815
|
const c = BCChangeOfDirectorsFormControls;
|
|
89059
88816
|
const formData = this.deltaForm().getRawValue();
|
|
89060
88817
|
const refNumbers = formData[BCChangeOfDirectorsFormGroups.ReferenceNumbers];
|
|
88818
|
+
const corporation = formData[BCChangeOfDirectorsFormGroups.CorporationDetails];
|
|
89061
88819
|
const filing = formData[BCChangeOfDirectorsFormGroups.FilingDetails];
|
|
89062
88820
|
const notification = formData[BCChangeOfDirectorsFormGroups.Notification];
|
|
89063
88821
|
const reminder = formData[BCChangeOfDirectorsFormGroups.AnnualReportReminder];
|
|
@@ -89069,6 +88827,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89069
88827
|
referenceNumber: refNumbers?.[c.ClientMatterNumber] ?? null,
|
|
89070
88828
|
docketNumber: refNumbers?.[c.DocketNumber] ?? null
|
|
89071
88829
|
},
|
|
88830
|
+
companyEmail: corporation?.[c.CompanyEmail] ?? null,
|
|
89072
88831
|
filingDetails: {
|
|
89073
88832
|
directorsAddedOrDeleted: addedOrDeleted,
|
|
89074
88833
|
changeDate: addedOrDeleted ? filing?.[c.ChangeDate] ?? null : void 0
|
|
@@ -95606,7 +95365,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95606
95365
|
const addedDirectors = [...source?.AddedDirectors ?? [], ...source?.AddDirector ?? [], ...source?.addDirectors ?? []];
|
|
95607
95366
|
const ceasedDirectors = [...source?.CeasedDirectors ?? [], ...source?.CeaseDirector ?? [], ...source?.ceaseDirectors ?? []];
|
|
95608
95367
|
const editedDirectors = [...source?.EditedDirectors ?? [], ...source?.EditDirector ?? [], ...source?.editDirectors ?? []];
|
|
95609
|
-
const companyEmail = findCompanyEmail(task);
|
|
95368
|
+
const companyEmail = deltaData.companyEmail?.trim() || findCompanyEmail(task);
|
|
95610
95369
|
const byId = new Map([
|
|
95611
95370
|
...incomingDirectors,
|
|
95612
95371
|
...outgoingDirectors
|
|
@@ -97078,35 +96837,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97078
96837
|
if (isUpdateMaintain(task)) {
|
|
97079
96838
|
this.serviceOrderId = "";
|
|
97080
96839
|
void this.getCurrentData();
|
|
97081
|
-
} else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
97082
|
-
this.bcDataExtractTaskId = "";
|
|
97083
|
-
void this.refreshBritishColumbiaCurrentDataExtract();
|
|
97084
96840
|
}
|
|
97085
96841
|
this.activeStep.set(Step.Validate);
|
|
97086
96842
|
}
|
|
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
|
-
}
|
|
97110
96843
|
parseError(errors) {
|
|
97111
96844
|
return errors.map((item) => (item["ErrorMessage"] ?? item["Message"] ?? "").toString().trim()).filter((message) => message.length > 0);
|
|
97112
96845
|
}
|
|
@@ -97257,6 +96990,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97257
96990
|
corporationNumber: task.entity._profile.corp_number ?? ""
|
|
97258
96991
|
});
|
|
97259
96992
|
}
|
|
96993
|
+
if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
96994
|
+
const validatedOrderId = deltaData.validatedData?.currentDataServiceOrderId;
|
|
96995
|
+
if (!validatedOrderId) {
|
|
96996
|
+
return void 0;
|
|
96997
|
+
}
|
|
96998
|
+
return buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData, validatedOrderId, this.currentDataExtract());
|
|
96999
|
+
}
|
|
97260
97000
|
if (isUpdateMaintain(task) && isOntarioTask(task)) {
|
|
97261
97001
|
const serviceOrderId = deltaData?.serviceOrderId ?? this.serviceOrderId;
|
|
97262
97002
|
if (!serviceOrderId) {
|
|
@@ -102087,10 +101827,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102087
101827
|
"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.",
|
|
102088
101828
|
"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.",
|
|
102089
101829
|
"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.",
|
|
102094
101830
|
"Mailing Address": "Mailing Address",
|
|
102095
101831
|
"Delivery Address": "Delivery Address",
|
|
102096
101832
|
"Current Mailing Address": "Current Mailing Address",
|
|
@@ -102453,10 +102189,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102453
102189
|
"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.",
|
|
102454
102190
|
"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.",
|
|
102455
102191
|
"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.",
|
|
102460
102192
|
"Mailing Address": "Adresse postale",
|
|
102461
102193
|
"Delivery Address": "Adresse de livraison",
|
|
102462
102194
|
"Current Mailing Address": "Adresse postale actuelle",
|
package/package.json
CHANGED