@dyedurham/search-and-file-widget 2.1.35 → 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 +177 -102
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -84149,7 +84149,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84149
84149
|
});
|
|
84150
84150
|
|
|
84151
84151
|
// src/app/constants/BritishColumbiaConstants.ts
|
|
84152
|
-
var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BCNotificationMethod, BCNotificationMethodLabel, BC_NOTIFICATION_METHOD_OPTIONS,
|
|
84152
|
+
var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BCNotificationMethod, BCNotificationMethodLabel, BC_NOTIFICATION_METHOD_OPTIONS, BCAnnualReportReminder, BCAnnualReportReminderLabel, BC_ANNUAL_REPORT_REMINDER_OPTIONS, BC_DEFAULT_PROVINCE_STATE, BC_DEFAULT_COUNTRY, BC_FUTURE_EFFECTIVE_DATE_FEE, BC_PASSWORD_MIN_LENGTH, BC_PASSWORD_MAX_LENGTH, BC_PASSWORD_PATTERN, BC_COMPANY_EMAIL_MAX_LENGTH, BC_CANADIAN_POSTAL_PATTERN, BC_NAME_RESERVATION_MAX_LENGTH, BC_NAME_RESERVATION_PATTERN, BC_COMPLETING_PARTY_COUNTRY_OPTIONS;
|
|
84153
84153
|
var init_BritishColumbiaConstants = __esm({
|
|
84154
84154
|
"src/app/constants/BritishColumbiaConstants.ts"() {
|
|
84155
84155
|
init_app_enums();
|
|
@@ -84172,7 +84172,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84172
84172
|
[BCNotificationMethod.Mail]: "Notify by mail"
|
|
84173
84173
|
};
|
|
84174
84174
|
BC_NOTIFICATION_METHOD_OPTIONS = Object.values(BCNotificationMethod).map((value) => ({ value, label: BCNotificationMethodLabel[value] }));
|
|
84175
|
-
BC_CHANGE_OF_DIRECTORS_FILING_FEE = "$21.50";
|
|
84176
84175
|
(function(BCAnnualReportReminder2) {
|
|
84177
84176
|
BCAnnualReportReminder2["Yes"] = "yes";
|
|
84178
84177
|
BCAnnualReportReminder2["No"] = "no";
|
|
@@ -84216,7 +84215,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84216
84215
|
BCChangeOfDirectorsFormControls2["CompanyEmail"] = "companyEmail";
|
|
84217
84216
|
BCChangeOfDirectorsFormControls2["DirectorsAddedOrDeleted"] = "directorsAddedOrDeleted";
|
|
84218
84217
|
BCChangeOfDirectorsFormControls2["ChangeDate"] = "changeDate";
|
|
84219
|
-
BCChangeOfDirectorsFormControls2["FilingFee"] = "filingFee";
|
|
84220
84218
|
BCChangeOfDirectorsFormControls2["RegisterAsOfDate"] = "registerAsOfDate";
|
|
84221
84219
|
BCChangeOfDirectorsFormControls2["MailingAddress"] = "mailingAddress";
|
|
84222
84220
|
BCChangeOfDirectorsFormControls2["DeliveryAddress"] = "deliveryAddress";
|
|
@@ -84968,12 +84966,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84968
84966
|
const hasAddOrCease = ceasedIds.size > 0 || incoming.filter(isDirector).length > 0;
|
|
84969
84967
|
config2[BCChangeOfDirectorsFormGroups.FilingDetails] = new FormGroup({
|
|
84970
84968
|
[Controls.DirectorsAddedOrDeleted]: new FormControl(delta?.filingDetails?.directorsAddedOrDeleted ?? hasAddOrCease),
|
|
84971
|
-
[Controls.ChangeDate]: this.readOnly(effectiveDate)
|
|
84972
|
-
[Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
|
|
84969
|
+
[Controls.ChangeDate]: this.readOnly(effectiveDate)
|
|
84973
84970
|
});
|
|
84974
84971
|
const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
|
|
84972
|
+
const savedAddIds = new Set((delta?.directorChanges?.addIds ?? []).map(String));
|
|
84973
|
+
const savedEditIds = new Set((delta?.directorChanges?.editIds ?? []).map(String));
|
|
84975
84974
|
const directors = [
|
|
84976
|
-
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
|
|
84975
|
+
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, savedEditIds.has(String(a._id)) ? IRAffiliationType.Update : savedAddIds.has(String(a._id)) ? IRAffiliationType.Add : currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
|
|
84977
84976
|
...outgoing.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Ceased))
|
|
84978
84977
|
];
|
|
84979
84978
|
const fallbackDirectors = directors.length ? [] : this.generateDirectorFormGroupsFromChangeDirectors(task);
|
|
@@ -85155,17 +85154,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85155
85154
|
[Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "regDelivery", format(pick(registeredOffice?.addresses, "Delivery")))),
|
|
85156
85155
|
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.mailingAddress, true),
|
|
85157
85156
|
[Controls2.DeliverySameAsMailing]: new FormControl(regDeliverySame),
|
|
85158
|
-
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress, !regDeliverySame)
|
|
85157
|
+
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress ?? (regDeliverySame ? seed.registeredOffice?.mailingAddress : void 0), !regDeliverySame)
|
|
85159
85158
|
});
|
|
85160
85159
|
const recSameAsRegistered = seed.recordsOffice?.sameAsRegisteredOffice ?? true;
|
|
85161
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);
|
|
85162
85163
|
config2[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress] = new FormGroup({
|
|
85163
85164
|
[Controls2.CurrentMailingAddress]: this.readOnly(this.previousText(extract, "recMailing", format(pick(recordsOffice?.addresses, "Mailing")))),
|
|
85164
85165
|
[Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "recDelivery", format(pick(recordsOffice?.addresses, "Delivery")))),
|
|
85165
85166
|
[Controls2.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
|
|
85166
|
-
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(
|
|
85167
|
+
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(recMailing, !recSameAsRegistered),
|
|
85167
85168
|
[Controls2.DeliverySameAsMailing]: new FormControl(recDeliverySame),
|
|
85168
|
-
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(
|
|
85169
|
+
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(recDelivery, !recSameAsRegistered && !recDeliverySame)
|
|
85169
85170
|
});
|
|
85170
85171
|
const grid = (group2, control) => config2[group2].get(control);
|
|
85171
85172
|
const register = (target, address) => address && incomingAddressByGrid.set(target, address);
|
|
@@ -85306,7 +85307,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85306
85307
|
addressLine2: address.additionalStreetAddress ?? "",
|
|
85307
85308
|
city: address.city ?? "",
|
|
85308
85309
|
postalCode: address.postalOrZipCode ?? "",
|
|
85309
|
-
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85310
|
+
province: address.provinceOrState || BC_DEFAULT_PROVINCE_STATE,
|
|
85310
85311
|
country: BC_DEFAULT_COUNTRY
|
|
85311
85312
|
};
|
|
85312
85313
|
}
|
|
@@ -85317,7 +85318,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85317
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 ?? []);
|
|
85318
85319
|
const wanted = locationType.toLowerCase();
|
|
85319
85320
|
const address = pool.find((a) => (a.computed_location_type ?? "").toLowerCase() === wanted || (a.location_type ?? "").toLowerCase() === wanted);
|
|
85320
|
-
return address
|
|
85321
|
+
return address ? this.toOfficeAddressDelta(address) : void 0;
|
|
85321
85322
|
};
|
|
85322
85323
|
return {
|
|
85323
85324
|
regMailing: pickBy(AddressTitle2.REGISTERED_OFFICE, "Mailing"),
|
|
@@ -85334,8 +85335,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85334
85335
|
addressLine2: getAddressComponent(address, "Suite/Apartment") || address.address2 || "",
|
|
85335
85336
|
city: address.city ?? "",
|
|
85336
85337
|
postalCode: address.postal_zip ?? "",
|
|
85337
|
-
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85338
|
-
country: BC_DEFAULT_COUNTRY
|
|
85338
|
+
province: address.province_state || BC_DEFAULT_PROVINCE_STATE,
|
|
85339
|
+
country: address.country || BC_DEFAULT_COUNTRY
|
|
85339
85340
|
};
|
|
85340
85341
|
}
|
|
85341
85342
|
/** An address with no province is accepted; the form only ever deals in British Columbia. */
|
|
@@ -85343,6 +85344,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85343
85344
|
const province = (address.province_state ?? "").trim().toLowerCase();
|
|
85344
85345
|
return !province || ["bc", "b.c.", "british columbia"].includes(province);
|
|
85345
85346
|
}
|
|
85347
|
+
static isBritishColumbiaProvince(province) {
|
|
85348
|
+
const p = (province ?? "").trim().toLowerCase();
|
|
85349
|
+
return !p || ["bc", "b.c.", "british columbia"].includes(p);
|
|
85350
|
+
}
|
|
85346
85351
|
static isSameOfficeAddress(a, b) {
|
|
85347
85352
|
const key = (x) => [x?.addressLine1, x?.addressLine2, x?.city, x?.postalCode].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
85348
85353
|
return key(a) === key(b);
|
|
@@ -85456,12 +85461,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85456
85461
|
}
|
|
85457
85462
|
];
|
|
85458
85463
|
BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS = [
|
|
85459
|
-
{
|
|
85460
|
-
type: FormType.Text,
|
|
85461
|
-
formControlName: "",
|
|
85462
|
-
class: "span-12",
|
|
85463
|
-
dynamicLabel: (_, t) => `<span class="body-1-semibold">${t("Note")}:</span> ${t("There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.")}`
|
|
85464
|
-
},
|
|
85465
85464
|
{
|
|
85466
85465
|
type: FormType.Checkbox,
|
|
85467
85466
|
label: "Directors will be added and/or deleted as part of this filing",
|
|
@@ -85474,9 +85473,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85474
85473
|
__spreadProps(__spreadValues({}, readOnlyRow("Date Directors were added or deleted", Controls3.ChangeDate, "span-8")), {
|
|
85475
85474
|
isVisible: directorsAddedOrDeleted
|
|
85476
85475
|
}),
|
|
85477
|
-
__spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls3.FilingFee, "span-4")), {
|
|
85478
|
-
isVisible: directorsAddedOrDeleted
|
|
85479
|
-
}),
|
|
85480
85476
|
{
|
|
85481
85477
|
type: FormType.Text,
|
|
85482
85478
|
formControlName: "",
|
|
@@ -85615,48 +85611,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85615
85611
|
\u0275\u0275property("form", corporationDetails_r5)("config", ctx_r0.companyEmailFields())("isSubmitted", ctx_r0.isSubmitted());
|
|
85616
85612
|
}
|
|
85617
85613
|
}
|
|
85618
|
-
function
|
|
85614
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_5_Template(rf, ctx) {
|
|
85619
85615
|
if (rf & 1) {
|
|
85620
|
-
\u0275\u0275elementStart(0, "div",
|
|
85616
|
+
\u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "p", 17);
|
|
85621
85617
|
\u0275\u0275text(3);
|
|
85622
85618
|
\u0275\u0275pipe(4, "translate");
|
|
85623
85619
|
\u0275\u0275elementStart(5, "strong");
|
|
85624
85620
|
\u0275\u0275text(6);
|
|
85625
|
-
\u0275\u0275elementEnd()()();
|
|
85626
|
-
\u0275\u0275elementStart(7, "p", 19)(8, "strong");
|
|
85627
|
-
\u0275\u0275text(9);
|
|
85628
|
-
\u0275\u0275pipe(10, "translate");
|
|
85629
|
-
\u0275\u0275elementEnd();
|
|
85630
|
-
\u0275\u0275text(11);
|
|
85631
|
-
\u0275\u0275elementEnd()();
|
|
85621
|
+
\u0275\u0275elementEnd()()()();
|
|
85632
85622
|
}
|
|
85633
85623
|
if (rf & 2) {
|
|
85634
85624
|
let tmp_8_0;
|
|
85635
|
-
let tmp_10_0;
|
|
85636
85625
|
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
85637
85626
|
const filingDetails_r7 = \u0275\u0275readContextLet(8);
|
|
85638
85627
|
\u0275\u0275advance(3);
|
|
85639
|
-
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4,
|
|
85628
|
+
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 2, "The date on which the individual(s) became or ceased to be a director:"), " ");
|
|
85640
85629
|
\u0275\u0275advance(3);
|
|
85641
85630
|
\u0275\u0275textInterpolate(ctx_r0.getEffectiveDateDisplay((tmp_8_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_8_0.value));
|
|
85642
|
-
\u0275\u0275advance(3);
|
|
85643
|
-
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 6, "Filing Fee"), ":");
|
|
85644
|
-
\u0275\u0275advance(2);
|
|
85645
|
-
\u0275\u0275textInterpolate1(" ", (tmp_10_0 = filingDetails_r7.get(ctx_r0.controls.FilingFee)) == null ? null : tmp_10_0.value, " ");
|
|
85646
85631
|
}
|
|
85647
85632
|
}
|
|
85648
85633
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
|
|
85649
85634
|
if (rf & 1) {
|
|
85650
85635
|
const _r6 = \u0275\u0275getCurrentView();
|
|
85651
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "
|
|
85652
|
-
\u0275\
|
|
85653
|
-
\u0275\u0275pipe(5, "translate");
|
|
85654
|
-
\u0275\u0275elementEnd();
|
|
85655
|
-
\u0275\u0275text(6);
|
|
85656
|
-
\u0275\u0275pipe(7, "translate");
|
|
85657
|
-
\u0275\u0275elementEnd();
|
|
85658
|
-
\u0275\u0275elementStart(8, "mat-checkbox", 15);
|
|
85659
|
-
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
|
|
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() {
|
|
85660
85638
|
let tmp_7_0;
|
|
85661
85639
|
\u0275\u0275restoreView(_r6);
|
|
85662
85640
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
@@ -85664,34 +85642,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85664
85642
|
(tmp_7_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.updateValueAndValidity({ emitEvent: false });
|
|
85665
85643
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r7.valid));
|
|
85666
85644
|
});
|
|
85667
|
-
\u0275\u0275text(
|
|
85668
|
-
\u0275\u0275pipe(
|
|
85645
|
+
\u0275\u0275text(3);
|
|
85646
|
+
\u0275\u0275pipe(4, "translate");
|
|
85669
85647
|
\u0275\u0275elementEnd();
|
|
85670
|
-
\u0275\u0275template(
|
|
85648
|
+
\u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_5_Template, 7, 4, "div", 15);
|
|
85671
85649
|
\u0275\u0275elementEnd()();
|
|
85672
85650
|
}
|
|
85673
85651
|
if (rf & 2) {
|
|
85674
|
-
let
|
|
85652
|
+
let tmp_12_0;
|
|
85675
85653
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85676
85654
|
const filingDetails_r7 = \u0275\u0275readContextLet(8);
|
|
85677
85655
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["filingDetails"])("title", ctx_r0.groups.FilingDetails);
|
|
85678
85656
|
\u0275\u0275advance();
|
|
85679
85657
|
\u0275\u0275property("formGroup", filingDetails_r7);
|
|
85680
|
-
\u0275\u0275advance(
|
|
85681
|
-
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Note"), ":");
|
|
85682
|
-
\u0275\u0275advance(2);
|
|
85683
|
-
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(7, 11, "There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing."), " ");
|
|
85684
|
-
\u0275\u0275advance(2);
|
|
85658
|
+
\u0275\u0275advance();
|
|
85685
85659
|
\u0275\u0275property("formControlName", ctx_r0.controls.DirectorsAddedOrDeleted);
|
|
85686
85660
|
\u0275\u0275advance();
|
|
85687
|
-
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(
|
|
85661
|
+
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 7, "Directors will be added and/or deleted as part of this filing"), " ");
|
|
85688
85662
|
\u0275\u0275advance(2);
|
|
85689
|
-
\u0275\u0275conditional(((
|
|
85663
|
+
\u0275\u0275conditional(((tmp_12_0 = filingDetails_r7.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_12_0.value) ? 5 : -1);
|
|
85690
85664
|
}
|
|
85691
85665
|
}
|
|
85692
85666
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
|
|
85693
85667
|
if (rf & 1) {
|
|
85694
|
-
\u0275\u0275elementStart(0, "span",
|
|
85668
|
+
\u0275\u0275elementStart(0, "span", 22);
|
|
85695
85669
|
\u0275\u0275text(1);
|
|
85696
85670
|
\u0275\u0275pipe(2, "translate");
|
|
85697
85671
|
\u0275\u0275elementEnd();
|
|
@@ -85703,7 +85677,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85703
85677
|
}
|
|
85704
85678
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
|
|
85705
85679
|
if (rf & 1) {
|
|
85706
|
-
\u0275\u0275elementStart(0, "span",
|
|
85680
|
+
\u0275\u0275elementStart(0, "span", 23);
|
|
85707
85681
|
\u0275\u0275text(1);
|
|
85708
85682
|
\u0275\u0275pipe(2, "translate");
|
|
85709
85683
|
\u0275\u0275elementEnd();
|
|
@@ -85715,15 +85689,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85715
85689
|
}
|
|
85716
85690
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
|
|
85717
85691
|
if (rf & 1) {
|
|
85718
|
-
\u0275\u0275elementStart(0, "div",
|
|
85692
|
+
\u0275\u0275elementStart(0, "div", 20)(1, "div", 21)(2, "strong");
|
|
85719
85693
|
\u0275\u0275text(3);
|
|
85720
85694
|
\u0275\u0275elementEnd();
|
|
85721
|
-
\u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span",
|
|
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);
|
|
85722
85696
|
\u0275\u0275elementEnd();
|
|
85723
|
-
\u0275\u0275elementStart(6, "div",
|
|
85697
|
+
\u0275\u0275elementStart(6, "div", 21);
|
|
85724
85698
|
\u0275\u0275text(7);
|
|
85725
85699
|
\u0275\u0275elementEnd();
|
|
85726
|
-
\u0275\u0275elementStart(8, "div",
|
|
85700
|
+
\u0275\u0275elementStart(8, "div", 21);
|
|
85727
85701
|
\u0275\u0275text(9);
|
|
85728
85702
|
\u0275\u0275elementEnd()();
|
|
85729
85703
|
}
|
|
@@ -85749,26 +85723,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85749
85723
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
|
|
85750
85724
|
if (rf & 1) {
|
|
85751
85725
|
\u0275\u0275declareLet(0);
|
|
85752
|
-
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div",
|
|
85726
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 20);
|
|
85753
85727
|
}
|
|
85754
85728
|
if (rf & 2) {
|
|
85755
|
-
const \u0275$
|
|
85756
|
-
const directorForm_r10 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$
|
|
85729
|
+
const \u0275$index_83_r9 = ctx.$index;
|
|
85730
|
+
const directorForm_r10 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_83_r9));
|
|
85757
85731
|
\u0275\u0275advance();
|
|
85758
85732
|
\u0275\u0275conditional(directorForm_r10 ? 1 : -1);
|
|
85759
85733
|
}
|
|
85760
85734
|
}
|
|
85761
85735
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
|
|
85762
85736
|
if (rf & 1) {
|
|
85763
|
-
\u0275\u0275elementStart(0, "div", 7)(1, "div",
|
|
85737
|
+
\u0275\u0275elementStart(0, "div", 7)(1, "div", 18)(2, "div", 19);
|
|
85764
85738
|
\u0275\u0275text(3);
|
|
85765
85739
|
\u0275\u0275pipe(4, "translate");
|
|
85766
85740
|
\u0275\u0275elementEnd();
|
|
85767
|
-
\u0275\u0275elementStart(5, "div",
|
|
85741
|
+
\u0275\u0275elementStart(5, "div", 19);
|
|
85768
85742
|
\u0275\u0275text(6);
|
|
85769
85743
|
\u0275\u0275pipe(7, "translate");
|
|
85770
85744
|
\u0275\u0275elementEnd();
|
|
85771
|
-
\u0275\u0275elementStart(8, "div",
|
|
85745
|
+
\u0275\u0275elementStart(8, "div", 19);
|
|
85772
85746
|
\u0275\u0275text(9);
|
|
85773
85747
|
\u0275\u0275pipe(10, "translate");
|
|
85774
85748
|
\u0275\u0275elementEnd()();
|
|
@@ -85803,22 +85777,22 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85803
85777
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
|
|
85804
85778
|
if (rf & 1) {
|
|
85805
85779
|
const _r12 = \u0275\u0275getCurrentView();
|
|
85806
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
85780
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 24)(2, "p");
|
|
85807
85781
|
\u0275\u0275text(3);
|
|
85808
85782
|
\u0275\u0275pipe(4, "translate");
|
|
85809
85783
|
\u0275\u0275elementEnd();
|
|
85810
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
85784
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 25);
|
|
85811
85785
|
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template_mat_radio_group_change_5_listener() {
|
|
85812
85786
|
\u0275\u0275restoreView(_r12);
|
|
85813
85787
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85814
85788
|
const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
|
|
85815
85789
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r13.valid));
|
|
85816
85790
|
});
|
|
85817
|
-
\u0275\u0275elementStart(6, "mat-radio-button",
|
|
85791
|
+
\u0275\u0275elementStart(6, "mat-radio-button", 26);
|
|
85818
85792
|
\u0275\u0275text(7);
|
|
85819
85793
|
\u0275\u0275pipe(8, "translate");
|
|
85820
85794
|
\u0275\u0275elementEnd();
|
|
85821
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
85795
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 26);
|
|
85822
85796
|
\u0275\u0275text(10);
|
|
85823
85797
|
\u0275\u0275pipe(11, "translate");
|
|
85824
85798
|
\u0275\u0275elementEnd()()()();
|
|
@@ -85926,7 +85900,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85926
85900
|
static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
|
|
85927
85901
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
|
|
85928
85902
|
};
|
|
85929
|
-
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, "
|
|
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) {
|
|
85930
85904
|
if (rf & 1) {
|
|
85931
85905
|
\u0275\u0275elementStart(0, "div", 0);
|
|
85932
85906
|
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
@@ -85936,7 +85910,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85936
85910
|
\u0275\u0275declareLet(6);
|
|
85937
85911
|
\u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 14, 13, "expandable-card", 5);
|
|
85938
85912
|
\u0275\u0275declareLet(8);
|
|
85939
|
-
\u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template,
|
|
85913
|
+
\u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 6, 9, "expandable-card", 6);
|
|
85940
85914
|
\u0275\u0275declareLet(10);
|
|
85941
85915
|
\u0275\u0275elementStart(11, "expandable-card", 5);
|
|
85942
85916
|
\u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 7)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 8);
|
|
@@ -86068,14 +86042,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86068
86042
|
[title]="groups.FilingDetails"\r
|
|
86069
86043
|
>\r
|
|
86070
86044
|
<div class="filing-details" [formGroup]="filingDetails">\r
|
|
86071
|
-
<div class="note-box">\r
|
|
86072
|
-
<strong>{{ 'Note' | translate }}:</strong>\r
|
|
86073
|
-
{{\r
|
|
86074
|
-
'There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.'\r
|
|
86075
|
-
| translate\r
|
|
86076
|
-
}}\r
|
|
86077
|
-
</div>\r
|
|
86078
|
-
\r
|
|
86079
86045
|
<mat-checkbox\r
|
|
86080
86046
|
class="directors-change-checkbox"\r
|
|
86081
86047
|
[formControlName]="controls.DirectorsAddedOrDeleted"\r
|
|
@@ -86099,10 +86065,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86099
86065
|
</p>\r
|
|
86100
86066
|
</div>\r
|
|
86101
86067
|
\r
|
|
86102
|
-
<p class="filing-fee">\r
|
|
86103
|
-
<strong>{{ 'Filing Fee' | translate }}:</strong>\r
|
|
86104
|
-
{{ filingDetails.get(controls.FilingFee)?.value }}\r
|
|
86105
|
-
</p>\r
|
|
86106
86068
|
</div>\r
|
|
86107
86069
|
}\r
|
|
86108
86070
|
</div>\r
|
|
@@ -88082,10 +88044,85 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88082
88044
|
return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
|
|
88083
88045
|
}
|
|
88084
88046
|
isRegisteredOfficeValid() {
|
|
88085
|
-
return !this.isRegisteredMissing();
|
|
88047
|
+
return !this.isRegisteredMissing() && !this.isRegisteredOutsideBc();
|
|
88086
88048
|
}
|
|
88087
88049
|
isRecordsOfficeValid() {
|
|
88088
|
-
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();
|
|
88089
88126
|
}
|
|
88090
88127
|
/** One message per missing office address, shown in the banner at the top of the form. */
|
|
88091
88128
|
missingMessages() {
|
|
@@ -88097,7 +88134,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88097
88134
|
const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
|
|
88098
88135
|
const [regMailing, regDelivery] = this.registeredRows();
|
|
88099
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();
|
|
88100
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."),
|
|
88101
88146
|
!regMailing.value && t("The Registered Office mailing address is missing. Add it in UEM, then try again."),
|
|
88102
88147
|
!regDelivery.value && t("The Registered Office delivery address is missing. Add it in UEM, then try again."),
|
|
88103
88148
|
// "Same as Registered Office" is already reported by the registered office messages.
|
|
@@ -88147,8 +88192,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88147
88192
|
}
|
|
88148
88193
|
buildRows(office, deliverySame) {
|
|
88149
88194
|
const current = this.currentOf(office);
|
|
88150
|
-
const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress));
|
|
88151
|
-
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;
|
|
88152
88197
|
return [
|
|
88153
88198
|
{
|
|
88154
88199
|
label: "Mailing Address",
|
|
@@ -88162,6 +88207,34 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88162
88207
|
}
|
|
88163
88208
|
];
|
|
88164
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
|
+
}
|
|
88165
88238
|
currentOf(office) {
|
|
88166
88239
|
return {
|
|
88167
88240
|
mailing: office?.get(this.controls.CurrentMailingAddress)?.value ?? "",
|
|
@@ -95346,10 +95419,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95346
95419
|
/**
|
|
95347
95420
|
* Orders the corporation's current data extract and waits until it is ready, returning the
|
|
95348
95421
|
* `currentDataServiceOrderId` that Validate Filing needs. The registry bot can take a while,
|
|
95349
|
-
* so the extract is polled every `intervalMs`
|
|
95422
|
+
* so the extract is polled every `intervalMs` until the registry returns a terminal status.
|
|
95350
95423
|
*/
|
|
95351
95424
|
ensureCurrentDataExtract(_0, _1) {
|
|
95352
|
-
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3
|
|
95425
|
+
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3 } = {}) {
|
|
95353
95426
|
ensureAuthInputs(signature);
|
|
95354
95427
|
const fetchFn = opts.fetchImpl ?? fetch;
|
|
95355
95428
|
const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
|
|
@@ -95363,7 +95436,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95363
95436
|
errors: ordered.errors?.length ? ordered.errors : (ordered.additionalInformation ?? []).map((message) => ({ message }))
|
|
95364
95437
|
}));
|
|
95365
95438
|
}
|
|
95366
|
-
for (
|
|
95439
|
+
for (; ; ) {
|
|
95367
95440
|
const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
|
|
95368
95441
|
method: "GET",
|
|
95369
95442
|
headers: __spreadValues({
|
|
@@ -95382,7 +95455,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95382
95455
|
}
|
|
95383
95456
|
yield new Promise((resolve) => setTimeout(resolve, intervalMs));
|
|
95384
95457
|
}
|
|
95385
|
-
throw new Error("BC current data extract is still processing. Please try again in a moment.");
|
|
95386
95458
|
});
|
|
95387
95459
|
}
|
|
95388
95460
|
getCurrentDataExtract() {
|
|
@@ -95629,7 +95701,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95629
95701
|
return result;
|
|
95630
95702
|
}
|
|
95631
95703
|
function normaliseDirectorName(value) {
|
|
95632
|
-
const name = value?.PersonName ?? value?.personName ?? value;
|
|
95704
|
+
const name = value?.PersonName ?? value?.personName ?? value?.participant?._profile ?? value;
|
|
95633
95705
|
return [
|
|
95634
95706
|
name?.FirstName ?? name?.firstName,
|
|
95635
95707
|
name?.MiddleName ?? name?.middleName,
|
|
@@ -96330,15 +96402,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96330
96402
|
}
|
|
96331
96403
|
}
|
|
96332
96404
|
if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
|
|
96333
|
-
if (task.deltaData?.validatedData) {
|
|
96334
|
-
this.bcCurrentDataServiceOrderId = task.deltaData.validatedData.currentDataServiceOrderId ?? "";
|
|
96335
|
-
this.bcDataExtractTaskId = task._id;
|
|
96336
|
-
return;
|
|
96337
|
-
}
|
|
96338
96405
|
const signature = this._signature();
|
|
96339
96406
|
if (!signature)
|
|
96340
96407
|
return;
|
|
96341
|
-
this.bcDataExtractTaskId = task._id;
|
|
96342
96408
|
const { request, issues } = buildBritishColumbiaDataExtractOrder(task, deltaData?.companyPassword);
|
|
96343
96409
|
if (issues.length) {
|
|
96344
96410
|
this.errors.set(issues);
|
|
@@ -96348,6 +96414,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96348
96414
|
try {
|
|
96349
96415
|
this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
|
|
96350
96416
|
this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
|
|
96417
|
+
this.bcDataExtractTaskId = task._id;
|
|
96351
96418
|
} catch (error) {
|
|
96352
96419
|
this.handleCatchError(error);
|
|
96353
96420
|
} finally {
|
|
@@ -102020,6 +102087,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102020
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.",
|
|
102021
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.",
|
|
102022
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.",
|
|
102023
102094
|
"Mailing Address": "Mailing Address",
|
|
102024
102095
|
"Delivery Address": "Delivery Address",
|
|
102025
102096
|
"Current Mailing Address": "Current Mailing Address",
|
|
@@ -102382,6 +102453,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102382
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.",
|
|
102383
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.",
|
|
102384
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.",
|
|
102385
102460
|
"Mailing Address": "Adresse postale",
|
|
102386
102461
|
"Delivery Address": "Adresse de livraison",
|
|
102387
102462
|
"Current Mailing Address": "Adresse postale actuelle",
|