@dyedurham/search-and-file-widget 2.0.94 → 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 +420 -261
- 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).
|
|
@@ -85112,22 +85158,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85112
85158
|
this.setOfficeAddressEnabled(group2, enabled);
|
|
85113
85159
|
return group2;
|
|
85114
85160
|
}
|
|
85115
|
-
/**
|
|
85161
|
+
/**
|
|
85162
|
+
* Enables or disables the editable controls of an address grid (used by "Same as…" checkboxes).
|
|
85163
|
+
* Hiding a grid also clears it, so un-ticking the checkbox shows an empty address to fill in.
|
|
85164
|
+
*/
|
|
85116
85165
|
static setOfficeAddressEnabled(group2, enabled) {
|
|
85117
85166
|
if (!group2) {
|
|
85118
85167
|
return;
|
|
85119
85168
|
}
|
|
85120
85169
|
EDITABLE_ADDRESS_CONTROLS.forEach((name) => {
|
|
85121
85170
|
const control = group2.get(name);
|
|
85122
|
-
|
|
85171
|
+
if (enabled) {
|
|
85172
|
+
control?.enable({ emitEvent: false });
|
|
85173
|
+
} else {
|
|
85174
|
+
control?.setValue("", { emitEvent: false });
|
|
85175
|
+
control?.disable({ emitEvent: false });
|
|
85176
|
+
}
|
|
85123
85177
|
});
|
|
85124
85178
|
group2.updateValueAndValidity({ emitEvent: false });
|
|
85125
85179
|
}
|
|
85126
85180
|
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
|
|
85127
85181
|
return new FormGroup({
|
|
85128
85182
|
[Controls2.ClientMatterNumber]: new FormControl(
|
|
85129
|
-
//
|
|
85130
|
-
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 ?? ""
|
|
85131
85185
|
),
|
|
85132
85186
|
[Controls2.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
|
|
85133
85187
|
});
|
|
@@ -85140,7 +85194,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85140
85194
|
});
|
|
85141
85195
|
|
|
85142
85196
|
// src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
|
|
85143
|
-
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;
|
|
85144
85198
|
var init_british_columbia_change_of_directors_form_constants = __esm({
|
|
85145
85199
|
"src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
|
|
85146
85200
|
init_form_enums();
|
|
@@ -85211,14 +85265,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85211
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.")
|
|
85212
85266
|
}
|
|
85213
85267
|
];
|
|
85214
|
-
generateBCChangeOfDirectorsIntroFields = (registerAsOf) => [
|
|
85215
|
-
{
|
|
85216
|
-
type: FormType.Text,
|
|
85217
|
-
formControlName: "",
|
|
85218
|
-
class: "span-12",
|
|
85219
|
-
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)
|
|
85220
|
-
}
|
|
85221
|
-
];
|
|
85222
85268
|
BC_COD_CARD_FORM_DIRECTORS_FIELDS = [
|
|
85223
85269
|
readOnlyRow("Mailing Address - Full Address", Controls3.MailingAddress),
|
|
85224
85270
|
readOnlyRow("Delivery Address - Full Address", Controls3.DeliveryAddress)
|
|
@@ -85292,7 +85338,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85292
85338
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template(rf, ctx) {
|
|
85293
85339
|
if (rf & 1) {
|
|
85294
85340
|
const _r2 = \u0275\u0275getCurrentView();
|
|
85295
|
-
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group",
|
|
85341
|
+
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 10);
|
|
85296
85342
|
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
85297
85343
|
\u0275\u0275restoreView(_r2);
|
|
85298
85344
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
@@ -85310,7 +85356,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85310
85356
|
}
|
|
85311
85357
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template(rf, ctx) {
|
|
85312
85358
|
if (rf & 1) {
|
|
85313
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
85359
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p")(3, "strong");
|
|
85314
85360
|
\u0275\u0275text(4);
|
|
85315
85361
|
\u0275\u0275pipe(5, "translate");
|
|
85316
85362
|
\u0275\u0275elementEnd();
|
|
@@ -85353,13 +85399,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85353
85399
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template(rf, ctx) {
|
|
85354
85400
|
if (rf & 1) {
|
|
85355
85401
|
const _r7 = \u0275\u0275getCurrentView();
|
|
85356
|
-
\u0275\u0275elementStart(0, "div",
|
|
85402
|
+
\u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "label");
|
|
85357
85403
|
\u0275\u0275text(3);
|
|
85358
85404
|
\u0275\u0275pipe(4, "translate");
|
|
85359
85405
|
\u0275\u0275elementStart(5, "span");
|
|
85360
85406
|
\u0275\u0275text(6, "*");
|
|
85361
85407
|
\u0275\u0275elementEnd()();
|
|
85362
|
-
\u0275\u0275elementStart(7, "mat-form-field",
|
|
85408
|
+
\u0275\u0275elementStart(7, "mat-form-field", 17)(8, "input", 18);
|
|
85363
85409
|
\u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_click_8_listener() {
|
|
85364
85410
|
\u0275\u0275restoreView(_r7);
|
|
85365
85411
|
const changeDatePicker_r8 = \u0275\u0275reference(12);
|
|
@@ -85371,21 +85417,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85371
85417
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
|
|
85372
85418
|
});
|
|
85373
85419
|
\u0275\u0275elementEnd();
|
|
85374
|
-
\u0275\u0275elementStart(9, "button",
|
|
85420
|
+
\u0275\u0275elementStart(9, "button", 19);
|
|
85375
85421
|
\u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_button_click_9_listener() {
|
|
85376
85422
|
\u0275\u0275restoreView(_r7);
|
|
85377
85423
|
const changeDatePicker_r8 = \u0275\u0275reference(12);
|
|
85378
85424
|
return \u0275\u0275resetView(changeDatePicker_r8.open());
|
|
85379
85425
|
});
|
|
85380
|
-
\u0275\u0275element(10, "span",
|
|
85426
|
+
\u0275\u0275element(10, "span", 20);
|
|
85381
85427
|
\u0275\u0275elementEnd();
|
|
85382
85428
|
\u0275\u0275element(11, "mat-datepicker", null, 0);
|
|
85383
85429
|
\u0275\u0275elementEnd();
|
|
85384
|
-
\u0275\u0275elementStart(13, "p",
|
|
85430
|
+
\u0275\u0275elementStart(13, "p", 21);
|
|
85385
85431
|
\u0275\u0275text(14);
|
|
85386
85432
|
\u0275\u0275pipe(15, "translate");
|
|
85387
85433
|
\u0275\u0275elementEnd()();
|
|
85388
|
-
\u0275\u0275elementStart(16, "p",
|
|
85434
|
+
\u0275\u0275elementStart(16, "p", 22)(17, "strong");
|
|
85389
85435
|
\u0275\u0275text(18);
|
|
85390
85436
|
\u0275\u0275pipe(19, "translate");
|
|
85391
85437
|
\u0275\u0275elementEnd();
|
|
@@ -85412,14 +85458,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85412
85458
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
|
|
85413
85459
|
if (rf & 1) {
|
|
85414
85460
|
const _r5 = \u0275\u0275getCurrentView();
|
|
85415
|
-
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div",
|
|
85461
|
+
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 12)(2, "div", 13)(3, "strong");
|
|
85416
85462
|
\u0275\u0275text(4);
|
|
85417
85463
|
\u0275\u0275pipe(5, "translate");
|
|
85418
85464
|
\u0275\u0275elementEnd();
|
|
85419
85465
|
\u0275\u0275text(6);
|
|
85420
85466
|
\u0275\u0275pipe(7, "translate");
|
|
85421
85467
|
\u0275\u0275elementEnd();
|
|
85422
|
-
\u0275\u0275elementStart(8, "mat-checkbox",
|
|
85468
|
+
\u0275\u0275elementStart(8, "mat-checkbox", 14);
|
|
85423
85469
|
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
|
|
85424
85470
|
let tmp_7_0;
|
|
85425
85471
|
let tmp_8_0;
|
|
@@ -85433,7 +85479,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85433
85479
|
\u0275\u0275text(9);
|
|
85434
85480
|
\u0275\u0275pipe(10, "translate");
|
|
85435
85481
|
\u0275\u0275elementEnd();
|
|
85436
|
-
\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);
|
|
85437
85483
|
\u0275\u0275elementEnd()();
|
|
85438
85484
|
}
|
|
85439
85485
|
if (rf & 2) {
|
|
@@ -85455,9 +85501,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85455
85501
|
\u0275\u0275conditional(((tmp_14_0 = filingDetails_r6.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_14_0.value) ? 11 : -1);
|
|
85456
85502
|
}
|
|
85457
85503
|
}
|
|
85458
|
-
function
|
|
85504
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
|
|
85459
85505
|
if (rf & 1) {
|
|
85460
|
-
\u0275\u0275elementStart(0, "span",
|
|
85506
|
+
\u0275\u0275elementStart(0, "span", 27);
|
|
85461
85507
|
\u0275\u0275text(1);
|
|
85462
85508
|
\u0275\u0275pipe(2, "translate");
|
|
85463
85509
|
\u0275\u0275elementEnd();
|
|
@@ -85467,9 +85513,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85467
85513
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "NEW"));
|
|
85468
85514
|
}
|
|
85469
85515
|
}
|
|
85470
|
-
function
|
|
85516
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
|
|
85471
85517
|
if (rf & 1) {
|
|
85472
|
-
\u0275\u0275elementStart(0, "span",
|
|
85518
|
+
\u0275\u0275elementStart(0, "span", 28);
|
|
85473
85519
|
\u0275\u0275text(1);
|
|
85474
85520
|
\u0275\u0275pipe(2, "translate");
|
|
85475
85521
|
\u0275\u0275elementEnd();
|
|
@@ -85479,17 +85525,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85479
85525
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "CEASE"));
|
|
85480
85526
|
}
|
|
85481
85527
|
}
|
|
85482
|
-
function
|
|
85528
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
|
|
85483
85529
|
if (rf & 1) {
|
|
85484
|
-
\u0275\u0275elementStart(0, "div",
|
|
85530
|
+
\u0275\u0275elementStart(0, "div", 25)(1, "div", 26)(2, "strong");
|
|
85485
85531
|
\u0275\u0275text(3);
|
|
85486
85532
|
\u0275\u0275elementEnd();
|
|
85487
|
-
\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);
|
|
85488
85534
|
\u0275\u0275elementEnd();
|
|
85489
|
-
\u0275\u0275elementStart(6, "div",
|
|
85535
|
+
\u0275\u0275elementStart(6, "div", 26);
|
|
85490
85536
|
\u0275\u0275text(7);
|
|
85491
85537
|
\u0275\u0275elementEnd();
|
|
85492
|
-
\u0275\u0275elementStart(8, "div",
|
|
85538
|
+
\u0275\u0275elementStart(8, "div", 26);
|
|
85493
85539
|
\u0275\u0275text(9);
|
|
85494
85540
|
\u0275\u0275elementEnd()();
|
|
85495
85541
|
}
|
|
@@ -85512,33 +85558,33 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85512
85558
|
\u0275\u0275textInterpolate((tmp_23_0 = directorForm_r9.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
|
|
85513
85559
|
}
|
|
85514
85560
|
}
|
|
85515
|
-
function
|
|
85561
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
|
|
85516
85562
|
if (rf & 1) {
|
|
85517
85563
|
\u0275\u0275declareLet(0);
|
|
85518
|
-
\u0275\u0275template(1,
|
|
85564
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 25);
|
|
85519
85565
|
}
|
|
85520
85566
|
if (rf & 2) {
|
|
85521
|
-
const \u0275$
|
|
85522
|
-
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));
|
|
85523
85569
|
\u0275\u0275advance();
|
|
85524
85570
|
\u0275\u0275conditional(directorForm_r11 ? 1 : -1);
|
|
85525
85571
|
}
|
|
85526
85572
|
}
|
|
85527
|
-
function
|
|
85573
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
|
|
85528
85574
|
if (rf & 1) {
|
|
85529
|
-
\u0275\u0275elementStart(0, "div",
|
|
85575
|
+
\u0275\u0275elementStart(0, "div", 8)(1, "div", 23)(2, "div", 24);
|
|
85530
85576
|
\u0275\u0275text(3);
|
|
85531
85577
|
\u0275\u0275pipe(4, "translate");
|
|
85532
85578
|
\u0275\u0275elementEnd();
|
|
85533
|
-
\u0275\u0275elementStart(5, "div",
|
|
85579
|
+
\u0275\u0275elementStart(5, "div", 24);
|
|
85534
85580
|
\u0275\u0275text(6);
|
|
85535
85581
|
\u0275\u0275pipe(7, "translate");
|
|
85536
85582
|
\u0275\u0275elementEnd();
|
|
85537
|
-
\u0275\u0275elementStart(8, "div",
|
|
85583
|
+
\u0275\u0275elementStart(8, "div", 24);
|
|
85538
85584
|
\u0275\u0275text(9);
|
|
85539
85585
|
\u0275\u0275pipe(10, "translate");
|
|
85540
85586
|
\u0275\u0275elementEnd()();
|
|
85541
|
-
\u0275\u0275repeaterCreate(11,
|
|
85587
|
+
\u0275\u0275repeaterCreate(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template, 2, 2, null, null, \u0275\u0275repeaterTrackByIdentity);
|
|
85542
85588
|
\u0275\u0275elementEnd();
|
|
85543
85589
|
}
|
|
85544
85590
|
if (rf & 2) {
|
|
@@ -85554,9 +85600,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85554
85600
|
\u0275\u0275repeater(directorsArray_r12.controls);
|
|
85555
85601
|
}
|
|
85556
85602
|
}
|
|
85557
|
-
function
|
|
85603
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
|
|
85558
85604
|
if (rf & 1) {
|
|
85559
|
-
\u0275\u0275elementStart(0, "h2",
|
|
85605
|
+
\u0275\u0275elementStart(0, "h2", 9);
|
|
85560
85606
|
\u0275\u0275text(1);
|
|
85561
85607
|
\u0275\u0275pipe(2, "translate");
|
|
85562
85608
|
\u0275\u0275elementEnd();
|
|
@@ -85566,32 +85612,32 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85566
85612
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "Unchanged"));
|
|
85567
85613
|
}
|
|
85568
85614
|
}
|
|
85569
|
-
function
|
|
85615
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
|
|
85570
85616
|
if (rf & 1) {
|
|
85571
85617
|
const _r13 = \u0275\u0275getCurrentView();
|
|
85572
|
-
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div",
|
|
85618
|
+
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 29)(2, "p");
|
|
85573
85619
|
\u0275\u0275text(3);
|
|
85574
85620
|
\u0275\u0275pipe(4, "translate");
|
|
85575
85621
|
\u0275\u0275elementEnd();
|
|
85576
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
85577
|
-
\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() {
|
|
85578
85624
|
\u0275\u0275restoreView(_r13);
|
|
85579
85625
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85580
|
-
const annualReportReminder_r14 = \u0275\u0275readContextLet(
|
|
85626
|
+
const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
|
|
85581
85627
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r14.valid));
|
|
85582
85628
|
});
|
|
85583
|
-
\u0275\u0275elementStart(6, "mat-radio-button",
|
|
85629
|
+
\u0275\u0275elementStart(6, "mat-radio-button", 31);
|
|
85584
85630
|
\u0275\u0275text(7);
|
|
85585
85631
|
\u0275\u0275pipe(8, "translate");
|
|
85586
85632
|
\u0275\u0275elementEnd();
|
|
85587
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
85633
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 31);
|
|
85588
85634
|
\u0275\u0275text(10);
|
|
85589
85635
|
\u0275\u0275pipe(11, "translate");
|
|
85590
85636
|
\u0275\u0275elementEnd()()()();
|
|
85591
85637
|
}
|
|
85592
85638
|
if (rf & 2) {
|
|
85593
85639
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85594
|
-
const annualReportReminder_r14 = \u0275\u0275readContextLet(
|
|
85640
|
+
const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
|
|
85595
85641
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
|
|
85596
85642
|
\u0275\u0275advance();
|
|
85597
85643
|
\u0275\u0275property("formGroup", annualReportReminder_r14);
|
|
@@ -85646,10 +85692,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85646
85692
|
filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
|
|
85647
85693
|
directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
|
|
85648
85694
|
annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
85649
|
-
directorsIntroFields = computed(() => {
|
|
85650
|
-
const date = this.form().get(this.groups.Notification)?.get(this.controls.RegisterAsOfDate)?.value ?? "";
|
|
85651
|
-
return generateBCChangeOfDirectorsIntroFields(date);
|
|
85652
|
-
});
|
|
85653
85695
|
initiallyOpenCardsCount = 3;
|
|
85654
85696
|
sectionValidity = {};
|
|
85655
85697
|
isVisiblyValid() {
|
|
@@ -85684,7 +85726,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85684
85726
|
static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
|
|
85685
85727
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
|
|
85686
85728
|
};
|
|
85687
|
-
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) {
|
|
85688
85730
|
if (rf & 1) {
|
|
85689
85731
|
\u0275\u0275elementStart(0, "div", 1);
|
|
85690
85732
|
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 2)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 3);
|
|
@@ -85697,11 +85739,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85697
85739
|
\u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 7);
|
|
85698
85740
|
\u0275\u0275declareLet(10);
|
|
85699
85741
|
\u0275\u0275elementStart(11, "expandable-card", 6);
|
|
85700
|
-
\u0275\
|
|
85701
|
-
\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);
|
|
85702
85743
|
\u0275\u0275elementEnd();
|
|
85703
|
-
\u0275\u0275declareLet(
|
|
85704
|
-
\u0275\u0275template(
|
|
85744
|
+
\u0275\u0275declareLet(14);
|
|
85745
|
+
\u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 7);
|
|
85705
85746
|
\u0275\u0275elementEnd()();
|
|
85706
85747
|
}
|
|
85707
85748
|
if (rf & 2) {
|
|
@@ -85726,13 +85767,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85726
85767
|
\u0275\u0275advance();
|
|
85727
85768
|
\u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
|
|
85728
85769
|
\u0275\u0275advance();
|
|
85729
|
-
\u0275\
|
|
85730
|
-
\u0275\u0275advance();
|
|
85731
|
-
\u0275\u0275conditional(directorsArray_r18 && directorsArray_r18.length ? 13 : 14);
|
|
85770
|
+
\u0275\u0275conditional(directorsArray_r18 && directorsArray_r18.length ? 12 : 13);
|
|
85732
85771
|
\u0275\u0275advance(2);
|
|
85733
85772
|
const annualReportReminder_r19 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
85734
85773
|
\u0275\u0275advance();
|
|
85735
|
-
\u0275\u0275conditional(annualReportReminder_r19 ?
|
|
85774
|
+
\u0275\u0275conditional(annualReportReminder_r19 ? 15 : -1);
|
|
85736
85775
|
}
|
|
85737
85776
|
}, dependencies: [
|
|
85738
85777
|
FilingFormGroupComponent,
|
|
@@ -85902,12 +85941,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85902
85941
|
@let directorsArray = getFormArray(groups.Directors);\r
|
|
85903
85942
|
\r
|
|
85904
85943
|
<expandable-card [isStatusIcon]="false" [title]="groups.Directors">\r
|
|
85905
|
-
<filing-form-group\r
|
|
85906
|
-
[isSubmitted]="isSubmitted()"\r
|
|
85907
|
-
[form]="form()"\r
|
|
85908
|
-
[config]="directorsIntroFields()"\r
|
|
85909
|
-
/>\r
|
|
85910
|
-
\r
|
|
85911
85944
|
@if (directorsArray && directorsArray.length) {\r
|
|
85912
85945
|
<div class="directors-table" role="table">\r
|
|
85913
85946
|
<div class="directors-table-header" role="row">\r
|
|
@@ -85975,7 +86008,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85975
86008
|
}], null, null);
|
|
85976
86009
|
})();
|
|
85977
86010
|
(() => {
|
|
85978
|
-
(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 });
|
|
85979
86012
|
})();
|
|
85980
86013
|
}
|
|
85981
86014
|
});
|
|
@@ -86283,27 +86316,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86283
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)
|
|
86284
86317
|
},
|
|
86285
86318
|
{
|
|
86286
|
-
|
|
86287
|
-
|
|
86319
|
+
// Options are filled per task from `task.entity.emailOptions` by the incorporation form.
|
|
86320
|
+
type: FormType.Select,
|
|
86288
86321
|
label: "Company Email",
|
|
86289
86322
|
formControlName: BCFormationFormControls.CompanyEmail,
|
|
86290
86323
|
required: true,
|
|
86291
|
-
|
|
86292
|
-
errorMessage: "Enter a valid email address",
|
|
86293
|
-
showRequiredMessage: true,
|
|
86294
|
-
class: "span-6"
|
|
86295
|
-
},
|
|
86296
|
-
{
|
|
86297
|
-
type: FormType.Input,
|
|
86298
|
-
inputType: "password",
|
|
86299
|
-
label: "Company Password",
|
|
86300
|
-
formControlName: BCFormationFormControls.CompanyPassword,
|
|
86301
|
-
required: true,
|
|
86302
|
-
maxLength: BC_PASSWORD_MAX_LENGTH,
|
|
86303
|
-
errorMessage: "Company Password must be 8 to 15 characters",
|
|
86304
|
-
showRequiredMessage: true,
|
|
86324
|
+
options: [],
|
|
86305
86325
|
class: "span-6"
|
|
86306
86326
|
}
|
|
86327
|
+
// The company password is not shown: it is taken from the entity's registry ID.
|
|
86307
86328
|
];
|
|
86308
86329
|
BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS = [
|
|
86309
86330
|
{
|
|
@@ -86662,7 +86683,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86662
86683
|
const corporationDetails_r11 = \u0275\u0275readContextLet(6);
|
|
86663
86684
|
\u0275\u0275property("isValid", ctx_r0.sectionValidity["corpDetails"] && ctx_r0.sectionValidity["nameTranslation"] && ctx_r0.areNameTranslationsValid())("isStatusIcon", ctx_r0.statusIcon())("title", ctx_r0.groups.CorporationDetails);
|
|
86664
86685
|
\u0275\u0275advance(2);
|
|
86665
|
-
\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());
|
|
86666
86687
|
\u0275\u0275advance(2);
|
|
86667
86688
|
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(5, 11, "Name Translation"));
|
|
86668
86689
|
\u0275\u0275advance(2);
|
|
@@ -86897,7 +86918,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86897
86918
|
groups = BCFormationFormGroups;
|
|
86898
86919
|
controls = BCFormationFormControls;
|
|
86899
86920
|
referenceNumbersFields = BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS;
|
|
86900
|
-
|
|
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
|
+
});
|
|
86901
86927
|
nameTranslationFields = BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS;
|
|
86902
86928
|
nameTranslationRowFields = BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS;
|
|
86903
86929
|
registeredOfficeFields = BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS;
|
|
@@ -87087,7 +87113,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87087
87113
|
<filing-form-group\r
|
|
87088
87114
|
[isSubmitted]="isSubmitted()"\r
|
|
87089
87115
|
[form]="corporationDetails"\r
|
|
87090
|
-
[config]="corporationDetailsFields"\r
|
|
87116
|
+
[config]="corporationDetailsFields()"\r
|
|
87091
87117
|
(visiblyValidChange)="onSectionValidChange('corpDetails', $event)"\r
|
|
87092
87118
|
/>\r
|
|
87093
87119
|
\r
|
|
@@ -88396,7 +88422,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88396
88422
|
function BritishColumbiaComponent_Conditional_1_Conditional_0_Template(rf, ctx) {
|
|
88397
88423
|
if (rf & 1) {
|
|
88398
88424
|
const _r1 = \u0275\u0275getCurrentView();
|
|
88399
|
-
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-delta-form",
|
|
88425
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-delta-form", 2);
|
|
88400
88426
|
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_1_Conditional_0_Template_british_columbia_change_of_directors_delta_form_validate_0_listener() {
|
|
88401
88427
|
\u0275\u0275restoreView(_r1);
|
|
88402
88428
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
@@ -88421,7 +88447,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88421
88447
|
function BritishColumbiaComponent_Conditional_1_Conditional_1_Template(rf, ctx) {
|
|
88422
88448
|
if (rf & 1) {
|
|
88423
88449
|
const _r4 = \u0275\u0275getCurrentView();
|
|
88424
|
-
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-preview-form",
|
|
88450
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-preview-form", 3);
|
|
88425
88451
|
\u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_change_of_directors_preview_form_close_0_listener() {
|
|
88426
88452
|
\u0275\u0275restoreView(_r4);
|
|
88427
88453
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
@@ -88429,7 +88455,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88429
88455
|
})("file", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_change_of_directors_preview_form_file_0_listener() {
|
|
88430
88456
|
\u0275\u0275restoreView(_r4);
|
|
88431
88457
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88432
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
88458
|
+
return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsSubmit());
|
|
88433
88459
|
});
|
|
88434
88460
|
\u0275\u0275elementEnd();
|
|
88435
88461
|
}
|
|
@@ -88439,57 +88465,31 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88439
88465
|
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors());
|
|
88440
88466
|
}
|
|
88441
88467
|
}
|
|
88442
|
-
function BritishColumbiaComponent_Conditional_1_Conditional_2_Template(rf, ctx) {
|
|
88443
|
-
if (rf & 1) {
|
|
88444
|
-
const _r5 = \u0275\u0275getCurrentView();
|
|
88445
|
-
\u0275\u0275elementStart(0, "terms-and-conditions", 5);
|
|
88446
|
-
\u0275\u0275listener("prev", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_prev_0_listener() {
|
|
88447
|
-
\u0275\u0275restoreView(_r5);
|
|
88448
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88449
|
-
return \u0275\u0275resetView(ctx_r1.prevStep.emit());
|
|
88450
|
-
})("close", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_close_0_listener() {
|
|
88451
|
-
\u0275\u0275restoreView(_r5);
|
|
88452
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88453
|
-
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
88454
|
-
})("confirm", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_confirm_0_listener($event) {
|
|
88455
|
-
\u0275\u0275restoreView(_r5);
|
|
88456
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88457
|
-
return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsSubmit($event));
|
|
88458
|
-
});
|
|
88459
|
-
\u0275\u0275elementEnd();
|
|
88460
|
-
}
|
|
88461
|
-
if (rf & 2) {
|
|
88462
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88463
|
-
\u0275\u0275property("errors", ctx_r1.errors());
|
|
88464
|
-
}
|
|
88465
|
-
}
|
|
88466
88468
|
function BritishColumbiaComponent_Conditional_1_Template(rf, ctx) {
|
|
88467
88469
|
if (rf & 1) {
|
|
88468
|
-
\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);
|
|
88469
88471
|
}
|
|
88470
88472
|
if (rf & 2) {
|
|
88471
88473
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
88472
88474
|
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.Validate ? 0 : -1);
|
|
88473
88475
|
\u0275\u0275advance();
|
|
88474
88476
|
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
|
|
88475
|
-
\u0275\u0275advance();
|
|
88476
|
-
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.TermsAndConditions ? 2 : -1);
|
|
88477
88477
|
}
|
|
88478
88478
|
}
|
|
88479
88479
|
function BritishColumbiaComponent_Conditional_2_Conditional_0_Template(rf, ctx) {
|
|
88480
88480
|
if (rf & 1) {
|
|
88481
|
-
const
|
|
88482
|
-
\u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form",
|
|
88481
|
+
const _r5 = \u0275\u0275getCurrentView();
|
|
88482
|
+
\u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form", 6);
|
|
88483
88483
|
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_validate_0_listener() {
|
|
88484
|
-
\u0275\u0275restoreView(
|
|
88484
|
+
\u0275\u0275restoreView(_r5);
|
|
88485
88485
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88486
88486
|
return \u0275\u0275resetView(ctx_r1.onFormationValidate());
|
|
88487
88487
|
})("close", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_close_0_listener() {
|
|
88488
|
-
\u0275\u0275restoreView(
|
|
88488
|
+
\u0275\u0275restoreView(_r5);
|
|
88489
88489
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88490
88490
|
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
88491
88491
|
})("save", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_save_0_listener() {
|
|
88492
|
-
\u0275\u0275restoreView(
|
|
88492
|
+
\u0275\u0275restoreView(_r5);
|
|
88493
88493
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88494
88494
|
return \u0275\u0275resetView(ctx_r1.onFormationSave());
|
|
88495
88495
|
});
|
|
@@ -88503,14 +88503,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88503
88503
|
}
|
|
88504
88504
|
function BritishColumbiaComponent_Conditional_2_Conditional_1_Template(rf, ctx) {
|
|
88505
88505
|
if (rf & 1) {
|
|
88506
|
-
const
|
|
88507
|
-
\u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form",
|
|
88506
|
+
const _r6 = \u0275\u0275getCurrentView();
|
|
88507
|
+
\u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 7);
|
|
88508
88508
|
\u0275\u0275listener("next", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_next_0_listener() {
|
|
88509
|
-
\u0275\u0275restoreView(
|
|
88509
|
+
\u0275\u0275restoreView(_r6);
|
|
88510
88510
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88511
88511
|
return \u0275\u0275resetView(ctx_r1.onFormationSubmit());
|
|
88512
88512
|
})("close", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_close_0_listener() {
|
|
88513
|
-
\u0275\u0275restoreView(
|
|
88513
|
+
\u0275\u0275restoreView(_r6);
|
|
88514
88514
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88515
88515
|
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
88516
88516
|
});
|
|
@@ -88524,7 +88524,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88524
88524
|
}
|
|
88525
88525
|
function BritishColumbiaComponent_Conditional_2_Template(rf, ctx) {
|
|
88526
88526
|
if (rf & 1) {
|
|
88527
|
-
\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);
|
|
88528
88528
|
}
|
|
88529
88529
|
if (rf & 2) {
|
|
88530
88530
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
@@ -88535,18 +88535,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88535
88535
|
}
|
|
88536
88536
|
function BritishColumbiaComponent_Conditional_3_Conditional_0_Template(rf, ctx) {
|
|
88537
88537
|
if (rf & 1) {
|
|
88538
|
-
const
|
|
88539
|
-
\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);
|
|
88540
88540
|
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_validate_0_listener() {
|
|
88541
|
-
\u0275\u0275restoreView(
|
|
88541
|
+
\u0275\u0275restoreView(_r7);
|
|
88542
88542
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88543
88543
|
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesValidate());
|
|
88544
88544
|
})("close", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_close_0_listener() {
|
|
88545
|
-
\u0275\u0275restoreView(
|
|
88545
|
+
\u0275\u0275restoreView(_r7);
|
|
88546
88546
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88547
88547
|
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
88548
88548
|
})("save", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_save_0_listener() {
|
|
88549
|
-
\u0275\u0275restoreView(
|
|
88549
|
+
\u0275\u0275restoreView(_r7);
|
|
88550
88550
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88551
88551
|
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesSave());
|
|
88552
88552
|
});
|
|
@@ -88560,14 +88560,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88560
88560
|
}
|
|
88561
88561
|
function BritishColumbiaComponent_Conditional_3_Conditional_1_Template(rf, ctx) {
|
|
88562
88562
|
if (rf & 1) {
|
|
88563
|
-
const
|
|
88564
|
-
\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);
|
|
88565
88565
|
\u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_close_0_listener() {
|
|
88566
|
-
\u0275\u0275restoreView(
|
|
88566
|
+
\u0275\u0275restoreView(_r8);
|
|
88567
88567
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88568
88568
|
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
88569
88569
|
})("file", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_file_0_listener() {
|
|
88570
|
-
\u0275\u0275restoreView(
|
|
88570
|
+
\u0275\u0275restoreView(_r8);
|
|
88571
88571
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
88572
88572
|
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesFile());
|
|
88573
88573
|
});
|
|
@@ -88606,7 +88606,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88606
88606
|
init_delta_state_service();
|
|
88607
88607
|
init_common_utils();
|
|
88608
88608
|
init_confirm_modal_component();
|
|
88609
|
-
init_terms_and_conditions_component();
|
|
88610
88609
|
init_change_of_directors_delta_form_component();
|
|
88611
88610
|
init_change_of_directors_preview_form_component();
|
|
88612
88611
|
init_british_columbia_incorporation_delta_form_component();
|
|
@@ -88621,6 +88620,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88621
88620
|
isNote = input(false);
|
|
88622
88621
|
actionsDisabled = input(false);
|
|
88623
88622
|
errors = input([]);
|
|
88623
|
+
currentDataExtract = input();
|
|
88624
88624
|
close = output();
|
|
88625
88625
|
codValidate = output();
|
|
88626
88626
|
saveCodDeltaData = output();
|
|
@@ -88629,6 +88629,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88629
88629
|
formationSubmit = output();
|
|
88630
88630
|
saveFormationDeltaData = output();
|
|
88631
88631
|
nextStep = output();
|
|
88632
|
+
recheckStep = output();
|
|
88632
88633
|
prevStep = output();
|
|
88633
88634
|
// Change of Office Addresses outputs
|
|
88634
88635
|
coaValidate = output();
|
|
@@ -88647,7 +88648,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88647
88648
|
effect(() => {
|
|
88648
88649
|
const task = this.task();
|
|
88649
88650
|
if (task && isChangeOfPrincipalsTask(task)) {
|
|
88650
|
-
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())));
|
|
88651
88652
|
this.deltaState.setBCChangeOfDirectorsInitialDelta(this.generateChangeOfDirectorsDeltaData());
|
|
88652
88653
|
}
|
|
88653
88654
|
if (task && isFormationTask2(task)) {
|
|
@@ -88666,7 +88667,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88666
88667
|
return;
|
|
88667
88668
|
}
|
|
88668
88669
|
if (isChangeOfPrincipalsTask(task)) {
|
|
88669
|
-
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()));
|
|
88670
88671
|
form.disable();
|
|
88671
88672
|
this.previewForm.set(form);
|
|
88672
88673
|
if (untracked2(() => this.activeStep()) === Step.Validate) {
|
|
@@ -88685,8 +88686,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88685
88686
|
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
|
|
88686
88687
|
form.disable();
|
|
88687
88688
|
this.previewForm.set(form);
|
|
88688
|
-
|
|
88689
|
+
const step = untracked2(() => this.activeStep());
|
|
88690
|
+
if (step === Step.Validate) {
|
|
88689
88691
|
this.nextStep.emit();
|
|
88692
|
+
} else if (step === Step.FilingPreview) {
|
|
88693
|
+
this.recheckStep.emit();
|
|
88690
88694
|
}
|
|
88691
88695
|
}
|
|
88692
88696
|
});
|
|
@@ -88748,11 +88752,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88748
88752
|
this.deltaState.setBCChangeOfDirectorsInitialDelta(delta);
|
|
88749
88753
|
this.saveCodDeltaData.emit(delta);
|
|
88750
88754
|
}
|
|
88751
|
-
onChangeOfDirectorsSubmit(
|
|
88752
|
-
this.codSubmit.emit(
|
|
88753
|
-
signatoryFirstName: termsAndConditions.firstName,
|
|
88754
|
-
signatoryLastName: termsAndConditions.lastName
|
|
88755
|
-
}));
|
|
88755
|
+
onChangeOfDirectorsSubmit() {
|
|
88756
|
+
this.codSubmit.emit();
|
|
88756
88757
|
}
|
|
88757
88758
|
onFormationValidate() {
|
|
88758
88759
|
markFormGroupTouched(this.deltaForm());
|
|
@@ -88773,6 +88774,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88773
88774
|
const filing = formData[BCChangeOfDirectorsFormGroups.FilingDetails];
|
|
88774
88775
|
const notification = formData[BCChangeOfDirectorsFormGroups.Notification];
|
|
88775
88776
|
const reminder = formData[BCChangeOfDirectorsFormGroups.AnnualReportReminder];
|
|
88777
|
+
const directors = formData[BCChangeOfDirectorsFormGroups.Directors] ?? [];
|
|
88776
88778
|
const addedOrDeleted = Boolean(filing?.[c.DirectorsAddedOrDeleted]);
|
|
88777
88779
|
const notifyByMail = notification?.[c.NotificationMethod] === BCNotificationMethod.Mail;
|
|
88778
88780
|
return {
|
|
@@ -88788,10 +88790,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88788
88790
|
method: notification?.[c.NotificationMethod] ?? null,
|
|
88789
88791
|
email: notifyByMail ? void 0 : notification?.[c.NotificationEmail] ?? null
|
|
88790
88792
|
},
|
|
88791
|
-
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
|
+
}
|
|
88792
88799
|
};
|
|
88793
88800
|
}
|
|
88794
|
-
generateFormationDeltaData(
|
|
88801
|
+
generateFormationDeltaData() {
|
|
88795
88802
|
const formData = this.deltaForm().getRawValue();
|
|
88796
88803
|
const refNumbers = formData[BCFormationFormGroups.ReferenceNumbers];
|
|
88797
88804
|
const corpDetails = formData[BCFormationFormGroups.CorporationDetails];
|
|
@@ -88865,19 +88872,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88865
88872
|
static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
|
|
88866
88873
|
return new (__ngFactoryType__ || _BritishColumbiaComponent)();
|
|
88867
88874
|
};
|
|
88868
|
-
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) {
|
|
88869
88876
|
if (rf & 1) {
|
|
88870
88877
|
\u0275\u0275declareLet(0);
|
|
88871
|
-
\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);
|
|
88872
88879
|
}
|
|
88873
88880
|
if (rf & 2) {
|
|
88874
|
-
const
|
|
88881
|
+
const taskData_r9 = \u0275\u0275storeLet(ctx.task());
|
|
88875
88882
|
\u0275\u0275advance();
|
|
88876
|
-
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(
|
|
88883
|
+
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r9) ? 1 : -1);
|
|
88877
88884
|
\u0275\u0275advance();
|
|
88878
|
-
\u0275\u0275conditional(ctx.isFormationTask(
|
|
88885
|
+
\u0275\u0275conditional(ctx.isFormationTask(taskData_r9) ? 2 : -1);
|
|
88879
88886
|
\u0275\u0275advance();
|
|
88880
|
-
\u0275\u0275conditional(ctx.isChangeOfOfficeAddressesTask(
|
|
88887
|
+
\u0275\u0275conditional(ctx.isChangeOfOfficeAddressesTask(taskData_r9) ? 3 : -1);
|
|
88881
88888
|
}
|
|
88882
88889
|
}, dependencies: [
|
|
88883
88890
|
BritishColumbiaChangeOfDirectorsDeltaFormComponent,
|
|
@@ -88885,8 +88892,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88885
88892
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
88886
88893
|
BritishColumbiaIncorporationPreviewFormComponent,
|
|
88887
88894
|
BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent,
|
|
88888
|
-
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
88889
|
-
TermsAndConditionsComponent
|
|
88895
|
+
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
88890
88896
|
], styles: ["\n\n[_nghost-%COMP%] {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */"], changeDetection: 0 });
|
|
88891
88897
|
};
|
|
88892
88898
|
(() => {
|
|
@@ -88898,13 +88904,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88898
88904
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
88899
88905
|
BritishColumbiaIncorporationPreviewFormComponent,
|
|
88900
88906
|
BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent,
|
|
88901
|
-
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
88902
|
-
|
|
88903
|
-
], 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"] }]
|
|
88904
88909
|
}], () => [], null);
|
|
88905
88910
|
})();
|
|
88906
88911
|
(() => {
|
|
88907
|
-
(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 });
|
|
88908
88913
|
})();
|
|
88909
88914
|
}
|
|
88910
88915
|
});
|
|
@@ -90275,7 +90280,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90275
90280
|
const isNumberedCompany = ext._numbered_company;
|
|
90276
90281
|
const config2 = {};
|
|
90277
90282
|
const corporateName = delta?.corporateName;
|
|
90278
|
-
const directors = (task.entity.affiliations ?? [])
|
|
90283
|
+
const directors = getIndividualDirectors(task.entity.affiliations ?? []);
|
|
90279
90284
|
if (directors.length) {
|
|
90280
90285
|
const deltaDirectorsMap = delta?.directors;
|
|
90281
90286
|
const directorGroups = directors.map((director) => {
|
|
@@ -90856,7 +90861,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90856
90861
|
}
|
|
90857
90862
|
});
|
|
90858
90863
|
effect(() => {
|
|
90859
|
-
const directors = (this.task()?.entity.affiliations ?? [])
|
|
90864
|
+
const directors = getIndividualDirectors(this.task()?.entity.affiliations ?? []);
|
|
90860
90865
|
const directorOptions = directors.map((director) => ({ label: getPersonName(director.participant), value: director.participant._id }));
|
|
90861
90866
|
this.federalFormationFormInviteDirectorsToBeManagersControl = generateFederalFormationFormInviteDirectorsToBeManagersControl(directorOptions);
|
|
90862
90867
|
});
|
|
@@ -91031,11 +91036,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
91031
91036
|
exclusionReason.updateValueAndValidity({ emitEvent: false });
|
|
91032
91037
|
}
|
|
91033
91038
|
getSelectableIndividualsWithSignificantControl(affiliations) {
|
|
91034
|
-
|
|
91035
|
-
if (significantControlAffiliations.length) {
|
|
91036
|
-
return significantControlAffiliations;
|
|
91037
|
-
}
|
|
91038
|
-
return affiliations.filter((a) => isPrincipalAffiliation2(a) && a._participant.participant_type === "person" && !["Contact", "Agent", "Responsible"].includes(a.role?.role_name ?? ""));
|
|
91039
|
+
return getIndividualWithSignificantControl(affiliations);
|
|
91039
91040
|
}
|
|
91040
91041
|
getFormArray(key) {
|
|
91041
91042
|
return this.form().get(key);
|
|
@@ -91384,7 +91385,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
91384
91385
|
}], () => [], null);
|
|
91385
91386
|
})();
|
|
91386
91387
|
(() => {
|
|
91387
|
-
(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 });
|
|
91388
91389
|
})();
|
|
91389
91390
|
}
|
|
91390
91391
|
});
|
|
@@ -93377,7 +93378,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93377
93378
|
searchOrFilingType,
|
|
93378
93379
|
serviceOrderId,
|
|
93379
93380
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
93380
|
-
provider:
|
|
93381
|
+
provider: getFilingProvider(signature.task),
|
|
93381
93382
|
draftPdf: payload.ReceiptPdf,
|
|
93382
93383
|
documentName: "Incorporation Receipt",
|
|
93383
93384
|
documentType: "pdf"
|
|
@@ -93928,7 +93929,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93928
93929
|
const mailingAddressUid = deltaData.registeredOfficeAddress?.mailingAddressForCorrespondenceUid;
|
|
93929
93930
|
const mailingAddress = useDifferentMailingAddress ? task.entity.addresses.find((address) => address.uid === mailingAddressUid) : void 0;
|
|
93930
93931
|
const registeredOfficeAddress = findRegisteredOfficeAddress(task);
|
|
93931
|
-
const directors = task.entity.affiliations
|
|
93932
|
+
const directors = getIndividualDirectors(task.entity.affiliations);
|
|
93932
93933
|
const incorporators = task._ext._incorporators ?? [];
|
|
93933
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];
|
|
93934
93935
|
const officialBusinessEmail = registeredOfficeAddress?.communications?.find((c) => c.type === "Business Email")?.value;
|
|
@@ -94240,7 +94241,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94240
94241
|
}
|
|
94241
94242
|
var init_federal_formation_mapper = __esm({
|
|
94242
94243
|
"src/app/helpers/mappers/federal-formation.mapper.ts"() {
|
|
94243
|
-
init_ECoreInterfaces();
|
|
94244
94244
|
init_transform_utils();
|
|
94245
94245
|
init_address_utils();
|
|
94246
94246
|
init_common_utils();
|
|
@@ -95125,9 +95125,55 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95125
95125
|
init_core();
|
|
95126
95126
|
BritishColumbiaChangeOfDirectorsService = class _BritishColumbiaChangeOfDirectorsService {
|
|
95127
95127
|
config;
|
|
95128
|
+
currentDataExtract;
|
|
95128
95129
|
setConfig(config2) {
|
|
95129
95130
|
this.config = config2;
|
|
95130
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
|
+
}
|
|
95131
95177
|
validate(_0, _1) {
|
|
95132
95178
|
return __async(this, arguments, function* (signature, requestBody, opts = {}) {
|
|
95133
95179
|
ensureAuthInputs(signature);
|
|
@@ -95145,8 +95191,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95145
95191
|
throw err2;
|
|
95146
95192
|
}
|
|
95147
95193
|
const payload = unwrapRequestResults(parsed.value);
|
|
95148
|
-
if (resp.ok && !payload.Errors?.length) {
|
|
95149
|
-
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
|
+
});
|
|
95150
95200
|
}
|
|
95151
95201
|
const err = buildValidationError(resp.status, payload);
|
|
95152
95202
|
err.validateResult = payload;
|
|
@@ -95206,6 +95256,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95206
95256
|
throw err;
|
|
95207
95257
|
});
|
|
95208
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
|
+
}
|
|
95209
95269
|
getOnbisOrigin() {
|
|
95210
95270
|
const filingUrl = this.config?.BCFiling;
|
|
95211
95271
|
if (!filingUrl) {
|
|
@@ -95230,7 +95290,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95230
95290
|
});
|
|
95231
95291
|
|
|
95232
95292
|
// src/app/helpers/mappers/british-columbia-change-of-directors.mapper.ts
|
|
95233
|
-
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) {
|
|
95234
95317
|
const source = task.changeDirectors ?? task.deltaData?.changeDirectors ?? task.deltaData?.validatedData?.ChangeDirectors ?? task.deltaData?.validatedData?.filing;
|
|
95235
95318
|
const incomingDirectors = (task.incomingAffiliations ?? []).filter(isDirectorAffiliation);
|
|
95236
95319
|
const outgoingDirectors = (task.outgoingAffiliations ?? []).filter(isDirectorAffiliation);
|
|
@@ -95238,73 +95321,107 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95238
95321
|
const ceasedDirectors = [...source?.CeasedDirectors ?? [], ...source?.CeaseDirector ?? [], ...source?.ceaseDirectors ?? []];
|
|
95239
95322
|
const editedDirectors = [...source?.EditedDirectors ?? [], ...source?.EditDirector ?? [], ...source?.editDirectors ?? []];
|
|
95240
95323
|
const companyEmail = findCompanyEmail(task);
|
|
95241
|
-
const
|
|
95242
|
-
|
|
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 {
|
|
95243
95340
|
filingType: "changeOfDirectorsFiling",
|
|
95244
|
-
|
|
95341
|
+
currentDataServiceOrderId,
|
|
95342
|
+
filing: __spreadProps(__spreadValues({
|
|
95343
|
+
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
95344
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode(task),
|
|
95245
95345
|
reference: deltaData.referenceNumbers.referenceNumber ?? null,
|
|
95246
|
-
docket: deltaData.referenceNumbers.docketNumber ?? null
|
|
95247
|
-
|
|
95248
|
-
|
|
95249
|
-
|
|
95250
|
-
|
|
95251
|
-
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,
|
|
95252
95351
|
companyEmail,
|
|
95253
95352
|
isAnnualReportReminderRequired: deltaData.annualReportReminder === BCAnnualReportReminder.Yes
|
|
95254
|
-
}
|
|
95255
|
-
}
|
|
95353
|
+
})
|
|
95354
|
+
};
|
|
95256
95355
|
}
|
|
95257
95356
|
function isDirectorAffiliation(affiliation) {
|
|
95258
95357
|
return isPrincipalAffiliation2(affiliation) && affiliation.role?.role_name === "Director";
|
|
95259
95358
|
}
|
|
95260
|
-
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) {
|
|
95261
95364
|
if (affiliation?.PersonName || affiliation?.personName || affiliation?.firstName || affiliation?.FirstName) {
|
|
95262
95365
|
const name = affiliation.PersonName ?? affiliation.personName ?? affiliation;
|
|
95263
|
-
return {
|
|
95366
|
+
return __spreadProps(__spreadValues({}, directorNumber === void 0 ? {} : { directorNumber }), {
|
|
95264
95367
|
firstName: name.FirstName ?? name.firstName ?? "",
|
|
95265
95368
|
middleName: name.MiddleName ?? name.middleName ?? "",
|
|
95266
95369
|
lastName: name.LastName ?? name.lastName ?? "",
|
|
95267
95370
|
mailingAddress: affiliation.mailingAddress ?? affiliation.MailingAddress,
|
|
95268
|
-
deliveryAddress: affiliation.deliveryAddress ?? affiliation.DeliveryAddress,
|
|
95371
|
+
deliveryAddress: affiliation.isDeliveryAddressSameAsMailing ? void 0 : affiliation.deliveryAddress ?? affiliation.DeliveryAddress,
|
|
95269
95372
|
isDeliveryAddressSameAsMailing: affiliation.isDeliveryAddressSameAsMailing
|
|
95270
|
-
};
|
|
95373
|
+
});
|
|
95271
95374
|
}
|
|
95272
95375
|
const profile = affiliation.participant?._profile ?? {};
|
|
95273
95376
|
const addresses = getAffiliationAddresses(affiliation);
|
|
95274
95377
|
const mailingAddress = mapAddress4(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Mailing"));
|
|
95275
95378
|
const deliveryAddress = mapAddress4(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Delivery"));
|
|
95276
|
-
|
|
95379
|
+
const isSameAsMailing = isDeliveryAddressSameAsMailing(addresses);
|
|
95380
|
+
return __spreadProps(__spreadValues({}, directorNumber === void 0 ? {} : { directorNumber }), {
|
|
95277
95381
|
firstName: profile.firstName ?? "",
|
|
95278
95382
|
middleName: profile.middleName ?? "",
|
|
95279
95383
|
lastName: profile.lastName ?? "",
|
|
95280
95384
|
mailingAddress,
|
|
95281
|
-
|
|
95282
|
-
|
|
95283
|
-
|
|
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
|
+
});
|
|
95284
95389
|
}
|
|
95285
|
-
function
|
|
95286
|
-
|
|
95287
|
-
|
|
95288
|
-
const
|
|
95289
|
-
|
|
95290
|
-
|
|
95291
|
-
|
|
95292
|
-
|
|
95293
|
-
|
|
95294
|
-
|
|
95295
|
-
|
|
95296
|
-
|
|
95297
|
-
|
|
95298
|
-
|
|
95299
|
-
|
|
95300
|
-
|
|
95301
|
-
|
|
95302
|
-
|
|
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);
|
|
95303
95411
|
};
|
|
95412
|
+
visit(extract);
|
|
95413
|
+
return result;
|
|
95304
95414
|
}
|
|
95305
|
-
function
|
|
95306
|
-
const
|
|
95307
|
-
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;
|
|
95308
95425
|
}
|
|
95309
95426
|
function findCompanyEmail(task) {
|
|
95310
95427
|
const affiliations = task.entity.affiliations ?? [];
|
|
@@ -95323,6 +95440,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95323
95440
|
"src/app/helpers/mappers/british-columbia-change-of-directors.mapper.ts"() {
|
|
95324
95441
|
init_BritishColumbiaConstants();
|
|
95325
95442
|
init_common_models();
|
|
95443
|
+
init_british_columbia_formation_mapper();
|
|
95326
95444
|
init_british_columbia_formation_form_helper();
|
|
95327
95445
|
init_common_utils();
|
|
95328
95446
|
}
|
|
@@ -95422,29 +95540,29 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95422
95540
|
throw new Error("Missing serviceOrderId.");
|
|
95423
95541
|
}
|
|
95424
95542
|
const submitted = yield this.send(signature, "POST", `${MAINTENANCE_FILING_PATH}/${encodeURIComponent(serviceOrderId)}/submit`, void 0, opts);
|
|
95425
|
-
|
|
95426
|
-
|
|
95427
|
-
const err = new Error(this.describeFailure(submitted.status, "eCore submit failed",
|
|
95428
|
-
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;
|
|
95429
95547
|
err.httpStatus = submitted.status;
|
|
95430
95548
|
throw err;
|
|
95431
95549
|
}
|
|
95432
95550
|
const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_RESULT_POLL), poll);
|
|
95433
95551
|
const deadline = Date.now() + timeoutMs;
|
|
95434
|
-
let processing =
|
|
95552
|
+
let processing = false;
|
|
95435
95553
|
let files;
|
|
95436
|
-
|
|
95554
|
+
for (; ; ) {
|
|
95437
95555
|
const { status, ok, body, raw } = yield this.send(signature, "GET", `${MAINTENANCE_FILING_PATH}/${encodeURIComponent(serviceOrderId)}`, void 0, opts);
|
|
95438
95556
|
const state2 = String(body?.status ?? "").toLowerCase();
|
|
95439
95557
|
if (ok && (state2 === "success" || state2 === "pendingdocuments")) {
|
|
95440
95558
|
files = body?.files;
|
|
95441
|
-
processing = false;
|
|
95442
95559
|
break;
|
|
95443
95560
|
}
|
|
95444
95561
|
if (!ok || state2 === "failed" || state2 === "sourceunavailable") {
|
|
95445
95562
|
throw this.failure(status, "The registry could not complete the filing", body, raw);
|
|
95446
95563
|
}
|
|
95447
95564
|
if (Date.now() >= deadline) {
|
|
95565
|
+
processing = true;
|
|
95448
95566
|
break;
|
|
95449
95567
|
}
|
|
95450
95568
|
yield this.sleep(intervalMs);
|
|
@@ -95587,7 +95705,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95587
95705
|
}
|
|
95588
95706
|
return { filingType: "changeOfAddressFiling", filing };
|
|
95589
95707
|
}
|
|
95590
|
-
function
|
|
95708
|
+
function getBritishColumbiaAccessCode2(task, env) {
|
|
95591
95709
|
const registryId = task.entity._profile.registry_id?.trim() ?? "";
|
|
95592
95710
|
if (registryId) {
|
|
95593
95711
|
return registryId;
|
|
@@ -95688,6 +95806,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95688
95806
|
\u0275\u0275restoreView(_r6);
|
|
95689
95807
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
95690
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());
|
|
95691
95813
|
})("prevStep", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_prevStep_0_listener() {
|
|
95692
95814
|
\u0275\u0275restoreView(_r6);
|
|
95693
95815
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
@@ -95734,7 +95856,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95734
95856
|
if (rf & 2) {
|
|
95735
95857
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
95736
95858
|
const currentTask_r5 = \u0275\u0275readContextLet(9);
|
|
95737
|
-
\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());
|
|
95738
95860
|
}
|
|
95739
95861
|
}
|
|
95740
95862
|
function FilingComponent_Conditional_10_Conditional_2_Template(rf, ctx) {
|
|
@@ -95784,7 +95906,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95784
95906
|
}
|
|
95785
95907
|
function FilingComponent_Conditional_10_Template(rf, ctx) {
|
|
95786
95908
|
if (rf & 1) {
|
|
95787
|
-
\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);
|
|
95788
95910
|
}
|
|
95789
95911
|
if (rf & 2) {
|
|
95790
95912
|
const ctx_r2 = \u0275\u0275nextContext();
|
|
@@ -95905,6 +96027,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95905
96027
|
});
|
|
95906
96028
|
dataWasChanged = signal(false);
|
|
95907
96029
|
serviceOrderId = "";
|
|
96030
|
+
bcCurrentDataServiceOrderId = "";
|
|
96031
|
+
currentDataExtract = signal(void 0);
|
|
96032
|
+
bcDataExtractTaskId = "";
|
|
95908
96033
|
activeStep = signal(Step.Validate);
|
|
95909
96034
|
isLoading = signal(false);
|
|
95910
96035
|
validationConfig = signal(null);
|
|
@@ -95972,6 +96097,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95972
96097
|
this.serviceOrderId = serviceOrderId;
|
|
95973
96098
|
}
|
|
95974
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
|
+
}
|
|
95975
96120
|
}));
|
|
95976
96121
|
}
|
|
95977
96122
|
getCurrentData() {
|
|
@@ -96053,7 +96198,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96053
96198
|
searchOrFilingType,
|
|
96054
96199
|
serviceOrderId: response["ServiceOrderId"] ?? "",
|
|
96055
96200
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
96056
|
-
provider:
|
|
96201
|
+
provider: getFilingProvider(signature.task),
|
|
96057
96202
|
draftPdf: response.Draft ?? "",
|
|
96058
96203
|
documentName: this.validateOptions()?.documentName ?? "Incorporation Draft",
|
|
96059
96204
|
documentType: "pdf"
|
|
@@ -96095,8 +96240,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96095
96240
|
try {
|
|
96096
96241
|
this.isLoading.set(true);
|
|
96097
96242
|
this.errors.set([]);
|
|
96098
|
-
const
|
|
96099
|
-
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);
|
|
96100
96251
|
if (this.hasResponseErrors(response))
|
|
96101
96252
|
return;
|
|
96102
96253
|
const serviceOrderId = response.ServiceOrderId ?? "";
|
|
@@ -96105,7 +96256,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96105
96256
|
searchOrFilingType: getSearchOrFilingType(task),
|
|
96106
96257
|
serviceOrderId,
|
|
96107
96258
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
96108
|
-
provider: "
|
|
96259
|
+
provider: "bcreg",
|
|
96109
96260
|
draftPdf: response.Draft,
|
|
96110
96261
|
documentName: this.validateOptions()?.documentName ?? "BC Change of Directors Draft",
|
|
96111
96262
|
documentType: "pdf"
|
|
@@ -96264,7 +96415,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96264
96415
|
const opts = this.validateOptions() ?? {};
|
|
96265
96416
|
const context2 = {
|
|
96266
96417
|
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
96267
|
-
accessCodeOrPassword:
|
|
96418
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode2(task, signature.env),
|
|
96268
96419
|
incorporationDate: String(task.entity._compliance?.incorporation_date ?? "").slice(0, 10)
|
|
96269
96420
|
};
|
|
96270
96421
|
const extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
@@ -96280,7 +96431,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96280
96431
|
searchOrFilingType,
|
|
96281
96432
|
serviceOrderId,
|
|
96282
96433
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
96283
|
-
provider: "
|
|
96434
|
+
provider: "bcreg",
|
|
96284
96435
|
draftPdf,
|
|
96285
96436
|
documentName: this.validateOptions()?.documentName ?? "British Columbia Change of Office Addresses Draft",
|
|
96286
96437
|
documentType: "pdf"
|
|
@@ -96288,7 +96439,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96288
96439
|
}
|
|
96289
96440
|
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
96290
96441
|
serviceOrderId,
|
|
96291
|
-
|
|
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
|
+
})
|
|
96292
96447
|
}));
|
|
96293
96448
|
this.close.emit();
|
|
96294
96449
|
} catch (response) {
|
|
@@ -96387,7 +96542,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96387
96542
|
searchOrFilingType,
|
|
96388
96543
|
serviceOrderId,
|
|
96389
96544
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
96390
|
-
provider:
|
|
96545
|
+
provider: getFilingProvider(task),
|
|
96391
96546
|
draftPdf,
|
|
96392
96547
|
documentName: this.validateOptions()?.documentName ?? "Federal Draft",
|
|
96393
96548
|
documentType: "pdf"
|
|
@@ -96703,7 +96858,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96703
96858
|
return federalPayload;
|
|
96704
96859
|
}
|
|
96705
96860
|
if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
|
|
96706
|
-
return buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData)
|
|
96861
|
+
return __spreadProps(__spreadValues({}, buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData)), {
|
|
96862
|
+
corporationNumber: task.entity._profile.corp_number ?? ""
|
|
96863
|
+
});
|
|
96707
96864
|
}
|
|
96708
96865
|
if (isUpdateMaintain(task) && isOntarioTask(task)) {
|
|
96709
96866
|
const serviceOrderId = deltaData?.serviceOrderId ?? this.serviceOrderId;
|
|
@@ -96733,7 +96890,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96733
96890
|
if (rf & 2) {
|
|
96734
96891
|
\u0275\u0275styleProp("height", ctx.modalHeight());
|
|
96735
96892
|
}
|
|
96736
|
-
}, 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) {
|
|
96737
96894
|
if (rf & 1) {
|
|
96738
96895
|
const _r1 = \u0275\u0275getCurrentView();
|
|
96739
96896
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
@@ -96836,8 +96993,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96836
96993
|
[isNote]="dataWasChanged()"\r
|
|
96837
96994
|
[actionsDisabled]="isLoading()"\r
|
|
96838
96995
|
[errors]="errors()"\r
|
|
96996
|
+
[currentDataExtract]="currentDataExtract()"\r
|
|
96839
96997
|
(close)="close.emit()"\r
|
|
96840
96998
|
(nextStep)="onNextStepClick()"\r
|
|
96999
|
+
(recheckStep)="defineInitialStep()"\r
|
|
96841
97000
|
(prevStep)="onOntarioPrevStep()"\r
|
|
96842
97001
|
(codValidate)="onBritishColumbiaChangeOfDirectorsValidate($event)"\r
|
|
96843
97002
|
(saveCodDeltaData)="onBritishColumbiaChangeOfDirectorsSave($event)"\r
|
|
@@ -96878,7 +97037,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96878
97037
|
}], () => [], null);
|
|
96879
97038
|
})();
|
|
96880
97039
|
(() => {
|
|
96881
|
-
(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 });
|
|
96882
97041
|
})();
|
|
96883
97042
|
}
|
|
96884
97043
|
});
|