@dyedurham/search-and-file-widget 2.0.86 → 2.0.87
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
CHANGED
|
@@ -57885,8 +57885,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
57885
57885
|
// src/app/utils/common.utils.ts
|
|
57886
57886
|
function buildValidationError(httpStatus, r) {
|
|
57887
57887
|
const msgs = (r.Errors ?? r.errors ?? []).map((e) => e.ErrorMessage || e.Message || e.message || e.Code || JSON.stringify(e)).filter(Boolean);
|
|
57888
|
-
|
|
57889
|
-
return new Error(msgs.length ? `eCore validation failed (HTTP ${httpStatus}, ${status}): ${msgs.join(" | ")}` : `eCore validation failed (HTTP ${httpStatus}, ${status}).`);
|
|
57888
|
+
return new Error(msgs.length ? msgs.join(" | ") : "Validation failed.");
|
|
57890
57889
|
}
|
|
57891
57890
|
function joinUrl(base, path) {
|
|
57892
57891
|
const b = base.endsWith("/") ? base.slice(0, -1) : base;
|
|
@@ -57994,9 +57993,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
57994
57993
|
function isPrincipalAffiliation2(affiliation) {
|
|
57995
57994
|
return affiliation.kind === "PrincipalAffiliationV3";
|
|
57996
57995
|
}
|
|
57997
|
-
function getIndividualDirectors(affiliations) {
|
|
57998
|
-
return affiliations.filter((a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director" && a._participant?.participant_type === "person");
|
|
57999
|
-
}
|
|
58000
57996
|
function getAddressComponent(address, componentName) {
|
|
58001
57997
|
if (!address)
|
|
58002
57998
|
return "";
|
|
@@ -58108,12 +58104,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58108
58104
|
function isAnnualReturnTask(task) {
|
|
58109
58105
|
return task?._taskType === TaskType.AnnualCompliance;
|
|
58110
58106
|
}
|
|
58111
|
-
function getFilingProvider(task) {
|
|
58112
|
-
if (task && isBritishColumbiaTask(task)) {
|
|
58113
|
-
return "bcreg";
|
|
58114
|
-
}
|
|
58115
|
-
return task && !isOntarioTask(task) ? "federal" : "obr";
|
|
58116
|
-
}
|
|
58117
58107
|
function getSearchOrFilingType(task) {
|
|
58118
58108
|
if (!task) {
|
|
58119
58109
|
return void 0;
|
|
@@ -58132,7 +58122,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58132
58122
|
return `${prefix}AnnualReturn`;
|
|
58133
58123
|
}
|
|
58134
58124
|
if (isChangeOfPrincipalsTask(task)) {
|
|
58135
|
-
return `${prefix}NoticeOfChangeOfDirectors`;
|
|
58125
|
+
return prefix === "bc" ? "bcChangeOfDirectors" : `${prefix}NoticeOfChangeOfDirectors`;
|
|
58136
58126
|
}
|
|
58137
58127
|
return void 0;
|
|
58138
58128
|
}
|
|
@@ -58238,7 +58228,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58238
58228
|
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}`;
|
|
58239
58229
|
}
|
|
58240
58230
|
function getIndividualWithSignificantControl(affiliations) {
|
|
58241
|
-
return affiliations.filter((a) =>
|
|
58231
|
+
return affiliations.filter((a) => {
|
|
58232
|
+
const isPerson = a._participant.participant_type === "person";
|
|
58233
|
+
const roleName = a.role?.role_name;
|
|
58234
|
+
const staticTitle = a.role?.static_title;
|
|
58235
|
+
const isSignificantControl = a.kind === "ShareholderAffiliationV3" || a.is_beneficial_owner || roleName === "Ultimate Beneficial Owner" || staticTitle === "Ultimate Beneficial Owner";
|
|
58236
|
+
return isPerson && isSignificantControl;
|
|
58237
|
+
});
|
|
58242
58238
|
}
|
|
58243
58239
|
function normalizeSupportingDocuments(value) {
|
|
58244
58240
|
if (!Array.isArray(value)) {
|
|
@@ -84206,7 +84202,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84206
84202
|
BCChangeOfDirectorsFormControls2["CorporationName"] = "corporationName";
|
|
84207
84203
|
BCChangeOfDirectorsFormControls2["IncorporationNumber"] = "incorporationNumber";
|
|
84208
84204
|
BCChangeOfDirectorsFormControls2["CompanyEmail"] = "companyEmail";
|
|
84209
|
-
BCChangeOfDirectorsFormControls2["CompanyPassword"] = "companyPassword";
|
|
84210
84205
|
BCChangeOfDirectorsFormControls2["DirectorsAddedOrDeleted"] = "directorsAddedOrDeleted";
|
|
84211
84206
|
BCChangeOfDirectorsFormControls2["ChangeDate"] = "changeDate";
|
|
84212
84207
|
BCChangeOfDirectorsFormControls2["FilingFee"] = "filingFee";
|
|
@@ -84883,7 +84878,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84883
84878
|
init_british_columbia_formation_form_helper();
|
|
84884
84879
|
Controls = BCChangeOfDirectorsFormControls;
|
|
84885
84880
|
BritishColumbiaChangeOfDirectorsFormHelper = class {
|
|
84886
|
-
static generateConfig(task, _translateFn) {
|
|
84881
|
+
static generateConfig(task, _translateFn, currentDataExtract) {
|
|
84887
84882
|
const affiliations = task.entity.affiliations ?? [];
|
|
84888
84883
|
const delta = task.deltaData;
|
|
84889
84884
|
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
@@ -84897,8 +84892,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84897
84892
|
config2[BCChangeOfDirectorsFormGroups.CorporationDetails] = new FormGroup({
|
|
84898
84893
|
[Controls.CorporationName]: this.readOnly(task.entity._profile.name),
|
|
84899
84894
|
[Controls.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
|
|
84900
|
-
[Controls.CompanyEmail]: this.readOnly(companyEmail)
|
|
84901
|
-
[Controls.CompanyPassword]: new FormControl(delta?.companyPassword ?? task.entity._profile.registry_id ?? "", Validators.required)
|
|
84895
|
+
[Controls.CompanyEmail]: this.readOnly(companyEmail)
|
|
84902
84896
|
});
|
|
84903
84897
|
const isDirector = (a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director";
|
|
84904
84898
|
const incoming = task.incomingAffiliations ?? [];
|
|
@@ -84913,8 +84907,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84913
84907
|
]),
|
|
84914
84908
|
[Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
|
|
84915
84909
|
});
|
|
84910
|
+
const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
|
|
84916
84911
|
const directors = [
|
|
84917
|
-
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Add)),
|
|
84912
|
+
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
|
|
84918
84913
|
...outgoing.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Ceased))
|
|
84919
84914
|
];
|
|
84920
84915
|
const fallbackDirectors = directors.length ? [] : this.generateDirectorFormGroupsFromChangeDirectors(task);
|
|
@@ -84932,6 +84927,45 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84932
84927
|
});
|
|
84933
84928
|
return config2;
|
|
84934
84929
|
}
|
|
84930
|
+
static getCurrentDirectorKeys(extract) {
|
|
84931
|
+
const keys = /* @__PURE__ */ new Set();
|
|
84932
|
+
const visit = (value) => {
|
|
84933
|
+
if (Array.isArray(value)) {
|
|
84934
|
+
value.forEach((item) => {
|
|
84935
|
+
if (item && typeof item === "object") {
|
|
84936
|
+
const record = item;
|
|
84937
|
+
const role = String(record["role"] ?? record["Role"] ?? record["position"] ?? "").toLowerCase();
|
|
84938
|
+
if (!role || role.includes("director")) {
|
|
84939
|
+
const person = record["PersonName"] ?? record["personName"] ?? record["person"] ?? record;
|
|
84940
|
+
const name = [
|
|
84941
|
+
person.firstName ?? person.FirstName,
|
|
84942
|
+
person.middleName ?? person.MiddleName,
|
|
84943
|
+
person.lastName ?? person.LastName
|
|
84944
|
+
].filter(Boolean).join(" ");
|
|
84945
|
+
const id = record["Id"] ?? record["id"] ?? record["affiliationId"] ?? record["AffiliationId"];
|
|
84946
|
+
if (id)
|
|
84947
|
+
keys.add(this.normaliseDirectorKey(id));
|
|
84948
|
+
if (name)
|
|
84949
|
+
keys.add(this.normaliseDirectorKey(name));
|
|
84950
|
+
}
|
|
84951
|
+
}
|
|
84952
|
+
visit(item);
|
|
84953
|
+
});
|
|
84954
|
+
return;
|
|
84955
|
+
}
|
|
84956
|
+
if (value && typeof value === "object") {
|
|
84957
|
+
Object.values(value).forEach(visit);
|
|
84958
|
+
}
|
|
84959
|
+
};
|
|
84960
|
+
visit(extract);
|
|
84961
|
+
return keys;
|
|
84962
|
+
}
|
|
84963
|
+
static getDirectorKey(affiliation) {
|
|
84964
|
+
return this.normaliseDirectorKey(generateTaskAffiliationFullName(affiliation));
|
|
84965
|
+
}
|
|
84966
|
+
static normaliseDirectorKey(value) {
|
|
84967
|
+
return String(value ?? "").trim().toLowerCase().replace(/\s+/g, " ");
|
|
84968
|
+
}
|
|
84935
84969
|
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber, savedClientMatterNumber) {
|
|
84936
84970
|
return new FormGroup({
|
|
84937
84971
|
[Controls.ClientMatterNumber]: new FormControl(clientMatterNumber ?? savedClientMatterNumber ?? ""),
|
|
@@ -84991,6 +85025,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84991
85025
|
const postalAddress = director?.PostalAddress ?? director?.postalAddress;
|
|
84992
85026
|
const address = postalAddress?.AddressCA ?? postalAddress?.AddressUS ?? postalAddress?.AddressINTL ?? director?.address ?? {};
|
|
84993
85027
|
return [
|
|
85028
|
+
address.streetAddress,
|
|
85029
|
+
address.additionalStreetAddress,
|
|
84994
85030
|
address.Address1 ?? address.address1,
|
|
84995
85031
|
address.Address2 ?? address.address2,
|
|
84996
85032
|
address.Address3 ?? address.address3,
|
|
@@ -85195,51 +85231,39 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85195
85231
|
\u0275\u0275pipe(15, "translate");
|
|
85196
85232
|
\u0275\u0275elementEnd();
|
|
85197
85233
|
\u0275\u0275text(16);
|
|
85198
|
-
\u0275\u0275elementEnd();
|
|
85199
|
-
\u0275\u0275elementStart(17, "mat-form-field", 13)(18, "mat-label");
|
|
85200
|
-
\u0275\u0275text(19);
|
|
85201
|
-
\u0275\u0275pipe(20, "translate");
|
|
85202
|
-
\u0275\u0275elementEnd();
|
|
85203
|
-
\u0275\u0275element(21, "input", 14);
|
|
85204
85234
|
\u0275\u0275elementEnd()()();
|
|
85205
85235
|
}
|
|
85206
85236
|
if (rf & 2) {
|
|
85207
|
-
let
|
|
85208
|
-
let
|
|
85209
|
-
let
|
|
85237
|
+
let tmp_9_0;
|
|
85238
|
+
let tmp_11_0;
|
|
85239
|
+
let tmp_13_0;
|
|
85210
85240
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85211
85241
|
const corporationDetails_r4 = \u0275\u0275readContextLet(6);
|
|
85212
85242
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.CorporationDetails);
|
|
85213
|
-
\u0275\u0275advance();
|
|
85214
|
-
\u0275\
|
|
85215
|
-
\u0275\u0275advance(3);
|
|
85216
|
-
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 11, "Corporation Name"), ":");
|
|
85217
|
-
\u0275\u0275advance(2);
|
|
85218
|
-
\u0275\u0275textInterpolate1(" ", (tmp_10_0 = corporationDetails_r4.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_10_0.value, " ");
|
|
85219
|
-
\u0275\u0275advance(3);
|
|
85220
|
-
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 13, "Incorporation Number"), ":");
|
|
85243
|
+
\u0275\u0275advance(4);
|
|
85244
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 8, "Corporation Name"), ":");
|
|
85221
85245
|
\u0275\u0275advance(2);
|
|
85222
|
-
\u0275\u0275textInterpolate1(" ", (
|
|
85246
|
+
\u0275\u0275textInterpolate1(" ", (tmp_9_0 = corporationDetails_r4.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_9_0.value, " ");
|
|
85223
85247
|
\u0275\u0275advance(3);
|
|
85224
|
-
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(
|
|
85248
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 10, "Incorporation Number"), ":");
|
|
85225
85249
|
\u0275\u0275advance(2);
|
|
85226
|
-
\u0275\u0275textInterpolate1(" ", (
|
|
85250
|
+
\u0275\u0275textInterpolate1(" ", (tmp_11_0 = corporationDetails_r4.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_11_0.value, " ");
|
|
85227
85251
|
\u0275\u0275advance(3);
|
|
85228
|
-
\u0275\
|
|
85252
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(15, 12, "Company Email"), ":");
|
|
85229
85253
|
\u0275\u0275advance(2);
|
|
85230
|
-
\u0275\
|
|
85254
|
+
\u0275\u0275textInterpolate1(" ", (tmp_13_0 = corporationDetails_r4.get(ctx_r0.controls.CompanyEmail)) == null ? null : tmp_13_0.value, " ");
|
|
85231
85255
|
}
|
|
85232
85256
|
}
|
|
85233
85257
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template(rf, ctx) {
|
|
85234
85258
|
if (rf & 1) {
|
|
85235
85259
|
const _r7 = \u0275\u0275getCurrentView();
|
|
85236
|
-
\u0275\u0275elementStart(0, "div",
|
|
85260
|
+
\u0275\u0275elementStart(0, "div", 16)(1, "div", 17)(2, "label");
|
|
85237
85261
|
\u0275\u0275text(3);
|
|
85238
85262
|
\u0275\u0275pipe(4, "translate");
|
|
85239
85263
|
\u0275\u0275elementStart(5, "span");
|
|
85240
85264
|
\u0275\u0275text(6, "*");
|
|
85241
85265
|
\u0275\u0275elementEnd()();
|
|
85242
|
-
\u0275\u0275elementStart(7, "mat-form-field",
|
|
85266
|
+
\u0275\u0275elementStart(7, "mat-form-field", 18)(8, "input", 19);
|
|
85243
85267
|
\u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_click_8_listener() {
|
|
85244
85268
|
\u0275\u0275restoreView(_r7);
|
|
85245
85269
|
const changeDatePicker_r8 = \u0275\u0275reference(12);
|
|
@@ -85251,21 +85275,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85251
85275
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
|
|
85252
85276
|
});
|
|
85253
85277
|
\u0275\u0275elementEnd();
|
|
85254
|
-
\u0275\u0275elementStart(9, "button",
|
|
85278
|
+
\u0275\u0275elementStart(9, "button", 20);
|
|
85255
85279
|
\u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_button_click_9_listener() {
|
|
85256
85280
|
\u0275\u0275restoreView(_r7);
|
|
85257
85281
|
const changeDatePicker_r8 = \u0275\u0275reference(12);
|
|
85258
85282
|
return \u0275\u0275resetView(changeDatePicker_r8.open());
|
|
85259
85283
|
});
|
|
85260
|
-
\u0275\u0275element(10, "span",
|
|
85284
|
+
\u0275\u0275element(10, "span", 21);
|
|
85261
85285
|
\u0275\u0275elementEnd();
|
|
85262
85286
|
\u0275\u0275element(11, "mat-datepicker", null, 0);
|
|
85263
85287
|
\u0275\u0275elementEnd();
|
|
85264
|
-
\u0275\u0275elementStart(13, "p",
|
|
85288
|
+
\u0275\u0275elementStart(13, "p", 22);
|
|
85265
85289
|
\u0275\u0275text(14);
|
|
85266
85290
|
\u0275\u0275pipe(15, "translate");
|
|
85267
85291
|
\u0275\u0275elementEnd()();
|
|
85268
|
-
\u0275\u0275elementStart(16, "p",
|
|
85292
|
+
\u0275\u0275elementStart(16, "p", 23)(17, "strong");
|
|
85269
85293
|
\u0275\u0275text(18);
|
|
85270
85294
|
\u0275\u0275pipe(19, "translate");
|
|
85271
85295
|
\u0275\u0275elementEnd();
|
|
@@ -85292,14 +85316,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85292
85316
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
|
|
85293
85317
|
if (rf & 1) {
|
|
85294
85318
|
const _r5 = \u0275\u0275getCurrentView();
|
|
85295
|
-
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div",
|
|
85319
|
+
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 13)(2, "div", 14)(3, "strong");
|
|
85296
85320
|
\u0275\u0275text(4);
|
|
85297
85321
|
\u0275\u0275pipe(5, "translate");
|
|
85298
85322
|
\u0275\u0275elementEnd();
|
|
85299
85323
|
\u0275\u0275text(6);
|
|
85300
85324
|
\u0275\u0275pipe(7, "translate");
|
|
85301
85325
|
\u0275\u0275elementEnd();
|
|
85302
|
-
\u0275\u0275elementStart(8, "mat-checkbox",
|
|
85326
|
+
\u0275\u0275elementStart(8, "mat-checkbox", 15);
|
|
85303
85327
|
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
|
|
85304
85328
|
let tmp_7_0;
|
|
85305
85329
|
let tmp_8_0;
|
|
@@ -85313,7 +85337,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85313
85337
|
\u0275\u0275text(9);
|
|
85314
85338
|
\u0275\u0275pipe(10, "translate");
|
|
85315
85339
|
\u0275\u0275elementEnd();
|
|
85316
|
-
\u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div",
|
|
85340
|
+
\u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div", 16);
|
|
85317
85341
|
\u0275\u0275elementEnd()();
|
|
85318
85342
|
}
|
|
85319
85343
|
if (rf & 2) {
|
|
@@ -85337,7 +85361,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85337
85361
|
}
|
|
85338
85362
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
|
|
85339
85363
|
if (rf & 1) {
|
|
85340
|
-
\u0275\u0275elementStart(0, "span",
|
|
85364
|
+
\u0275\u0275elementStart(0, "span", 28);
|
|
85341
85365
|
\u0275\u0275text(1);
|
|
85342
85366
|
\u0275\u0275pipe(2, "translate");
|
|
85343
85367
|
\u0275\u0275elementEnd();
|
|
@@ -85349,7 +85373,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85349
85373
|
}
|
|
85350
85374
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
|
|
85351
85375
|
if (rf & 1) {
|
|
85352
|
-
\u0275\u0275elementStart(0, "span",
|
|
85376
|
+
\u0275\u0275elementStart(0, "span", 29);
|
|
85353
85377
|
\u0275\u0275text(1);
|
|
85354
85378
|
\u0275\u0275pipe(2, "translate");
|
|
85355
85379
|
\u0275\u0275elementEnd();
|
|
@@ -85361,15 +85385,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85361
85385
|
}
|
|
85362
85386
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Template(rf, ctx) {
|
|
85363
85387
|
if (rf & 1) {
|
|
85364
|
-
\u0275\u0275elementStart(0, "div",
|
|
85388
|
+
\u0275\u0275elementStart(0, "div", 26)(1, "div", 27)(2, "strong");
|
|
85365
85389
|
\u0275\u0275text(3);
|
|
85366
85390
|
\u0275\u0275elementEnd();
|
|
85367
|
-
\u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span",
|
|
85391
|
+
\u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 28)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 29);
|
|
85368
85392
|
\u0275\u0275elementEnd();
|
|
85369
|
-
\u0275\u0275elementStart(6, "div",
|
|
85393
|
+
\u0275\u0275elementStart(6, "div", 27);
|
|
85370
85394
|
\u0275\u0275text(7);
|
|
85371
85395
|
\u0275\u0275elementEnd();
|
|
85372
|
-
\u0275\u0275elementStart(8, "div",
|
|
85396
|
+
\u0275\u0275elementStart(8, "div", 27);
|
|
85373
85397
|
\u0275\u0275text(9);
|
|
85374
85398
|
\u0275\u0275elementEnd()();
|
|
85375
85399
|
}
|
|
@@ -85395,26 +85419,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85395
85419
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Template(rf, ctx) {
|
|
85396
85420
|
if (rf & 1) {
|
|
85397
85421
|
\u0275\u0275declareLet(0);
|
|
85398
|
-
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Template, 10, 5, "div",
|
|
85422
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Template, 10, 5, "div", 26);
|
|
85399
85423
|
}
|
|
85400
85424
|
if (rf & 2) {
|
|
85401
|
-
const \u0275$
|
|
85402
|
-
const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$
|
|
85425
|
+
const \u0275$index_117_r10 = ctx.$index;
|
|
85426
|
+
const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_117_r10));
|
|
85403
85427
|
\u0275\u0275advance();
|
|
85404
85428
|
\u0275\u0275conditional(directorForm_r11 ? 1 : -1);
|
|
85405
85429
|
}
|
|
85406
85430
|
}
|
|
85407
85431
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
|
|
85408
85432
|
if (rf & 1) {
|
|
85409
|
-
\u0275\u0275elementStart(0, "div", 9)(1, "div",
|
|
85433
|
+
\u0275\u0275elementStart(0, "div", 9)(1, "div", 24)(2, "div", 25);
|
|
85410
85434
|
\u0275\u0275text(3);
|
|
85411
85435
|
\u0275\u0275pipe(4, "translate");
|
|
85412
85436
|
\u0275\u0275elementEnd();
|
|
85413
|
-
\u0275\u0275elementStart(5, "div",
|
|
85437
|
+
\u0275\u0275elementStart(5, "div", 25);
|
|
85414
85438
|
\u0275\u0275text(6);
|
|
85415
85439
|
\u0275\u0275pipe(7, "translate");
|
|
85416
85440
|
\u0275\u0275elementEnd();
|
|
85417
|
-
\u0275\u0275elementStart(8, "div",
|
|
85441
|
+
\u0275\u0275elementStart(8, "div", 25);
|
|
85418
85442
|
\u0275\u0275text(9);
|
|
85419
85443
|
\u0275\u0275pipe(10, "translate");
|
|
85420
85444
|
\u0275\u0275elementEnd()();
|
|
@@ -85449,22 +85473,22 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85449
85473
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_16_Template(rf, ctx) {
|
|
85450
85474
|
if (rf & 1) {
|
|
85451
85475
|
const _r13 = \u0275\u0275getCurrentView();
|
|
85452
|
-
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div",
|
|
85476
|
+
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 30)(2, "p");
|
|
85453
85477
|
\u0275\u0275text(3);
|
|
85454
85478
|
\u0275\u0275pipe(4, "translate");
|
|
85455
85479
|
\u0275\u0275elementEnd();
|
|
85456
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
85480
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 31);
|
|
85457
85481
|
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_16_Template_mat_radio_group_change_5_listener() {
|
|
85458
85482
|
\u0275\u0275restoreView(_r13);
|
|
85459
85483
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85460
85484
|
const annualReportReminder_r14 = \u0275\u0275readContextLet(15);
|
|
85461
85485
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r14.valid));
|
|
85462
85486
|
});
|
|
85463
|
-
\u0275\u0275elementStart(6, "mat-radio-button",
|
|
85487
|
+
\u0275\u0275elementStart(6, "mat-radio-button", 32);
|
|
85464
85488
|
\u0275\u0275text(7);
|
|
85465
85489
|
\u0275\u0275pipe(8, "translate");
|
|
85466
85490
|
\u0275\u0275elementEnd();
|
|
85467
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
85491
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 32);
|
|
85468
85492
|
\u0275\u0275text(10);
|
|
85469
85493
|
\u0275\u0275pipe(11, "translate");
|
|
85470
85494
|
\u0275\u0275elementEnd()()()();
|
|
@@ -85564,7 +85588,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85564
85588
|
static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
|
|
85565
85589
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
|
|
85566
85590
|
};
|
|
85567
|
-
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: 17, vars: 17, 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"], [3, "isSubmitted", "form", "config"], ["role", "table", 1, "directors-table"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "readonly-summary"
|
|
85591
|
+
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: 17, vars: 17, 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"], [3, "isSubmitted", "form", "config"], ["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) {
|
|
85568
85592
|
if (rf & 1) {
|
|
85569
85593
|
\u0275\u0275elementStart(0, "div", 1);
|
|
85570
85594
|
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 2)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 3);
|
|
@@ -85572,7 +85596,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85572
85596
|
\u0275\u0275declareLet(4);
|
|
85573
85597
|
\u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 5);
|
|
85574
85598
|
\u0275\u0275declareLet(6);
|
|
85575
|
-
\u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template,
|
|
85599
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 17, 14, "expandable-card", 6);
|
|
85576
85600
|
\u0275\u0275declareLet(8);
|
|
85577
85601
|
\u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 7);
|
|
85578
85602
|
\u0275\u0275declareLet(10);
|
|
@@ -85623,7 +85647,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85623
85647
|
MatDatepickerInput,
|
|
85624
85648
|
MatFormField,
|
|
85625
85649
|
MatInput,
|
|
85626
|
-
MatLabel,
|
|
85627
85650
|
MatRadioButton,
|
|
85628
85651
|
MatRadioGroup,
|
|
85629
85652
|
ReactiveFormsModule,
|
|
@@ -85647,7 +85670,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85647
85670
|
MatDatepickerInput,
|
|
85648
85671
|
MatFormField,
|
|
85649
85672
|
MatInput,
|
|
85650
|
-
MatLabel,
|
|
85651
85673
|
MatRadioButton,
|
|
85652
85674
|
MatRadioGroup,
|
|
85653
85675
|
ReactiveFormsModule,
|
|
@@ -85686,7 +85708,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85686
85708
|
\r
|
|
85687
85709
|
@if (corporationDetails) {\r
|
|
85688
85710
|
<expandable-card [isStatusIcon]="false" [title]="groups.CorporationDetails">\r
|
|
85689
|
-
<div class="readonly-summary"
|
|
85711
|
+
<div class="readonly-summary">\r
|
|
85690
85712
|
<p>\r
|
|
85691
85713
|
<strong>{{ 'Corporation Name' | translate }}:</strong>\r
|
|
85692
85714
|
{{ corporationDetails.get(controls.CorporationName)?.value }}\r
|
|
@@ -85695,19 +85717,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85695
85717
|
<strong>{{ 'Incorporation Number' | translate }}:</strong>\r
|
|
85696
85718
|
{{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
|
|
85697
85719
|
</p>\r
|
|
85698
|
-
<p
|
|
85699
|
-
<strong>{{ 'Company Email' | translate }}:</strong
|
|
85700
|
-
{{ corporationDetails.get(controls.CompanyEmail)?.value }}
|
|
85701
|
-
</p
|
|
85702
|
-
|
|
85703
|
-
<mat-label>{{ 'Company Password' | translate }}</mat-label>
|
|
85704
|
-
<input
|
|
85705
|
-
matInput
|
|
85706
|
-
type="password"
|
|
85707
|
-
[formControlName]="controls.CompanyPassword"
|
|
85708
|
-
/>
|
|
85709
|
-
</mat-form-field>
|
|
85710
|
-
</div>
|
|
85720
|
+
<p>\r
|
|
85721
|
+
<strong>{{ 'Company Email' | translate }}:</strong>\r
|
|
85722
|
+
{{ corporationDetails.get(controls.CompanyEmail)?.value }}\r
|
|
85723
|
+
</p>\r
|
|
85724
|
+
</div>\r
|
|
85711
85725
|
</expandable-card>\r
|
|
85712
85726
|
}\r
|
|
85713
85727
|
\r
|
|
@@ -85865,7 +85879,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85865
85879
|
}], null, null);
|
|
85866
85880
|
})();
|
|
85867
85881
|
(() => {
|
|
85868
|
-
(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:
|
|
85882
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfDirectorsFormComponent, { className: "BritishColumbiaChangeOfDirectorsFormComponent", filePath: "src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts", lineNumber: 61 });
|
|
85869
85883
|
})();
|
|
85870
85884
|
}
|
|
85871
85885
|
});
|
|
@@ -87395,7 +87409,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87395
87409
|
function BritishColumbiaComponent_Conditional_1_Conditional_0_Template(rf, ctx) {
|
|
87396
87410
|
if (rf & 1) {
|
|
87397
87411
|
const _r1 = \u0275\u0275getCurrentView();
|
|
87398
|
-
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-delta-form",
|
|
87412
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-delta-form", 2);
|
|
87399
87413
|
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_1_Conditional_0_Template_british_columbia_change_of_directors_delta_form_validate_0_listener() {
|
|
87400
87414
|
\u0275\u0275restoreView(_r1);
|
|
87401
87415
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
@@ -87420,7 +87434,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87420
87434
|
function BritishColumbiaComponent_Conditional_1_Conditional_1_Template(rf, ctx) {
|
|
87421
87435
|
if (rf & 1) {
|
|
87422
87436
|
const _r4 = \u0275\u0275getCurrentView();
|
|
87423
|
-
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-preview-form",
|
|
87437
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-directors-preview-form", 3);
|
|
87424
87438
|
\u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_change_of_directors_preview_form_close_0_listener() {
|
|
87425
87439
|
\u0275\u0275restoreView(_r4);
|
|
87426
87440
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
@@ -87428,7 +87442,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87428
87442
|
})("file", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_change_of_directors_preview_form_file_0_listener() {
|
|
87429
87443
|
\u0275\u0275restoreView(_r4);
|
|
87430
87444
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
87431
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
87445
|
+
return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsSubmit());
|
|
87432
87446
|
});
|
|
87433
87447
|
\u0275\u0275elementEnd();
|
|
87434
87448
|
}
|
|
@@ -87438,57 +87452,31 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87438
87452
|
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors());
|
|
87439
87453
|
}
|
|
87440
87454
|
}
|
|
87441
|
-
function BritishColumbiaComponent_Conditional_1_Conditional_2_Template(rf, ctx) {
|
|
87442
|
-
if (rf & 1) {
|
|
87443
|
-
const _r5 = \u0275\u0275getCurrentView();
|
|
87444
|
-
\u0275\u0275elementStart(0, "terms-and-conditions", 5);
|
|
87445
|
-
\u0275\u0275listener("prev", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_prev_0_listener() {
|
|
87446
|
-
\u0275\u0275restoreView(_r5);
|
|
87447
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
87448
|
-
return \u0275\u0275resetView(ctx_r1.prevStep.emit());
|
|
87449
|
-
})("close", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_close_0_listener() {
|
|
87450
|
-
\u0275\u0275restoreView(_r5);
|
|
87451
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
87452
|
-
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
87453
|
-
})("confirm", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_confirm_0_listener($event) {
|
|
87454
|
-
\u0275\u0275restoreView(_r5);
|
|
87455
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
87456
|
-
return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsSubmit($event));
|
|
87457
|
-
});
|
|
87458
|
-
\u0275\u0275elementEnd();
|
|
87459
|
-
}
|
|
87460
|
-
if (rf & 2) {
|
|
87461
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
87462
|
-
\u0275\u0275property("errors", ctx_r1.errors());
|
|
87463
|
-
}
|
|
87464
|
-
}
|
|
87465
87455
|
function BritishColumbiaComponent_Conditional_1_Template(rf, ctx) {
|
|
87466
87456
|
if (rf & 1) {
|
|
87467
|
-
\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)
|
|
87457
|
+
\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);
|
|
87468
87458
|
}
|
|
87469
87459
|
if (rf & 2) {
|
|
87470
87460
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
87471
87461
|
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.Validate ? 0 : -1);
|
|
87472
87462
|
\u0275\u0275advance();
|
|
87473
87463
|
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
|
|
87474
|
-
\u0275\u0275advance();
|
|
87475
|
-
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.TermsAndConditions ? 2 : -1);
|
|
87476
87464
|
}
|
|
87477
87465
|
}
|
|
87478
87466
|
function BritishColumbiaComponent_Conditional_2_Conditional_0_Template(rf, ctx) {
|
|
87479
87467
|
if (rf & 1) {
|
|
87480
|
-
const
|
|
87481
|
-
\u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form",
|
|
87468
|
+
const _r5 = \u0275\u0275getCurrentView();
|
|
87469
|
+
\u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form", 6);
|
|
87482
87470
|
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_validate_0_listener() {
|
|
87483
|
-
\u0275\u0275restoreView(
|
|
87471
|
+
\u0275\u0275restoreView(_r5);
|
|
87484
87472
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
87485
87473
|
return \u0275\u0275resetView(ctx_r1.onFormationValidate());
|
|
87486
87474
|
})("close", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_close_0_listener() {
|
|
87487
|
-
\u0275\u0275restoreView(
|
|
87475
|
+
\u0275\u0275restoreView(_r5);
|
|
87488
87476
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
87489
87477
|
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
87490
87478
|
})("save", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_save_0_listener() {
|
|
87491
|
-
\u0275\u0275restoreView(
|
|
87479
|
+
\u0275\u0275restoreView(_r5);
|
|
87492
87480
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
87493
87481
|
return \u0275\u0275resetView(ctx_r1.onFormationSave());
|
|
87494
87482
|
});
|
|
@@ -87502,14 +87490,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87502
87490
|
}
|
|
87503
87491
|
function BritishColumbiaComponent_Conditional_2_Conditional_1_Template(rf, ctx) {
|
|
87504
87492
|
if (rf & 1) {
|
|
87505
|
-
const
|
|
87506
|
-
\u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form",
|
|
87493
|
+
const _r6 = \u0275\u0275getCurrentView();
|
|
87494
|
+
\u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 7);
|
|
87507
87495
|
\u0275\u0275listener("next", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_next_0_listener() {
|
|
87508
|
-
\u0275\u0275restoreView(
|
|
87496
|
+
\u0275\u0275restoreView(_r6);
|
|
87509
87497
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
87510
87498
|
return \u0275\u0275resetView(ctx_r1.onFormationSubmit());
|
|
87511
87499
|
})("close", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_close_0_listener() {
|
|
87512
|
-
\u0275\u0275restoreView(
|
|
87500
|
+
\u0275\u0275restoreView(_r6);
|
|
87513
87501
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
87514
87502
|
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
87515
87503
|
});
|
|
@@ -87523,7 +87511,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87523
87511
|
}
|
|
87524
87512
|
function BritishColumbiaComponent_Conditional_2_Template(rf, ctx) {
|
|
87525
87513
|
if (rf & 1) {
|
|
87526
|
-
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_2_Conditional_0_Template, 1, 5, "british-columbia-incorporation-delta-form",
|
|
87514
|
+
\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);
|
|
87527
87515
|
}
|
|
87528
87516
|
if (rf & 2) {
|
|
87529
87517
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
@@ -87547,7 +87535,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87547
87535
|
init_delta_state_service();
|
|
87548
87536
|
init_common_utils();
|
|
87549
87537
|
init_confirm_modal_component();
|
|
87550
|
-
init_terms_and_conditions_component();
|
|
87551
87538
|
init_change_of_directors_delta_form_component();
|
|
87552
87539
|
init_change_of_directors_preview_form_component();
|
|
87553
87540
|
init_british_columbia_incorporation_delta_form_component();
|
|
@@ -87560,6 +87547,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87560
87547
|
isNote = input(false);
|
|
87561
87548
|
actionsDisabled = input(false);
|
|
87562
87549
|
errors = input([]);
|
|
87550
|
+
currentDataExtract = input();
|
|
87563
87551
|
close = output();
|
|
87564
87552
|
codValidate = output();
|
|
87565
87553
|
saveCodDeltaData = output();
|
|
@@ -87581,7 +87569,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87581
87569
|
effect(() => {
|
|
87582
87570
|
const task = this.task();
|
|
87583
87571
|
if (task && isChangeOfPrincipalsTask(task)) {
|
|
87584
|
-
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key))));
|
|
87572
|
+
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract())));
|
|
87585
87573
|
this.deltaState.setBCChangeOfDirectorsInitialDelta(this.generateChangeOfDirectorsDeltaData());
|
|
87586
87574
|
}
|
|
87587
87575
|
if (task && isFormationTask2(task)) {
|
|
@@ -87596,7 +87584,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87596
87584
|
return;
|
|
87597
87585
|
}
|
|
87598
87586
|
if (isChangeOfPrincipalsTask(task)) {
|
|
87599
|
-
const form = new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
|
|
87587
|
+
const form = new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract()));
|
|
87600
87588
|
form.disable();
|
|
87601
87589
|
this.previewForm.set(form);
|
|
87602
87590
|
if (untracked2(() => this.activeStep()) === Step.Validate) {
|
|
@@ -87622,11 +87610,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87622
87610
|
this.deltaState.setBCChangeOfDirectorsInitialDelta(delta);
|
|
87623
87611
|
this.saveCodDeltaData.emit(delta);
|
|
87624
87612
|
}
|
|
87625
|
-
onChangeOfDirectorsSubmit(
|
|
87626
|
-
this.codSubmit.emit(
|
|
87627
|
-
signatoryFirstName: termsAndConditions.firstName,
|
|
87628
|
-
signatoryLastName: termsAndConditions.lastName
|
|
87629
|
-
}));
|
|
87613
|
+
onChangeOfDirectorsSubmit() {
|
|
87614
|
+
this.codSubmit.emit();
|
|
87630
87615
|
}
|
|
87631
87616
|
onFormationValidate() {
|
|
87632
87617
|
markFormGroupTouched(this.deltaForm());
|
|
@@ -87644,10 +87629,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87644
87629
|
const c = BCChangeOfDirectorsFormControls;
|
|
87645
87630
|
const formData = this.deltaForm().getRawValue();
|
|
87646
87631
|
const refNumbers = formData[BCChangeOfDirectorsFormGroups.ReferenceNumbers];
|
|
87647
|
-
const corpDetails = formData[BCChangeOfDirectorsFormGroups.CorporationDetails];
|
|
87648
87632
|
const filing = formData[BCChangeOfDirectorsFormGroups.FilingDetails];
|
|
87649
87633
|
const notification = formData[BCChangeOfDirectorsFormGroups.Notification];
|
|
87650
87634
|
const reminder = formData[BCChangeOfDirectorsFormGroups.AnnualReportReminder];
|
|
87635
|
+
const directors = formData[BCChangeOfDirectorsFormGroups.Directors] ?? [];
|
|
87651
87636
|
const addedOrDeleted = Boolean(filing?.[c.DirectorsAddedOrDeleted]);
|
|
87652
87637
|
const notifyByMail = notification?.[c.NotificationMethod] === BCNotificationMethod.Mail;
|
|
87653
87638
|
return {
|
|
@@ -87655,7 +87640,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87655
87640
|
referenceNumber: refNumbers?.[c.ClientMatterNumber] ?? null,
|
|
87656
87641
|
docketNumber: refNumbers?.[c.DocketNumber] ?? null
|
|
87657
87642
|
},
|
|
87658
|
-
companyPassword: corpDetails?.[c.CompanyPassword] ?? null,
|
|
87659
87643
|
filingDetails: {
|
|
87660
87644
|
directorsAddedOrDeleted: addedOrDeleted,
|
|
87661
87645
|
changeDate: addedOrDeleted ? filing?.[c.ChangeDate] ?? null : void 0
|
|
@@ -87664,7 +87648,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87664
87648
|
method: notification?.[c.NotificationMethod] ?? null,
|
|
87665
87649
|
email: notifyByMail ? void 0 : notification?.[c.NotificationEmail] ?? null
|
|
87666
87650
|
},
|
|
87667
|
-
annualReportReminder: reminder?.[c.AnnualReportReminder] ?? null
|
|
87651
|
+
annualReportReminder: reminder?.[c.AnnualReportReminder] ?? null,
|
|
87652
|
+
directorChanges: {
|
|
87653
|
+
addIds: directors.filter((d) => d[c.AffiliationType] === "Add").map((d) => d[c.Id]).filter(Boolean),
|
|
87654
|
+
editIds: directors.filter((d) => d[c.AffiliationType] === "Update").map((d) => d[c.Id]).filter(Boolean),
|
|
87655
|
+
ceaseIds: directors.filter((d) => d[c.AffiliationType] === "Cease").map((d) => d[c.Id]).filter(Boolean)
|
|
87656
|
+
}
|
|
87668
87657
|
};
|
|
87669
87658
|
}
|
|
87670
87659
|
generateFormationDeltaData() {
|
|
@@ -87739,24 +87728,23 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87739
87728
|
static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
|
|
87740
87729
|
return new (__ngFactoryType__ || _BritishColumbiaComponent)();
|
|
87741
87730
|
};
|
|
87742
|
-
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" }, decls: 3, vars: 3, consts: [[3, "task", "form", "actionsDisabled", "errors", "isNote"], [3, "task", "form", "actionsDisabled", "errors"], [3, "
|
|
87731
|
+
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", prevStep: "prevStep" }, decls: 3, vars: 3, 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) {
|
|
87743
87732
|
if (rf & 1) {
|
|
87744
87733
|
\u0275\u0275declareLet(0);
|
|
87745
|
-
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template,
|
|
87734
|
+
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2);
|
|
87746
87735
|
}
|
|
87747
87736
|
if (rf & 2) {
|
|
87748
|
-
const
|
|
87737
|
+
const taskData_r7 = \u0275\u0275storeLet(ctx.task());
|
|
87749
87738
|
\u0275\u0275advance();
|
|
87750
|
-
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(
|
|
87739
|
+
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r7) ? 1 : -1);
|
|
87751
87740
|
\u0275\u0275advance();
|
|
87752
|
-
\u0275\u0275conditional(ctx.isFormationTask(
|
|
87741
|
+
\u0275\u0275conditional(ctx.isFormationTask(taskData_r7) ? 2 : -1);
|
|
87753
87742
|
}
|
|
87754
87743
|
}, dependencies: [
|
|
87755
87744
|
BritishColumbiaChangeOfDirectorsDeltaFormComponent,
|
|
87756
87745
|
BritishColumbiaChangeOfDirectorsPreviewFormComponent,
|
|
87757
87746
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
87758
|
-
BritishColumbiaIncorporationPreviewFormComponent
|
|
87759
|
-
TermsAndConditionsComponent
|
|
87747
|
+
BritishColumbiaIncorporationPreviewFormComponent
|
|
87760
87748
|
], styles: ["\n\n[_nghost-%COMP%] {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */"], changeDetection: 0 });
|
|
87761
87749
|
};
|
|
87762
87750
|
(() => {
|
|
@@ -87766,13 +87754,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87766
87754
|
BritishColumbiaChangeOfDirectorsDeltaFormComponent,
|
|
87767
87755
|
BritishColumbiaChangeOfDirectorsPreviewFormComponent,
|
|
87768
87756
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
87769
|
-
BritishColumbiaIncorporationPreviewFormComponent
|
|
87770
|
-
|
|
87771
|
-
], 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', styles: ["/* src/app/components/british-columbia/british-columbia.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */\n"] }]
|
|
87757
|
+
BritishColumbiaIncorporationPreviewFormComponent
|
|
87758
|
+
], 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', styles: ["/* src/app/components/british-columbia/british-columbia.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */\n"] }]
|
|
87772
87759
|
}], () => [], null);
|
|
87773
87760
|
})();
|
|
87774
87761
|
(() => {
|
|
87775
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber:
|
|
87762
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber: 62 });
|
|
87776
87763
|
})();
|
|
87777
87764
|
}
|
|
87778
87765
|
});
|
|
@@ -89143,7 +89130,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89143
89130
|
const isNumberedCompany = ext._numbered_company;
|
|
89144
89131
|
const config2 = {};
|
|
89145
89132
|
const corporateName = delta?.corporateName;
|
|
89146
|
-
const directors =
|
|
89133
|
+
const directors = (task.entity.affiliations ?? []).filter((a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director");
|
|
89147
89134
|
if (directors.length) {
|
|
89148
89135
|
const deltaDirectorsMap = delta?.directors;
|
|
89149
89136
|
const directorGroups = directors.map((director) => {
|
|
@@ -89724,7 +89711,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89724
89711
|
}
|
|
89725
89712
|
});
|
|
89726
89713
|
effect(() => {
|
|
89727
|
-
const directors =
|
|
89714
|
+
const directors = (this.task()?.entity.affiliations ?? []).filter((a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director") ?? [];
|
|
89728
89715
|
const directorOptions = directors.map((director) => ({ label: getPersonName(director.participant), value: director.participant._id }));
|
|
89729
89716
|
this.federalFormationFormInviteDirectorsToBeManagersControl = generateFederalFormationFormInviteDirectorsToBeManagersControl(directorOptions);
|
|
89730
89717
|
});
|
|
@@ -89899,7 +89886,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89899
89886
|
exclusionReason.updateValueAndValidity({ emitEvent: false });
|
|
89900
89887
|
}
|
|
89901
89888
|
getSelectableIndividualsWithSignificantControl(affiliations) {
|
|
89902
|
-
|
|
89889
|
+
const significantControlAffiliations = getIndividualWithSignificantControl(affiliations);
|
|
89890
|
+
if (significantControlAffiliations.length) {
|
|
89891
|
+
return significantControlAffiliations;
|
|
89892
|
+
}
|
|
89893
|
+
return affiliations.filter((a) => isPrincipalAffiliation2(a) && a._participant.participant_type === "person" && !["Contact", "Agent", "Responsible"].includes(a.role?.role_name ?? ""));
|
|
89903
89894
|
}
|
|
89904
89895
|
getFormArray(key) {
|
|
89905
89896
|
return this.form().get(key);
|
|
@@ -90248,7 +90239,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90248
90239
|
}], () => [], null);
|
|
90249
90240
|
})();
|
|
90250
90241
|
(() => {
|
|
90251
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FederalIncorporationFormComponent, { className: "FederalIncorporationFormComponent", filePath: "src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts", lineNumber:
|
|
90242
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FederalIncorporationFormComponent, { className: "FederalIncorporationFormComponent", filePath: "src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts", lineNumber: 75 });
|
|
90252
90243
|
})();
|
|
90253
90244
|
}
|
|
90254
90245
|
});
|
|
@@ -92241,7 +92232,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
92241
92232
|
searchOrFilingType,
|
|
92242
92233
|
serviceOrderId,
|
|
92243
92234
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
92244
|
-
provider:
|
|
92235
|
+
provider: "obr",
|
|
92245
92236
|
draftPdf: payload.ReceiptPdf,
|
|
92246
92237
|
documentName: "Incorporation Receipt",
|
|
92247
92238
|
documentType: "pdf"
|
|
@@ -92792,7 +92783,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
92792
92783
|
const mailingAddressUid = deltaData.registeredOfficeAddress?.mailingAddressForCorrespondenceUid;
|
|
92793
92784
|
const mailingAddress = useDifferentMailingAddress ? task.entity.addresses.find((address) => address.uid === mailingAddressUid) : void 0;
|
|
92794
92785
|
const registeredOfficeAddress = findRegisteredOfficeAddress(task);
|
|
92795
|
-
const directors =
|
|
92786
|
+
const directors = task.entity.affiliations.filter((aff) => aff.kind === "PrincipalAffiliationV3" && aff.role.role_name === DirectorRole.DIRECTOR);
|
|
92796
92787
|
const incorporators = task._ext._incorporators ?? [];
|
|
92797
92788
|
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];
|
|
92798
92789
|
const officialBusinessEmail = registeredOfficeAddress?.communications?.find((c) => c.type === "Business Email")?.value;
|
|
@@ -93104,6 +93095,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93104
93095
|
}
|
|
93105
93096
|
var init_federal_formation_mapper = __esm({
|
|
93106
93097
|
"src/app/helpers/mappers/federal-formation.mapper.ts"() {
|
|
93098
|
+
init_ECoreInterfaces();
|
|
93107
93099
|
init_transform_utils();
|
|
93108
93100
|
init_address_utils();
|
|
93109
93101
|
init_common_utils();
|
|
@@ -93988,36 +93980,55 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93988
93980
|
init_core();
|
|
93989
93981
|
BritishColumbiaChangeOfDirectorsService = class _BritishColumbiaChangeOfDirectorsService {
|
|
93990
93982
|
config;
|
|
93983
|
+
currentDataExtract;
|
|
93991
93984
|
setConfig(config2) {
|
|
93992
93985
|
this.config = config2;
|
|
93993
93986
|
}
|
|
93987
|
+
/**
|
|
93988
|
+
* Orders the corporation's current data extract and waits until it is ready, returning the
|
|
93989
|
+
* `currentDataServiceOrderId` that Validate Filing needs. The registry bot can take a while,
|
|
93990
|
+
* so the extract is polled every `intervalMs` for up to `maxAttempts` times.
|
|
93991
|
+
*/
|
|
93994
93992
|
ensureCurrentDataExtract(_0, _1) {
|
|
93995
|
-
return __async(this, arguments, function* (signature, order, opts = {}) {
|
|
93993
|
+
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3, maxAttempts = 40 } = {}) {
|
|
93996
93994
|
ensureAuthInputs(signature);
|
|
93997
93995
|
const fetchFn = opts.fetchImpl ?? fetch;
|
|
93998
93996
|
const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
|
|
93999
|
-
const
|
|
93997
|
+
const orderResp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, signature.proxyApiUrl, signature.jwtToken, order, __spreadValues({
|
|
94000
93998
|
"x-target-url": `${dataExtractUrl}/order`
|
|
94001
93999
|
}, opts.headers ?? {})));
|
|
94002
|
-
const
|
|
94003
|
-
const orderId =
|
|
94004
|
-
if (!
|
|
94005
|
-
throw buildGenericError(
|
|
94000
|
+
const ordered = yield this.readJson(orderResp, "BC current data extract order");
|
|
94001
|
+
const orderId = ordered.currentDataServiceOrderId;
|
|
94002
|
+
if (!orderResp.ok || !orderId || ordered.status === "failed") {
|
|
94003
|
+
throw buildGenericError(orderResp.status, "BC current data extract order failed", __spreadProps(__spreadValues({}, ordered), {
|
|
94004
|
+
errors: ordered.errors?.length ? ordered.errors : (ordered.additionalInformation ?? []).map((message) => ({ message }))
|
|
94005
|
+
}));
|
|
94006
94006
|
}
|
|
94007
|
-
|
|
94008
|
-
|
|
94009
|
-
|
|
94010
|
-
|
|
94011
|
-
|
|
94012
|
-
|
|
94013
|
-
|
|
94014
|
-
|
|
94015
|
-
|
|
94016
|
-
|
|
94007
|
+
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
94008
|
+
const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
|
|
94009
|
+
method: "GET",
|
|
94010
|
+
headers: __spreadValues({
|
|
94011
|
+
Authorization: `Bearer ${signature.jwtToken}`,
|
|
94012
|
+
"x-target-url": `${dataExtractUrl}/${encodeURIComponent(orderId)}`
|
|
94013
|
+
}, opts.headers ?? {})
|
|
94014
|
+
}));
|
|
94015
|
+
const extract = yield this.readJson(extractResp, "BC current data extract");
|
|
94016
|
+
if (extractResp.ok && extract.status === "success") {
|
|
94017
|
+
this.currentDataExtract = extract;
|
|
94018
|
+
return orderId;
|
|
94019
|
+
}
|
|
94020
|
+
if (!extractResp.ok || extract.status === "failed" || extract.status === "sourceUnavailable") {
|
|
94021
|
+
const reasons = extract.additionalInformation ?? [];
|
|
94022
|
+
throw new Error(`BC current data extract ${extract.status ?? "failed"} (HTTP ${extractResp.status})${reasons.length ? `: ${reasons.join(" | ")}` : "."}`);
|
|
94023
|
+
}
|
|
94024
|
+
yield new Promise((resolve) => setTimeout(resolve, intervalMs));
|
|
94017
94025
|
}
|
|
94018
|
-
|
|
94026
|
+
throw new Error("BC current data extract is still processing. Please try again in a moment.");
|
|
94019
94027
|
});
|
|
94020
94028
|
}
|
|
94029
|
+
getCurrentDataExtract() {
|
|
94030
|
+
return this.currentDataExtract;
|
|
94031
|
+
}
|
|
94021
94032
|
validate(_0, _1) {
|
|
94022
94033
|
return __async(this, arguments, function* (signature, requestBody, opts = {}) {
|
|
94023
94034
|
ensureAuthInputs(signature);
|
|
@@ -94035,10 +94046,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94035
94046
|
throw err2;
|
|
94036
94047
|
}
|
|
94037
94048
|
const payload = unwrapRequestResults(parsed.value);
|
|
94038
|
-
|
|
94039
|
-
|
|
94040
|
-
|
|
94041
|
-
|
|
94049
|
+
if (resp.ok && !payload.Errors?.length && !payload["errors"]?.length) {
|
|
94050
|
+
return __spreadProps(__spreadValues({}, payload), {
|
|
94051
|
+
Status: payload.Status ?? payload["status"],
|
|
94052
|
+
ServiceOrderId: payload.ServiceOrderId ?? payload["serviceOrderId"],
|
|
94053
|
+
Draft: payload.Draft ?? payload["draft"]
|
|
94054
|
+
});
|
|
94042
94055
|
}
|
|
94043
94056
|
const err = buildValidationError(resp.status, payload);
|
|
94044
94057
|
err.validateResult = payload;
|
|
@@ -94098,12 +94111,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94098
94111
|
throw err;
|
|
94099
94112
|
});
|
|
94100
94113
|
}
|
|
94101
|
-
readJson(
|
|
94114
|
+
readJson(resp, what) {
|
|
94102
94115
|
return __async(this, null, function* () {
|
|
94103
|
-
const raw = yield
|
|
94116
|
+
const raw = yield resp.text();
|
|
94104
94117
|
const parsed = tryParseJson(raw);
|
|
94105
|
-
if (!parsed.ok)
|
|
94106
|
-
throw new Error(`${
|
|
94118
|
+
if (!parsed.ok) {
|
|
94119
|
+
throw new Error(`${what} returned ${resp.status} ${resp.statusText}: ${raw || "(empty response)"}`);
|
|
94120
|
+
}
|
|
94107
94121
|
return unwrapRequestResults(parsed.value);
|
|
94108
94122
|
});
|
|
94109
94123
|
}
|
|
@@ -94143,13 +94157,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94143
94157
|
filingType: "changeOfDirectorsFiling"
|
|
94144
94158
|
};
|
|
94145
94159
|
const issues = [];
|
|
94146
|
-
if (!request.corporationNumber)
|
|
94160
|
+
if (!request.corporationNumber) {
|
|
94147
94161
|
issues.push("The corporation number is missing on the entity.");
|
|
94162
|
+
}
|
|
94148
94163
|
if (!/^[A-Za-z0-9]+$/.test(request.accessCodeOrPassword)) {
|
|
94149
|
-
issues.push("The company's BC Online access code or password is missing or
|
|
94164
|
+
issues.push("The company's BC Online access code or password is missing or contains characters other than letters and numbers.");
|
|
94150
94165
|
}
|
|
94151
|
-
if (!request.incorporationDate)
|
|
94166
|
+
if (!request.incorporationDate) {
|
|
94152
94167
|
issues.push("The incorporation date is missing on the entity.");
|
|
94168
|
+
}
|
|
94153
94169
|
return { request, issues };
|
|
94154
94170
|
}
|
|
94155
94171
|
function buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData, currentDataServiceOrderId) {
|
|
@@ -94160,32 +94176,40 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94160
94176
|
const ceasedDirectors = [...source?.CeasedDirectors ?? [], ...source?.CeaseDirector ?? [], ...source?.ceaseDirectors ?? []];
|
|
94161
94177
|
const editedDirectors = [...source?.EditedDirectors ?? [], ...source?.EditDirector ?? [], ...source?.editDirectors ?? []];
|
|
94162
94178
|
const companyEmail = findCompanyEmail(task);
|
|
94163
|
-
const
|
|
94164
|
-
|
|
94179
|
+
const byId = new Map([
|
|
94180
|
+
...incomingDirectors,
|
|
94181
|
+
...outgoingDirectors
|
|
94182
|
+
].map((affiliation) => [String(affiliation._id), affiliation]));
|
|
94183
|
+
const selected = deltaData.directorChanges;
|
|
94184
|
+
const addSource = selected ? selected.addIds.map((id) => byId.get(String(id))).filter(Boolean) : incomingDirectors.length ? incomingDirectors : addedDirectors;
|
|
94185
|
+
const editSource = selected ? selected.editIds.map((id) => byId.get(String(id))).filter(Boolean) : editedDirectors;
|
|
94186
|
+
const ceaseSource = selected ? selected.ceaseIds.map((id) => byId.get(String(id))).filter(Boolean) : outgoingDirectors.length ? outgoingDirectors : ceasedDirectors;
|
|
94187
|
+
const addDirectors = addSource.map((affiliation) => buildDirector(affiliation));
|
|
94188
|
+
const ceaseDirectors = ceaseSource.map((affiliation) => buildCeasedDirector(affiliation));
|
|
94165
94189
|
return {
|
|
94166
94190
|
filingType: "changeOfDirectorsFiling",
|
|
94167
94191
|
currentDataServiceOrderId,
|
|
94168
94192
|
filing: __spreadProps(__spreadValues({
|
|
94169
94193
|
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
94170
|
-
accessCodeOrPassword: getBritishColumbiaAccessCode(task
|
|
94194
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode(task),
|
|
94171
94195
|
reference: deltaData.referenceNumbers.referenceNumber ?? null,
|
|
94172
94196
|
docket: deltaData.referenceNumbers.docketNumber ?? null
|
|
94173
94197
|
}, addDirectors.length || ceaseDirectors.length ? { effectiveDate: toYyyyMmDd(deltaData.filingDetails.changeDate) ?? toYyyyMmDd(/* @__PURE__ */ new Date()) } : {}), {
|
|
94174
94198
|
addDirectors,
|
|
94175
94199
|
ceaseDirectors,
|
|
94176
|
-
editDirectors:
|
|
94200
|
+
editDirectors: editSource.map((director) => buildDirector(director)),
|
|
94177
94201
|
companyEmail,
|
|
94178
94202
|
isAnnualReportReminderRequired: deltaData.annualReportReminder === BCAnnualReportReminder.Yes
|
|
94179
94203
|
})
|
|
94180
94204
|
};
|
|
94181
94205
|
}
|
|
94182
|
-
function buildCeasedDirector(affiliation) {
|
|
94183
|
-
const _a = buildDirector(affiliation), { isDeliveryAddressSameAsMailing: _same } = _a, director = __objRest(_a, ["isDeliveryAddressSameAsMailing"]);
|
|
94184
|
-
return __spreadProps(__spreadValues({}, director), { deliveryAddress: director.deliveryAddress ?? director.mailingAddress });
|
|
94185
|
-
}
|
|
94186
94206
|
function isDirectorAffiliation(affiliation) {
|
|
94187
94207
|
return isPrincipalAffiliation2(affiliation) && affiliation.role?.role_name === "Director";
|
|
94188
94208
|
}
|
|
94209
|
+
function buildCeasedDirector(affiliation) {
|
|
94210
|
+
const _a = buildDirector(affiliation), { isDeliveryAddressSameAsMailing: _omitted } = _a, director = __objRest(_a, ["isDeliveryAddressSameAsMailing"]);
|
|
94211
|
+
return __spreadProps(__spreadValues({}, director), { deliveryAddress: director.deliveryAddress ?? director.mailingAddress });
|
|
94212
|
+
}
|
|
94189
94213
|
function buildDirector(affiliation) {
|
|
94190
94214
|
if (affiliation?.PersonName || affiliation?.personName || affiliation?.firstName || affiliation?.FirstName) {
|
|
94191
94215
|
const name = affiliation.PersonName ?? affiliation.personName ?? affiliation;
|
|
@@ -94194,7 +94218,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94194
94218
|
middleName: name.MiddleName ?? name.middleName ?? "",
|
|
94195
94219
|
lastName: name.LastName ?? name.lastName ?? "",
|
|
94196
94220
|
mailingAddress: affiliation.mailingAddress ?? affiliation.MailingAddress,
|
|
94197
|
-
deliveryAddress: affiliation.deliveryAddress ?? affiliation.DeliveryAddress,
|
|
94221
|
+
deliveryAddress: affiliation.isDeliveryAddressSameAsMailing ? void 0 : affiliation.deliveryAddress ?? affiliation.DeliveryAddress,
|
|
94198
94222
|
isDeliveryAddressSameAsMailing: affiliation.isDeliveryAddressSameAsMailing
|
|
94199
94223
|
};
|
|
94200
94224
|
}
|
|
@@ -94208,6 +94232,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94208
94232
|
middleName: profile.middleName ?? "",
|
|
94209
94233
|
lastName: profile.lastName ?? "",
|
|
94210
94234
|
mailingAddress,
|
|
94235
|
+
// The API rejects a delivery address when it is the same as the mailing address.
|
|
94211
94236
|
deliveryAddress: isSameAsMailing ? void 0 : deliveryAddress,
|
|
94212
94237
|
isDeliveryAddressSameAsMailing: isSameAsMailing
|
|
94213
94238
|
};
|
|
@@ -94355,7 +94380,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94355
94380
|
if (rf & 2) {
|
|
94356
94381
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
94357
94382
|
const currentTask_r5 = \u0275\u0275readContextLet(9);
|
|
94358
|
-
\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());
|
|
94383
|
+
\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());
|
|
94359
94384
|
}
|
|
94360
94385
|
}
|
|
94361
94386
|
function FilingComponent_Conditional_10_Conditional_2_Template(rf, ctx) {
|
|
@@ -94405,7 +94430,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94405
94430
|
}
|
|
94406
94431
|
function FilingComponent_Conditional_10_Template(rf, ctx) {
|
|
94407
94432
|
if (rf & 1) {
|
|
94408
|
-
\u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1,
|
|
94433
|
+
\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);
|
|
94409
94434
|
}
|
|
94410
94435
|
if (rf & 2) {
|
|
94411
94436
|
const ctx_r2 = \u0275\u0275nextContext();
|
|
@@ -94523,6 +94548,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94523
94548
|
});
|
|
94524
94549
|
dataWasChanged = signal(false);
|
|
94525
94550
|
serviceOrderId = "";
|
|
94551
|
+
currentDataExtract = signal(void 0);
|
|
94552
|
+
bcDataExtractTaskId = "";
|
|
94526
94553
|
activeStep = signal(Step.Validate);
|
|
94527
94554
|
isLoading = signal(false);
|
|
94528
94555
|
validationConfig = signal(null);
|
|
@@ -94586,6 +94613,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94586
94613
|
this.serviceOrderId = serviceOrderId;
|
|
94587
94614
|
}
|
|
94588
94615
|
}
|
|
94616
|
+
if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
|
|
94617
|
+
const signature = this._signature();
|
|
94618
|
+
if (!signature)
|
|
94619
|
+
return;
|
|
94620
|
+
this.bcDataExtractTaskId = task._id;
|
|
94621
|
+
const { request, issues } = buildBritishColumbiaDataExtractOrder(task, deltaData?.companyPassword);
|
|
94622
|
+
if (issues.length) {
|
|
94623
|
+
this.errors.set(issues);
|
|
94624
|
+
return;
|
|
94625
|
+
}
|
|
94626
|
+
this.isLoading.set(true);
|
|
94627
|
+
try {
|
|
94628
|
+
yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
|
|
94629
|
+
this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
|
|
94630
|
+
} catch (error) {
|
|
94631
|
+
this.handleCatchError(error);
|
|
94632
|
+
} finally {
|
|
94633
|
+
this.isLoading.set(false);
|
|
94634
|
+
}
|
|
94635
|
+
}
|
|
94589
94636
|
}));
|
|
94590
94637
|
}
|
|
94591
94638
|
getCurrentData() {
|
|
@@ -94667,7 +94714,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94667
94714
|
searchOrFilingType,
|
|
94668
94715
|
serviceOrderId: response["ServiceOrderId"] ?? "",
|
|
94669
94716
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
94670
|
-
provider:
|
|
94717
|
+
provider: "obr",
|
|
94671
94718
|
draftPdf: response.Draft ?? "",
|
|
94672
94719
|
documentName: this.validateOptions()?.documentName ?? "Incorporation Draft",
|
|
94673
94720
|
documentType: "pdf"
|
|
@@ -94710,12 +94757,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94710
94757
|
this.isLoading.set(true);
|
|
94711
94758
|
this.errors.set([]);
|
|
94712
94759
|
const options = this.validateOptions() ?? {};
|
|
94713
|
-
const { request: extractOrder, issues } = buildBritishColumbiaDataExtractOrder(task
|
|
94760
|
+
const { request: extractOrder, issues } = buildBritishColumbiaDataExtractOrder(task);
|
|
94714
94761
|
if (issues.length) {
|
|
94715
94762
|
this.errors.set(issues);
|
|
94716
94763
|
return;
|
|
94717
94764
|
}
|
|
94718
94765
|
const currentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, extractOrder, options);
|
|
94766
|
+
this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
|
|
94719
94767
|
const requestBody = buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData, currentDataServiceOrderId);
|
|
94720
94768
|
const response = yield this.britishColumbiaChangeOfDirectorsService.validate(signature, requestBody, options);
|
|
94721
94769
|
if (this.hasResponseErrors(response))
|
|
@@ -94726,7 +94774,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94726
94774
|
searchOrFilingType: getSearchOrFilingType(task),
|
|
94727
94775
|
serviceOrderId,
|
|
94728
94776
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
94729
|
-
provider:
|
|
94777
|
+
provider: "bcreg",
|
|
94730
94778
|
draftPdf: response.Draft,
|
|
94731
94779
|
documentName: this.validateOptions()?.documentName ?? "BC Change of Directors Draft",
|
|
94732
94780
|
documentType: "pdf"
|
|
@@ -94807,7 +94855,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94807
94855
|
searchOrFilingType,
|
|
94808
94856
|
serviceOrderId,
|
|
94809
94857
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
94810
|
-
provider:
|
|
94858
|
+
provider: "bcreg",
|
|
94811
94859
|
draftPdf: response.Draft ?? "",
|
|
94812
94860
|
documentName: this.validateOptions()?.documentName ?? "Incorporation Draft",
|
|
94813
94861
|
documentType: "pdf"
|
|
@@ -94921,7 +94969,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94921
94969
|
searchOrFilingType,
|
|
94922
94970
|
serviceOrderId,
|
|
94923
94971
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
94924
|
-
provider:
|
|
94972
|
+
provider: "obr",
|
|
94925
94973
|
draftPdf,
|
|
94926
94974
|
documentName: this.validateOptions()?.documentName ?? "Federal Draft",
|
|
94927
94975
|
documentType: "pdf"
|
|
@@ -95092,17 +95140,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95092
95140
|
this.activeStep.set(Step.Validate);
|
|
95093
95141
|
}
|
|
95094
95142
|
parseError(errors) {
|
|
95095
|
-
return errors.map((item) => (item["ErrorMessage"] ?? item["Message"] ??
|
|
95096
|
-
}
|
|
95097
|
-
getResponseErrors(response) {
|
|
95098
|
-
return response?.Errors ?? response?.errors ?? [];
|
|
95143
|
+
return errors.map((item) => (item["ErrorMessage"] ?? item["Message"] ?? "").toString().trim()).filter((message) => message.length > 0);
|
|
95099
95144
|
}
|
|
95100
95145
|
/**
|
|
95101
95146
|
* Checks a successful response for validation errors.
|
|
95102
95147
|
* Returns true if errors were found (and sets them), false otherwise.
|
|
95103
95148
|
*/
|
|
95104
95149
|
hasResponseErrors(response) {
|
|
95105
|
-
const errors =
|
|
95150
|
+
const errors = response?.["Errors"] ?? response?.Errors;
|
|
95106
95151
|
if (errors?.length) {
|
|
95107
95152
|
this.errors.set(this.parseError(errors));
|
|
95108
95153
|
return true;
|
|
@@ -95113,8 +95158,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95113
95158
|
* Extracts and sets validation errors from a caught exception.
|
|
95114
95159
|
*/
|
|
95115
95160
|
handleCatchError(response) {
|
|
95116
|
-
const
|
|
95117
|
-
const validateErrors = this.getResponseErrors(result);
|
|
95161
|
+
const validateErrors = (response?.validateResult || response?.submitResult)?.["Errors"];
|
|
95118
95162
|
if (validateErrors?.length) {
|
|
95119
95163
|
const messages = this.parseError(validateErrors);
|
|
95120
95164
|
if (messages.length) {
|
|
@@ -95133,7 +95177,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95133
95177
|
} catch {
|
|
95134
95178
|
parsed = void 0;
|
|
95135
95179
|
}
|
|
95136
|
-
const errors =
|
|
95180
|
+
const errors = parsed?.validateResult?.["Errors"];
|
|
95137
95181
|
if (errors?.length) {
|
|
95138
95182
|
this.errors.set(this.parseError(errors));
|
|
95139
95183
|
return;
|
|
@@ -95266,7 +95310,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95266
95310
|
if (rf & 2) {
|
|
95267
95311
|
\u0275\u0275styleProp("height", ctx.modalHeight());
|
|
95268
95312
|
}
|
|
95269
|
-
}, 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", "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) {
|
|
95313
|
+
}, 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", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "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) {
|
|
95270
95314
|
if (rf & 1) {
|
|
95271
95315
|
const _r1 = \u0275\u0275getCurrentView();
|
|
95272
95316
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
@@ -95348,7 +95392,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95348
95392
|
[activeStep]="activeStep()"\r
|
|
95349
95393
|
[isNote]="dataWasChanged()"\r
|
|
95350
95394
|
[actionsDisabled]="isLoading()"\r
|
|
95351
|
-
[errors]="errors()"
|
|
95395
|
+
[errors]="errors()"
|
|
95352
95396
|
[prevData]="prevData()"\r
|
|
95353
95397
|
(close)="close.emit()"\r
|
|
95354
95398
|
(formationValidate)="onOntarioFormationValidate($event)"\r
|
|
@@ -95367,8 +95411,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95367
95411
|
[currentUser]="currentUser()"\r
|
|
95368
95412
|
[activeStep]="activeStep()"\r
|
|
95369
95413
|
[isNote]="dataWasChanged()"\r
|
|
95370
|
-
[actionsDisabled]="isLoading()"
|
|
95371
|
-
[errors]="errors()"
|
|
95414
|
+
[actionsDisabled]="isLoading()"
|
|
95415
|
+
[errors]="errors()"
|
|
95416
|
+
[currentDataExtract]="currentDataExtract()"
|
|
95372
95417
|
(close)="close.emit()"\r
|
|
95373
95418
|
(nextStep)="onNextStepClick()"\r
|
|
95374
95419
|
(prevStep)="onOntarioPrevStep()"\r
|
|
@@ -95409,7 +95454,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95409
95454
|
}], () => [], null);
|
|
95410
95455
|
})();
|
|
95411
95456
|
(() => {
|
|
95412
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber:
|
|
95457
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 89 });
|
|
95413
95458
|
})();
|
|
95414
95459
|
}
|
|
95415
95460
|
});
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|