@dyedurham/search-and-file-widget 2.0.95 → 2.0.96
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 +410 -259
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -57885,9 +57885,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
57885
57885
|
|
|
57886
57886
|
// src/app/utils/common.utils.ts
|
|
57887
57887
|
function buildValidationError(httpStatus, r) {
|
|
57888
|
-
const msgs = (r.Errors ?? []).map((e) => e.ErrorMessage || e.Message || e.message || e.Code || JSON.stringify(e)).filter(Boolean);
|
|
57889
|
-
|
|
57890
|
-
return new Error(msgs.length ? `eCore validation failed (HTTP ${httpStatus}, ${status}): ${msgs.join(" | ")}` : `eCore validation failed (HTTP ${httpStatus}, ${status}).`);
|
|
57888
|
+
const msgs = (r.Errors ?? r.errors ?? []).map((e) => e.ErrorMessage || e.Message || e.message || e.Code || JSON.stringify(e)).filter(Boolean);
|
|
57889
|
+
return new Error(msgs.length ? msgs.join(" | ") : "Validation failed.");
|
|
57891
57890
|
}
|
|
57892
57891
|
function joinUrl(base, path) {
|
|
57893
57892
|
const b = base.endsWith("/") ? base.slice(0, -1) : base;
|
|
@@ -57995,6 +57994,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
57995
57994
|
function isPrincipalAffiliation2(affiliation) {
|
|
57996
57995
|
return affiliation.kind === "PrincipalAffiliationV3";
|
|
57997
57996
|
}
|
|
57997
|
+
function getIndividualDirectors(affiliations) {
|
|
57998
|
+
return affiliations.filter((a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director" && a._participant?.participant_type === "person");
|
|
57999
|
+
}
|
|
57998
58000
|
function getAddressComponent(address, componentName) {
|
|
57999
58001
|
if (!address)
|
|
58000
58002
|
return "";
|
|
@@ -58109,6 +58111,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58109
58111
|
function isAnnualReturnTask(task) {
|
|
58110
58112
|
return task?._taskType === TaskType.AnnualCompliance;
|
|
58111
58113
|
}
|
|
58114
|
+
function getFilingProvider(task) {
|
|
58115
|
+
return task && !isOntarioTask(task) ? "federal" : "obr";
|
|
58116
|
+
}
|
|
58112
58117
|
function getSearchOrFilingType(task) {
|
|
58113
58118
|
if (!task) {
|
|
58114
58119
|
return void 0;
|
|
@@ -58130,7 +58135,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58130
58135
|
return `${prefix}AnnualReturn`;
|
|
58131
58136
|
}
|
|
58132
58137
|
if (isChangeOfPrincipalsTask(task)) {
|
|
58133
|
-
return `${prefix}NoticeOfChangeOfDirectors`;
|
|
58138
|
+
return prefix === "bc" ? "bcChangeOfDirectors" : `${prefix}NoticeOfChangeOfDirectors`;
|
|
58134
58139
|
}
|
|
58135
58140
|
return void 0;
|
|
58136
58141
|
}
|
|
@@ -58236,13 +58241,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58236
58241
|
return incorporator.type?.toLowerCase() === "entity" ? `${incorporator.signatory_first_name} ${incorporator.signatory_last_name} (${incorporator.signatory_title}, ${incorporator.incorporator_name})` : `${incorporator.firstName} ${incorporator.middleName} ${incorporator.lastName}`;
|
|
58237
58242
|
}
|
|
58238
58243
|
function getIndividualWithSignificantControl(affiliations) {
|
|
58239
|
-
return affiliations.filter((a) =>
|
|
58240
|
-
const isPerson = a._participant.participant_type === "person";
|
|
58241
|
-
const roleName = a.role?.role_name;
|
|
58242
|
-
const staticTitle = a.role?.static_title;
|
|
58243
|
-
const isSignificantControl = a.kind === "ShareholderAffiliationV3" || a.is_beneficial_owner || roleName === "Ultimate Beneficial Owner" || staticTitle === "Ultimate Beneficial Owner";
|
|
58244
|
-
return isPerson && isSignificantControl;
|
|
58245
|
-
});
|
|
58244
|
+
return affiliations.filter((a) => a.kind === "ShareholderAffiliationV3" && a._participant.participant_type === "person");
|
|
58246
58245
|
}
|
|
58247
58246
|
function normalizeSupportingDocuments(value) {
|
|
58248
58247
|
if (!Array.isArray(value)) {
|
|
@@ -84367,7 +84366,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84367
84366
|
}
|
|
84368
84367
|
const password = request.password ?? "";
|
|
84369
84368
|
if (password.length < BC_PASSWORD_MIN_LENGTH || password.length > BC_PASSWORD_MAX_LENGTH || !/^[A-Za-z0-9]+$/.test(password)) {
|
|
84370
|
-
issues.push(`
|
|
84369
|
+
issues.push(`The company password (taken from the entity's registry ID) must be ${BC_PASSWORD_MIN_LENGTH} to ${BC_PASSWORD_MAX_LENGTH} letters or digits only. Update the registry ID in Athennian.`);
|
|
84371
84370
|
}
|
|
84372
84371
|
return issues;
|
|
84373
84372
|
}
|
|
@@ -84759,14 +84758,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84759
84758
|
// Prefilled from the entity's Business Email when Athennian has one; otherwise the user
|
|
84760
84759
|
// enters it here (the API requires it).
|
|
84761
84760
|
[BCFormationFormControls.CompanyEmail]: new FormControl(deltaData?.companyEmail ?? companyEmail, [Validators.required, Validators.email, Validators.maxLength(BC_COMPANY_EMAIL_MAX_LENGTH)]),
|
|
84762
|
-
//
|
|
84763
|
-
//
|
|
84764
|
-
|
|
84765
|
-
|
|
84766
|
-
Validators.minLength(BC_PASSWORD_MIN_LENGTH),
|
|
84767
|
-
Validators.maxLength(BC_PASSWORD_MAX_LENGTH),
|
|
84768
|
-
Validators.pattern(BC_PASSWORD_PATTERN)
|
|
84769
|
-
]),
|
|
84761
|
+
// Not shown on screen: taken from the registry ID when it satisfies the BC password rule
|
|
84762
|
+
// (otherwise empty). No validators here, as the user cannot fix it; the payload pre-flight
|
|
84763
|
+
// check (`findBCRequestIssues`) reports an unusable value.
|
|
84764
|
+
[BCFormationFormControls.CompanyPassword]: new FormControl(deltaData?.password ?? this.suggestPassword(task.entity._profile.registry_id)),
|
|
84770
84765
|
[BCFormationFormControls.UsesNameTranslation]: new FormControl(usesNameTranslation),
|
|
84771
84766
|
[BCFormationFormControls.NameTranslations]: new FormArray(translationRows)
|
|
84772
84767
|
});
|
|
@@ -84868,6 +84863,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84868
84863
|
})
|
|
84869
84864
|
});
|
|
84870
84865
|
}
|
|
84866
|
+
/**
|
|
84867
|
+
* Company Email dropdown options: the task's `emailOptions` (distinct addresses), plus the
|
|
84868
|
+
* current value when it is not among them (a saved or fallback-prefilled address).
|
|
84869
|
+
*/
|
|
84870
|
+
static buildCompanyEmailOptions(task, currentValue) {
|
|
84871
|
+
const emails = (task?.entity.emailOptions ?? []).map((option) => option.value?.trim());
|
|
84872
|
+
const current = currentValue?.trim();
|
|
84873
|
+
return [...new Set([...emails, current].filter((email) => Boolean(email)))].map((email) => ({ label: email, value: email }));
|
|
84874
|
+
}
|
|
84871
84875
|
static suggestPassword(registryId) {
|
|
84872
84876
|
const value = registryId?.trim() ?? "";
|
|
84873
84877
|
return value.length >= BC_PASSWORD_MIN_LENGTH && value.length <= BC_PASSWORD_MAX_LENGTH && BC_PASSWORD_PATTERN.test(value) ? value : "";
|
|
@@ -84911,7 +84915,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84911
84915
|
init_british_columbia_formation_form_helper();
|
|
84912
84916
|
Controls = BCChangeOfDirectorsFormControls;
|
|
84913
84917
|
BritishColumbiaChangeOfDirectorsFormHelper = class {
|
|
84914
|
-
static generateConfig(task, _translateFn) {
|
|
84918
|
+
static generateConfig(task, _translateFn, currentDataExtract) {
|
|
84915
84919
|
const affiliations = task.entity.affiliations ?? [];
|
|
84916
84920
|
const delta = task.deltaData;
|
|
84917
84921
|
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
@@ -84940,8 +84944,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84940
84944
|
]),
|
|
84941
84945
|
[Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
|
|
84942
84946
|
});
|
|
84947
|
+
const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
|
|
84943
84948
|
const directors = [
|
|
84944
|
-
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Add)),
|
|
84949
|
+
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
|
|
84945
84950
|
...outgoing.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Ceased))
|
|
84946
84951
|
];
|
|
84947
84952
|
const fallbackDirectors = directors.length ? [] : this.generateDirectorFormGroupsFromChangeDirectors(task);
|
|
@@ -84959,6 +84964,45 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84959
84964
|
});
|
|
84960
84965
|
return config2;
|
|
84961
84966
|
}
|
|
84967
|
+
static getCurrentDirectorKeys(extract) {
|
|
84968
|
+
const keys = /* @__PURE__ */ new Set();
|
|
84969
|
+
const visit = (value) => {
|
|
84970
|
+
if (Array.isArray(value)) {
|
|
84971
|
+
value.forEach((item) => {
|
|
84972
|
+
if (item && typeof item === "object") {
|
|
84973
|
+
const record = item;
|
|
84974
|
+
const role = String(record["role"] ?? record["Role"] ?? record["position"] ?? "").toLowerCase();
|
|
84975
|
+
if (!role || role.includes("director")) {
|
|
84976
|
+
const person = record["PersonName"] ?? record["personName"] ?? record["person"] ?? record;
|
|
84977
|
+
const name = [
|
|
84978
|
+
person.firstName ?? person.FirstName,
|
|
84979
|
+
person.middleName ?? person.MiddleName,
|
|
84980
|
+
person.lastName ?? person.LastName
|
|
84981
|
+
].filter(Boolean).join(" ");
|
|
84982
|
+
const id = record["Id"] ?? record["id"] ?? record["affiliationId"] ?? record["AffiliationId"];
|
|
84983
|
+
if (id)
|
|
84984
|
+
keys.add(this.normaliseDirectorKey(id));
|
|
84985
|
+
if (name)
|
|
84986
|
+
keys.add(this.normaliseDirectorKey(name));
|
|
84987
|
+
}
|
|
84988
|
+
}
|
|
84989
|
+
visit(item);
|
|
84990
|
+
});
|
|
84991
|
+
return;
|
|
84992
|
+
}
|
|
84993
|
+
if (value && typeof value === "object") {
|
|
84994
|
+
Object.values(value).forEach(visit);
|
|
84995
|
+
}
|
|
84996
|
+
};
|
|
84997
|
+
visit(extract);
|
|
84998
|
+
return keys;
|
|
84999
|
+
}
|
|
85000
|
+
static getDirectorKey(affiliation) {
|
|
85001
|
+
return this.normaliseDirectorKey(generateTaskAffiliationFullName(affiliation));
|
|
85002
|
+
}
|
|
85003
|
+
static normaliseDirectorKey(value) {
|
|
85004
|
+
return String(value ?? "").trim().toLowerCase().replace(/\s+/g, " ");
|
|
85005
|
+
}
|
|
84962
85006
|
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber, savedClientMatterNumber) {
|
|
84963
85007
|
return new FormGroup({
|
|
84964
85008
|
[Controls.ClientMatterNumber]: new FormControl(clientMatterNumber ?? savedClientMatterNumber ?? ""),
|
|
@@ -85018,6 +85062,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85018
85062
|
const postalAddress = director?.PostalAddress ?? director?.postalAddress;
|
|
85019
85063
|
const address = postalAddress?.AddressCA ?? postalAddress?.AddressUS ?? postalAddress?.AddressINTL ?? director?.address ?? {};
|
|
85020
85064
|
return [
|
|
85065
|
+
address.streetAddress,
|
|
85066
|
+
address.additionalStreetAddress,
|
|
85021
85067
|
address.Address1 ?? address.address1,
|
|
85022
85068
|
address.Address2 ?? address.address2,
|
|
85023
85069
|
address.Address3 ?? address.address3,
|
|
@@ -85094,7 +85140,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85094
85140
|
static resolveCompanyEmail(task) {
|
|
85095
85141
|
const affiliations = task.entity.affiliations ?? [];
|
|
85096
85142
|
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85097
|
-
return task.entity.emailOptions?.[0]?.value
|
|
85143
|
+
return task.entity.emailOptions?.[0]?.value || registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value || task.entity.communications?.find((c) => c.type === "Business Email")?.value || task.entity.addresses?.flatMap((a) => a.communications ?? []).find((c) => c.type === "Business Email")?.value || "";
|
|
85098
85144
|
}
|
|
85099
85145
|
/**
|
|
85100
85146
|
* Address Line 1*, Address Line 2, City*, Postal Code*, Province (BC), Country (Canada).
|
|
@@ -85134,8 +85180,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85134
85180
|
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
|
|
85135
85181
|
return new FormGroup({
|
|
85136
85182
|
[Controls2.ClientMatterNumber]: new FormControl(
|
|
85137
|
-
//
|
|
85138
|
-
deltaData?.referenceNumber
|
|
85183
|
+
// `??`: an explicitly cleared value ('') in a saved draft must be preserved; the entity default applies only when absent.
|
|
85184
|
+
deltaData?.referenceNumber ?? clientMatterNumber ?? ""
|
|
85139
85185
|
),
|
|
85140
85186
|
[Controls2.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
|
|
85141
85187
|
});
|
|
@@ -85148,7 +85194,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85148
85194
|
});
|
|
85149
85195
|
|
|
85150
85196
|
// src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
|
|
85151
|
-
var Controls3, labelledValue, readOnlyRow, directorsAddedOrDeleted, isNotifyByMail, BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS,
|
|
85197
|
+
var Controls3, labelledValue, readOnlyRow, directorsAddedOrDeleted, isNotifyByMail, BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS, BC_COD_CARD_FORM_DIRECTORS_FIELDS, BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
85152
85198
|
var init_british_columbia_change_of_directors_form_constants = __esm({
|
|
85153
85199
|
"src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
|
|
85154
85200
|
init_form_enums();
|
|
@@ -85219,14 +85265,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85219
85265
|
dynamicLabel: (_, t) => t("The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past.")
|
|
85220
85266
|
}
|
|
85221
85267
|
];
|
|
85222
|
-
generateBCChangeOfDirectorsIntroFields = (registerAsOf) => [
|
|
85223
|
-
{
|
|
85224
|
-
type: FormType.Text,
|
|
85225
|
-
formControlName: "",
|
|
85226
|
-
class: "span-12",
|
|
85227
|
-
dynamicLabel: (_, t) => t("These are the directors on the corporate register as of {{date}}. Director appointments, cessations and changes to a director's details are made on the task before this filing \u2014 they cannot be added, ceased, or edited here. Ceasing or adding a director requires the checkbox and date in Filing Details above.").replace("{{date}}", registerAsOf)
|
|
85228
|
-
}
|
|
85229
|
-
];
|
|
85230
85268
|
BC_COD_CARD_FORM_DIRECTORS_FIELDS = [
|
|
85231
85269
|
readOnlyRow("Mailing Address - Full Address", Controls3.MailingAddress),
|
|
85232
85270
|
readOnlyRow("Delivery Address - Full Address", Controls3.DeliveryAddress)
|
|
@@ -85300,7 +85338,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85300
85338
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template(rf, ctx) {
|
|
85301
85339
|
if (rf & 1) {
|
|
85302
85340
|
const _r2 = \u0275\u0275getCurrentView();
|
|
85303
|
-
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group",
|
|
85341
|
+
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 10);
|
|
85304
85342
|
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
85305
85343
|
\u0275\u0275restoreView(_r2);
|
|
85306
85344
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
@@ -85318,7 +85356,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85318
85356
|
}
|
|
85319
85357
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template(rf, ctx) {
|
|
85320
85358
|
if (rf & 1) {
|
|
85321
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
85359
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p")(3, "strong");
|
|
85322
85360
|
\u0275\u0275text(4);
|
|
85323
85361
|
\u0275\u0275pipe(5, "translate");
|
|
85324
85362
|
\u0275\u0275elementEnd();
|
|
@@ -85361,13 +85399,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85361
85399
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template(rf, ctx) {
|
|
85362
85400
|
if (rf & 1) {
|
|
85363
85401
|
const _r7 = \u0275\u0275getCurrentView();
|
|
85364
|
-
\u0275\u0275elementStart(0, "div",
|
|
85402
|
+
\u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "label");
|
|
85365
85403
|
\u0275\u0275text(3);
|
|
85366
85404
|
\u0275\u0275pipe(4, "translate");
|
|
85367
85405
|
\u0275\u0275elementStart(5, "span");
|
|
85368
85406
|
\u0275\u0275text(6, "*");
|
|
85369
85407
|
\u0275\u0275elementEnd()();
|
|
85370
|
-
\u0275\u0275elementStart(7, "mat-form-field",
|
|
85408
|
+
\u0275\u0275elementStart(7, "mat-form-field", 17)(8, "input", 18);
|
|
85371
85409
|
\u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_click_8_listener() {
|
|
85372
85410
|
\u0275\u0275restoreView(_r7);
|
|
85373
85411
|
const changeDatePicker_r8 = \u0275\u0275reference(12);
|
|
@@ -85379,21 +85417,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85379
85417
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
|
|
85380
85418
|
});
|
|
85381
85419
|
\u0275\u0275elementEnd();
|
|
85382
|
-
\u0275\u0275elementStart(9, "button",
|
|
85420
|
+
\u0275\u0275elementStart(9, "button", 19);
|
|
85383
85421
|
\u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_button_click_9_listener() {
|
|
85384
85422
|
\u0275\u0275restoreView(_r7);
|
|
85385
85423
|
const changeDatePicker_r8 = \u0275\u0275reference(12);
|
|
85386
85424
|
return \u0275\u0275resetView(changeDatePicker_r8.open());
|
|
85387
85425
|
});
|
|
85388
|
-
\u0275\u0275element(10, "span",
|
|
85426
|
+
\u0275\u0275element(10, "span", 20);
|
|
85389
85427
|
\u0275\u0275elementEnd();
|
|
85390
85428
|
\u0275\u0275element(11, "mat-datepicker", null, 0);
|
|
85391
85429
|
\u0275\u0275elementEnd();
|
|
85392
|
-
\u0275\u0275elementStart(13, "p",
|
|
85430
|
+
\u0275\u0275elementStart(13, "p", 21);
|
|
85393
85431
|
\u0275\u0275text(14);
|
|
85394
85432
|
\u0275\u0275pipe(15, "translate");
|
|
85395
85433
|
\u0275\u0275elementEnd()();
|
|
85396
|
-
\u0275\u0275elementStart(16, "p",
|
|
85434
|
+
\u0275\u0275elementStart(16, "p", 22)(17, "strong");
|
|
85397
85435
|
\u0275\u0275text(18);
|
|
85398
85436
|
\u0275\u0275pipe(19, "translate");
|
|
85399
85437
|
\u0275\u0275elementEnd();
|
|
@@ -85420,14 +85458,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85420
85458
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
|
|
85421
85459
|
if (rf & 1) {
|
|
85422
85460
|
const _r5 = \u0275\u0275getCurrentView();
|
|
85423
|
-
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div",
|
|
85461
|
+
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 12)(2, "div", 13)(3, "strong");
|
|
85424
85462
|
\u0275\u0275text(4);
|
|
85425
85463
|
\u0275\u0275pipe(5, "translate");
|
|
85426
85464
|
\u0275\u0275elementEnd();
|
|
85427
85465
|
\u0275\u0275text(6);
|
|
85428
85466
|
\u0275\u0275pipe(7, "translate");
|
|
85429
85467
|
\u0275\u0275elementEnd();
|
|
85430
|
-
\u0275\u0275elementStart(8, "mat-checkbox",
|
|
85468
|
+
\u0275\u0275elementStart(8, "mat-checkbox", 14);
|
|
85431
85469
|
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
|
|
85432
85470
|
let tmp_7_0;
|
|
85433
85471
|
let tmp_8_0;
|
|
@@ -85441,7 +85479,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85441
85479
|
\u0275\u0275text(9);
|
|
85442
85480
|
\u0275\u0275pipe(10, "translate");
|
|
85443
85481
|
\u0275\u0275elementEnd();
|
|
85444
|
-
\u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div",
|
|
85482
|
+
\u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div", 15);
|
|
85445
85483
|
\u0275\u0275elementEnd()();
|
|
85446
85484
|
}
|
|
85447
85485
|
if (rf & 2) {
|
|
@@ -85463,9 +85501,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85463
85501
|
\u0275\u0275conditional(((tmp_14_0 = filingDetails_r6.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_14_0.value) ? 11 : -1);
|
|
85464
85502
|
}
|
|
85465
85503
|
}
|
|
85466
|
-
function
|
|
85504
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
|
|
85467
85505
|
if (rf & 1) {
|
|
85468
|
-
\u0275\u0275elementStart(0, "span",
|
|
85506
|
+
\u0275\u0275elementStart(0, "span", 27);
|
|
85469
85507
|
\u0275\u0275text(1);
|
|
85470
85508
|
\u0275\u0275pipe(2, "translate");
|
|
85471
85509
|
\u0275\u0275elementEnd();
|
|
@@ -85475,9 +85513,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85475
85513
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "NEW"));
|
|
85476
85514
|
}
|
|
85477
85515
|
}
|
|
85478
|
-
function
|
|
85516
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
|
|
85479
85517
|
if (rf & 1) {
|
|
85480
|
-
\u0275\u0275elementStart(0, "span",
|
|
85518
|
+
\u0275\u0275elementStart(0, "span", 28);
|
|
85481
85519
|
\u0275\u0275text(1);
|
|
85482
85520
|
\u0275\u0275pipe(2, "translate");
|
|
85483
85521
|
\u0275\u0275elementEnd();
|
|
@@ -85487,17 +85525,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85487
85525
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "CEASE"));
|
|
85488
85526
|
}
|
|
85489
85527
|
}
|
|
85490
|
-
function
|
|
85528
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
|
|
85491
85529
|
if (rf & 1) {
|
|
85492
|
-
\u0275\u0275elementStart(0, "div",
|
|
85530
|
+
\u0275\u0275elementStart(0, "div", 25)(1, "div", 26)(2, "strong");
|
|
85493
85531
|
\u0275\u0275text(3);
|
|
85494
85532
|
\u0275\u0275elementEnd();
|
|
85495
|
-
\u0275\u0275template(4,
|
|
85533
|
+
\u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 27)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 28);
|
|
85496
85534
|
\u0275\u0275elementEnd();
|
|
85497
|
-
\u0275\u0275elementStart(6, "div",
|
|
85535
|
+
\u0275\u0275elementStart(6, "div", 26);
|
|
85498
85536
|
\u0275\u0275text(7);
|
|
85499
85537
|
\u0275\u0275elementEnd();
|
|
85500
|
-
\u0275\u0275elementStart(8, "div",
|
|
85538
|
+
\u0275\u0275elementStart(8, "div", 26);
|
|
85501
85539
|
\u0275\u0275text(9);
|
|
85502
85540
|
\u0275\u0275elementEnd()();
|
|
85503
85541
|
}
|
|
@@ -85520,33 +85558,33 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85520
85558
|
\u0275\u0275textInterpolate((tmp_23_0 = directorForm_r9.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
|
|
85521
85559
|
}
|
|
85522
85560
|
}
|
|
85523
|
-
function
|
|
85561
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
|
|
85524
85562
|
if (rf & 1) {
|
|
85525
85563
|
\u0275\u0275declareLet(0);
|
|
85526
|
-
\u0275\u0275template(1,
|
|
85564
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 25);
|
|
85527
85565
|
}
|
|
85528
85566
|
if (rf & 2) {
|
|
85529
|
-
const \u0275$
|
|
85530
|
-
const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$
|
|
85567
|
+
const \u0275$index_115_r10 = ctx.$index;
|
|
85568
|
+
const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_115_r10));
|
|
85531
85569
|
\u0275\u0275advance();
|
|
85532
85570
|
\u0275\u0275conditional(directorForm_r11 ? 1 : -1);
|
|
85533
85571
|
}
|
|
85534
85572
|
}
|
|
85535
|
-
function
|
|
85573
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
|
|
85536
85574
|
if (rf & 1) {
|
|
85537
|
-
\u0275\u0275elementStart(0, "div",
|
|
85575
|
+
\u0275\u0275elementStart(0, "div", 8)(1, "div", 23)(2, "div", 24);
|
|
85538
85576
|
\u0275\u0275text(3);
|
|
85539
85577
|
\u0275\u0275pipe(4, "translate");
|
|
85540
85578
|
\u0275\u0275elementEnd();
|
|
85541
|
-
\u0275\u0275elementStart(5, "div",
|
|
85579
|
+
\u0275\u0275elementStart(5, "div", 24);
|
|
85542
85580
|
\u0275\u0275text(6);
|
|
85543
85581
|
\u0275\u0275pipe(7, "translate");
|
|
85544
85582
|
\u0275\u0275elementEnd();
|
|
85545
|
-
\u0275\u0275elementStart(8, "div",
|
|
85583
|
+
\u0275\u0275elementStart(8, "div", 24);
|
|
85546
85584
|
\u0275\u0275text(9);
|
|
85547
85585
|
\u0275\u0275pipe(10, "translate");
|
|
85548
85586
|
\u0275\u0275elementEnd()();
|
|
85549
|
-
\u0275\u0275repeaterCreate(11,
|
|
85587
|
+
\u0275\u0275repeaterCreate(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template, 2, 2, null, null, \u0275\u0275repeaterTrackByIdentity);
|
|
85550
85588
|
\u0275\u0275elementEnd();
|
|
85551
85589
|
}
|
|
85552
85590
|
if (rf & 2) {
|
|
@@ -85562,9 +85600,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85562
85600
|
\u0275\u0275repeater(directorsArray_r12.controls);
|
|
85563
85601
|
}
|
|
85564
85602
|
}
|
|
85565
|
-
function
|
|
85603
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
|
|
85566
85604
|
if (rf & 1) {
|
|
85567
|
-
\u0275\u0275elementStart(0, "h2",
|
|
85605
|
+
\u0275\u0275elementStart(0, "h2", 9);
|
|
85568
85606
|
\u0275\u0275text(1);
|
|
85569
85607
|
\u0275\u0275pipe(2, "translate");
|
|
85570
85608
|
\u0275\u0275elementEnd();
|
|
@@ -85574,32 +85612,32 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85574
85612
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "Unchanged"));
|
|
85575
85613
|
}
|
|
85576
85614
|
}
|
|
85577
|
-
function
|
|
85615
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
|
|
85578
85616
|
if (rf & 1) {
|
|
85579
85617
|
const _r13 = \u0275\u0275getCurrentView();
|
|
85580
|
-
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div",
|
|
85618
|
+
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 29)(2, "p");
|
|
85581
85619
|
\u0275\u0275text(3);
|
|
85582
85620
|
\u0275\u0275pipe(4, "translate");
|
|
85583
85621
|
\u0275\u0275elementEnd();
|
|
85584
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
85585
|
-
\u0275\u0275listener("change", function
|
|
85622
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 30);
|
|
85623
|
+
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template_mat_radio_group_change_5_listener() {
|
|
85586
85624
|
\u0275\u0275restoreView(_r13);
|
|
85587
85625
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85588
|
-
const annualReportReminder_r14 = \u0275\u0275readContextLet(
|
|
85626
|
+
const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
|
|
85589
85627
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r14.valid));
|
|
85590
85628
|
});
|
|
85591
|
-
\u0275\u0275elementStart(6, "mat-radio-button",
|
|
85629
|
+
\u0275\u0275elementStart(6, "mat-radio-button", 31);
|
|
85592
85630
|
\u0275\u0275text(7);
|
|
85593
85631
|
\u0275\u0275pipe(8, "translate");
|
|
85594
85632
|
\u0275\u0275elementEnd();
|
|
85595
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
85633
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 31);
|
|
85596
85634
|
\u0275\u0275text(10);
|
|
85597
85635
|
\u0275\u0275pipe(11, "translate");
|
|
85598
85636
|
\u0275\u0275elementEnd()()()();
|
|
85599
85637
|
}
|
|
85600
85638
|
if (rf & 2) {
|
|
85601
85639
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85602
|
-
const annualReportReminder_r14 = \u0275\u0275readContextLet(
|
|
85640
|
+
const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
|
|
85603
85641
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
|
|
85604
85642
|
\u0275\u0275advance();
|
|
85605
85643
|
\u0275\u0275property("formGroup", annualReportReminder_r14);
|
|
@@ -85654,10 +85692,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85654
85692
|
filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
|
|
85655
85693
|
directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
|
|
85656
85694
|
annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
85657
|
-
directorsIntroFields = computed(() => {
|
|
85658
|
-
const date = this.form().get(this.groups.Notification)?.get(this.controls.RegisterAsOfDate)?.value ?? "";
|
|
85659
|
-
return generateBCChangeOfDirectorsIntroFields(date);
|
|
85660
|
-
});
|
|
85661
85695
|
initiallyOpenCardsCount = 3;
|
|
85662
85696
|
sectionValidity = {};
|
|
85663
85697
|
isVisiblyValid() {
|
|
@@ -85692,7 +85726,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85692
85726
|
static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
|
|
85693
85727
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
|
|
85694
85728
|
};
|
|
85695
|
-
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:
|
|
85729
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfDirectorsFormComponent, selectors: [["british-columbia-change-of-directors-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 16, vars: 14, consts: [["changeDatePicker", ""], [1, "change-of-directors-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "change-of-directors-form-content"], [3, "title"], [3, "isStatusIcon", "title"], [3, "isStatusIcon", "isValid", "title"], ["role", "table", 1, "directors-table"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "readonly-summary"], [1, "filing-details", 3, "formGroup"], [1, "note-box"], [1, "directors-change-checkbox", 3, "change", "formControlName"], [1, "filing-details-grid"], [1, "date-field"], ["appearance", "outline"], ["matInput", "", "placeholder", "dd/mm/yyyy", "readonly", "", 3, "click", "dateChange", "matDatepicker", "formControlName"], ["type", "button", "aria-label", "Open date picker", 1, "calendar-trigger", 3, "click"], ["aria-hidden", "true", 1, "calendar-icon"], [1, "hint"], [1, "filing-fee"], ["role", "row", 1, "directors-table-header"], ["role", "columnheader"], ["role", "row", 1, "directors-table-row"], ["role", "cell"], [1, "status-pill", "new"], [1, "status-pill", "ceased"], [1, "annual-reminder", 3, "formGroup"], [3, "change", "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfDirectorsFormComponent_Template(rf, ctx) {
|
|
85696
85730
|
if (rf & 1) {
|
|
85697
85731
|
\u0275\u0275elementStart(0, "div", 1);
|
|
85698
85732
|
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 2)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 3);
|
|
@@ -85705,11 +85739,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85705
85739
|
\u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 7);
|
|
85706
85740
|
\u0275\u0275declareLet(10);
|
|
85707
85741
|
\u0275\u0275elementStart(11, "expandable-card", 6);
|
|
85708
|
-
\u0275\
|
|
85709
|
-
\u0275\u0275template(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 13, 9, "div", 9)(14, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_14_Template, 3, 3, "h2", 10);
|
|
85742
|
+
\u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 8)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 9);
|
|
85710
85743
|
\u0275\u0275elementEnd();
|
|
85711
|
-
\u0275\u0275declareLet(
|
|
85712
|
-
\u0275\u0275template(
|
|
85744
|
+
\u0275\u0275declareLet(14);
|
|
85745
|
+
\u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 7);
|
|
85713
85746
|
\u0275\u0275elementEnd()();
|
|
85714
85747
|
}
|
|
85715
85748
|
if (rf & 2) {
|
|
@@ -85734,13 +85767,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85734
85767
|
\u0275\u0275advance();
|
|
85735
85768
|
\u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
|
|
85736
85769
|
\u0275\u0275advance();
|
|
85737
|
-
\u0275\
|
|
85738
|
-
\u0275\u0275advance();
|
|
85739
|
-
\u0275\u0275conditional(directorsArray_r18 && directorsArray_r18.length ? 13 : 14);
|
|
85770
|
+
\u0275\u0275conditional(directorsArray_r18 && directorsArray_r18.length ? 12 : 13);
|
|
85740
85771
|
\u0275\u0275advance(2);
|
|
85741
85772
|
const annualReportReminder_r19 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
85742
85773
|
\u0275\u0275advance();
|
|
85743
|
-
\u0275\u0275conditional(annualReportReminder_r19 ?
|
|
85774
|
+
\u0275\u0275conditional(annualReportReminder_r19 ? 15 : -1);
|
|
85744
85775
|
}
|
|
85745
85776
|
}, dependencies: [
|
|
85746
85777
|
FilingFormGroupComponent,
|
|
@@ -85910,12 +85941,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85910
85941
|
@let directorsArray = getFormArray(groups.Directors);\r
|
|
85911
85942
|
\r
|
|
85912
85943
|
<expandable-card [isStatusIcon]="false" [title]="groups.Directors">\r
|
|
85913
|
-
<filing-form-group\r
|
|
85914
|
-
[isSubmitted]="isSubmitted()"\r
|
|
85915
|
-
[form]="form()"\r
|
|
85916
|
-
[config]="directorsIntroFields()"\r
|
|
85917
|
-
/>\r
|
|
85918
|
-
\r
|
|
85919
85944
|
@if (directorsArray && directorsArray.length) {\r
|
|
85920
85945
|
<div class="directors-table" role="table">\r
|
|
85921
85946
|
<div class="directors-table-header" role="row">\r
|
|
@@ -85983,7 +86008,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85983
86008
|
}], null, null);
|
|
85984
86009
|
})();
|
|
85985
86010
|
(() => {
|
|
85986
|
-
(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:
|
|
86011
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfDirectorsFormComponent, { className: "BritishColumbiaChangeOfDirectorsFormComponent", filePath: "src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts", lineNumber: 59 });
|
|
85987
86012
|
})();
|
|
85988
86013
|
}
|
|
85989
86014
|
});
|
|
@@ -86291,27 +86316,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86291
86316
|
dynamicLabel: (_, t) => t("There is an additional fee of {{fee}} for an effective date in the future.").replace("{{fee}}", BC_FUTURE_EFFECTIVE_DATE_FEE)
|
|
86292
86317
|
},
|
|
86293
86318
|
{
|
|
86294
|
-
|
|
86295
|
-
|
|
86319
|
+
// Options are filled per task from `task.entity.emailOptions` by the incorporation form.
|
|
86320
|
+
type: FormType.Select,
|
|
86296
86321
|
label: "Company Email",
|
|
86297
86322
|
formControlName: BCFormationFormControls.CompanyEmail,
|
|
86298
86323
|
required: true,
|
|
86299
|
-
|
|
86300
|
-
errorMessage: "Enter a valid email address",
|
|
86301
|
-
showRequiredMessage: true,
|
|
86302
|
-
class: "span-6"
|
|
86303
|
-
},
|
|
86304
|
-
{
|
|
86305
|
-
type: FormType.Input,
|
|
86306
|
-
inputType: "password",
|
|
86307
|
-
label: "Company Password",
|
|
86308
|
-
formControlName: BCFormationFormControls.CompanyPassword,
|
|
86309
|
-
required: true,
|
|
86310
|
-
maxLength: BC_PASSWORD_MAX_LENGTH,
|
|
86311
|
-
errorMessage: "Company Password must be 8 to 15 characters",
|
|
86312
|
-
showRequiredMessage: true,
|
|
86324
|
+
options: [],
|
|
86313
86325
|
class: "span-6"
|
|
86314
86326
|
}
|
|
86327
|
+
// The company password is not shown: it is taken from the entity's registry ID.
|
|
86315
86328
|
];
|
|
86316
86329
|
BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS = [
|
|
86317
86330
|
{
|
|
@@ -86670,7 +86683,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86670
86683
|
const corporationDetails_r11 = \u0275\u0275readContextLet(6);
|
|
86671
86684
|
\u0275\u0275property("isValid", ctx_r0.sectionValidity["corpDetails"] && ctx_r0.sectionValidity["nameTranslation"] && ctx_r0.areNameTranslationsValid())("isStatusIcon", ctx_r0.statusIcon())("title", ctx_r0.groups.CorporationDetails);
|
|
86672
86685
|
\u0275\u0275advance(2);
|
|
86673
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r11)("config", ctx_r0.corporationDetailsFields);
|
|
86686
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r11)("config", ctx_r0.corporationDetailsFields());
|
|
86674
86687
|
\u0275\u0275advance(2);
|
|
86675
86688
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(5, 11, "Name Translation"));
|
|
86676
86689
|
\u0275\u0275advance(2);
|
|
@@ -86905,7 +86918,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86905
86918
|
groups = BCFormationFormGroups;
|
|
86906
86919
|
controls = BCFormationFormControls;
|
|
86907
86920
|
referenceNumbersFields = BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS;
|
|
86908
|
-
|
|
86921
|
+
/** Corporation Details fields, with the Company Email dropdown filled from the task. */
|
|
86922
|
+
corporationDetailsFields = computed(() => {
|
|
86923
|
+
const currentEmail = this.form().get(this.groups.CorporationDetails)?.get(this.controls.CompanyEmail)?.value;
|
|
86924
|
+
const emailOptions = BritishColumbiaFormationFormHelper.buildCompanyEmailOptions(this.task(), currentEmail);
|
|
86925
|
+
return BC_FORMATION_DELTA_CARD_FORM_CORPORATION_DETAILS_FIELDS.map((field) => field.formControlName === this.controls.CompanyEmail ? __spreadProps(__spreadValues({}, field), { options: emailOptions }) : field);
|
|
86926
|
+
});
|
|
86909
86927
|
nameTranslationFields = BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS;
|
|
86910
86928
|
nameTranslationRowFields = BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS;
|
|
86911
86929
|
registeredOfficeFields = BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS;
|
|
@@ -87095,7 +87113,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87095
87113
|
<filing-form-group\r
|
|
87096
87114
|
[isSubmitted]="isSubmitted()"\r
|
|
87097
87115
|
[form]="corporationDetails"\r
|
|
87098
|
-
[config]="corporationDetailsFields"\r
|
|
87116
|
+
[config]="corporationDetailsFields()"\r
|
|
87099
87117
|
(visiblyValidChange)="onSectionValidChange('corpDetails', $event)"\r
|
|
87100
87118
|
/>\r
|
|
87101
87119
|
\r
|
|
@@ -88404,7 +88422,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88404
88422
|
function BritishColumbiaComponent_Conditional_1_Conditional_0_Template(rf, ctx) {
|
|
88405
88423
|
if (rf & 1) {
|
|
88406
88424
|
const _r1 = \u0275\u0275getCurrentView();
|
|
88407
|
-
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-delta-form",
|
|
88425
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-delta-form", 2);
|
|
88408
88426
|
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_1_Conditional_0_Template_british_columbia_change_of_directors_delta_form_validate_0_listener() {
|
|
88409
88427
|
\u0275\u0275restoreView(_r1);
|
|
88410
88428
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
@@ -88429,7 +88447,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88429
88447
|
function BritishColumbiaComponent_Conditional_1_Conditional_1_Template(rf, ctx) {
|
|
88430
88448
|
if (rf & 1) {
|
|
88431
88449
|
const _r4 = \u0275\u0275getCurrentView();
|
|
88432
|
-
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-preview-form",
|
|
88450
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-preview-form", 3);
|
|
88433
88451
|
\u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_change_of_directors_preview_form_close_0_listener() {
|
|
88434
88452
|
\u0275\u0275restoreView(_r4);
|
|
88435
88453
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
@@ -88437,7 +88455,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88437
88455
|
})("file", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_change_of_directors_preview_form_file_0_listener() {
|
|
88438
88456
|
\u0275\u0275restoreView(_r4);
|
|
88439
88457
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88440
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
88458
|
+
return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsSubmit());
|
|
88441
88459
|
});
|
|
88442
88460
|
\u0275\u0275elementEnd();
|
|
88443
88461
|
}
|
|
@@ -88447,57 +88465,31 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88447
88465
|
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors());
|
|
88448
88466
|
}
|
|
88449
88467
|
}
|
|
88450
|
-
function BritishColumbiaComponent_Conditional_1_Conditional_2_Template(rf, ctx) {
|
|
88451
|
-
if (rf & 1) {
|
|
88452
|
-
const _r5 = \u0275\u0275getCurrentView();
|
|
88453
|
-
\u0275\u0275elementStart(0, "terms-and-conditions", 5);
|
|
88454
|
-
\u0275\u0275listener("prev", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_prev_0_listener() {
|
|
88455
|
-
\u0275\u0275restoreView(_r5);
|
|
88456
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88457
|
-
return \u0275\u0275resetView(ctx_r1.prevStep.emit());
|
|
88458
|
-
})("close", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_close_0_listener() {
|
|
88459
|
-
\u0275\u0275restoreView(_r5);
|
|
88460
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88461
|
-
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
88462
|
-
})("confirm", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_confirm_0_listener($event) {
|
|
88463
|
-
\u0275\u0275restoreView(_r5);
|
|
88464
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88465
|
-
return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsSubmit($event));
|
|
88466
|
-
});
|
|
88467
|
-
\u0275\u0275elementEnd();
|
|
88468
|
-
}
|
|
88469
|
-
if (rf & 2) {
|
|
88470
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88471
|
-
\u0275\u0275property("errors", ctx_r1.errors());
|
|
88472
|
-
}
|
|
88473
|
-
}
|
|
88474
88468
|
function BritishColumbiaComponent_Conditional_1_Template(rf, ctx) {
|
|
88475
88469
|
if (rf & 1) {
|
|
88476
|
-
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_1_Conditional_0_Template, 1, 5, "british-columbia-change-of-directors-delta-form", 0)(1, BritishColumbiaComponent_Conditional_1_Conditional_1_Template, 1, 4, "british-columbia-change-of-directors-preview-form", 1)
|
|
88470
|
+
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_1_Conditional_0_Template, 1, 5, "british-columbia-change-of-directors-delta-form", 0)(1, BritishColumbiaComponent_Conditional_1_Conditional_1_Template, 1, 4, "british-columbia-change-of-directors-preview-form", 1);
|
|
88477
88471
|
}
|
|
88478
88472
|
if (rf & 2) {
|
|
88479
88473
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
88480
88474
|
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.Validate ? 0 : -1);
|
|
88481
88475
|
\u0275\u0275advance();
|
|
88482
88476
|
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
|
|
88483
|
-
\u0275\u0275advance();
|
|
88484
|
-
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.TermsAndConditions ? 2 : -1);
|
|
88485
88477
|
}
|
|
88486
88478
|
}
|
|
88487
88479
|
function BritishColumbiaComponent_Conditional_2_Conditional_0_Template(rf, ctx) {
|
|
88488
88480
|
if (rf & 1) {
|
|
88489
|
-
const
|
|
88490
|
-
\u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form",
|
|
88481
|
+
const _r5 = \u0275\u0275getCurrentView();
|
|
88482
|
+
\u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form", 6);
|
|
88491
88483
|
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_validate_0_listener() {
|
|
88492
|
-
\u0275\u0275restoreView(
|
|
88484
|
+
\u0275\u0275restoreView(_r5);
|
|
88493
88485
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88494
88486
|
return \u0275\u0275resetView(ctx_r1.onFormationValidate());
|
|
88495
88487
|
})("close", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_close_0_listener() {
|
|
88496
|
-
\u0275\u0275restoreView(
|
|
88488
|
+
\u0275\u0275restoreView(_r5);
|
|
88497
88489
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88498
88490
|
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
88499
88491
|
})("save", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_save_0_listener() {
|
|
88500
|
-
\u0275\u0275restoreView(
|
|
88492
|
+
\u0275\u0275restoreView(_r5);
|
|
88501
88493
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88502
88494
|
return \u0275\u0275resetView(ctx_r1.onFormationSave());
|
|
88503
88495
|
});
|
|
@@ -88511,14 +88503,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88511
88503
|
}
|
|
88512
88504
|
function BritishColumbiaComponent_Conditional_2_Conditional_1_Template(rf, ctx) {
|
|
88513
88505
|
if (rf & 1) {
|
|
88514
|
-
const
|
|
88515
|
-
\u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form",
|
|
88506
|
+
const _r6 = \u0275\u0275getCurrentView();
|
|
88507
|
+
\u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 7);
|
|
88516
88508
|
\u0275\u0275listener("next", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_next_0_listener() {
|
|
88517
|
-
\u0275\u0275restoreView(
|
|
88509
|
+
\u0275\u0275restoreView(_r6);
|
|
88518
88510
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88519
88511
|
return \u0275\u0275resetView(ctx_r1.onFormationSubmit());
|
|
88520
88512
|
})("close", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_close_0_listener() {
|
|
88521
|
-
\u0275\u0275restoreView(
|
|
88513
|
+
\u0275\u0275restoreView(_r6);
|
|
88522
88514
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88523
88515
|
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
88524
88516
|
});
|
|
@@ -88532,7 +88524,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88532
88524
|
}
|
|
88533
88525
|
function BritishColumbiaComponent_Conditional_2_Template(rf, ctx) {
|
|
88534
88526
|
if (rf & 1) {
|
|
88535
|
-
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_2_Conditional_0_Template, 1, 5, "british-columbia-incorporation-delta-form",
|
|
88527
|
+
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_2_Conditional_0_Template, 1, 5, "british-columbia-incorporation-delta-form", 4)(1, BritishColumbiaComponent_Conditional_2_Conditional_1_Template, 1, 4, "british-columbia-incorporation-preview-form", 5);
|
|
88536
88528
|
}
|
|
88537
88529
|
if (rf & 2) {
|
|
88538
88530
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
@@ -88543,18 +88535,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88543
88535
|
}
|
|
88544
88536
|
function BritishColumbiaComponent_Conditional_3_Conditional_0_Template(rf, ctx) {
|
|
88545
88537
|
if (rf & 1) {
|
|
88546
|
-
const
|
|
88547
|
-
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-delta-form",
|
|
88538
|
+
const _r7 = \u0275\u0275getCurrentView();
|
|
88539
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-delta-form", 2);
|
|
88548
88540
|
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_validate_0_listener() {
|
|
88549
|
-
\u0275\u0275restoreView(
|
|
88541
|
+
\u0275\u0275restoreView(_r7);
|
|
88550
88542
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88551
88543
|
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesValidate());
|
|
88552
88544
|
})("close", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_close_0_listener() {
|
|
88553
|
-
\u0275\u0275restoreView(
|
|
88545
|
+
\u0275\u0275restoreView(_r7);
|
|
88554
88546
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88555
88547
|
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
88556
88548
|
})("save", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_save_0_listener() {
|
|
88557
|
-
\u0275\u0275restoreView(
|
|
88549
|
+
\u0275\u0275restoreView(_r7);
|
|
88558
88550
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88559
88551
|
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesSave());
|
|
88560
88552
|
});
|
|
@@ -88568,14 +88560,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88568
88560
|
}
|
|
88569
88561
|
function BritishColumbiaComponent_Conditional_3_Conditional_1_Template(rf, ctx) {
|
|
88570
88562
|
if (rf & 1) {
|
|
88571
|
-
const
|
|
88572
|
-
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-preview-form",
|
|
88563
|
+
const _r8 = \u0275\u0275getCurrentView();
|
|
88564
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-preview-form", 3);
|
|
88573
88565
|
\u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_close_0_listener() {
|
|
88574
|
-
\u0275\u0275restoreView(
|
|
88566
|
+
\u0275\u0275restoreView(_r8);
|
|
88575
88567
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88576
88568
|
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
88577
88569
|
})("file", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_file_0_listener() {
|
|
88578
|
-
\u0275\u0275restoreView(
|
|
88570
|
+
\u0275\u0275restoreView(_r8);
|
|
88579
88571
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88580
88572
|
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesFile());
|
|
88581
88573
|
});
|
|
@@ -88614,7 +88606,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88614
88606
|
init_delta_state_service();
|
|
88615
88607
|
init_common_utils();
|
|
88616
88608
|
init_confirm_modal_component();
|
|
88617
|
-
init_terms_and_conditions_component();
|
|
88618
88609
|
init_change_of_directors_delta_form_component();
|
|
88619
88610
|
init_change_of_directors_preview_form_component();
|
|
88620
88611
|
init_british_columbia_incorporation_delta_form_component();
|
|
@@ -88629,6 +88620,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88629
88620
|
isNote = input(false);
|
|
88630
88621
|
actionsDisabled = input(false);
|
|
88631
88622
|
errors = input([]);
|
|
88623
|
+
currentDataExtract = input();
|
|
88632
88624
|
close = output();
|
|
88633
88625
|
codValidate = output();
|
|
88634
88626
|
saveCodDeltaData = output();
|
|
@@ -88637,6 +88629,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88637
88629
|
formationSubmit = output();
|
|
88638
88630
|
saveFormationDeltaData = output();
|
|
88639
88631
|
nextStep = output();
|
|
88632
|
+
recheckStep = output();
|
|
88640
88633
|
prevStep = output();
|
|
88641
88634
|
// Change of Office Addresses outputs
|
|
88642
88635
|
coaValidate = output();
|
|
@@ -88655,7 +88648,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88655
88648
|
effect(() => {
|
|
88656
88649
|
const task = this.task();
|
|
88657
88650
|
if (task && isChangeOfPrincipalsTask(task)) {
|
|
88658
|
-
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key))));
|
|
88651
|
+
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract())));
|
|
88659
88652
|
this.deltaState.setBCChangeOfDirectorsInitialDelta(this.generateChangeOfDirectorsDeltaData());
|
|
88660
88653
|
}
|
|
88661
88654
|
if (task && isFormationTask2(task)) {
|
|
@@ -88674,7 +88667,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88674
88667
|
return;
|
|
88675
88668
|
}
|
|
88676
88669
|
if (isChangeOfPrincipalsTask(task)) {
|
|
88677
|
-
const form = new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
|
|
88670
|
+
const form = new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract()));
|
|
88678
88671
|
form.disable();
|
|
88679
88672
|
this.previewForm.set(form);
|
|
88680
88673
|
if (untracked2(() => this.activeStep()) === Step.Validate) {
|
|
@@ -88693,8 +88686,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88693
88686
|
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
|
|
88694
88687
|
form.disable();
|
|
88695
88688
|
this.previewForm.set(form);
|
|
88696
|
-
|
|
88689
|
+
const step = untracked2(() => this.activeStep());
|
|
88690
|
+
if (step === Step.Validate) {
|
|
88697
88691
|
this.nextStep.emit();
|
|
88692
|
+
} else if (step === Step.FilingPreview) {
|
|
88693
|
+
this.recheckStep.emit();
|
|
88698
88694
|
}
|
|
88699
88695
|
}
|
|
88700
88696
|
});
|
|
@@ -88756,11 +88752,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88756
88752
|
this.deltaState.setBCChangeOfDirectorsInitialDelta(delta);
|
|
88757
88753
|
this.saveCodDeltaData.emit(delta);
|
|
88758
88754
|
}
|
|
88759
|
-
onChangeOfDirectorsSubmit(
|
|
88760
|
-
this.codSubmit.emit(
|
|
88761
|
-
signatoryFirstName: termsAndConditions.firstName,
|
|
88762
|
-
signatoryLastName: termsAndConditions.lastName
|
|
88763
|
-
}));
|
|
88755
|
+
onChangeOfDirectorsSubmit() {
|
|
88756
|
+
this.codSubmit.emit();
|
|
88764
88757
|
}
|
|
88765
88758
|
onFormationValidate() {
|
|
88766
88759
|
markFormGroupTouched(this.deltaForm());
|
|
@@ -88781,6 +88774,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88781
88774
|
const filing = formData[BCChangeOfDirectorsFormGroups.FilingDetails];
|
|
88782
88775
|
const notification = formData[BCChangeOfDirectorsFormGroups.Notification];
|
|
88783
88776
|
const reminder = formData[BCChangeOfDirectorsFormGroups.AnnualReportReminder];
|
|
88777
|
+
const directors = formData[BCChangeOfDirectorsFormGroups.Directors] ?? [];
|
|
88784
88778
|
const addedOrDeleted = Boolean(filing?.[c.DirectorsAddedOrDeleted]);
|
|
88785
88779
|
const notifyByMail = notification?.[c.NotificationMethod] === BCNotificationMethod.Mail;
|
|
88786
88780
|
return {
|
|
@@ -88796,10 +88790,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88796
88790
|
method: notification?.[c.NotificationMethod] ?? null,
|
|
88797
88791
|
email: notifyByMail ? void 0 : notification?.[c.NotificationEmail] ?? null
|
|
88798
88792
|
},
|
|
88799
|
-
annualReportReminder: reminder?.[c.AnnualReportReminder] ?? null
|
|
88793
|
+
annualReportReminder: reminder?.[c.AnnualReportReminder] ?? null,
|
|
88794
|
+
directorChanges: {
|
|
88795
|
+
addIds: directors.filter((d) => d[c.AffiliationType] === "Add").map((d) => d[c.Id]).filter(Boolean),
|
|
88796
|
+
editIds: directors.filter((d) => d[c.AffiliationType] === "Update").map((d) => d[c.Id]).filter(Boolean),
|
|
88797
|
+
ceaseIds: directors.filter((d) => d[c.AffiliationType] === "Cease").map((d) => d[c.Id]).filter(Boolean)
|
|
88798
|
+
}
|
|
88800
88799
|
};
|
|
88801
88800
|
}
|
|
88802
|
-
generateFormationDeltaData(
|
|
88801
|
+
generateFormationDeltaData() {
|
|
88803
88802
|
const formData = this.deltaForm().getRawValue();
|
|
88804
88803
|
const refNumbers = formData[BCFormationFormGroups.ReferenceNumbers];
|
|
88805
88804
|
const corpDetails = formData[BCFormationFormGroups.CorporationDetails];
|
|
@@ -88873,19 +88872,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88873
88872
|
static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
|
|
88874
88873
|
return new (__ngFactoryType__ || _BritishColumbiaComponent)();
|
|
88875
88874
|
};
|
|
88876
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaComponent, selectors: [["british-columbia"]], inputs: { task: [1, "task"], currentUser: [1, "currentUser"], activeStep: [1, "activeStep"], isNote: [1, "isNote"], actionsDisabled: [1, "actionsDisabled"], errors: [1, "errors"] }, outputs: { close: "close", codValidate: "codValidate", saveCodDeltaData: "saveCodDeltaData", codSubmit: "codSubmit", formationValidate: "formationValidate", formationSubmit: "formationSubmit", saveFormationDeltaData: "saveFormationDeltaData", nextStep: "nextStep", prevStep: "prevStep", coaValidate: "coaValidate", saveCoaDeltaData: "saveCoaDeltaData", coaSubmit: "coaSubmit" }, decls: 4, vars: 4, consts: [[3, "task", "form", "actionsDisabled", "errors", "isNote"], [3, "task", "form", "actionsDisabled", "errors"], [3, "
|
|
88875
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaComponent, selectors: [["british-columbia"]], inputs: { task: [1, "task"], currentUser: [1, "currentUser"], activeStep: [1, "activeStep"], isNote: [1, "isNote"], actionsDisabled: [1, "actionsDisabled"], errors: [1, "errors"], currentDataExtract: [1, "currentDataExtract"] }, outputs: { close: "close", codValidate: "codValidate", saveCodDeltaData: "saveCodDeltaData", codSubmit: "codSubmit", formationValidate: "formationValidate", formationSubmit: "formationSubmit", saveFormationDeltaData: "saveFormationDeltaData", nextStep: "nextStep", recheckStep: "recheckStep", prevStep: "prevStep", coaValidate: "coaValidate", saveCoaDeltaData: "saveCoaDeltaData", coaSubmit: "coaSubmit" }, decls: 4, vars: 4, consts: [[3, "task", "form", "actionsDisabled", "errors", "isNote"], [3, "task", "form", "actionsDisabled", "errors"], [3, "validate", "close", "save", "task", "form", "actionsDisabled", "errors", "isNote"], [3, "close", "file", "task", "form", "actionsDisabled", "errors"], [3, "task", "errors", "isNote", "actionsDisabled", "form"], [3, "task", "form", "errors", "actionsDisabled"], [3, "validate", "close", "save", "task", "errors", "isNote", "actionsDisabled", "form"], [3, "next", "close", "task", "form", "errors", "actionsDisabled"]], template: function BritishColumbiaComponent_Template(rf, ctx) {
|
|
88877
88876
|
if (rf & 1) {
|
|
88878
88877
|
\u0275\u0275declareLet(0);
|
|
88879
|
-
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template,
|
|
88878
|
+
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2)(3, BritishColumbiaComponent_Conditional_3_Template, 2, 2);
|
|
88880
88879
|
}
|
|
88881
88880
|
if (rf & 2) {
|
|
88882
|
-
const
|
|
88881
|
+
const taskData_r9 = \u0275\u0275storeLet(ctx.task());
|
|
88883
88882
|
\u0275\u0275advance();
|
|
88884
|
-
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(
|
|
88883
|
+
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r9) ? 1 : -1);
|
|
88885
88884
|
\u0275\u0275advance();
|
|
88886
|
-
\u0275\u0275conditional(ctx.isFormationTask(
|
|
88885
|
+
\u0275\u0275conditional(ctx.isFormationTask(taskData_r9) ? 2 : -1);
|
|
88887
88886
|
\u0275\u0275advance();
|
|
88888
|
-
\u0275\u0275conditional(ctx.isChangeOfOfficeAddressesTask(
|
|
88887
|
+
\u0275\u0275conditional(ctx.isChangeOfOfficeAddressesTask(taskData_r9) ? 3 : -1);
|
|
88889
88888
|
}
|
|
88890
88889
|
}, dependencies: [
|
|
88891
88890
|
BritishColumbiaChangeOfDirectorsDeltaFormComponent,
|
|
@@ -88893,8 +88892,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88893
88892
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
88894
88893
|
BritishColumbiaIncorporationPreviewFormComponent,
|
|
88895
88894
|
BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent,
|
|
88896
|
-
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
88897
|
-
TermsAndConditionsComponent
|
|
88895
|
+
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
88898
88896
|
], styles: ["\n\n[_nghost-%COMP%] {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */"], changeDetection: 0 });
|
|
88899
88897
|
};
|
|
88900
88898
|
(() => {
|
|
@@ -88906,13 +88904,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88906
88904
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
88907
88905
|
BritishColumbiaIncorporationPreviewFormComponent,
|
|
88908
88906
|
BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent,
|
|
88909
|
-
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
88910
|
-
|
|
88911
|
-
], template: '@let taskData = this.task();\r\n\r\n@if (isChangeOfDirectorsTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-change-of-directors-delta-form\r\n [task]="taskData"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onChangeOfDirectorsValidate()"\r\n (close)="onClose()"\r\n (save)="onChangeOfDirectorsSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-change-of-directors-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="nextStep.emit()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.TermsAndConditions) {\r\n <terms-and-conditions\r\n [errors]="errors()"\r\n (prev)="prevStep.emit()"\r\n (close)="close.emit()"\r\n (confirm)="onChangeOfDirectorsSubmit($event)"\r\n />\r\n }\r\n}\r\n\r\n@if (isFormationTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-incorporation-delta-form\r\n [task]="taskData"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [form]="deltaForm()"\r\n (validate)="onFormationValidate()"\r\n (close)="onClose()"\r\n (save)="onFormationSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-incorporation-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [errors]="errors()"\r\n [actionsDisabled]="actionsDisabled()"\r\n (next)="onFormationSubmit()"\r\n (close)="close.emit()"\r\n />\r\n }\r\n}\r\n\r\n@if (isChangeOfOfficeAddressesTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-change-of-office-addresses-delta-form\r\n [task]="taskData"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onChangeOfOfficeAddressesValidate()"\r\n (close)="onClose()"\r\n (save)="onChangeOfOfficeAddressesSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-change-of-office-addresses-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="onChangeOfOfficeAddressesFile()"\r\n />\r\n }\r\n}\r\n', styles: ["/* src/app/components/british-columbia/british-columbia.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */\n"] }]
|
|
88907
|
+
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
88908
|
+
], template: '@let taskData = this.task();\r\n\r\n@if (isChangeOfDirectorsTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-change-of-directors-delta-form\r\n [task]="taskData"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onChangeOfDirectorsValidate()"\r\n (close)="onClose()"\r\n (save)="onChangeOfDirectorsSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-change-of-directors-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="onChangeOfDirectorsSubmit()"\r\n />\r\n }\r\n}\r\n\r\n@if (isFormationTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-incorporation-delta-form\r\n [task]="taskData"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [form]="deltaForm()"\r\n (validate)="onFormationValidate()"\r\n (close)="onClose()"\r\n (save)="onFormationSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-incorporation-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [errors]="errors()"\r\n [actionsDisabled]="actionsDisabled()"\r\n (next)="onFormationSubmit()"\r\n (close)="close.emit()"\r\n />\r\n }\r\n}\r\n\r\n@if (isChangeOfOfficeAddressesTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-change-of-office-addresses-delta-form\r\n [task]="taskData"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onChangeOfOfficeAddressesValidate()"\r\n (close)="onClose()"\r\n (save)="onChangeOfOfficeAddressesSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-change-of-office-addresses-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="onChangeOfOfficeAddressesFile()"\r\n />\r\n }\r\n}\r\n', styles: ["/* src/app/components/british-columbia/british-columbia.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */\n"] }]
|
|
88912
88909
|
}], () => [], null);
|
|
88913
88910
|
})();
|
|
88914
88911
|
(() => {
|
|
88915
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber:
|
|
88912
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber: 72 });
|
|
88916
88913
|
})();
|
|
88917
88914
|
}
|
|
88918
88915
|
});
|
|
@@ -90283,7 +90280,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90283
90280
|
const isNumberedCompany = ext._numbered_company;
|
|
90284
90281
|
const config2 = {};
|
|
90285
90282
|
const corporateName = delta?.corporateName;
|
|
90286
|
-
const directors = (task.entity.affiliations ?? [])
|
|
90283
|
+
const directors = getIndividualDirectors(task.entity.affiliations ?? []);
|
|
90287
90284
|
if (directors.length) {
|
|
90288
90285
|
const deltaDirectorsMap = delta?.directors;
|
|
90289
90286
|
const directorGroups = directors.map((director) => {
|
|
@@ -90864,7 +90861,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90864
90861
|
}
|
|
90865
90862
|
});
|
|
90866
90863
|
effect(() => {
|
|
90867
|
-
const directors = (this.task()?.entity.affiliations ?? [])
|
|
90864
|
+
const directors = getIndividualDirectors(this.task()?.entity.affiliations ?? []);
|
|
90868
90865
|
const directorOptions = directors.map((director) => ({ label: getPersonName(director.participant), value: director.participant._id }));
|
|
90869
90866
|
this.federalFormationFormInviteDirectorsToBeManagersControl = generateFederalFormationFormInviteDirectorsToBeManagersControl(directorOptions);
|
|
90870
90867
|
});
|
|
@@ -91039,11 +91036,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
91039
91036
|
exclusionReason.updateValueAndValidity({ emitEvent: false });
|
|
91040
91037
|
}
|
|
91041
91038
|
getSelectableIndividualsWithSignificantControl(affiliations) {
|
|
91042
|
-
|
|
91043
|
-
if (significantControlAffiliations.length) {
|
|
91044
|
-
return significantControlAffiliations;
|
|
91045
|
-
}
|
|
91046
|
-
return affiliations.filter((a) => isPrincipalAffiliation2(a) && a._participant.participant_type === "person" && !["Contact", "Agent", "Responsible"].includes(a.role?.role_name ?? ""));
|
|
91039
|
+
return getIndividualWithSignificantControl(affiliations);
|
|
91047
91040
|
}
|
|
91048
91041
|
getFormArray(key) {
|
|
91049
91042
|
return this.form().get(key);
|
|
@@ -91392,7 +91385,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
91392
91385
|
}], () => [], null);
|
|
91393
91386
|
})();
|
|
91394
91387
|
(() => {
|
|
91395
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FederalIncorporationFormComponent, { className: "FederalIncorporationFormComponent", filePath: "src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts", lineNumber:
|
|
91388
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FederalIncorporationFormComponent, { className: "FederalIncorporationFormComponent", filePath: "src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts", lineNumber: 76 });
|
|
91396
91389
|
})();
|
|
91397
91390
|
}
|
|
91398
91391
|
});
|
|
@@ -93385,7 +93378,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93385
93378
|
searchOrFilingType,
|
|
93386
93379
|
serviceOrderId,
|
|
93387
93380
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
93388
|
-
provider:
|
|
93381
|
+
provider: getFilingProvider(signature.task),
|
|
93389
93382
|
draftPdf: payload.ReceiptPdf,
|
|
93390
93383
|
documentName: "Incorporation Receipt",
|
|
93391
93384
|
documentType: "pdf"
|
|
@@ -93936,7 +93929,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93936
93929
|
const mailingAddressUid = deltaData.registeredOfficeAddress?.mailingAddressForCorrespondenceUid;
|
|
93937
93930
|
const mailingAddress = useDifferentMailingAddress ? task.entity.addresses.find((address) => address.uid === mailingAddressUid) : void 0;
|
|
93938
93931
|
const registeredOfficeAddress = findRegisteredOfficeAddress(task);
|
|
93939
|
-
const directors = task.entity.affiliations
|
|
93932
|
+
const directors = getIndividualDirectors(task.entity.affiliations);
|
|
93940
93933
|
const incorporators = task._ext._incorporators ?? [];
|
|
93941
93934
|
const requestedDate = task._ext._future_filing_date ? new Date(task._ext._future_filing_date).toISOString().split("T")[0] : (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
93942
93935
|
const officialBusinessEmail = registeredOfficeAddress?.communications?.find((c) => c.type === "Business Email")?.value;
|
|
@@ -94248,7 +94241,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94248
94241
|
}
|
|
94249
94242
|
var init_federal_formation_mapper = __esm({
|
|
94250
94243
|
"src/app/helpers/mappers/federal-formation.mapper.ts"() {
|
|
94251
|
-
init_ECoreInterfaces();
|
|
94252
94244
|
init_transform_utils();
|
|
94253
94245
|
init_address_utils();
|
|
94254
94246
|
init_common_utils();
|
|
@@ -95133,9 +95125,55 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95133
95125
|
init_core();
|
|
95134
95126
|
BritishColumbiaChangeOfDirectorsService = class _BritishColumbiaChangeOfDirectorsService {
|
|
95135
95127
|
config;
|
|
95128
|
+
currentDataExtract;
|
|
95136
95129
|
setConfig(config2) {
|
|
95137
95130
|
this.config = config2;
|
|
95138
95131
|
}
|
|
95132
|
+
/**
|
|
95133
|
+
* Orders the corporation's current data extract and waits until it is ready, returning the
|
|
95134
|
+
* `currentDataServiceOrderId` that Validate Filing needs. The registry bot can take a while,
|
|
95135
|
+
* so the extract is polled every `intervalMs` for up to `maxAttempts` times.
|
|
95136
|
+
*/
|
|
95137
|
+
ensureCurrentDataExtract(_0, _1) {
|
|
95138
|
+
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3, maxAttempts = 40 } = {}) {
|
|
95139
|
+
ensureAuthInputs(signature);
|
|
95140
|
+
const fetchFn = opts.fetchImpl ?? fetch;
|
|
95141
|
+
const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
|
|
95142
|
+
const orderResp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, signature.proxyApiUrl, signature.jwtToken, order, __spreadValues({
|
|
95143
|
+
"x-target-url": `${dataExtractUrl}/order`
|
|
95144
|
+
}, opts.headers ?? {})));
|
|
95145
|
+
const ordered = yield this.readJson(orderResp, "BC current data extract order");
|
|
95146
|
+
const orderId = ordered.currentDataServiceOrderId;
|
|
95147
|
+
if (!orderResp.ok || !orderId || ordered.status === "failed") {
|
|
95148
|
+
throw buildGenericError(orderResp.status, "BC current data extract order failed", __spreadProps(__spreadValues({}, ordered), {
|
|
95149
|
+
errors: ordered.errors?.length ? ordered.errors : (ordered.additionalInformation ?? []).map((message) => ({ message }))
|
|
95150
|
+
}));
|
|
95151
|
+
}
|
|
95152
|
+
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
95153
|
+
const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
|
|
95154
|
+
method: "GET",
|
|
95155
|
+
headers: __spreadValues({
|
|
95156
|
+
Authorization: `Bearer ${signature.jwtToken}`,
|
|
95157
|
+
"x-target-url": `${dataExtractUrl}/${encodeURIComponent(orderId)}`
|
|
95158
|
+
}, opts.headers ?? {})
|
|
95159
|
+
}));
|
|
95160
|
+
const extract = yield this.readJson(extractResp, "BC current data extract");
|
|
95161
|
+
if (extractResp.ok && extract.status === "success") {
|
|
95162
|
+
this.currentDataExtract = extract;
|
|
95163
|
+
return orderId;
|
|
95164
|
+
}
|
|
95165
|
+
if (!extractResp.ok || extract.status === "failed" || extract.status === "sourceUnavailable") {
|
|
95166
|
+
const reasons = extract.additionalInformation ?? [];
|
|
95167
|
+
throw new Error(`BC current data extract ${extract.status ?? "failed"} (HTTP ${extractResp.status})${reasons.length ? `: ${reasons.join(" | ")}` : "."}`);
|
|
95168
|
+
}
|
|
95169
|
+
yield new Promise((resolve) => setTimeout(resolve, intervalMs));
|
|
95170
|
+
}
|
|
95171
|
+
throw new Error("BC current data extract is still processing. Please try again in a moment.");
|
|
95172
|
+
});
|
|
95173
|
+
}
|
|
95174
|
+
getCurrentDataExtract() {
|
|
95175
|
+
return this.currentDataExtract;
|
|
95176
|
+
}
|
|
95139
95177
|
validate(_0, _1) {
|
|
95140
95178
|
return __async(this, arguments, function* (signature, requestBody, opts = {}) {
|
|
95141
95179
|
ensureAuthInputs(signature);
|
|
@@ -95153,8 +95191,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95153
95191
|
throw err2;
|
|
95154
95192
|
}
|
|
95155
95193
|
const payload = unwrapRequestResults(parsed.value);
|
|
95156
|
-
if (resp.ok && !payload.Errors?.length) {
|
|
95157
|
-
return payload
|
|
95194
|
+
if (resp.ok && !payload.Errors?.length && !payload["errors"]?.length) {
|
|
95195
|
+
return __spreadProps(__spreadValues({}, payload), {
|
|
95196
|
+
Status: payload.Status ?? payload["status"],
|
|
95197
|
+
ServiceOrderId: payload.ServiceOrderId ?? payload["serviceOrderId"],
|
|
95198
|
+
Draft: payload.Draft ?? payload["draft"]
|
|
95199
|
+
});
|
|
95158
95200
|
}
|
|
95159
95201
|
const err = buildValidationError(resp.status, payload);
|
|
95160
95202
|
err.validateResult = payload;
|
|
@@ -95214,6 +95256,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95214
95256
|
throw err;
|
|
95215
95257
|
});
|
|
95216
95258
|
}
|
|
95259
|
+
readJson(resp, what) {
|
|
95260
|
+
return __async(this, null, function* () {
|
|
95261
|
+
const raw = yield resp.text();
|
|
95262
|
+
const parsed = tryParseJson(raw);
|
|
95263
|
+
if (!parsed.ok) {
|
|
95264
|
+
throw new Error(`${what} returned ${resp.status} ${resp.statusText}: ${raw || "(empty response)"}`);
|
|
95265
|
+
}
|
|
95266
|
+
return unwrapRequestResults(parsed.value);
|
|
95267
|
+
});
|
|
95268
|
+
}
|
|
95217
95269
|
getOnbisOrigin() {
|
|
95218
95270
|
const filingUrl = this.config?.BCFiling;
|
|
95219
95271
|
if (!filingUrl) {
|
|
@@ -95238,7 +95290,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95238
95290
|
});
|
|
95239
95291
|
|
|
95240
95292
|
// src/app/helpers/mappers/british-columbia-change-of-directors.mapper.ts
|
|
95241
|
-
function
|
|
95293
|
+
function getBritishColumbiaAccessCode(task, password) {
|
|
95294
|
+
return password?.trim() || task.entity._profile.registry_id?.trim() || "";
|
|
95295
|
+
}
|
|
95296
|
+
function buildBritishColumbiaDataExtractOrder(task, password) {
|
|
95297
|
+
const incorporationDate = toYyyyMmDd(task.entity._compliance.incorporation_date) ?? "";
|
|
95298
|
+
const request = {
|
|
95299
|
+
corporationNumber: task.entity._profile.corp_number?.trim() ?? "",
|
|
95300
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode(task, password),
|
|
95301
|
+
incorporationDate: /^\d{4}-\d{2}-\d{2}$/.test(incorporationDate) ? incorporationDate : "",
|
|
95302
|
+
filingType: "changeOfDirectorsFiling"
|
|
95303
|
+
};
|
|
95304
|
+
const issues = [];
|
|
95305
|
+
if (!request.corporationNumber) {
|
|
95306
|
+
issues.push("The corporation number is missing on the entity.");
|
|
95307
|
+
}
|
|
95308
|
+
if (!/^[A-Za-z0-9]+$/.test(request.accessCodeOrPassword)) {
|
|
95309
|
+
issues.push("The company's BC Online access code or password is missing or contains characters other than letters and numbers.");
|
|
95310
|
+
}
|
|
95311
|
+
if (!request.incorporationDate) {
|
|
95312
|
+
issues.push("The incorporation date is missing on the entity.");
|
|
95313
|
+
}
|
|
95314
|
+
return { request, issues };
|
|
95315
|
+
}
|
|
95316
|
+
function buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData, currentDataServiceOrderId, currentDataExtract) {
|
|
95242
95317
|
const source = task.changeDirectors ?? task.deltaData?.changeDirectors ?? task.deltaData?.validatedData?.ChangeDirectors ?? task.deltaData?.validatedData?.filing;
|
|
95243
95318
|
const incomingDirectors = (task.incomingAffiliations ?? []).filter(isDirectorAffiliation);
|
|
95244
95319
|
const outgoingDirectors = (task.outgoingAffiliations ?? []).filter(isDirectorAffiliation);
|
|
@@ -95246,73 +95321,107 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95246
95321
|
const ceasedDirectors = [...source?.CeasedDirectors ?? [], ...source?.CeaseDirector ?? [], ...source?.ceaseDirectors ?? []];
|
|
95247
95322
|
const editedDirectors = [...source?.EditedDirectors ?? [], ...source?.EditDirector ?? [], ...source?.editDirectors ?? []];
|
|
95248
95323
|
const companyEmail = findCompanyEmail(task);
|
|
95249
|
-
const
|
|
95250
|
-
|
|
95324
|
+
const byId = new Map([
|
|
95325
|
+
...incomingDirectors,
|
|
95326
|
+
...outgoingDirectors
|
|
95327
|
+
].map((affiliation) => [String(affiliation._id), affiliation]));
|
|
95328
|
+
const selected = deltaData.directorChanges;
|
|
95329
|
+
const addSource = selected ? selected.addIds.map((id) => byId.get(String(id))).filter(Boolean) : incomingDirectors.length ? incomingDirectors : addedDirectors;
|
|
95330
|
+
const editSource = selected ? selected.editIds.map((id) => byId.get(String(id))).filter(Boolean) : editedDirectors;
|
|
95331
|
+
const ceaseSource = selected ? selected.ceaseIds.map((id) => byId.get(String(id))).filter(Boolean) : outgoingDirectors.length ? outgoingDirectors : ceasedDirectors;
|
|
95332
|
+
const addDirectors = addSource.map((affiliation) => buildDirector(affiliation));
|
|
95333
|
+
const ceaseDirectors = ceaseSource.map((affiliation) => buildCeasedDirector(affiliation));
|
|
95334
|
+
const editDirectors = editSource.map((director) => {
|
|
95335
|
+
const directorNumber = findDirectorNumber(director, currentDataExtract);
|
|
95336
|
+
return directorNumber === void 0 ? null : buildDirector(director, directorNumber);
|
|
95337
|
+
}).filter((director) => director !== null);
|
|
95338
|
+
const effectiveDate = toYyyyMmDd(deltaData.filingDetails.changeDate);
|
|
95339
|
+
return {
|
|
95251
95340
|
filingType: "changeOfDirectorsFiling",
|
|
95252
|
-
|
|
95341
|
+
currentDataServiceOrderId,
|
|
95342
|
+
filing: __spreadProps(__spreadValues({
|
|
95343
|
+
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
95344
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode(task),
|
|
95253
95345
|
reference: deltaData.referenceNumbers.referenceNumber ?? null,
|
|
95254
|
-
docket: deltaData.referenceNumbers.docketNumber ?? null
|
|
95255
|
-
|
|
95256
|
-
|
|
95257
|
-
|
|
95258
|
-
|
|
95259
|
-
editDirectors: editedDirectors.length ? editedDirectors.map((director) => buildDirector(director)) : [],
|
|
95346
|
+
docket: deltaData.referenceNumbers.docketNumber ?? null
|
|
95347
|
+
}, (addDirectors.length || ceaseDirectors.length) && effectiveDate ? { effectiveDate } : {}), {
|
|
95348
|
+
addDirectors,
|
|
95349
|
+
ceaseDirectors,
|
|
95350
|
+
editDirectors,
|
|
95260
95351
|
companyEmail,
|
|
95261
95352
|
isAnnualReportReminderRequired: deltaData.annualReportReminder === BCAnnualReportReminder.Yes
|
|
95262
|
-
}
|
|
95263
|
-
}
|
|
95353
|
+
})
|
|
95354
|
+
};
|
|
95264
95355
|
}
|
|
95265
95356
|
function isDirectorAffiliation(affiliation) {
|
|
95266
95357
|
return isPrincipalAffiliation2(affiliation) && affiliation.role?.role_name === "Director";
|
|
95267
95358
|
}
|
|
95268
|
-
function
|
|
95359
|
+
function buildCeasedDirector(affiliation) {
|
|
95360
|
+
const _a = buildDirector(affiliation), { isDeliveryAddressSameAsMailing: _omitted } = _a, director = __objRest(_a, ["isDeliveryAddressSameAsMailing"]);
|
|
95361
|
+
return __spreadProps(__spreadValues({}, director), { deliveryAddress: director.deliveryAddress ?? director.mailingAddress });
|
|
95362
|
+
}
|
|
95363
|
+
function buildDirector(affiliation, directorNumber) {
|
|
95269
95364
|
if (affiliation?.PersonName || affiliation?.personName || affiliation?.firstName || affiliation?.FirstName) {
|
|
95270
95365
|
const name = affiliation.PersonName ?? affiliation.personName ?? affiliation;
|
|
95271
|
-
return {
|
|
95366
|
+
return __spreadProps(__spreadValues({}, directorNumber === void 0 ? {} : { directorNumber }), {
|
|
95272
95367
|
firstName: name.FirstName ?? name.firstName ?? "",
|
|
95273
95368
|
middleName: name.MiddleName ?? name.middleName ?? "",
|
|
95274
95369
|
lastName: name.LastName ?? name.lastName ?? "",
|
|
95275
95370
|
mailingAddress: affiliation.mailingAddress ?? affiliation.MailingAddress,
|
|
95276
|
-
deliveryAddress: affiliation.deliveryAddress ?? affiliation.DeliveryAddress,
|
|
95371
|
+
deliveryAddress: affiliation.isDeliveryAddressSameAsMailing ? void 0 : affiliation.deliveryAddress ?? affiliation.DeliveryAddress,
|
|
95277
95372
|
isDeliveryAddressSameAsMailing: affiliation.isDeliveryAddressSameAsMailing
|
|
95278
|
-
};
|
|
95373
|
+
});
|
|
95279
95374
|
}
|
|
95280
95375
|
const profile = affiliation.participant?._profile ?? {};
|
|
95281
95376
|
const addresses = getAffiliationAddresses(affiliation);
|
|
95282
95377
|
const mailingAddress = mapAddress4(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Mailing"));
|
|
95283
95378
|
const deliveryAddress = mapAddress4(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Delivery"));
|
|
95284
|
-
|
|
95379
|
+
const isSameAsMailing = isDeliveryAddressSameAsMailing(addresses);
|
|
95380
|
+
return __spreadProps(__spreadValues({}, directorNumber === void 0 ? {} : { directorNumber }), {
|
|
95285
95381
|
firstName: profile.firstName ?? "",
|
|
95286
95382
|
middleName: profile.middleName ?? "",
|
|
95287
95383
|
lastName: profile.lastName ?? "",
|
|
95288
95384
|
mailingAddress,
|
|
95289
|
-
|
|
95290
|
-
|
|
95291
|
-
|
|
95385
|
+
// The API rejects a delivery address when it is the same as the mailing address.
|
|
95386
|
+
deliveryAddress: isSameAsMailing ? void 0 : deliveryAddress,
|
|
95387
|
+
isDeliveryAddressSameAsMailing: isSameAsMailing
|
|
95388
|
+
});
|
|
95292
95389
|
}
|
|
95293
|
-
function
|
|
95294
|
-
|
|
95295
|
-
|
|
95296
|
-
const
|
|
95297
|
-
|
|
95298
|
-
|
|
95299
|
-
|
|
95300
|
-
|
|
95301
|
-
|
|
95302
|
-
|
|
95303
|
-
|
|
95304
|
-
|
|
95305
|
-
|
|
95306
|
-
|
|
95307
|
-
|
|
95308
|
-
|
|
95309
|
-
|
|
95310
|
-
|
|
95390
|
+
function findDirectorNumber(affiliation, extract) {
|
|
95391
|
+
const target = normaliseDirectorName(affiliation);
|
|
95392
|
+
let result;
|
|
95393
|
+
const visit = (value) => {
|
|
95394
|
+
if (result !== void 0 || value === null || value === void 0)
|
|
95395
|
+
return;
|
|
95396
|
+
if (Array.isArray(value)) {
|
|
95397
|
+
value.forEach(visit);
|
|
95398
|
+
return;
|
|
95399
|
+
}
|
|
95400
|
+
if (typeof value !== "object")
|
|
95401
|
+
return;
|
|
95402
|
+
const record = value;
|
|
95403
|
+
const number = record["directorNumber"] ?? record["DirectorNumber"];
|
|
95404
|
+
if (number !== void 0 && normaliseDirectorName(record) === target) {
|
|
95405
|
+
const parsed = Number(number);
|
|
95406
|
+
if (Number.isFinite(parsed))
|
|
95407
|
+
result = parsed;
|
|
95408
|
+
return;
|
|
95409
|
+
}
|
|
95410
|
+
Object.values(record).forEach(visit);
|
|
95311
95411
|
};
|
|
95412
|
+
visit(extract);
|
|
95413
|
+
return result;
|
|
95312
95414
|
}
|
|
95313
|
-
function
|
|
95314
|
-
const
|
|
95315
|
-
return
|
|
95415
|
+
function normaliseDirectorName(value) {
|
|
95416
|
+
const name = value?.PersonName ?? value?.personName ?? value;
|
|
95417
|
+
return [
|
|
95418
|
+
name?.FirstName ?? name?.firstName,
|
|
95419
|
+
name?.MiddleName ?? name?.middleName,
|
|
95420
|
+
name?.LastName ?? name?.lastName
|
|
95421
|
+
].filter(Boolean).join(" ").trim().toLowerCase();
|
|
95422
|
+
}
|
|
95423
|
+
function mapAddress4(address) {
|
|
95424
|
+
return address ? mapAddress(address) : void 0;
|
|
95316
95425
|
}
|
|
95317
95426
|
function findCompanyEmail(task) {
|
|
95318
95427
|
const affiliations = task.entity.affiliations ?? [];
|
|
@@ -95331,6 +95440,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95331
95440
|
"src/app/helpers/mappers/british-columbia-change-of-directors.mapper.ts"() {
|
|
95332
95441
|
init_BritishColumbiaConstants();
|
|
95333
95442
|
init_common_models();
|
|
95443
|
+
init_british_columbia_formation_mapper();
|
|
95334
95444
|
init_british_columbia_formation_form_helper();
|
|
95335
95445
|
init_common_utils();
|
|
95336
95446
|
}
|
|
@@ -95430,29 +95540,29 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95430
95540
|
throw new Error("Missing serviceOrderId.");
|
|
95431
95541
|
}
|
|
95432
95542
|
const submitted = yield this.send(signature, "POST", `${MAINTENANCE_FILING_PATH}/${encodeURIComponent(serviceOrderId)}/submit`, void 0, opts);
|
|
95433
|
-
|
|
95434
|
-
|
|
95435
|
-
const err = new Error(this.describeFailure(submitted.status, "eCore submit failed",
|
|
95436
|
-
err.submitResult =
|
|
95543
|
+
const submitResult = this.normalize(submitted.body);
|
|
95544
|
+
if (!submitted.ok || submitResult.Status === "Failure") {
|
|
95545
|
+
const err = new Error(this.describeFailure(submitted.status, "eCore submit failed", submitResult));
|
|
95546
|
+
err.submitResult = submitResult;
|
|
95437
95547
|
err.httpStatus = submitted.status;
|
|
95438
95548
|
throw err;
|
|
95439
95549
|
}
|
|
95440
95550
|
const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_RESULT_POLL), poll);
|
|
95441
95551
|
const deadline = Date.now() + timeoutMs;
|
|
95442
|
-
let processing =
|
|
95552
|
+
let processing = false;
|
|
95443
95553
|
let files;
|
|
95444
|
-
|
|
95554
|
+
for (; ; ) {
|
|
95445
95555
|
const { status, ok, body, raw } = yield this.send(signature, "GET", `${MAINTENANCE_FILING_PATH}/${encodeURIComponent(serviceOrderId)}`, void 0, opts);
|
|
95446
95556
|
const state2 = String(body?.status ?? "").toLowerCase();
|
|
95447
95557
|
if (ok && (state2 === "success" || state2 === "pendingdocuments")) {
|
|
95448
95558
|
files = body?.files;
|
|
95449
|
-
processing = false;
|
|
95450
95559
|
break;
|
|
95451
95560
|
}
|
|
95452
95561
|
if (!ok || state2 === "failed" || state2 === "sourceunavailable") {
|
|
95453
95562
|
throw this.failure(status, "The registry could not complete the filing", body, raw);
|
|
95454
95563
|
}
|
|
95455
95564
|
if (Date.now() >= deadline) {
|
|
95565
|
+
processing = true;
|
|
95456
95566
|
break;
|
|
95457
95567
|
}
|
|
95458
95568
|
yield this.sleep(intervalMs);
|
|
@@ -95595,7 +95705,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95595
95705
|
}
|
|
95596
95706
|
return { filingType: "changeOfAddressFiling", filing };
|
|
95597
95707
|
}
|
|
95598
|
-
function
|
|
95708
|
+
function getBritishColumbiaAccessCode2(task, env) {
|
|
95599
95709
|
const registryId = task.entity._profile.registry_id?.trim() ?? "";
|
|
95600
95710
|
if (registryId) {
|
|
95601
95711
|
return registryId;
|
|
@@ -95696,6 +95806,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95696
95806
|
\u0275\u0275restoreView(_r6);
|
|
95697
95807
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
95698
95808
|
return \u0275\u0275resetView(ctx_r2.onNextStepClick());
|
|
95809
|
+
})("recheckStep", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_recheckStep_0_listener() {
|
|
95810
|
+
\u0275\u0275restoreView(_r6);
|
|
95811
|
+
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
95812
|
+
return \u0275\u0275resetView(ctx_r2.defineInitialStep());
|
|
95699
95813
|
})("prevStep", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_prevStep_0_listener() {
|
|
95700
95814
|
\u0275\u0275restoreView(_r6);
|
|
95701
95815
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
@@ -95742,7 +95856,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95742
95856
|
if (rf & 2) {
|
|
95743
95857
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
95744
95858
|
const currentTask_r5 = \u0275\u0275readContextLet(9);
|
|
95745
|
-
\u0275\u0275property("task", currentTask_r5)("currentUser", ctx_r2.currentUser())("activeStep", ctx_r2.activeStep())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("errors", ctx_r2.errors());
|
|
95859
|
+
\u0275\u0275property("task", currentTask_r5)("currentUser", ctx_r2.currentUser())("activeStep", ctx_r2.activeStep())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("errors", ctx_r2.errors())("currentDataExtract", ctx_r2.currentDataExtract());
|
|
95746
95860
|
}
|
|
95747
95861
|
}
|
|
95748
95862
|
function FilingComponent_Conditional_10_Conditional_2_Template(rf, ctx) {
|
|
@@ -95792,7 +95906,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95792
95906
|
}
|
|
95793
95907
|
function FilingComponent_Conditional_10_Template(rf, ctx) {
|
|
95794
95908
|
if (rf & 1) {
|
|
95795
|
-
\u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1,
|
|
95909
|
+
\u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1, 7, "british-columbia", 9)(2, FilingComponent_Conditional_10_Conditional_2_Template, 1, 5, "federal", 10);
|
|
95796
95910
|
}
|
|
95797
95911
|
if (rf & 2) {
|
|
95798
95912
|
const ctx_r2 = \u0275\u0275nextContext();
|
|
@@ -95913,6 +96027,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95913
96027
|
});
|
|
95914
96028
|
dataWasChanged = signal(false);
|
|
95915
96029
|
serviceOrderId = "";
|
|
96030
|
+
bcCurrentDataServiceOrderId = "";
|
|
96031
|
+
currentDataExtract = signal(void 0);
|
|
96032
|
+
bcDataExtractTaskId = "";
|
|
95916
96033
|
activeStep = signal(Step.Validate);
|
|
95917
96034
|
isLoading = signal(false);
|
|
95918
96035
|
validationConfig = signal(null);
|
|
@@ -95980,6 +96097,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95980
96097
|
this.serviceOrderId = serviceOrderId;
|
|
95981
96098
|
}
|
|
95982
96099
|
}
|
|
96100
|
+
if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
|
|
96101
|
+
const signature = this._signature();
|
|
96102
|
+
if (!signature)
|
|
96103
|
+
return;
|
|
96104
|
+
this.bcDataExtractTaskId = task._id;
|
|
96105
|
+
const { request, issues } = buildBritishColumbiaDataExtractOrder(task, deltaData?.companyPassword);
|
|
96106
|
+
if (issues.length) {
|
|
96107
|
+
this.errors.set(issues);
|
|
96108
|
+
return;
|
|
96109
|
+
}
|
|
96110
|
+
this.isLoading.set(true);
|
|
96111
|
+
try {
|
|
96112
|
+
this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
|
|
96113
|
+
this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
|
|
96114
|
+
} catch (error) {
|
|
96115
|
+
this.handleCatchError(error);
|
|
96116
|
+
} finally {
|
|
96117
|
+
this.isLoading.set(false);
|
|
96118
|
+
}
|
|
96119
|
+
}
|
|
95983
96120
|
}));
|
|
95984
96121
|
}
|
|
95985
96122
|
getCurrentData() {
|
|
@@ -96061,7 +96198,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96061
96198
|
searchOrFilingType,
|
|
96062
96199
|
serviceOrderId: response["ServiceOrderId"] ?? "",
|
|
96063
96200
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
96064
|
-
provider:
|
|
96201
|
+
provider: getFilingProvider(signature.task),
|
|
96065
96202
|
draftPdf: response.Draft ?? "",
|
|
96066
96203
|
documentName: this.validateOptions()?.documentName ?? "Incorporation Draft",
|
|
96067
96204
|
documentType: "pdf"
|
|
@@ -96103,8 +96240,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96103
96240
|
try {
|
|
96104
96241
|
this.isLoading.set(true);
|
|
96105
96242
|
this.errors.set([]);
|
|
96106
|
-
const
|
|
96107
|
-
const
|
|
96243
|
+
const options = this.validateOptions() ?? {};
|
|
96244
|
+
const currentDataServiceOrderId = this.bcCurrentDataServiceOrderId;
|
|
96245
|
+
if (!currentDataServiceOrderId) {
|
|
96246
|
+
this.errors.set(["The current BC data extract is not ready yet. Please wait and try again."]);
|
|
96247
|
+
return;
|
|
96248
|
+
}
|
|
96249
|
+
const requestBody = buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData, currentDataServiceOrderId, this.currentDataExtract());
|
|
96250
|
+
const response = yield this.britishColumbiaChangeOfDirectorsService.validate(signature, requestBody, options);
|
|
96108
96251
|
if (this.hasResponseErrors(response))
|
|
96109
96252
|
return;
|
|
96110
96253
|
const serviceOrderId = response.ServiceOrderId ?? "";
|
|
@@ -96113,7 +96256,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96113
96256
|
searchOrFilingType: getSearchOrFilingType(task),
|
|
96114
96257
|
serviceOrderId,
|
|
96115
96258
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
96116
|
-
provider: "
|
|
96259
|
+
provider: "bcreg",
|
|
96117
96260
|
draftPdf: response.Draft,
|
|
96118
96261
|
documentName: this.validateOptions()?.documentName ?? "BC Change of Directors Draft",
|
|
96119
96262
|
documentType: "pdf"
|
|
@@ -96272,7 +96415,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96272
96415
|
const opts = this.validateOptions() ?? {};
|
|
96273
96416
|
const context2 = {
|
|
96274
96417
|
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
96275
|
-
accessCodeOrPassword:
|
|
96418
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode2(task, signature.env),
|
|
96276
96419
|
incorporationDate: String(task.entity._compliance?.incorporation_date ?? "").slice(0, 10)
|
|
96277
96420
|
};
|
|
96278
96421
|
const extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
@@ -96288,7 +96431,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96288
96431
|
searchOrFilingType,
|
|
96289
96432
|
serviceOrderId,
|
|
96290
96433
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
96291
|
-
provider: "
|
|
96434
|
+
provider: "bcreg",
|
|
96292
96435
|
draftPdf,
|
|
96293
96436
|
documentName: this.validateOptions()?.documentName ?? "British Columbia Change of Office Addresses Draft",
|
|
96294
96437
|
documentType: "pdf"
|
|
@@ -96296,7 +96439,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96296
96439
|
}
|
|
96297
96440
|
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
96298
96441
|
serviceOrderId,
|
|
96299
|
-
|
|
96442
|
+
// The corporation number is added by the service, not by the request builder, so it is
|
|
96443
|
+
// stored explicitly (the access code is deliberately left out) to detect entity changes.
|
|
96444
|
+
validatedData: __spreadProps(__spreadValues({}, JSON.parse(JSON.stringify(requestBody))), {
|
|
96445
|
+
corporationNumber: context2.corporationNumber
|
|
96446
|
+
})
|
|
96300
96447
|
}));
|
|
96301
96448
|
this.close.emit();
|
|
96302
96449
|
} catch (response) {
|
|
@@ -96395,7 +96542,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96395
96542
|
searchOrFilingType,
|
|
96396
96543
|
serviceOrderId,
|
|
96397
96544
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
96398
|
-
provider:
|
|
96545
|
+
provider: getFilingProvider(task),
|
|
96399
96546
|
draftPdf,
|
|
96400
96547
|
documentName: this.validateOptions()?.documentName ?? "Federal Draft",
|
|
96401
96548
|
documentType: "pdf"
|
|
@@ -96711,7 +96858,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96711
96858
|
return federalPayload;
|
|
96712
96859
|
}
|
|
96713
96860
|
if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
|
|
96714
|
-
return buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData)
|
|
96861
|
+
return __spreadProps(__spreadValues({}, buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData)), {
|
|
96862
|
+
corporationNumber: task.entity._profile.corp_number ?? ""
|
|
96863
|
+
});
|
|
96715
96864
|
}
|
|
96716
96865
|
if (isUpdateMaintain(task) && isOntarioTask(task)) {
|
|
96717
96866
|
const serviceOrderId = deltaData?.serviceOrderId ?? this.serviceOrderId;
|
|
@@ -96741,7 +96890,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96741
96890
|
if (rf & 2) {
|
|
96742
96891
|
\u0275\u0275styleProp("height", ctx.modalHeight());
|
|
96743
96892
|
}
|
|
96744
|
-
}, inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], currentUser: [1, "currentUser"], height: [1, "height"], validateOptions: [1, "validateOptions"], getDocumentBytes: [1, "getDocumentBytes"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 9, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors"], [3, "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "prevStep", "irValidate", "saveIrDeltaData", "irSubmit", "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "close", "nextStep", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "coaValidate", "saveCoaDeltaData", "coaSubmit", "formationValidate", "saveFormationDeltaData", "formationSubmit", "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
|
|
96893
|
+
}, inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], currentUser: [1, "currentUser"], height: [1, "height"], validateOptions: [1, "validateOptions"], getDocumentBytes: [1, "getDocumentBytes"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 9, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract"], [3, "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "prevStep", "irValidate", "saveIrDeltaData", "irSubmit", "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "close", "nextStep", "recheckStep", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "coaValidate", "saveCoaDeltaData", "coaSubmit", "formationValidate", "saveFormationDeltaData", "formationSubmit", "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
|
|
96745
96894
|
if (rf & 1) {
|
|
96746
96895
|
const _r1 = \u0275\u0275getCurrentView();
|
|
96747
96896
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
@@ -96844,8 +96993,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96844
96993
|
[isNote]="dataWasChanged()"\r
|
|
96845
96994
|
[actionsDisabled]="isLoading()"\r
|
|
96846
96995
|
[errors]="errors()"\r
|
|
96996
|
+
[currentDataExtract]="currentDataExtract()"\r
|
|
96847
96997
|
(close)="close.emit()"\r
|
|
96848
96998
|
(nextStep)="onNextStepClick()"\r
|
|
96999
|
+
(recheckStep)="defineInitialStep()"\r
|
|
96849
97000
|
(prevStep)="onOntarioPrevStep()"\r
|
|
96850
97001
|
(codValidate)="onBritishColumbiaChangeOfDirectorsValidate($event)"\r
|
|
96851
97002
|
(saveCodDeltaData)="onBritishColumbiaChangeOfDirectorsSave($event)"\r
|
|
@@ -96886,7 +97037,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96886
97037
|
}], () => [], null);
|
|
96887
97038
|
})();
|
|
96888
97039
|
(() => {
|
|
96889
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber:
|
|
97040
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 97 });
|
|
96890
97041
|
})();
|
|
96891
97042
|
}
|
|
96892
97043
|
});
|