@dyedurham/search-and-file-widget 2.1.22 → 2.1.23
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
|
@@ -58112,9 +58112,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58112
58112
|
return task?._taskType === TaskType.AnnualCompliance;
|
|
58113
58113
|
}
|
|
58114
58114
|
function getFilingProvider(task) {
|
|
58115
|
-
if (task && isBritishColumbiaTask(task)) {
|
|
58116
|
-
return "bcreg";
|
|
58117
|
-
}
|
|
58118
58115
|
return task && !isOntarioTask(task) ? "federal" : "obr";
|
|
58119
58116
|
}
|
|
58120
58117
|
function getSearchOrFilingType(task) {
|
|
@@ -81316,16 +81313,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81316
81313
|
bcChangeOfDirectorsInitialDelta = signal(null);
|
|
81317
81314
|
bcFormationInitialDelta = signal(null);
|
|
81318
81315
|
bcChangeOfOfficeAddressesInitialDelta = signal(null);
|
|
81319
|
-
bcAnnualReportInitialDelta = signal(null);
|
|
81320
81316
|
setFormationInitialDelta(delta) {
|
|
81321
81317
|
this.formationInitialDelta.set(delta);
|
|
81322
81318
|
}
|
|
81323
81319
|
setBCFormationInitialDelta(delta) {
|
|
81324
81320
|
this.bcFormationInitialDelta.set(delta);
|
|
81325
81321
|
}
|
|
81326
|
-
setBCAnnualReportInitialDelta(delta) {
|
|
81327
|
-
this.bcAnnualReportInitialDelta.set(delta);
|
|
81328
|
-
}
|
|
81329
81322
|
setBCChangeOfOfficeAddressesInitialDelta(delta) {
|
|
81330
81323
|
this.bcChangeOfOfficeAddressesInitialDelta.set(delta);
|
|
81331
81324
|
}
|
|
@@ -81349,7 +81342,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81349
81342
|
this.bcChangeOfDirectorsInitialDelta.set(null);
|
|
81350
81343
|
this.bcFormationInitialDelta.set(null);
|
|
81351
81344
|
this.bcChangeOfOfficeAddressesInitialDelta.set(null);
|
|
81352
|
-
this.bcAnnualReportInitialDelta.set(null);
|
|
81353
81345
|
}
|
|
81354
81346
|
static \u0275fac = function DeltaStateService_Factory(__ngFactoryType__) {
|
|
81355
81347
|
return new (__ngFactoryType__ || _DeltaStateService)();
|
|
@@ -84210,7 +84202,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84210
84202
|
});
|
|
84211
84203
|
|
|
84212
84204
|
// src/app/enums/british-columbia-form.enums.ts
|
|
84213
|
-
var BCChangeOfDirectorsFormControls, BCChangeOfDirectorsFormGroups, BCFormationFormControls, BCChangeOfOfficeAddressesFormControls, BCChangeOfOfficeAddressesFormGroups,
|
|
84205
|
+
var BCChangeOfDirectorsFormControls, BCChangeOfDirectorsFormGroups, BCFormationFormControls, BCChangeOfOfficeAddressesFormControls, BCChangeOfOfficeAddressesFormGroups, BCFormationFormGroups;
|
|
84214
84206
|
var init_british_columbia_form_enums = __esm({
|
|
84215
84207
|
"src/app/enums/british-columbia-form.enums.ts"() {
|
|
84216
84208
|
(function(BCChangeOfDirectorsFormControls2) {
|
|
@@ -84302,26 +84294,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84302
84294
|
BCChangeOfOfficeAddressesFormGroups2["RecordsOfficeAddress"] = "Records Office Address";
|
|
84303
84295
|
BCChangeOfOfficeAddressesFormGroups2["AnnualReportReminder"] = "Annual Report Reminder";
|
|
84304
84296
|
})(BCChangeOfOfficeAddressesFormGroups || (BCChangeOfOfficeAddressesFormGroups = {}));
|
|
84305
|
-
(function(BCAnnualReportFormControls2) {
|
|
84306
|
-
BCAnnualReportFormControls2["Id"] = "id";
|
|
84307
|
-
BCAnnualReportFormControls2["AffiliationName"] = "entityName";
|
|
84308
|
-
BCAnnualReportFormControls2["Role"] = "Role";
|
|
84309
|
-
BCAnnualReportFormControls2["AffiliationType"] = "AffiliationType";
|
|
84310
|
-
BCAnnualReportFormControls2["ClientMatterNumber"] = "ClientMatterNumber";
|
|
84311
|
-
BCAnnualReportFormControls2["DocketNumber"] = "docketNumber";
|
|
84312
|
-
BCAnnualReportFormControls2["EntityIdentifier"] = "entityIdentifier";
|
|
84313
|
-
BCAnnualReportFormControls2["EffectiveDate"] = "effectiveDate";
|
|
84314
|
-
BCAnnualReportFormControls2["CeaseDate"] = "ceaseDate";
|
|
84315
|
-
BCAnnualReportFormControls2["FullAddress"] = "fullAddress";
|
|
84316
|
-
BCAnnualReportFormControls2["CompanyEmail"] = "companyEmail";
|
|
84317
|
-
BCAnnualReportFormControls2["IsAnnualReportReminderRequired"] = "isAnnualReportReminderRequired";
|
|
84318
|
-
})(BCAnnualReportFormControls || (BCAnnualReportFormControls = {}));
|
|
84319
|
-
(function(BCAnnualReportFormGroups2) {
|
|
84320
|
-
BCAnnualReportFormGroups2["General"] = "General";
|
|
84321
|
-
BCAnnualReportFormGroups2["Officers"] = "Officers";
|
|
84322
|
-
BCAnnualReportFormGroups2["CompanyEmail"] = "Company Email";
|
|
84323
|
-
BCAnnualReportFormGroups2["AnnualReportReminder"] = "Annual Report Reminder";
|
|
84324
|
-
})(BCAnnualReportFormGroups || (BCAnnualReportFormGroups = {}));
|
|
84325
84297
|
(function(BCFormationFormGroups2) {
|
|
84326
84298
|
BCFormationFormGroups2["ReferenceNumbers"] = "Reference Numbers";
|
|
84327
84299
|
BCFormationFormGroups2["CorporationDetails"] = "Corporation Details";
|
|
@@ -84340,12 +84312,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84340
84312
|
const entityDetails = deltaData.entityDetails;
|
|
84341
84313
|
const isNamed2 = entityDetails?.corporationNameType === BCNameType.Named;
|
|
84342
84314
|
const nameTranslations = entityDetails?.usesNameTranslation ? (entityDetails.nameTranslations ?? []).filter(Boolean) : [];
|
|
84343
|
-
const
|
|
84344
|
-
const
|
|
84345
|
-
const regMailing = pickAddress(
|
|
84346
|
-
const regDelivery = pickAddress(
|
|
84347
|
-
const recMailing = pickAddress(
|
|
84348
|
-
const recDelivery = pickAddress(
|
|
84315
|
+
const registeredOffice = findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84316
|
+
const recordsOffice = findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
84317
|
+
const regMailing = pickAddress(registeredOffice?.addresses, "Mailing");
|
|
84318
|
+
const regDelivery = pickAddress(registeredOffice?.addresses, "Delivery");
|
|
84319
|
+
const recMailing = pickAddress(recordsOffice?.addresses, "Mailing");
|
|
84320
|
+
const recDelivery = pickAddress(recordsOffice?.addresses, "Delivery");
|
|
84349
84321
|
const regMailingBC = mapAddress(regMailing);
|
|
84350
84322
|
const regDeliveryBC = regDelivery ? mapAddress(regDelivery) : void 0;
|
|
84351
84323
|
const recMailingBC = recMailing ? mapAddress(recMailing) : void 0;
|
|
@@ -84386,26 +84358,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84386
84358
|
};
|
|
84387
84359
|
return pruneUndefined(request);
|
|
84388
84360
|
}
|
|
84389
|
-
function findBCOfficeAddressIssues(task) {
|
|
84390
|
-
const affiliations = task.entity.affiliations ?? [];
|
|
84391
|
-
const issues = [];
|
|
84392
|
-
const offices = [
|
|
84393
|
-
{ name: "Registered Office", title: AddressTitle2.REGISTERED_OFFICE, required: true },
|
|
84394
|
-
{ name: "Records Office", title: AddressTitle2.RECORDS_OFFICE, required: false }
|
|
84395
|
-
];
|
|
84396
|
-
for (const { name, title, required } of offices) {
|
|
84397
|
-
const addresses = collectSharedAddresses(affiliations, title);
|
|
84398
|
-
if (!addresses.length && !required) {
|
|
84399
|
-
continue;
|
|
84400
|
-
}
|
|
84401
|
-
for (const type of ["Mailing", "Delivery"]) {
|
|
84402
|
-
if (!pickAddress(addresses, type)) {
|
|
84403
|
-
issues.push(`The ${name} has no ${type} address.`);
|
|
84404
|
-
}
|
|
84405
|
-
}
|
|
84406
|
-
}
|
|
84407
|
-
return issues;
|
|
84408
|
-
}
|
|
84409
84361
|
function findBCRequestIssues(request) {
|
|
84410
84362
|
const issues = [];
|
|
84411
84363
|
const email = request.companyEmail?.trim() ?? "";
|
|
@@ -84414,17 +84366,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84414
84366
|
} else if (email.length > 150) {
|
|
84415
84367
|
issues.push("Company Email must be 150 characters or fewer.");
|
|
84416
84368
|
}
|
|
84369
|
+
if (!request.registeredOfficeMailingAddress?.streetAddress?.trim()) {
|
|
84370
|
+
issues.push("The Registered Office has no Mailing address. Add one in Athennian.");
|
|
84371
|
+
}
|
|
84417
84372
|
for (const director of request.directors ?? []) {
|
|
84418
84373
|
if (!director.mailingAddress?.streetAddress?.trim()) {
|
|
84419
|
-
issues.push(`Director ${`${director.firstName} ${director.lastName}`.trim()} has no Mailing address.`);
|
|
84374
|
+
issues.push(`Director ${`${director.firstName} ${director.lastName}`.trim()} has no Mailing address. Add one in Athennian.`);
|
|
84420
84375
|
}
|
|
84421
84376
|
}
|
|
84422
|
-
if (!request.authorizedShareStructure?.shareClasses?.length) {
|
|
84423
|
-
issues.push("The Authorized Share Structure is required.");
|
|
84424
|
-
}
|
|
84425
84377
|
const password = request.password ?? "";
|
|
84426
84378
|
if (password.length < BC_PASSWORD_MIN_LENGTH || password.length > BC_PASSWORD_MAX_LENGTH || !/^[A-Za-z0-9]+$/.test(password)) {
|
|
84427
|
-
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.`);
|
|
84379
|
+
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.`);
|
|
84428
84380
|
}
|
|
84429
84381
|
return issues;
|
|
84430
84382
|
}
|
|
@@ -84479,8 +84431,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84479
84431
|
return {
|
|
84480
84432
|
incorporatorType: isIndividual ? "individual" : "corporationOrFirm",
|
|
84481
84433
|
// Names are only accepted for an individual; a corporation or firm is identified by
|
|
84482
|
-
// `corporationOrFirmName` (the
|
|
84483
|
-
// published spec lists them as required).
|
|
84434
|
+
// `corporationOrFirmName` (the API rejects first/last name otherwise).
|
|
84484
84435
|
firstName: isIndividual ? incorporator.firstName ?? "" : void 0,
|
|
84485
84436
|
middleName: isIndividual ? incorporator.middleName || void 0 : void 0,
|
|
84486
84437
|
lastName: isIndividual ? incorporator.lastName ?? "" : void 0,
|
|
@@ -84519,9 +84470,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84519
84470
|
function findSharedAddressAffiliation(affiliations, staticTitle) {
|
|
84520
84471
|
return affiliations.find((a) => a.role?.role_name === AddressRole2.SHARED_ADDRESS && a.role?.static_title === staticTitle && isActiveAffiliation(a));
|
|
84521
84472
|
}
|
|
84522
|
-
function collectSharedAddresses(affiliations, staticTitle) {
|
|
84523
|
-
return affiliations.filter((a) => a.role?.role_name === AddressRole2.SHARED_ADDRESS && a.role?.static_title === staticTitle && isActiveAffiliation(a)).flatMap((a) => a.addresses ?? []);
|
|
84524
|
-
}
|
|
84525
84473
|
function pickAddress(addresses, locationType, fallbackToFirst = false) {
|
|
84526
84474
|
const match = addresses?.find((a) => (a.computed_location_type ?? a.location_type)?.toLowerCase() === locationType.toLowerCase());
|
|
84527
84475
|
return match ?? (fallbackToFirst ? addresses?.[0] : void 0);
|
|
@@ -84658,8 +84606,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84658
84606
|
const affiliations = task.entity.affiliations ?? [];
|
|
84659
84607
|
const delta = task.deltaData;
|
|
84660
84608
|
const registeredOffice = findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84661
|
-
const
|
|
84662
|
-
const recordsOfficeAddresses = collectSharedAddresses(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
84609
|
+
const recordsOffice = findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
84663
84610
|
const companyEmail = task.entity.emailOptions?.[0]?.value ?? registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? // Email only: the entity may carry its Business Email on another address (e.g. Head
|
|
84664
84611
|
// Office) when no Registered Office shared address exists.
|
|
84665
84612
|
task.entity.addresses?.flatMap((a) => a.communications ?? []).find((c) => c.type === "Business Email")?.value ?? "";
|
|
@@ -84668,19 +84615,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84668
84615
|
config2[BCFormationFormGroups.CorporationDetails] = this.generateCorporationDetailsFormGroup(task, delta?.entityDetails, companyEmail);
|
|
84669
84616
|
config2[BCFormationFormGroups.RegisteredOfficeAddress] = new FormGroup({
|
|
84670
84617
|
[BCFormationFormControls.MailingAddress]: new FormControl({
|
|
84671
|
-
value: this.formatFullAddress(this.pickAddress(
|
|
84618
|
+
value: this.formatFullAddress(this.pickAddress(registeredOffice?.addresses, "Mailing", true)),
|
|
84672
84619
|
disabled: true
|
|
84673
84620
|
}),
|
|
84674
84621
|
[BCFormationFormControls.DeliveryAddress]: new FormControl({
|
|
84675
|
-
value: this.formatFullAddress(this.pickAddress(
|
|
84622
|
+
value: this.formatFullAddress(this.pickAddress(registeredOffice?.addresses, "Delivery", true)),
|
|
84676
84623
|
disabled: true
|
|
84677
84624
|
}),
|
|
84678
84625
|
[BCFormationFormControls.RecordsOfficeMailingAddress]: new FormControl({
|
|
84679
|
-
value: this.formatFullAddress(this.pickAddress(
|
|
84626
|
+
value: this.formatFullAddress(this.pickAddress(recordsOffice?.addresses, "Mailing", true)),
|
|
84680
84627
|
disabled: true
|
|
84681
84628
|
}),
|
|
84682
84629
|
[BCFormationFormControls.RecordsOfficeDeliveryAddress]: new FormControl({
|
|
84683
|
-
value: this.formatFullAddress(this.pickAddress(
|
|
84630
|
+
value: this.formatFullAddress(this.pickAddress(recordsOffice?.addresses, "Delivery", true)),
|
|
84684
84631
|
disabled: true
|
|
84685
84632
|
})
|
|
84686
84633
|
});
|
|
@@ -84958,479 +84905,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84958
84905
|
}
|
|
84959
84906
|
});
|
|
84960
84907
|
|
|
84961
|
-
// src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts
|
|
84962
|
-
var Controls, COMPANY_EMAIL_TYPES, isCompanyEmail, incomingAddressByGrid, EDITABLE_ADDRESS_CONTROLS, BritishColumbiaChangeOfOfficeAddressesFormHelper;
|
|
84963
|
-
var init_british_columbia_change_of_office_addresses_form_helper = __esm({
|
|
84964
|
-
"src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts"() {
|
|
84965
|
-
init_forms();
|
|
84966
|
-
init_common_models();
|
|
84967
|
-
init_british_columbia_form_enums();
|
|
84968
|
-
init_BritishColumbiaConstants();
|
|
84969
|
-
init_british_columbia_formation_form_helper();
|
|
84970
|
-
init_BritishColumbiaConstants();
|
|
84971
|
-
init_common_utils();
|
|
84972
|
-
Controls = BCChangeOfOfficeAddressesFormControls;
|
|
84973
|
-
COMPANY_EMAIL_TYPES = ["Business Email", "Email"];
|
|
84974
|
-
isCompanyEmail = (communication) => Boolean(communication?.value) && COMPANY_EMAIL_TYPES.includes(communication?.type ?? "");
|
|
84975
|
-
incomingAddressByGrid = /* @__PURE__ */ new WeakMap();
|
|
84976
|
-
EDITABLE_ADDRESS_CONTROLS = [
|
|
84977
|
-
Controls.AddressLine1,
|
|
84978
|
-
Controls.AddressLine2,
|
|
84979
|
-
Controls.City,
|
|
84980
|
-
Controls.PostalCode
|
|
84981
|
-
];
|
|
84982
|
-
BritishColumbiaChangeOfOfficeAddressesFormHelper = class {
|
|
84983
|
-
static generateConfig(task, _translateFn) {
|
|
84984
|
-
const affiliations = task.entity.affiliations ?? [];
|
|
84985
|
-
const delta = task.deltaData;
|
|
84986
|
-
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
84987
|
-
const pick = BritishColumbiaFormationFormHelper.pickAddress;
|
|
84988
|
-
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84989
|
-
const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
84990
|
-
const incoming = this.incomingOfficeAddresses(task);
|
|
84991
|
-
const seed = delta?.registeredOffice ? this.fillEmptyAddresses(delta, incoming) : this.seedFromIncomingAffiliations(task);
|
|
84992
|
-
const config2 = {};
|
|
84993
|
-
config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
|
|
84994
|
-
config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
|
|
84995
|
-
[Controls.CorporationName]: this.readOnly(task.entity._profile.name),
|
|
84996
|
-
[Controls.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
|
|
84997
|
-
[Controls.CompanyEmail]: new FormControl(delta?.companyEmail || this.resolveCompanyEmail(task), Validators.required)
|
|
84998
|
-
});
|
|
84999
|
-
config2[BCChangeOfOfficeAddressesFormGroups.AnnualReportReminder] = new FormGroup({
|
|
85000
|
-
[Controls.AnnualReportReminder]: new FormControl(delta?.annualReportReminder ?? BCAnnualReportReminder.Yes, Validators.required)
|
|
85001
|
-
});
|
|
85002
|
-
const regDeliverySame = seed.registeredOffice?.deliverySameAsMailing ?? true;
|
|
85003
|
-
config2[BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress] = new FormGroup({
|
|
85004
|
-
[Controls.CurrentMailingAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Mailing"))),
|
|
85005
|
-
[Controls.CurrentDeliveryAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Delivery"))),
|
|
85006
|
-
[Controls.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.mailingAddress, true),
|
|
85007
|
-
[Controls.DeliverySameAsMailing]: new FormControl(regDeliverySame),
|
|
85008
|
-
[Controls.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress, !regDeliverySame)
|
|
85009
|
-
});
|
|
85010
|
-
const recSameAsRegistered = seed.recordsOffice?.sameAsRegisteredOffice ?? true;
|
|
85011
|
-
const recDeliverySame = seed.recordsOffice?.deliverySameAsMailing ?? true;
|
|
85012
|
-
config2[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress] = new FormGroup({
|
|
85013
|
-
[Controls.CurrentMailingAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Mailing"))),
|
|
85014
|
-
[Controls.CurrentDeliveryAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Delivery"))),
|
|
85015
|
-
[Controls.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
|
|
85016
|
-
[Controls.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.mailingAddress, !recSameAsRegistered),
|
|
85017
|
-
[Controls.DeliverySameAsMailing]: new FormControl(recDeliverySame),
|
|
85018
|
-
[Controls.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.deliveryAddress, !recSameAsRegistered && !recDeliverySame)
|
|
85019
|
-
});
|
|
85020
|
-
const grid = (group2, control) => config2[group2].get(control);
|
|
85021
|
-
const register = (target, address) => address && incomingAddressByGrid.set(target, address);
|
|
85022
|
-
register(grid(BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress, Controls.NewDeliveryAddress), incoming.regDelivery);
|
|
85023
|
-
register(grid(BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress, Controls.NewMailingAddress), incoming.recMailing);
|
|
85024
|
-
register(grid(BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress, Controls.NewDeliveryAddress), incoming.recDelivery);
|
|
85025
|
-
return config2;
|
|
85026
|
-
}
|
|
85027
|
-
/** The company email choices: the entity's email options, plus the resolved default if it isn't one. */
|
|
85028
|
-
static getCompanyEmailOptions(task) {
|
|
85029
|
-
const values = (task.entity.emailOptions ?? []).filter(isCompanyEmail).map((o) => o.value);
|
|
85030
|
-
const fallback = this.resolveCompanyEmail(task);
|
|
85031
|
-
return [...new Set(fallback ? [...values, fallback] : values)].map((value) => ({
|
|
85032
|
-
value,
|
|
85033
|
-
label: value
|
|
85034
|
-
}));
|
|
85035
|
-
}
|
|
85036
|
-
/**
|
|
85037
|
-
* Pre-fills the new addresses from the task's incoming "Shared Address" affiliations (Registered
|
|
85038
|
-
* Office / Records Office), taking each Mailing / Delivery address from the affiliation or, when
|
|
85039
|
-
* it has none, from its parent affiliation. Nothing is pre-filled without an incoming address.
|
|
85040
|
-
*/
|
|
85041
|
-
static seedFromIncomingAffiliations(task) {
|
|
85042
|
-
const { regMailing, regDelivery, recMailing, recDelivery } = this.incomingOfficeAddresses(task);
|
|
85043
|
-
if (!regMailing && !recMailing) {
|
|
85044
|
-
return {};
|
|
85045
|
-
}
|
|
85046
|
-
const regDeliverySame = !regDelivery || this.isSameOfficeAddress(regDelivery, regMailing);
|
|
85047
|
-
const recDeliverySame = !recDelivery || this.isSameOfficeAddress(recDelivery, recMailing);
|
|
85048
|
-
const recSameAsRegistered = !recMailing || this.isSameOfficeAddress(recMailing, regMailing) && this.isSameOfficeAddress(recDelivery ?? recMailing, regDelivery ?? regMailing);
|
|
85049
|
-
return {
|
|
85050
|
-
registeredOffice: {
|
|
85051
|
-
mailingAddress: regMailing,
|
|
85052
|
-
deliverySameAsMailing: regDeliverySame,
|
|
85053
|
-
deliveryAddress: regDeliverySame ? void 0 : regDelivery
|
|
85054
|
-
},
|
|
85055
|
-
recordsOffice: {
|
|
85056
|
-
sameAsRegisteredOffice: recSameAsRegistered,
|
|
85057
|
-
mailingAddress: recSameAsRegistered ? void 0 : recMailing,
|
|
85058
|
-
deliverySameAsMailing: recDeliverySame,
|
|
85059
|
-
deliveryAddress: recDeliverySame ? void 0 : recDelivery
|
|
85060
|
-
}
|
|
85061
|
-
};
|
|
85062
|
-
}
|
|
85063
|
-
/** Keeps the saved flags and addresses, but fills an address the draft left empty from `incoming`. */
|
|
85064
|
-
static fillEmptyAddresses(saved, incoming) {
|
|
85065
|
-
const hasValues = (address) => EDITABLE_ADDRESS_CONTROLS.some((name) => Boolean(address?.[name]));
|
|
85066
|
-
const pick = (savedAddress, incomingAddress) => hasValues(savedAddress) ? savedAddress : incomingAddress ?? savedAddress;
|
|
85067
|
-
return {
|
|
85068
|
-
registeredOffice: __spreadProps(__spreadValues({}, saved.registeredOffice), {
|
|
85069
|
-
mailingAddress: pick(saved.registeredOffice?.mailingAddress, incoming.regMailing),
|
|
85070
|
-
deliveryAddress: pick(saved.registeredOffice?.deliveryAddress, incoming.regDelivery)
|
|
85071
|
-
}),
|
|
85072
|
-
recordsOffice: __spreadProps(__spreadValues({}, saved.recordsOffice), {
|
|
85073
|
-
mailingAddress: pick(saved.recordsOffice?.mailingAddress, incoming.recMailing),
|
|
85074
|
-
deliveryAddress: pick(saved.recordsOffice?.deliveryAddress, incoming.recDelivery)
|
|
85075
|
-
})
|
|
85076
|
-
};
|
|
85077
|
-
}
|
|
85078
|
-
/** The four office addresses of the task's incoming Shared Address, as form values. */
|
|
85079
|
-
static incomingOfficeAddresses(task) {
|
|
85080
|
-
const incoming = task.incomingAffiliations ?? [];
|
|
85081
|
-
const pickBy = (title, locationType) => {
|
|
85082
|
-
const pool = incoming.filter((a) => a.role?.role_name === AddressRole2.SHARED_ADDRESS && a.role?.static_title === title).flatMap((a) => a.addresses?.length ? a.addresses : a.parent_affiliation?.addresses ?? []);
|
|
85083
|
-
const wanted = locationType.toLowerCase();
|
|
85084
|
-
const address = pool.find((a) => (a.computed_location_type ?? "").toLowerCase() === wanted || (a.location_type ?? "").toLowerCase() === wanted);
|
|
85085
|
-
return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
|
|
85086
|
-
};
|
|
85087
|
-
return {
|
|
85088
|
-
regMailing: pickBy(AddressTitle2.REGISTERED_OFFICE, "Mailing"),
|
|
85089
|
-
regDelivery: pickBy(AddressTitle2.REGISTERED_OFFICE, "Delivery"),
|
|
85090
|
-
recMailing: pickBy(AddressTitle2.RECORDS_OFFICE, "Mailing"),
|
|
85091
|
-
recDelivery: pickBy(AddressTitle2.RECORDS_OFFICE, "Delivery")
|
|
85092
|
-
};
|
|
85093
|
-
}
|
|
85094
|
-
/** Street = street number + street name; the suite goes to Address Line 2. */
|
|
85095
|
-
static toOfficeAddressDelta(address) {
|
|
85096
|
-
const street = [getAddressComponent(address, "Street Number Only"), getAddressComponent(address, "Street Only")].filter(Boolean).join(" ") || getAddressComponent(address, "Street Address") || address.street || "";
|
|
85097
|
-
return {
|
|
85098
|
-
addressLine1: street,
|
|
85099
|
-
addressLine2: getAddressComponent(address, "Suite/Apartment") || address.address2 || "",
|
|
85100
|
-
city: address.city ?? "",
|
|
85101
|
-
postalCode: address.postal_zip ?? "",
|
|
85102
|
-
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85103
|
-
country: BC_DEFAULT_COUNTRY
|
|
85104
|
-
};
|
|
85105
|
-
}
|
|
85106
|
-
/** An address with no province is accepted; the form only ever deals in British Columbia. */
|
|
85107
|
-
static isBritishColumbia(address) {
|
|
85108
|
-
const province = (address.province_state ?? "").trim().toLowerCase();
|
|
85109
|
-
return !province || ["bc", "b.c.", "british columbia"].includes(province);
|
|
85110
|
-
}
|
|
85111
|
-
static isSameOfficeAddress(a, b) {
|
|
85112
|
-
const key = (x) => [x?.addressLine1, x?.addressLine2, x?.city, x?.postalCode].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
85113
|
-
return key(a) === key(b);
|
|
85114
|
-
}
|
|
85115
|
-
/**
|
|
85116
|
-
* The company's email: the entity's email options, then the Registered Office's email, then the
|
|
85117
|
-
* entity's own, then any other address of the entity (e.g. a Head Office). Only a Business Email
|
|
85118
|
-
* or an Email counts; a Personal Email never does.
|
|
85119
|
-
*/
|
|
85120
|
-
static resolveCompanyEmail(task) {
|
|
85121
|
-
const affiliations = task.entity.affiliations ?? [];
|
|
85122
|
-
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85123
|
-
return task.entity.emailOptions?.find(isCompanyEmail)?.value || registeredOffice?.addresses?.[0]?.communications?.find(isCompanyEmail)?.value || task.entity.communications?.find(isCompanyEmail)?.value || task.entity.addresses?.flatMap((a) => a.communications ?? []).find(isCompanyEmail)?.value || "";
|
|
85124
|
-
}
|
|
85125
|
-
/**
|
|
85126
|
-
* Address Line 1*, Address Line 2, City*, Postal Code*, Province (BC), Country (Canada).
|
|
85127
|
-
* Province and Country are always disabled; the rest follow `enabled`.
|
|
85128
|
-
*/
|
|
85129
|
-
static createOfficeAddressFormGroup(delta, enabled = true) {
|
|
85130
|
-
const group2 = new FormGroup({
|
|
85131
|
-
[Controls.AddressLine1]: new FormControl(delta?.addressLine1 ?? "", Validators.required),
|
|
85132
|
-
[Controls.AddressLine2]: new FormControl(delta?.addressLine2 ?? ""),
|
|
85133
|
-
[Controls.City]: new FormControl(delta?.city ?? "", Validators.required),
|
|
85134
|
-
[Controls.PostalCode]: new FormControl(delta?.postalCode ?? "", Validators.required),
|
|
85135
|
-
[Controls.Province]: this.readOnly(delta?.province ?? BC_DEFAULT_PROVINCE_STATE),
|
|
85136
|
-
[Controls.Country]: this.readOnly(delta?.country ?? BC_DEFAULT_COUNTRY)
|
|
85137
|
-
});
|
|
85138
|
-
this.setOfficeAddressEnabled(group2, enabled);
|
|
85139
|
-
return group2;
|
|
85140
|
-
}
|
|
85141
|
-
/**
|
|
85142
|
-
* Enables or disables the editable controls of an address grid (used by "Same as…" checkboxes).
|
|
85143
|
-
* Hiding a grid also clears it. Showing it again refills it with the address Athennian sent for
|
|
85144
|
-
* it, or leaves it empty when there is none (and when the user has already typed something).
|
|
85145
|
-
*/
|
|
85146
|
-
static setOfficeAddressEnabled(group2, enabled) {
|
|
85147
|
-
if (!group2) {
|
|
85148
|
-
return;
|
|
85149
|
-
}
|
|
85150
|
-
const restore = incomingAddressByGrid.get(group2);
|
|
85151
|
-
const isEmpty = EDITABLE_ADDRESS_CONTROLS.every((name) => !group2.get(name)?.value);
|
|
85152
|
-
EDITABLE_ADDRESS_CONTROLS.forEach((name) => {
|
|
85153
|
-
const control = group2.get(name);
|
|
85154
|
-
if (enabled) {
|
|
85155
|
-
control?.enable({ emitEvent: false });
|
|
85156
|
-
if (restore && isEmpty) {
|
|
85157
|
-
control?.setValue(restore[name] ?? "", { emitEvent: false });
|
|
85158
|
-
}
|
|
85159
|
-
} else {
|
|
85160
|
-
control?.setValue("", { emitEvent: false });
|
|
85161
|
-
control?.disable({ emitEvent: false });
|
|
85162
|
-
}
|
|
85163
|
-
});
|
|
85164
|
-
group2.updateValueAndValidity({ emitEvent: false });
|
|
85165
|
-
}
|
|
85166
|
-
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
|
|
85167
|
-
return new FormGroup({
|
|
85168
|
-
[Controls.ClientMatterNumber]: new FormControl(
|
|
85169
|
-
// `??`: an explicitly cleared value ('') in a saved draft must be preserved; the entity default applies only when absent.
|
|
85170
|
-
deltaData?.referenceNumber ?? clientMatterNumber ?? ""
|
|
85171
|
-
),
|
|
85172
|
-
[Controls.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
|
|
85173
|
-
});
|
|
85174
|
-
}
|
|
85175
|
-
static readOnly(value) {
|
|
85176
|
-
return new FormControl({ value: value ?? "", disabled: true });
|
|
85177
|
-
}
|
|
85178
|
-
};
|
|
85179
|
-
}
|
|
85180
|
-
});
|
|
85181
|
-
|
|
85182
|
-
// src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts
|
|
85183
|
-
function formatPostalCode(value) {
|
|
85184
|
-
const compact = clean(value).replace(/[\s-]+/g, "").toUpperCase();
|
|
85185
|
-
return compact.length === 6 ? `${compact.slice(0, 3)} ${compact.slice(3)}` : clean(value).toUpperCase();
|
|
85186
|
-
}
|
|
85187
|
-
function toEcoreAddress(address) {
|
|
85188
|
-
const line2 = clean(address?.addressLine2);
|
|
85189
|
-
return __spreadProps(__spreadValues({
|
|
85190
|
-
streetAddress: clean(address?.addressLine1)
|
|
85191
|
-
}, line2 ? { additionalStreetAddress: line2 } : {}), {
|
|
85192
|
-
city: clean(address?.city),
|
|
85193
|
-
provinceOrState: BC_PROVINCE_CODE,
|
|
85194
|
-
postalOrZipCode: formatPostalCode(address?.postalCode),
|
|
85195
|
-
country: CANADA_COUNTRY_CODE
|
|
85196
|
-
});
|
|
85197
|
-
}
|
|
85198
|
-
function isSameAddress(a, b) {
|
|
85199
|
-
const key = (x) => [x.streetAddress, x.additionalStreetAddress, x.city, x.provinceOrState, x.postalOrZipCode, x.country].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
85200
|
-
return key(a) === key(b);
|
|
85201
|
-
}
|
|
85202
|
-
function buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData) {
|
|
85203
|
-
const registered = deltaData.registeredOffice;
|
|
85204
|
-
const records = deltaData.recordsOffice;
|
|
85205
|
-
const registeredMailing = toEcoreAddress(registered?.mailingAddress);
|
|
85206
|
-
const registeredDelivery = registered?.deliverySameAsMailing ? registeredMailing : toEcoreAddress(registered?.deliveryAddress);
|
|
85207
|
-
const recordsMailing = records?.sameAsRegisteredOffice ? registeredMailing : toEcoreAddress(records?.mailingAddress);
|
|
85208
|
-
const recordsDelivery = records?.sameAsRegisteredOffice ? registeredDelivery : records?.deliverySameAsMailing ? recordsMailing : toEcoreAddress(records?.deliveryAddress);
|
|
85209
|
-
const registeredDeliverySame = isSameAddress(registeredDelivery, registeredMailing);
|
|
85210
|
-
const recordsSameAsRegistered = isSameAddress(recordsMailing, registeredMailing);
|
|
85211
|
-
const recordsDeliverySame = isSameAddress(recordsDelivery, recordsMailing);
|
|
85212
|
-
const filing = {
|
|
85213
|
-
registeredOfficeMailingAddress: registeredMailing,
|
|
85214
|
-
isRegisteredOfficeDeliveryAddressSameAsMailing: registeredDeliverySame,
|
|
85215
|
-
isRecordsOfficeMailingAddressSameAsRegisteredOfficeMailing: recordsSameAsRegistered,
|
|
85216
|
-
isRecordsOfficeDeliveryAddressSameAsRecordsOfficeMailing: recordsDeliverySame,
|
|
85217
|
-
// Both are picked on the form; the fallbacks only cover data saved before they were added.
|
|
85218
|
-
companyEmail: clean(deltaData.companyEmail) || BritishColumbiaChangeOfOfficeAddressesFormHelper.resolveCompanyEmail(task),
|
|
85219
|
-
isAnnualReportReminderRequired: deltaData.annualReportReminder === BCAnnualReportReminder.Yes
|
|
85220
|
-
};
|
|
85221
|
-
const reference = clean(deltaData.referenceNumbers?.referenceNumber);
|
|
85222
|
-
const docket = clean(deltaData.referenceNumbers?.docketNumber);
|
|
85223
|
-
if (reference) {
|
|
85224
|
-
filing.reference = reference;
|
|
85225
|
-
}
|
|
85226
|
-
if (docket) {
|
|
85227
|
-
filing.docket = docket;
|
|
85228
|
-
}
|
|
85229
|
-
if (!registeredDeliverySame) {
|
|
85230
|
-
filing.registeredOfficeDeliveryAddress = registeredDelivery;
|
|
85231
|
-
}
|
|
85232
|
-
if (!recordsSameAsRegistered) {
|
|
85233
|
-
filing.recordsOfficeMailingAddress = recordsMailing;
|
|
85234
|
-
}
|
|
85235
|
-
if (!recordsDeliverySame) {
|
|
85236
|
-
filing.recordsOfficeDeliveryAddress = recordsDelivery;
|
|
85237
|
-
}
|
|
85238
|
-
return { filingType: "changeOfAddressFiling", filing };
|
|
85239
|
-
}
|
|
85240
|
-
function getBritishColumbiaAccessCode(task, env) {
|
|
85241
|
-
const registryId = task.entity._profile.registry_id?.trim() ?? "";
|
|
85242
|
-
if (registryId) {
|
|
85243
|
-
return registryId;
|
|
85244
|
-
}
|
|
85245
|
-
return env === "TEST" ? TEMP_UAT_TEST_ACCESS_CODE : "";
|
|
85246
|
-
}
|
|
85247
|
-
var TEMP_UAT_TEST_ACCESS_CODE, BC_PROVINCE_CODE, CANADA_COUNTRY_CODE, clean;
|
|
85248
|
-
var init_british_columbia_change_of_office_addresses_mapper = __esm({
|
|
85249
|
-
"src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
|
|
85250
|
-
init_BritishColumbiaConstants();
|
|
85251
|
-
init_british_columbia_change_of_office_addresses_form_helper();
|
|
85252
|
-
TEMP_UAT_TEST_ACCESS_CODE = "12345678";
|
|
85253
|
-
BC_PROVINCE_CODE = "BC";
|
|
85254
|
-
CANADA_COUNTRY_CODE = "CA";
|
|
85255
|
-
clean = (value) => (value ?? "").trim();
|
|
85256
|
-
}
|
|
85257
|
-
});
|
|
85258
|
-
|
|
85259
|
-
// src/app/helpers/mappers/british-columbia-annual-report.mapper.ts
|
|
85260
|
-
function toBCOfficerPosition(title) {
|
|
85261
|
-
return OFFICER_POSITIONS.get((title ?? "").trim().toLowerCase()) ?? "otherOffices";
|
|
85262
|
-
}
|
|
85263
|
-
function getBCAnnualReportOfficerChanges(task) {
|
|
85264
|
-
const isOfficer = (a) => isPrincipalAffiliation2(a) && a.role?.role_name === OFFICER_ROLE_NAME && a._participant?.participant_type === "person";
|
|
85265
|
-
return {
|
|
85266
|
-
added: (task.incomingAffiliations ?? []).filter(isOfficer),
|
|
85267
|
-
ceased: (task.outgoingAffiliations ?? []).filter(isOfficer)
|
|
85268
|
-
};
|
|
85269
|
-
}
|
|
85270
|
-
function buildBCAnnualReportContext(task, env) {
|
|
85271
|
-
return {
|
|
85272
|
-
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
85273
|
-
accessCodeOrPassword: getBritishColumbiaAccessCode(task, env),
|
|
85274
|
-
incorporationDate: String(task.entity._compliance?.incorporation_date ?? "").slice(0, 10),
|
|
85275
|
-
filingType: "annualReportFiling"
|
|
85276
|
-
};
|
|
85277
|
-
}
|
|
85278
|
-
function buildBCAnnualReportValidateRequest(task, deltaData) {
|
|
85279
|
-
const { added, ceased } = getBCAnnualReportOfficerChanges(task);
|
|
85280
|
-
return pruneUndefined({
|
|
85281
|
-
filingType: "annualReportFiling",
|
|
85282
|
-
filing: {
|
|
85283
|
-
reference: deltaData.referenceNumbers?.referenceNumber || void 0,
|
|
85284
|
-
docket: deltaData.referenceNumbers?.docketNumber || void 0,
|
|
85285
|
-
addOfficers: added.map(mapAddedOfficer),
|
|
85286
|
-
ceaseOfficers: ceased.map(mapCeasedOfficer),
|
|
85287
|
-
// Athennian does not populate edits (UEM-235 mapping: `editOfficers: []`).
|
|
85288
|
-
editOfficers: [],
|
|
85289
|
-
companyEmail: deltaData.companyEmail?.trim() ?? "",
|
|
85290
|
-
isAnnualReportReminderRequired: Boolean(deltaData.isAnnualReportReminderRequired)
|
|
85291
|
-
}
|
|
85292
|
-
});
|
|
85293
|
-
}
|
|
85294
|
-
function officerAddresses(affiliation) {
|
|
85295
|
-
const addresses = affiliation.addresses?.length ? affiliation.addresses : affiliation.parent_affiliation?.addresses ?? [];
|
|
85296
|
-
const delivery = pickAddress(addresses, "Delivery");
|
|
85297
|
-
return {
|
|
85298
|
-
// Falls back to the first address when none is typed "Mailing", like the other BC filings.
|
|
85299
|
-
mailing: mapAddress(pickAddress(addresses, "Mailing", true)),
|
|
85300
|
-
delivery: delivery ? mapAddress(delivery) : void 0
|
|
85301
|
-
};
|
|
85302
|
-
}
|
|
85303
|
-
function officerName(affiliation) {
|
|
85304
|
-
const profile = affiliation.participant?._profile;
|
|
85305
|
-
return {
|
|
85306
|
-
firstName: profile?.firstName ?? "",
|
|
85307
|
-
middleName: profile?.middleName || void 0,
|
|
85308
|
-
lastName: profile?.lastName ?? ""
|
|
85309
|
-
};
|
|
85310
|
-
}
|
|
85311
|
-
function mapAddedOfficer(affiliation) {
|
|
85312
|
-
const { mailing, delivery } = officerAddresses(affiliation);
|
|
85313
|
-
const isSame = !delivery || sameAddress(delivery, mailing);
|
|
85314
|
-
return __spreadProps(__spreadValues({}, officerName(affiliation)), {
|
|
85315
|
-
positions: toBCOfficerPosition(affiliation.role?.static_title),
|
|
85316
|
-
mailingAddress: mailing,
|
|
85317
|
-
isDeliveryAddressSameAsMailing: isSame,
|
|
85318
|
-
deliveryAddress: isSame ? void 0 : delivery
|
|
85319
|
-
});
|
|
85320
|
-
}
|
|
85321
|
-
function mapCeasedOfficer(affiliation) {
|
|
85322
|
-
const { mailing, delivery } = officerAddresses(affiliation);
|
|
85323
|
-
return __spreadProps(__spreadValues({}, officerName(affiliation)), {
|
|
85324
|
-
mailingAddress: mailing,
|
|
85325
|
-
// The API requires a delivery address to cease an officer; send the mailing address again.
|
|
85326
|
-
deliveryAddress: delivery ?? mailing
|
|
85327
|
-
});
|
|
85328
|
-
}
|
|
85329
|
-
var OFFICER_ROLE_NAME, OFFICER_POSITIONS;
|
|
85330
|
-
var init_british_columbia_annual_report_mapper = __esm({
|
|
85331
|
-
"src/app/helpers/mappers/british-columbia-annual-report.mapper.ts"() {
|
|
85332
|
-
init_common_utils();
|
|
85333
|
-
init_british_columbia_change_of_office_addresses_mapper();
|
|
85334
|
-
init_british_columbia_formation_mapper();
|
|
85335
|
-
OFFICER_ROLE_NAME = "Officer";
|
|
85336
|
-
OFFICER_POSITIONS = /* @__PURE__ */ new Map([
|
|
85337
|
-
["chairman", "chair"],
|
|
85338
|
-
["chair", "chair"],
|
|
85339
|
-
["chair person", "chair"],
|
|
85340
|
-
["chairwoman", "chair"],
|
|
85341
|
-
["president", "president"],
|
|
85342
|
-
["vice-president", "vicePresident"],
|
|
85343
|
-
["chief executive officer", "ceo"],
|
|
85344
|
-
["chief financial officer", "cfo"],
|
|
85345
|
-
["assistant secretary", "assistantSecretary"],
|
|
85346
|
-
["secretary", "secretary"],
|
|
85347
|
-
["treasurer", "treasurer"]
|
|
85348
|
-
]);
|
|
85349
|
-
}
|
|
85350
|
-
});
|
|
85351
|
-
|
|
85352
|
-
// src/app/helpers/british-columbia/annual-report/british-columbia-annual-report-form.helper.ts
|
|
85353
|
-
var BritishColumbiaAnnualReportFormHelper;
|
|
85354
|
-
var init_british_columbia_annual_report_form_helper = __esm({
|
|
85355
|
-
"src/app/helpers/british-columbia/annual-report/british-columbia-annual-report-form.helper.ts"() {
|
|
85356
|
-
init_forms();
|
|
85357
|
-
init_british_columbia_form_enums();
|
|
85358
|
-
init_initial_return_enums();
|
|
85359
|
-
init_BritishColumbiaConstants();
|
|
85360
|
-
init_common_utils();
|
|
85361
|
-
init_british_columbia_annual_report_mapper();
|
|
85362
|
-
init_british_columbia_formation_mapper();
|
|
85363
|
-
init_british_columbia_formation_form_helper();
|
|
85364
|
-
BritishColumbiaAnnualReportFormHelper = class {
|
|
85365
|
-
static generateConfig(task) {
|
|
85366
|
-
const delta = task.deltaData;
|
|
85367
|
-
const { added, ceased } = getBCAnnualReportOfficerChanges(task);
|
|
85368
|
-
const config2 = {};
|
|
85369
|
-
config2[BCAnnualReportFormGroups.General] = new FormGroup({
|
|
85370
|
-
[BCAnnualReportFormControls.ClientMatterNumber]: new FormControl(delta?.referenceNumbers?.referenceNumber ?? task.entity._profile.client_matter_number ?? ""),
|
|
85371
|
-
[BCAnnualReportFormControls.DocketNumber]: new FormControl(delta?.referenceNumbers?.docketNumber ?? ""),
|
|
85372
|
-
[BCAnnualReportFormControls.EntityIdentifier]: new FormControl({
|
|
85373
|
-
value: task.entity._profile.corp_number ?? "",
|
|
85374
|
-
disabled: true
|
|
85375
|
-
})
|
|
85376
|
-
});
|
|
85377
|
-
config2[BCAnnualReportFormGroups.Officers] = new FormArray([
|
|
85378
|
-
...added.map((officer) => this.generateOfficerFormGroup(officer, IRAffiliationType.Add)),
|
|
85379
|
-
...ceased.map((officer) => this.generateOfficerFormGroup(officer, IRAffiliationType.Ceased))
|
|
85380
|
-
]);
|
|
85381
|
-
const emailOptions = this.getCompanyEmailOptions(task);
|
|
85382
|
-
config2[BCAnnualReportFormGroups.CompanyEmail] = new FormGroup({
|
|
85383
|
-
// A saved choice wins; otherwise a lone entity email is preselected, else the user picks one.
|
|
85384
|
-
[BCAnnualReportFormControls.CompanyEmail]: new FormControl(delta?.companyEmail ?? (emailOptions.length === 1 ? emailOptions[0].value : ""), [Validators.required, Validators.email, Validators.maxLength(BC_COMPANY_EMAIL_MAX_LENGTH)])
|
|
85385
|
-
});
|
|
85386
|
-
config2[BCAnnualReportFormGroups.AnnualReportReminder] = new FormGroup({
|
|
85387
|
-
[BCAnnualReportFormControls.IsAnnualReportReminderRequired]: new FormControl(delta?.isAnnualReportReminderRequired ?? false)
|
|
85388
|
-
});
|
|
85389
|
-
return config2;
|
|
85390
|
-
}
|
|
85391
|
-
/** The entity's own emails (built by Athennian), plus a previously saved value that is no longer among them. */
|
|
85392
|
-
static getCompanyEmailOptions(task) {
|
|
85393
|
-
const options = (task.entity.emailOptions ?? []).filter((option) => option.value).map((option) => ({ value: option.value, label: option.value }));
|
|
85394
|
-
const saved = task.deltaData?.companyEmail;
|
|
85395
|
-
if (saved && !options.some((option) => option.value === saved)) {
|
|
85396
|
-
options.push({ value: saved, label: saved });
|
|
85397
|
-
}
|
|
85398
|
-
return options.filter((option, index) => options.findIndex((other) => other.value === option.value) === index);
|
|
85399
|
-
}
|
|
85400
|
-
/** One read-only officer row; `AffiliationType` drives the Add / Cease chip. */
|
|
85401
|
-
static generateOfficerFormGroup(affiliation, affiliationType) {
|
|
85402
|
-
const addresses = affiliation.addresses?.length ? affiliation.addresses : affiliation.parent_affiliation?.addresses ?? [];
|
|
85403
|
-
return new FormGroup({
|
|
85404
|
-
[BCAnnualReportFormControls.Id]: new FormControl(affiliation._id),
|
|
85405
|
-
[BCAnnualReportFormControls.AffiliationName]: new FormControl({
|
|
85406
|
-
value: generateTaskAffiliationFullName(affiliation),
|
|
85407
|
-
disabled: true
|
|
85408
|
-
}),
|
|
85409
|
-
[BCAnnualReportFormControls.Role]: new FormControl({
|
|
85410
|
-
value: affiliation.role?.static_title ?? "",
|
|
85411
|
-
disabled: true
|
|
85412
|
-
}),
|
|
85413
|
-
[BCAnnualReportFormControls.AffiliationType]: new FormControl(affiliationType),
|
|
85414
|
-
[BCAnnualReportFormControls.EffectiveDate]: new FormControl({
|
|
85415
|
-
value: affiliation.start_date ? toYyyyMmDd(affiliation.start_date) ?? "" : "",
|
|
85416
|
-
disabled: true
|
|
85417
|
-
}),
|
|
85418
|
-
[BCAnnualReportFormControls.CeaseDate]: new FormControl({
|
|
85419
|
-
value: affiliation.end_date ? toYyyyMmDd(affiliation.end_date) ?? "" : "",
|
|
85420
|
-
disabled: true
|
|
85421
|
-
}),
|
|
85422
|
-
[BCAnnualReportFormControls.FullAddress]: new FormControl({
|
|
85423
|
-
value: BritishColumbiaFormationFormHelper.formatFullAddress(pickAddress(addresses, "Mailing", true)),
|
|
85424
|
-
disabled: true
|
|
85425
|
-
})
|
|
85426
|
-
});
|
|
85427
|
-
}
|
|
85428
|
-
};
|
|
85429
|
-
}
|
|
85430
|
-
});
|
|
85431
|
-
|
|
85432
84908
|
// src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts
|
|
85433
|
-
var
|
|
84909
|
+
var Controls, BritishColumbiaChangeOfDirectorsFormHelper;
|
|
85434
84910
|
var init_british_columbia_change_of_directors_form_helper = __esm({
|
|
85435
84911
|
"src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts"() {
|
|
85436
84912
|
init_forms();
|
|
@@ -85441,7 +84917,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85441
84917
|
init_BritishColumbiaConstants();
|
|
85442
84918
|
init_custom_validators();
|
|
85443
84919
|
init_british_columbia_formation_form_helper();
|
|
85444
|
-
|
|
84920
|
+
Controls = BCChangeOfDirectorsFormControls;
|
|
85445
84921
|
BritishColumbiaChangeOfDirectorsFormHelper = class {
|
|
85446
84922
|
static generateConfig(task, _translateFn, currentDataExtract) {
|
|
85447
84923
|
const affiliations = task.entity.affiliations ?? [];
|
|
@@ -85456,9 +84932,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85456
84932
|
const config2 = {};
|
|
85457
84933
|
config2[BCChangeOfDirectorsFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile?.client_matter_number, delta?.referenceNumbers?.referenceNumber);
|
|
85458
84934
|
config2[BCChangeOfDirectorsFormGroups.CorporationDetails] = new FormGroup({
|
|
85459
|
-
[
|
|
85460
|
-
[
|
|
85461
|
-
[
|
|
84935
|
+
[Controls.CorporationName]: this.readOnly(task.entity._profile.name),
|
|
84936
|
+
[Controls.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
|
|
84937
|
+
[Controls.CompanyEmail]: new FormControl(companyEmail, [Validators.required, Validators.email])
|
|
85462
84938
|
});
|
|
85463
84939
|
const isDirector = (a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director";
|
|
85464
84940
|
const incoming = task.incomingAffiliations ?? [];
|
|
@@ -85466,9 +84942,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85466
84942
|
const ceasedIds = new Set(outgoing.filter(isDirector).map((a) => a._id));
|
|
85467
84943
|
const hasAddOrCease = ceasedIds.size > 0 || incoming.filter(isDirector).length > 0;
|
|
85468
84944
|
config2[BCChangeOfDirectorsFormGroups.FilingDetails] = new FormGroup({
|
|
85469
|
-
[
|
|
85470
|
-
[
|
|
85471
|
-
[
|
|
84945
|
+
[Controls.DirectorsAddedOrDeleted]: new FormControl(delta?.filingDetails?.directorsAddedOrDeleted ?? hasAddOrCease),
|
|
84946
|
+
[Controls.ChangeDate]: this.readOnly(effectiveDate),
|
|
84947
|
+
[Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
|
|
85472
84948
|
});
|
|
85473
84949
|
const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
|
|
85474
84950
|
const directors = [
|
|
@@ -85480,13 +84956,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85480
84956
|
config2[BCChangeOfDirectorsFormGroups.Directors] = new FormArray(directors.length ? directors : fallbackDirectors);
|
|
85481
84957
|
}
|
|
85482
84958
|
config2[BCChangeOfDirectorsFormGroups.Notification] = new FormGroup({
|
|
85483
|
-
[
|
|
85484
|
-
[
|
|
85485
|
-
[
|
|
85486
|
-
[
|
|
84959
|
+
[Controls.RegisterAsOfDate]: this.readOnly(today),
|
|
84960
|
+
[Controls.NotificationMethod]: new FormControl(delta?.notification?.method ?? BCNotificationMethod.Email, Validators.required),
|
|
84961
|
+
[Controls.NotificationEmail]: new FormControl(delta?.notification?.email ?? companyEmail, requiredIfValue(Controls.NotificationMethod, BCNotificationMethod.Email)),
|
|
84962
|
+
[Controls.NotificationMailingAddress]: this.readOnly(registeredMailing)
|
|
85487
84963
|
});
|
|
85488
84964
|
config2[BCChangeOfDirectorsFormGroups.AnnualReportReminder] = new FormGroup({
|
|
85489
|
-
[
|
|
84965
|
+
[Controls.AnnualReportReminder]: new FormControl(delta?.annualReportReminder ?? BCAnnualReportReminder.Yes, Validators.required)
|
|
85490
84966
|
});
|
|
85491
84967
|
return config2;
|
|
85492
84968
|
}
|
|
@@ -85531,18 +85007,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85531
85007
|
}
|
|
85532
85008
|
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber, savedClientMatterNumber) {
|
|
85533
85009
|
return new FormGroup({
|
|
85534
|
-
[
|
|
85535
|
-
[
|
|
85010
|
+
[Controls.ClientMatterNumber]: new FormControl(clientMatterNumber ?? savedClientMatterNumber ?? ""),
|
|
85011
|
+
[Controls.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
|
|
85536
85012
|
});
|
|
85537
85013
|
}
|
|
85538
85014
|
static generateDirectorFormGroup(affiliation, affiliationType) {
|
|
85539
85015
|
const addresses = affiliation.addresses?.length ? affiliation.addresses : affiliation.parent_affiliation?.addresses ?? [];
|
|
85540
85016
|
return new FormGroup({
|
|
85541
|
-
[
|
|
85542
|
-
[
|
|
85543
|
-
[
|
|
85544
|
-
[
|
|
85545
|
-
[
|
|
85017
|
+
[Controls.Id]: new FormControl(affiliation._id),
|
|
85018
|
+
[Controls.AffiliationName]: this.readOnly(generateTaskAffiliationFullName(affiliation)),
|
|
85019
|
+
[Controls.AffiliationType]: this.readOnly(affiliationType),
|
|
85020
|
+
[Controls.MailingAddress]: this.readOnly(BritishColumbiaFormationFormHelper.formatFullAddress(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Mailing"))),
|
|
85021
|
+
[Controls.DeliveryAddress]: this.readOnly(BritishColumbiaFormationFormHelper.formatFullAddress(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Delivery")))
|
|
85546
85022
|
});
|
|
85547
85023
|
}
|
|
85548
85024
|
static generateDirectorFormGroupsFromChangeDirectors(task) {
|
|
@@ -85573,11 +85049,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85573
85049
|
static generateDirectorFormGroupFromPayload(director, affiliationType) {
|
|
85574
85050
|
const name = director?.PersonName ?? director?.personName ?? director;
|
|
85575
85051
|
return new FormGroup({
|
|
85576
|
-
[
|
|
85577
|
-
[
|
|
85578
|
-
[
|
|
85579
|
-
[
|
|
85580
|
-
[
|
|
85052
|
+
[Controls.Id]: new FormControl(director?.Id ?? director?.id ?? ""),
|
|
85053
|
+
[Controls.AffiliationName]: this.readOnly(this.formatDirectorName(name?.FirstName ?? name?.firstName, name?.MiddleName ?? name?.middleName, name?.LastName ?? name?.lastName)),
|
|
85054
|
+
[Controls.AffiliationType]: this.readOnly(affiliationType),
|
|
85055
|
+
[Controls.MailingAddress]: this.readOnly(this.formatPayloadAddress(director?.mailingAddress ?? director?.MailingAddress ?? director)),
|
|
85056
|
+
[Controls.DeliveryAddress]: this.readOnly(this.formatPayloadAddress(director?.deliveryAddress ?? director?.DeliveryAddress ?? director))
|
|
85581
85057
|
});
|
|
85582
85058
|
}
|
|
85583
85059
|
static formatDirectorName(firstName, middleName, lastName) {
|
|
@@ -85606,891 +85082,241 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85606
85082
|
}
|
|
85607
85083
|
});
|
|
85608
85084
|
|
|
85609
|
-
// src/app/
|
|
85610
|
-
var
|
|
85611
|
-
var
|
|
85612
|
-
"src/app/
|
|
85613
|
-
|
|
85085
|
+
// src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts
|
|
85086
|
+
var Controls2, COMPANY_EMAIL_TYPES, isCompanyEmail, incomingAddressByGrid, EDITABLE_ADDRESS_CONTROLS, BritishColumbiaChangeOfOfficeAddressesFormHelper;
|
|
85087
|
+
var init_british_columbia_change_of_office_addresses_form_helper = __esm({
|
|
85088
|
+
"src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts"() {
|
|
85089
|
+
init_forms();
|
|
85090
|
+
init_common_models();
|
|
85614
85091
|
init_british_columbia_form_enums();
|
|
85615
85092
|
init_BritishColumbiaConstants();
|
|
85616
85093
|
init_british_columbia_formation_form_helper();
|
|
85617
|
-
|
|
85618
|
-
|
|
85619
|
-
|
|
85620
|
-
|
|
85621
|
-
|
|
85622
|
-
|
|
85623
|
-
|
|
85624
|
-
|
|
85625
|
-
|
|
85626
|
-
|
|
85627
|
-
|
|
85628
|
-
label: "Docket Number",
|
|
85629
|
-
formControlName: BCFormationFormControls.DocketNumber
|
|
85630
|
-
}
|
|
85631
|
-
];
|
|
85632
|
-
BC_FORMATION_DELTA_CARD_FORM_CORPORATION_DETAILS_FIELDS = [
|
|
85633
|
-
{
|
|
85634
|
-
type: FormType.Select,
|
|
85635
|
-
label: "Corporation Name Type",
|
|
85636
|
-
formControlName: BCFormationFormControls.CorporationNameType,
|
|
85637
|
-
required: true,
|
|
85638
|
-
options: BC_NAME_TYPE_OPTIONS,
|
|
85639
|
-
needTranslate: true,
|
|
85640
|
-
onChange: (form) => {
|
|
85641
|
-
form.get(BCFormationFormControls.CompanyName)?.updateValueAndValidity({ emitEvent: false });
|
|
85642
|
-
form.get(BCFormationFormControls.NameReservationNumber)?.updateValueAndValidity({ emitEvent: false });
|
|
85643
|
-
}
|
|
85644
|
-
},
|
|
85645
|
-
{
|
|
85646
|
-
type: FormType.Text,
|
|
85647
|
-
formControlName: "",
|
|
85648
|
-
class: "span-6 beside-select",
|
|
85649
|
-
// Numbered only: a Named company shows no preview of the typed name.
|
|
85650
|
-
isVisible: (form) => !isNamed(form),
|
|
85651
|
-
dynamicLabel: () => BC_NUMBERED_NAME_PREVIEW
|
|
85652
|
-
},
|
|
85653
|
-
{
|
|
85654
|
-
type: FormType.Input,
|
|
85655
|
-
label: "Proposed Corporate Name",
|
|
85656
|
-
formControlName: BCFormationFormControls.CompanyName,
|
|
85657
|
-
required: true,
|
|
85658
|
-
isVisible: isNamed,
|
|
85659
|
-
class: "column-3"
|
|
85660
|
-
},
|
|
85661
|
-
{
|
|
85662
|
-
type: FormType.Input,
|
|
85663
|
-
label: "Name Reservation #",
|
|
85664
|
-
formControlName: BCFormationFormControls.NameReservationNumber,
|
|
85665
|
-
required: true,
|
|
85666
|
-
maxLength: 9,
|
|
85667
|
-
errorMessage: "Enter a valid Name Reservation number (for example NR1234567)",
|
|
85668
|
-
showRequiredMessage: true,
|
|
85669
|
-
isVisible: isNamed,
|
|
85670
|
-
class: "span-6"
|
|
85671
|
-
},
|
|
85672
|
-
{
|
|
85673
|
-
type: FormType.Text,
|
|
85674
|
-
formControlName: BCFormationFormControls.RequestedDateForIncorporation,
|
|
85675
|
-
class: "span-12 spaced-text",
|
|
85676
|
-
dynamicLabel: (form, t) => labelledValue("Requested Date for Incorporation", form.get(BCFormationFormControls.RequestedDateForIncorporation)?.value, t)
|
|
85677
|
-
},
|
|
85678
|
-
{
|
|
85679
|
-
type: FormType.Text,
|
|
85680
|
-
formControlName: BCFormationFormControls.IsFutureEffectiveDate,
|
|
85681
|
-
class: "span-12 fee-warning",
|
|
85682
|
-
isVisible: (form) => Boolean(form.get(BCFormationFormControls.IsFutureEffectiveDate)?.value),
|
|
85683
|
-
dynamicLabel: (_, t) => t("There is an additional fee of {{fee}} for an effective date in the future.").replace("{{fee}}", BC_FUTURE_EFFECTIVE_DATE_FEE)
|
|
85684
|
-
},
|
|
85685
|
-
{
|
|
85686
|
-
// Options are filled per task from `task.entity.emailOptions` by the incorporation form.
|
|
85687
|
-
type: FormType.Select,
|
|
85688
|
-
label: "Company Email",
|
|
85689
|
-
formControlName: BCFormationFormControls.CompanyEmail,
|
|
85690
|
-
required: true,
|
|
85691
|
-
options: [],
|
|
85692
|
-
class: "span-6"
|
|
85693
|
-
}
|
|
85694
|
-
// The company password is not shown: it is taken from the entity's registry ID.
|
|
85695
|
-
];
|
|
85696
|
-
BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS = [
|
|
85697
|
-
{
|
|
85698
|
-
type: FormType.Checkbox,
|
|
85699
|
-
label: "This company uses one or more translations of its name outside of Canada.",
|
|
85700
|
-
formControlName: BCFormationFormControls.UsesNameTranslation,
|
|
85701
|
-
class: "span-12",
|
|
85702
|
-
onChange: (form) => {
|
|
85703
|
-
const rows = form.get(BCFormationFormControls.NameTranslations);
|
|
85704
|
-
const enabled = Boolean(form.get(BCFormationFormControls.UsesNameTranslation)?.value);
|
|
85705
|
-
if (!rows) {
|
|
85706
|
-
return;
|
|
85707
|
-
}
|
|
85708
|
-
if (enabled && rows.length === 0) {
|
|
85709
|
-
rows.push(BritishColumbiaFormationFormHelper.createNameTranslationFormGroup());
|
|
85710
|
-
}
|
|
85711
|
-
if (!enabled) {
|
|
85712
|
-
rows.clear();
|
|
85713
|
-
}
|
|
85714
|
-
}
|
|
85715
|
-
},
|
|
85716
|
-
{
|
|
85717
|
-
type: FormType.Text,
|
|
85718
|
-
formControlName: "",
|
|
85719
|
-
class: "span-12",
|
|
85720
|
-
isVisible: (form) => Boolean(form.get(BCFormationFormControls.UsesNameTranslation)?.value),
|
|
85721
|
-
dynamicLabel: (_, t) => `<span class="body-1-semibold">${t("Note")}:</span> ${t("Name translations must use the Latin Alphabet (English, French, etc.). Names that use other writing systems must spell the name phonetically in English or French.")}`
|
|
85722
|
-
}
|
|
85723
|
-
];
|
|
85724
|
-
BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS = [
|
|
85725
|
-
{
|
|
85726
|
-
type: FormType.Input,
|
|
85727
|
-
label: "Name Translation",
|
|
85728
|
-
formControlName: BCFormationFormControls.NameTranslation,
|
|
85729
|
-
required: true,
|
|
85730
|
-
class: "span-6"
|
|
85731
|
-
}
|
|
85094
|
+
init_BritishColumbiaConstants();
|
|
85095
|
+
init_common_utils();
|
|
85096
|
+
Controls2 = BCChangeOfOfficeAddressesFormControls;
|
|
85097
|
+
COMPANY_EMAIL_TYPES = ["Business Email", "Email"];
|
|
85098
|
+
isCompanyEmail = (communication) => Boolean(communication?.value) && COMPANY_EMAIL_TYPES.includes(communication?.type ?? "");
|
|
85099
|
+
incomingAddressByGrid = /* @__PURE__ */ new WeakMap();
|
|
85100
|
+
EDITABLE_ADDRESS_CONTROLS = [
|
|
85101
|
+
Controls2.AddressLine1,
|
|
85102
|
+
Controls2.AddressLine2,
|
|
85103
|
+
Controls2.City,
|
|
85104
|
+
Controls2.PostalCode
|
|
85732
85105
|
];
|
|
85733
|
-
|
|
85734
|
-
{
|
|
85735
|
-
|
|
85736
|
-
|
|
85737
|
-
|
|
85738
|
-
|
|
85739
|
-
|
|
85740
|
-
|
|
85741
|
-
|
|
85742
|
-
|
|
85743
|
-
|
|
85744
|
-
|
|
85106
|
+
BritishColumbiaChangeOfOfficeAddressesFormHelper = class {
|
|
85107
|
+
static generateConfig(task, _translateFn) {
|
|
85108
|
+
const affiliations = task.entity.affiliations ?? [];
|
|
85109
|
+
const delta = task.deltaData;
|
|
85110
|
+
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
85111
|
+
const pick = BritishColumbiaFormationFormHelper.pickAddress;
|
|
85112
|
+
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85113
|
+
const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
85114
|
+
const incoming = this.incomingOfficeAddresses(task);
|
|
85115
|
+
const seed = delta?.registeredOffice ? this.fillEmptyAddresses(delta, incoming) : this.seedFromIncomingAffiliations(task);
|
|
85116
|
+
const config2 = {};
|
|
85117
|
+
config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
|
|
85118
|
+
config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
|
|
85119
|
+
[Controls2.CorporationName]: this.readOnly(task.entity._profile.name),
|
|
85120
|
+
[Controls2.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
|
|
85121
|
+
[Controls2.CompanyEmail]: new FormControl(delta?.companyEmail || this.resolveCompanyEmail(task), Validators.required)
|
|
85122
|
+
});
|
|
85123
|
+
config2[BCChangeOfOfficeAddressesFormGroups.AnnualReportReminder] = new FormGroup({
|
|
85124
|
+
[Controls2.AnnualReportReminder]: new FormControl(delta?.annualReportReminder ?? BCAnnualReportReminder.Yes, Validators.required)
|
|
85125
|
+
});
|
|
85126
|
+
const regDeliverySame = seed.registeredOffice?.deliverySameAsMailing ?? true;
|
|
85127
|
+
config2[BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress] = new FormGroup({
|
|
85128
|
+
[Controls2.CurrentMailingAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Mailing"))),
|
|
85129
|
+
[Controls2.CurrentDeliveryAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Delivery"))),
|
|
85130
|
+
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.mailingAddress, true),
|
|
85131
|
+
[Controls2.DeliverySameAsMailing]: new FormControl(regDeliverySame),
|
|
85132
|
+
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress, !regDeliverySame)
|
|
85133
|
+
});
|
|
85134
|
+
const recSameAsRegistered = seed.recordsOffice?.sameAsRegisteredOffice ?? true;
|
|
85135
|
+
const recDeliverySame = seed.recordsOffice?.deliverySameAsMailing ?? true;
|
|
85136
|
+
config2[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress] = new FormGroup({
|
|
85137
|
+
[Controls2.CurrentMailingAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Mailing"))),
|
|
85138
|
+
[Controls2.CurrentDeliveryAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Delivery"))),
|
|
85139
|
+
[Controls2.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
|
|
85140
|
+
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.mailingAddress, !recSameAsRegistered),
|
|
85141
|
+
[Controls2.DeliverySameAsMailing]: new FormControl(recDeliverySame),
|
|
85142
|
+
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.deliveryAddress, !recSameAsRegistered && !recDeliverySame)
|
|
85143
|
+
});
|
|
85144
|
+
const grid = (group2, control) => config2[group2].get(control);
|
|
85145
|
+
const register = (target, address) => address && incomingAddressByGrid.set(target, address);
|
|
85146
|
+
register(grid(BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress, Controls2.NewDeliveryAddress), incoming.regDelivery);
|
|
85147
|
+
register(grid(BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress, Controls2.NewMailingAddress), incoming.recMailing);
|
|
85148
|
+
register(grid(BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress, Controls2.NewDeliveryAddress), incoming.recDelivery);
|
|
85149
|
+
return config2;
|
|
85745
85150
|
}
|
|
85746
|
-
|
|
85747
|
-
|
|
85748
|
-
|
|
85749
|
-
|
|
85750
|
-
|
|
85751
|
-
|
|
85752
|
-
|
|
85753
|
-
|
|
85754
|
-
{
|
|
85755
|
-
type: FormType.Text,
|
|
85756
|
-
formControlName: BCFormationFormControls.RecordsOfficeDeliveryAddress,
|
|
85757
|
-
class: "span-12",
|
|
85758
|
-
dynamicLabel: (form, t) => labelledValue("Delivery Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeDeliveryAddress)?.value, t)
|
|
85151
|
+
/** The company email choices: the entity's email options, plus the resolved default if it isn't one. */
|
|
85152
|
+
static getCompanyEmailOptions(task) {
|
|
85153
|
+
const values = (task.entity.emailOptions ?? []).filter(isCompanyEmail).map((o) => o.value);
|
|
85154
|
+
const fallback = this.resolveCompanyEmail(task);
|
|
85155
|
+
return [...new Set(fallback ? [...values, fallback] : values)].map((value) => ({
|
|
85156
|
+
value,
|
|
85157
|
+
label: value
|
|
85158
|
+
}));
|
|
85759
85159
|
}
|
|
85760
|
-
|
|
85761
|
-
|
|
85762
|
-
|
|
85763
|
-
|
|
85764
|
-
|
|
85765
|
-
|
|
85766
|
-
|
|
85767
|
-
|
|
85768
|
-
|
|
85769
|
-
{
|
|
85770
|
-
type: FormType.Input,
|
|
85771
|
-
label: "Middle Name",
|
|
85772
|
-
formControlName: BCFormationFormControls.CompletingPartyMiddleName,
|
|
85773
|
-
class: "column-3"
|
|
85774
|
-
},
|
|
85775
|
-
{
|
|
85776
|
-
type: FormType.Input,
|
|
85777
|
-
label: "Last Name",
|
|
85778
|
-
formControlName: BCFormationFormControls.CompletingPartyLastName,
|
|
85779
|
-
required: true,
|
|
85780
|
-
class: "column-3"
|
|
85781
|
-
},
|
|
85782
|
-
{
|
|
85783
|
-
type: FormType.Input,
|
|
85784
|
-
inputType: "email",
|
|
85785
|
-
label: "Email",
|
|
85786
|
-
formControlName: BCFormationFormControls.CompletingPartyEmail,
|
|
85787
|
-
required: true,
|
|
85788
|
-
errorMessage: "Enter a valid email address",
|
|
85789
|
-
showRequiredMessage: true,
|
|
85790
|
-
class: "column-3"
|
|
85791
|
-
},
|
|
85792
|
-
{
|
|
85793
|
-
type: FormType.Text,
|
|
85794
|
-
formControlName: "",
|
|
85795
|
-
class: "span-12",
|
|
85796
|
-
dynamicLabel: (_, t) => t("A copy of the filed Incorporation Application is emailed to this address.")
|
|
85797
|
-
},
|
|
85798
|
-
{
|
|
85799
|
-
type: FormType.Input,
|
|
85800
|
-
label: "Street Address",
|
|
85801
|
-
formControlName: BCFormationFormControls.AddressLine1,
|
|
85802
|
-
required: true,
|
|
85803
|
-
class: "column-3"
|
|
85804
|
-
},
|
|
85805
|
-
{
|
|
85806
|
-
type: FormType.Input,
|
|
85807
|
-
label: "Additional Street Address",
|
|
85808
|
-
formControlName: BCFormationFormControls.AddressLine2,
|
|
85809
|
-
class: "column-3"
|
|
85810
|
-
},
|
|
85811
|
-
{
|
|
85812
|
-
type: FormType.Input,
|
|
85813
|
-
label: "City",
|
|
85814
|
-
formControlName: BCFormationFormControls.City,
|
|
85815
|
-
required: true,
|
|
85816
|
-
class: "column-2"
|
|
85817
|
-
},
|
|
85818
|
-
{
|
|
85819
|
-
type: FormType.Input,
|
|
85820
|
-
label: "Province / State",
|
|
85821
|
-
formControlName: BCFormationFormControls.ProvinceState,
|
|
85822
|
-
required: true,
|
|
85823
|
-
class: "column-2"
|
|
85824
|
-
},
|
|
85825
|
-
{
|
|
85826
|
-
type: FormType.Input,
|
|
85827
|
-
label: "Postal / Zip Code",
|
|
85828
|
-
formControlName: BCFormationFormControls.PostalZip,
|
|
85829
|
-
required: true,
|
|
85830
|
-
errorMessage: "Enter a valid Canadian postal code (for example V8W 1X4)",
|
|
85831
|
-
showRequiredMessage: true,
|
|
85832
|
-
class: "column-2"
|
|
85833
|
-
},
|
|
85834
|
-
{
|
|
85835
|
-
type: FormType.Select,
|
|
85836
|
-
label: "Country",
|
|
85837
|
-
formControlName: BCFormationFormControls.Country,
|
|
85838
|
-
required: true,
|
|
85839
|
-
options: BC_COMPLETING_PARTY_COUNTRY_OPTIONS,
|
|
85840
|
-
class: "span-4",
|
|
85841
|
-
// Province / State is required for Canada and the US, and the postal code format is Canada-only.
|
|
85842
|
-
onChange: (form) => {
|
|
85843
|
-
[BCFormationFormControls.ProvinceState, BCFormationFormControls.PostalZip].forEach((control) => form.get(control)?.updateValueAndValidity({ emitEvent: false }));
|
|
85160
|
+
/**
|
|
85161
|
+
* Pre-fills the new addresses from the task's incoming "Shared Address" affiliations (Registered
|
|
85162
|
+
* Office / Records Office), taking each Mailing / Delivery address from the affiliation or, when
|
|
85163
|
+
* it has none, from its parent affiliation. Nothing is pre-filled without an incoming address.
|
|
85164
|
+
*/
|
|
85165
|
+
static seedFromIncomingAffiliations(task) {
|
|
85166
|
+
const { regMailing, regDelivery, recMailing, recDelivery } = this.incomingOfficeAddresses(task);
|
|
85167
|
+
if (!regMailing && !recMailing) {
|
|
85168
|
+
return {};
|
|
85844
85169
|
}
|
|
85845
|
-
|
|
85846
|
-
|
|
85847
|
-
|
|
85848
|
-
|
|
85849
|
-
|
|
85850
|
-
|
|
85851
|
-
|
|
85852
|
-
|
|
85853
|
-
|
|
85854
|
-
|
|
85855
|
-
|
|
85856
|
-
|
|
85857
|
-
|
|
85858
|
-
|
|
85859
|
-
|
|
85860
|
-
|
|
85861
|
-
}
|
|
85862
|
-
];
|
|
85863
|
-
BC_FORMATION_CARD_FORM_DIRECTORS_FIELDS = [
|
|
85864
|
-
{
|
|
85865
|
-
type: FormType.Text,
|
|
85866
|
-
formControlName: BCFormationFormControls.MailingAddress,
|
|
85867
|
-
class: "span-12",
|
|
85868
|
-
dynamicLabel: (form, t) => labelledValue("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
85869
|
-
},
|
|
85870
|
-
{
|
|
85871
|
-
type: FormType.Text,
|
|
85872
|
-
formControlName: BCFormationFormControls.DeliveryAddress,
|
|
85873
|
-
class: "span-12",
|
|
85874
|
-
// A director without a Delivery address is filed with "delivery same as mailing", so the
|
|
85875
|
-
// Mailing address is shown, as in the draft.
|
|
85876
|
-
dynamicLabel: (form, t) => labelledValue("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value || form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
85877
|
-
}
|
|
85878
|
-
];
|
|
85879
|
-
BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS = [
|
|
85880
|
-
{
|
|
85881
|
-
type: FormType.Text,
|
|
85882
|
-
formControlName: BCFormationFormControls.FullAddress,
|
|
85883
|
-
class: "span-12",
|
|
85884
|
-
dynamicLabel: (form, t) => labelledValue("Full Address", form.get(BCFormationFormControls.FullAddress)?.value, t)
|
|
85885
|
-
}
|
|
85886
|
-
];
|
|
85887
|
-
}
|
|
85888
|
-
});
|
|
85889
|
-
|
|
85890
|
-
// src/app/constants/ui/british-columbia-annual-report-form.constants.ts
|
|
85891
|
-
var BC_ANNUAL_REPORT_GENERAL_FIELDS, BC_ANNUAL_REPORT_OFFICERS_FIELDS, buildBCAnnualReportCompanyEmailFields, BC_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
85892
|
-
var init_british_columbia_annual_report_form_constants = __esm({
|
|
85893
|
-
"src/app/constants/ui/british-columbia-annual-report-form.constants.ts"() {
|
|
85894
|
-
init_form_enums();
|
|
85895
|
-
init_british_columbia_form_enums();
|
|
85896
|
-
init_british_columbia_formation_form_constants();
|
|
85897
|
-
BC_ANNUAL_REPORT_GENERAL_FIELDS = [
|
|
85898
|
-
{
|
|
85899
|
-
type: FormType.Input,
|
|
85900
|
-
label: "Client/Matter Number",
|
|
85901
|
-
formControlName: BCAnnualReportFormControls.ClientMatterNumber
|
|
85902
|
-
},
|
|
85903
|
-
{
|
|
85904
|
-
type: FormType.Input,
|
|
85905
|
-
label: "Docket Number",
|
|
85906
|
-
formControlName: BCAnnualReportFormControls.DocketNumber
|
|
85907
|
-
},
|
|
85908
|
-
{
|
|
85909
|
-
type: FormType.Text,
|
|
85910
|
-
formControlName: BCAnnualReportFormControls.EntityIdentifier,
|
|
85911
|
-
class: "span-12",
|
|
85912
|
-
dynamicLabel: (form, t) => labelledValue("Entity Identifier", form.get(BCAnnualReportFormControls.EntityIdentifier)?.value, t)
|
|
85913
|
-
}
|
|
85914
|
-
];
|
|
85915
|
-
BC_ANNUAL_REPORT_OFFICERS_FIELDS = [
|
|
85916
|
-
{
|
|
85917
|
-
type: FormType.Text,
|
|
85918
|
-
formControlName: BCAnnualReportFormControls.EffectiveDate,
|
|
85919
|
-
class: "span-12",
|
|
85920
|
-
dynamicLabel: (form, t) => labelledValue("Effective Date", form.get(BCAnnualReportFormControls.EffectiveDate)?.value, t)
|
|
85921
|
-
},
|
|
85922
|
-
{
|
|
85923
|
-
type: FormType.Text,
|
|
85924
|
-
formControlName: BCAnnualReportFormControls.CeaseDate,
|
|
85925
|
-
class: "span-12",
|
|
85926
|
-
dynamicLabel: (form, t) => labelledValue("Cease Date", form.get(BCAnnualReportFormControls.CeaseDate)?.value, t)
|
|
85927
|
-
},
|
|
85928
|
-
{
|
|
85929
|
-
type: FormType.Text,
|
|
85930
|
-
formControlName: BCAnnualReportFormControls.FullAddress,
|
|
85931
|
-
class: "span-12",
|
|
85932
|
-
dynamicLabel: (form, t) => labelledValue("Full Address", form.get(BCAnnualReportFormControls.FullAddress)?.value, t)
|
|
85170
|
+
const regDeliverySame = !regDelivery || this.isSameOfficeAddress(regDelivery, regMailing);
|
|
85171
|
+
const recDeliverySame = !recDelivery || this.isSameOfficeAddress(recDelivery, recMailing);
|
|
85172
|
+
const recSameAsRegistered = !recMailing || this.isSameOfficeAddress(recMailing, regMailing) && this.isSameOfficeAddress(recDelivery ?? recMailing, regDelivery ?? regMailing);
|
|
85173
|
+
return {
|
|
85174
|
+
registeredOffice: {
|
|
85175
|
+
mailingAddress: regMailing,
|
|
85176
|
+
deliverySameAsMailing: regDeliverySame,
|
|
85177
|
+
deliveryAddress: regDeliverySame ? void 0 : regDelivery
|
|
85178
|
+
},
|
|
85179
|
+
recordsOffice: {
|
|
85180
|
+
sameAsRegisteredOffice: recSameAsRegistered,
|
|
85181
|
+
mailingAddress: recSameAsRegistered ? void 0 : recMailing,
|
|
85182
|
+
deliverySameAsMailing: recDeliverySame,
|
|
85183
|
+
deliveryAddress: recDeliverySame ? void 0 : recDelivery
|
|
85184
|
+
}
|
|
85185
|
+
};
|
|
85933
85186
|
}
|
|
85934
|
-
|
|
85935
|
-
|
|
85936
|
-
|
|
85937
|
-
|
|
85938
|
-
|
|
85939
|
-
|
|
85940
|
-
|
|
85941
|
-
|
|
85942
|
-
|
|
85943
|
-
|
|
85187
|
+
/** Keeps the saved flags and addresses, but fills an address the draft left empty from `incoming`. */
|
|
85188
|
+
static fillEmptyAddresses(saved, incoming) {
|
|
85189
|
+
const hasValues = (address) => EDITABLE_ADDRESS_CONTROLS.some((name) => Boolean(address?.[name]));
|
|
85190
|
+
const pick = (savedAddress, incomingAddress) => hasValues(savedAddress) ? savedAddress : incomingAddress ?? savedAddress;
|
|
85191
|
+
return {
|
|
85192
|
+
registeredOffice: __spreadProps(__spreadValues({}, saved.registeredOffice), {
|
|
85193
|
+
mailingAddress: pick(saved.registeredOffice?.mailingAddress, incoming.regMailing),
|
|
85194
|
+
deliveryAddress: pick(saved.registeredOffice?.deliveryAddress, incoming.regDelivery)
|
|
85195
|
+
}),
|
|
85196
|
+
recordsOffice: __spreadProps(__spreadValues({}, saved.recordsOffice), {
|
|
85197
|
+
mailingAddress: pick(saved.recordsOffice?.mailingAddress, incoming.recMailing),
|
|
85198
|
+
deliveryAddress: pick(saved.recordsOffice?.deliveryAddress, incoming.recDelivery)
|
|
85199
|
+
})
|
|
85200
|
+
};
|
|
85944
85201
|
}
|
|
85945
|
-
|
|
85946
|
-
|
|
85947
|
-
|
|
85948
|
-
|
|
85949
|
-
|
|
85950
|
-
|
|
85951
|
-
|
|
85202
|
+
/** The four office addresses of the task's incoming Shared Address, as form values. */
|
|
85203
|
+
static incomingOfficeAddresses(task) {
|
|
85204
|
+
const incoming = task.incomingAffiliations ?? [];
|
|
85205
|
+
const pickBy = (title, locationType) => {
|
|
85206
|
+
const pool = incoming.filter((a) => a.role?.role_name === AddressRole2.SHARED_ADDRESS && a.role?.static_title === title).flatMap((a) => a.addresses?.length ? a.addresses : a.parent_affiliation?.addresses ?? []);
|
|
85207
|
+
const wanted = locationType.toLowerCase();
|
|
85208
|
+
const address = pool.find((a) => (a.computed_location_type ?? "").toLowerCase() === wanted || (a.location_type ?? "").toLowerCase() === wanted);
|
|
85209
|
+
return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
|
|
85210
|
+
};
|
|
85211
|
+
return {
|
|
85212
|
+
regMailing: pickBy(AddressTitle2.REGISTERED_OFFICE, "Mailing"),
|
|
85213
|
+
regDelivery: pickBy(AddressTitle2.REGISTERED_OFFICE, "Delivery"),
|
|
85214
|
+
recMailing: pickBy(AddressTitle2.RECORDS_OFFICE, "Mailing"),
|
|
85215
|
+
recDelivery: pickBy(AddressTitle2.RECORDS_OFFICE, "Delivery")
|
|
85216
|
+
};
|
|
85952
85217
|
}
|
|
85953
|
-
|
|
85954
|
-
|
|
85955
|
-
|
|
85956
|
-
|
|
85957
|
-
|
|
85958
|
-
|
|
85959
|
-
|
|
85960
|
-
|
|
85961
|
-
|
|
85962
|
-
|
|
85963
|
-
|
|
85964
|
-
\u0275\u0275property("type", ctx_r0.alertType.Info);
|
|
85965
|
-
}
|
|
85966
|
-
}
|
|
85967
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_2_Template(rf, ctx) {
|
|
85968
|
-
if (rf & 1) {
|
|
85969
|
-
\u0275\u0275element(0, "alert", 2);
|
|
85970
|
-
}
|
|
85971
|
-
if (rf & 2) {
|
|
85972
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
85973
|
-
\u0275\u0275property("content", ctx_r0.errors());
|
|
85974
|
-
}
|
|
85975
|
-
}
|
|
85976
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_5_Template(rf, ctx) {
|
|
85977
|
-
if (rf & 1) {
|
|
85978
|
-
const _r2 = \u0275\u0275getCurrentView();
|
|
85979
|
-
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "div", 8)(2, "filing-form-group", 9);
|
|
85980
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaAnnualReportFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_2_listener($event) {
|
|
85981
|
-
\u0275\u0275restoreView(_r2);
|
|
85982
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
85983
|
-
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("general", $event));
|
|
85984
|
-
});
|
|
85985
|
-
\u0275\u0275elementEnd()()();
|
|
85986
|
-
}
|
|
85987
|
-
if (rf & 2) {
|
|
85988
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
85989
|
-
const general_r3 = \u0275\u0275readContextLet(4);
|
|
85990
|
-
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.General);
|
|
85991
|
-
\u0275\u0275advance(2);
|
|
85992
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", general_r3)("config", ctx_r0.generalFields);
|
|
85993
|
-
}
|
|
85994
|
-
}
|
|
85995
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_8_Template(rf, ctx) {
|
|
85996
|
-
if (rf & 1) {
|
|
85997
|
-
\u0275\u0275element(0, "expandable-list-card", 5);
|
|
85998
|
-
}
|
|
85999
|
-
if (rf & 2) {
|
|
86000
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86001
|
-
const officersArray_r4 = \u0275\u0275readContextLet(6);
|
|
86002
|
-
const isOpenOfficers_r5 = \u0275\u0275readContextLet(7);
|
|
86003
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("isValid", true)("areItemsOpen", isOpenOfficers_r5)("isStatusIcon", false)("fields", ctx_r0.officersFields)("formArray", officersArray_r4)("title", ctx_r0.groups.Officers);
|
|
86004
|
-
}
|
|
86005
|
-
}
|
|
86006
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_9_Template(rf, ctx) {
|
|
86007
|
-
if (rf & 1) {
|
|
86008
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "h2", 10);
|
|
86009
|
-
\u0275\u0275text(2);
|
|
86010
|
-
\u0275\u0275pipe(3, "translate");
|
|
86011
|
-
\u0275\u0275elementEnd()();
|
|
86012
|
-
}
|
|
86013
|
-
if (rf & 2) {
|
|
86014
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86015
|
-
\u0275\u0275property("title", ctx_r0.groups.Officers);
|
|
86016
|
-
\u0275\u0275advance(2);
|
|
86017
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(3, 2, "Unchanged"));
|
|
86018
|
-
}
|
|
86019
|
-
}
|
|
86020
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_11_Template(rf, ctx) {
|
|
86021
|
-
if (rf & 1) {
|
|
86022
|
-
const _r6 = \u0275\u0275getCurrentView();
|
|
86023
|
-
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 8)(2, "filing-form-group", 9);
|
|
86024
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaAnnualReportFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_2_listener($event) {
|
|
86025
|
-
\u0275\u0275restoreView(_r6);
|
|
86026
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86027
|
-
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("companyEmail", $event));
|
|
86028
|
-
});
|
|
86029
|
-
\u0275\u0275elementEnd()()();
|
|
86030
|
-
}
|
|
86031
|
-
if (rf & 2) {
|
|
86032
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86033
|
-
const companyEmail_r7 = \u0275\u0275readContextLet(10);
|
|
86034
|
-
\u0275\u0275property("isValid", ctx_r0.sectionValidity["companyEmail"])("isStatusIcon", ctx_r0.statusIcon())("title", ctx_r0.groups.CompanyEmail);
|
|
86035
|
-
\u0275\u0275advance(2);
|
|
86036
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", companyEmail_r7)("config", ctx_r0.companyEmailFields());
|
|
86037
|
-
}
|
|
86038
|
-
}
|
|
86039
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_13_Template(rf, ctx) {
|
|
86040
|
-
if (rf & 1) {
|
|
86041
|
-
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "div", 8);
|
|
86042
|
-
\u0275\u0275element(2, "filing-form-group", 11);
|
|
86043
|
-
\u0275\u0275elementEnd()();
|
|
86044
|
-
}
|
|
86045
|
-
if (rf & 2) {
|
|
86046
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86047
|
-
const reminder_r8 = \u0275\u0275readContextLet(12);
|
|
86048
|
-
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
|
|
86049
|
-
\u0275\u0275advance(2);
|
|
86050
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", reminder_r8)("config", ctx_r0.reminderFields);
|
|
86051
|
-
}
|
|
86052
|
-
}
|
|
86053
|
-
var BritishColumbiaAnnualReportFormComponent;
|
|
86054
|
-
var init_british_columbia_annual_report_form_component = __esm({
|
|
86055
|
-
"src/app/components/british-columbia/annual-report/british-columbia-annual-report-form/british-columbia-annual-report-form.component.ts"() {
|
|
86056
|
-
init_core();
|
|
86057
|
-
init_ngx_translate_core();
|
|
86058
|
-
init_expandable_card_component();
|
|
86059
|
-
init_expandable_list_card_component();
|
|
86060
|
-
init_filing_form_group_component();
|
|
86061
|
-
init_alert_component();
|
|
86062
|
-
init_alert_enum();
|
|
86063
|
-
init_british_columbia_form_enums();
|
|
86064
|
-
init_british_columbia_annual_report_form_constants();
|
|
86065
|
-
init_british_columbia_annual_report_form_helper();
|
|
86066
|
-
init_core();
|
|
86067
|
-
BritishColumbiaAnnualReportFormComponent = class _BritishColumbiaAnnualReportFormComponent {
|
|
86068
|
-
form = input.required();
|
|
86069
|
-
task = input();
|
|
86070
|
-
errors = input([]);
|
|
86071
|
-
isNote = input(false);
|
|
86072
|
-
statusIcon = input(true);
|
|
86073
|
-
isSubmitted = input(false);
|
|
86074
|
-
visiblyValidChange = output();
|
|
86075
|
-
alertType = AlertType;
|
|
86076
|
-
groups = BCAnnualReportFormGroups;
|
|
86077
|
-
generalFields = BC_ANNUAL_REPORT_GENERAL_FIELDS;
|
|
86078
|
-
officersFields = BC_ANNUAL_REPORT_OFFICERS_FIELDS;
|
|
86079
|
-
reminderFields = BC_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
86080
|
-
companyEmailFields = computed(() => {
|
|
86081
|
-
const task = this.task();
|
|
86082
|
-
return buildBCAnnualReportCompanyEmailFields(task ? BritishColumbiaAnnualReportFormHelper.getCompanyEmailOptions(task) : []);
|
|
86083
|
-
});
|
|
86084
|
-
/** AC2: the Officers section starts expanded for 3 officers or fewer, collapsed for more. */
|
|
86085
|
-
initiallyOpenCardsCount = 3;
|
|
86086
|
-
sectionValidity = {};
|
|
86087
|
-
isVisiblyValid() {
|
|
86088
|
-
return Object.values(this.sectionValidity).every((v) => v);
|
|
85218
|
+
/** Street = street number + street name; the suite goes to Address Line 2. */
|
|
85219
|
+
static toOfficeAddressDelta(address) {
|
|
85220
|
+
const street = [getAddressComponent(address, "Street Number Only"), getAddressComponent(address, "Street Only")].filter(Boolean).join(" ") || getAddressComponent(address, "Street Address") || address.street || "";
|
|
85221
|
+
return {
|
|
85222
|
+
addressLine1: street,
|
|
85223
|
+
addressLine2: getAddressComponent(address, "Suite/Apartment") || address.address2 || "",
|
|
85224
|
+
city: address.city ?? "",
|
|
85225
|
+
postalCode: address.postal_zip ?? "",
|
|
85226
|
+
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85227
|
+
country: BC_DEFAULT_COUNTRY
|
|
85228
|
+
};
|
|
86089
85229
|
}
|
|
86090
|
-
|
|
86091
|
-
|
|
86092
|
-
|
|
85230
|
+
/** An address with no province is accepted; the form only ever deals in British Columbia. */
|
|
85231
|
+
static isBritishColumbia(address) {
|
|
85232
|
+
const province = (address.province_state ?? "").trim().toLowerCase();
|
|
85233
|
+
return !province || ["bc", "b.c.", "british columbia"].includes(province);
|
|
86093
85234
|
}
|
|
86094
|
-
|
|
86095
|
-
|
|
85235
|
+
static isSameOfficeAddress(a, b) {
|
|
85236
|
+
const key = (x) => [x?.addressLine1, x?.addressLine2, x?.city, x?.postalCode].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
85237
|
+
return key(a) === key(b);
|
|
86096
85238
|
}
|
|
86097
|
-
|
|
86098
|
-
|
|
85239
|
+
/**
|
|
85240
|
+
* The company's email: the entity's email options, then the Registered Office's email, then the
|
|
85241
|
+
* entity's own, then any other address of the entity (e.g. a Head Office). Only a Business Email
|
|
85242
|
+
* or an Email counts; a Personal Email never does.
|
|
85243
|
+
*/
|
|
85244
|
+
static resolveCompanyEmail(task) {
|
|
85245
|
+
const affiliations = task.entity.affiliations ?? [];
|
|
85246
|
+
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85247
|
+
return task.entity.emailOptions?.find(isCompanyEmail)?.value || registeredOffice?.addresses?.[0]?.communications?.find(isCompanyEmail)?.value || task.entity.communications?.find(isCompanyEmail)?.value || task.entity.addresses?.flatMap((a) => a.communications ?? []).find(isCompanyEmail)?.value || "";
|
|
86099
85248
|
}
|
|
86100
|
-
|
|
86101
|
-
|
|
86102
|
-
|
|
86103
|
-
|
|
86104
|
-
|
|
86105
|
-
|
|
86106
|
-
|
|
86107
|
-
|
|
86108
|
-
|
|
86109
|
-
|
|
86110
|
-
|
|
86111
|
-
|
|
86112
|
-
|
|
86113
|
-
|
|
86114
|
-
|
|
86115
|
-
\u0275\u0275template(13, BritishColumbiaAnnualReportFormComponent_Conditional_13_Template, 3, 5, "expandable-card", 4);
|
|
86116
|
-
\u0275\u0275elementEnd()();
|
|
86117
|
-
}
|
|
86118
|
-
if (rf & 2) {
|
|
86119
|
-
let tmp_5_0;
|
|
86120
|
-
\u0275\u0275advance();
|
|
86121
|
-
\u0275\u0275conditional(ctx.isNote() ? 1 : -1);
|
|
86122
|
-
\u0275\u0275advance();
|
|
86123
|
-
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
86124
|
-
\u0275\u0275advance(2);
|
|
86125
|
-
const general_r9 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.General));
|
|
86126
|
-
\u0275\u0275advance();
|
|
86127
|
-
\u0275\u0275conditional(general_r9 ? 5 : -1);
|
|
86128
|
-
\u0275\u0275advance();
|
|
86129
|
-
const officersArray_r10 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Officers));
|
|
86130
|
-
\u0275\u0275advance();
|
|
86131
|
-
\u0275\u0275storeLet(((tmp_5_0 = officersArray_r10 == null ? null : officersArray_r10.length) !== null && tmp_5_0 !== void 0 ? tmp_5_0 : 0) <= ctx.initiallyOpenCardsCount);
|
|
86132
|
-
\u0275\u0275advance();
|
|
86133
|
-
\u0275\u0275conditional(officersArray_r10 && officersArray_r10.length ? 8 : 9);
|
|
86134
|
-
\u0275\u0275advance(2);
|
|
86135
|
-
const companyEmail_r11 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CompanyEmail));
|
|
86136
|
-
\u0275\u0275advance();
|
|
86137
|
-
\u0275\u0275conditional(companyEmail_r11 ? 11 : -1);
|
|
86138
|
-
\u0275\u0275advance();
|
|
86139
|
-
const reminder_r12 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
86140
|
-
\u0275\u0275advance();
|
|
86141
|
-
\u0275\u0275conditional(reminder_r12 ? 13 : -1);
|
|
86142
|
-
}
|
|
86143
|
-
}, dependencies: [
|
|
86144
|
-
ExpandableCardComponent,
|
|
86145
|
-
ExpandableListCardComponent,
|
|
86146
|
-
FilingFormGroupComponent,
|
|
86147
|
-
AlertComponent,
|
|
86148
|
-
TranslatePipe
|
|
86149
|
-
], styles: ["\n\n[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .annual-report-form[_ngcontent-%COMP%] {\n display: flex;\n height: 100%;\n flex-direction: column;\n gap: 16px;\n}\n[_nghost-%COMP%] .annual-report-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow: auto;\n min-height: 0;\n}\n[_nghost-%COMP%] .annual-report-form-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n/*# sourceMappingURL=british-columbia-annual-report-form.component.css.map */"], changeDetection: 0 });
|
|
86150
|
-
};
|
|
86151
|
-
(() => {
|
|
86152
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaAnnualReportFormComponent, [{
|
|
86153
|
-
type: Component,
|
|
86154
|
-
args: [{ standalone: true, selector: "british-columbia-annual-report-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
86155
|
-
ExpandableCardComponent,
|
|
86156
|
-
ExpandableListCardComponent,
|
|
86157
|
-
FilingFormGroupComponent,
|
|
86158
|
-
AlertComponent,
|
|
86159
|
-
TranslatePipe
|
|
86160
|
-
], template: `<div class="annual-report-form">\r
|
|
86161
|
-
@if (isNote()) {\r
|
|
86162
|
-
<alert\r
|
|
86163
|
-
[type]="alertType.Info"\r
|
|
86164
|
-
title="Entity changed"\r
|
|
86165
|
-
content="A new draft needs to be generated as the Entity was changed since the last draft was produced."\r
|
|
86166
|
-
/>\r
|
|
86167
|
-
}\r
|
|
86168
|
-
\r
|
|
86169
|
-
@if (errors().length) {\r
|
|
86170
|
-
<alert\r
|
|
86171
|
-
title="The following issues need to be resolved before proceeding:"\r
|
|
86172
|
-
[content]="errors()"\r
|
|
86173
|
-
/>\r
|
|
86174
|
-
}\r
|
|
86175
|
-
\r
|
|
86176
|
-
<div class="annual-report-form-content">\r
|
|
86177
|
-
@let general = getFormGroup(groups.General);\r
|
|
86178
|
-
\r
|
|
86179
|
-
@if (general) {\r
|
|
86180
|
-
<expandable-card [isStatusIcon]="false" [title]="groups.General">\r
|
|
86181
|
-
<div class="annual-report-form-item">\r
|
|
86182
|
-
<filing-form-group\r
|
|
86183
|
-
[isSubmitted]="isSubmitted()"\r
|
|
86184
|
-
[form]="general"\r
|
|
86185
|
-
[config]="generalFields"\r
|
|
86186
|
-
(visiblyValidChange)="onSectionValidChange('general', $event)"\r
|
|
86187
|
-
/>\r
|
|
86188
|
-
</div>\r
|
|
86189
|
-
</expandable-card>\r
|
|
86190
|
-
}\r
|
|
86191
|
-
\r
|
|
86192
|
-
@let officersArray = getFormArray(groups.Officers);\r
|
|
86193
|
-
@let isOpenOfficers = (officersArray?.length ?? 0) <= initiallyOpenCardsCount;\r
|
|
86194
|
-
\r
|
|
86195
|
-
@if (officersArray && officersArray.length) {\r
|
|
86196
|
-
<expandable-list-card\r
|
|
86197
|
-
[isSubmitted]="isSubmitted()"\r
|
|
86198
|
-
[isValid]="true"\r
|
|
86199
|
-
[areItemsOpen]="isOpenOfficers"\r
|
|
86200
|
-
[isStatusIcon]="false"\r
|
|
86201
|
-
[fields]="officersFields"\r
|
|
86202
|
-
[formArray]="officersArray"\r
|
|
86203
|
-
[title]="groups.Officers"\r
|
|
86204
|
-
/>\r
|
|
86205
|
-
} @else {\r
|
|
86206
|
-
<expandable-card [title]="groups.Officers">\r
|
|
86207
|
-
<h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
|
|
86208
|
-
</expandable-card>\r
|
|
86209
|
-
}\r
|
|
86210
|
-
\r
|
|
86211
|
-
@let companyEmail = getFormGroup(groups.CompanyEmail);\r
|
|
86212
|
-
\r
|
|
86213
|
-
@if (companyEmail) {\r
|
|
86214
|
-
<expandable-card\r
|
|
86215
|
-
[isValid]="sectionValidity['companyEmail']"\r
|
|
86216
|
-
[isStatusIcon]="statusIcon()"\r
|
|
86217
|
-
[title]="groups.CompanyEmail"\r
|
|
86218
|
-
>\r
|
|
86219
|
-
<div class="annual-report-form-item">\r
|
|
86220
|
-
<filing-form-group\r
|
|
86221
|
-
[isSubmitted]="isSubmitted()"\r
|
|
86222
|
-
[form]="companyEmail"\r
|
|
86223
|
-
[config]="companyEmailFields()"\r
|
|
86224
|
-
(visiblyValidChange)="onSectionValidChange('companyEmail', $event)"\r
|
|
86225
|
-
/>\r
|
|
86226
|
-
</div>\r
|
|
86227
|
-
</expandable-card>\r
|
|
86228
|
-
}\r
|
|
86229
|
-
\r
|
|
86230
|
-
@let reminder = getFormGroup(groups.AnnualReportReminder);\r
|
|
86231
|
-
\r
|
|
86232
|
-
@if (reminder) {\r
|
|
86233
|
-
<expandable-card [isStatusIcon]="false" [title]="groups.AnnualReportReminder">\r
|
|
86234
|
-
<div class="annual-report-form-item">\r
|
|
86235
|
-
<filing-form-group\r
|
|
86236
|
-
[isSubmitted]="isSubmitted()"\r
|
|
86237
|
-
[form]="reminder"\r
|
|
86238
|
-
[config]="reminderFields"\r
|
|
86239
|
-
/>\r
|
|
86240
|
-
</div>\r
|
|
86241
|
-
</expandable-card>\r
|
|
86242
|
-
}\r
|
|
86243
|
-
</div>\r
|
|
86244
|
-
</div>\r
|
|
86245
|
-
`, styles: ["/* src/app/components/british-columbia/annual-report/british-columbia-annual-report-form/british-columbia-annual-report-form.component.scss */\n:host {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n:host .annual-report-form {\n display: flex;\n height: 100%;\n flex-direction: column;\n gap: 16px;\n}\n:host .annual-report-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow: auto;\n min-height: 0;\n}\n:host .annual-report-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n/*# sourceMappingURL=british-columbia-annual-report-form.component.css.map */\n"] }]
|
|
86246
|
-
}], null, null);
|
|
86247
|
-
})();
|
|
86248
|
-
(() => {
|
|
86249
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaAnnualReportFormComponent, { className: "BritishColumbiaAnnualReportFormComponent", filePath: "src/app/components/british-columbia/annual-report/british-columbia-annual-report-form/british-columbia-annual-report-form.component.ts", lineNumber: 43 });
|
|
86250
|
-
})();
|
|
86251
|
-
}
|
|
86252
|
-
});
|
|
86253
|
-
|
|
86254
|
-
// src/app/components/british-columbia/annual-report/steps/delta/british-columbia-annual-report-delta-form.component.ts
|
|
86255
|
-
var BritishColumbiaAnnualReportDeltaFormComponent;
|
|
86256
|
-
var init_british_columbia_annual_report_delta_form_component = __esm({
|
|
86257
|
-
"src/app/components/british-columbia/annual-report/steps/delta/british-columbia-annual-report-delta-form.component.ts"() {
|
|
86258
|
-
init_core();
|
|
86259
|
-
init_button();
|
|
86260
|
-
init_ngx_translate_core();
|
|
86261
|
-
init_british_columbia_annual_report_form_component();
|
|
86262
|
-
init_common_utils();
|
|
86263
|
-
init_core();
|
|
86264
|
-
BritishColumbiaAnnualReportDeltaFormComponent = class _BritishColumbiaAnnualReportDeltaFormComponent {
|
|
86265
|
-
form = input.required();
|
|
86266
|
-
actionsDisabled = input(false);
|
|
86267
|
-
isNote = input(true);
|
|
86268
|
-
task = input();
|
|
86269
|
-
errors = input([]);
|
|
86270
|
-
close = output();
|
|
86271
|
-
save = output();
|
|
86272
|
-
validate = output();
|
|
86273
|
-
submitted = signal(false);
|
|
86274
|
-
visiblyValid = signal(true);
|
|
86275
|
-
clientErrors = signal([]);
|
|
86276
|
-
translate = inject(TranslateService);
|
|
86277
|
-
combinedErrors = computed(() => {
|
|
86278
|
-
const client = this.clientErrors();
|
|
86279
|
-
return client.length ? client : this.errors();
|
|
86280
|
-
});
|
|
86281
|
-
onVisiblyValidChange(valid) {
|
|
86282
|
-
this.visiblyValid.set(valid);
|
|
85249
|
+
/**
|
|
85250
|
+
* Address Line 1*, Address Line 2, City*, Postal Code*, Province (BC), Country (Canada).
|
|
85251
|
+
* Province and Country are always disabled; the rest follow `enabled`.
|
|
85252
|
+
*/
|
|
85253
|
+
static createOfficeAddressFormGroup(delta, enabled = true) {
|
|
85254
|
+
const group2 = new FormGroup({
|
|
85255
|
+
[Controls2.AddressLine1]: new FormControl(delta?.addressLine1 ?? "", Validators.required),
|
|
85256
|
+
[Controls2.AddressLine2]: new FormControl(delta?.addressLine2 ?? ""),
|
|
85257
|
+
[Controls2.City]: new FormControl(delta?.city ?? "", Validators.required),
|
|
85258
|
+
[Controls2.PostalCode]: new FormControl(delta?.postalCode ?? "", Validators.required),
|
|
85259
|
+
[Controls2.Province]: this.readOnly(delta?.province ?? BC_DEFAULT_PROVINCE_STATE),
|
|
85260
|
+
[Controls2.Country]: this.readOnly(delta?.country ?? BC_DEFAULT_COUNTRY)
|
|
85261
|
+
});
|
|
85262
|
+
this.setOfficeAddressEnabled(group2, enabled);
|
|
85263
|
+
return group2;
|
|
86283
85264
|
}
|
|
86284
|
-
/**
|
|
86285
|
-
|
|
86286
|
-
|
|
86287
|
-
|
|
86288
|
-
|
|
86289
|
-
|
|
86290
|
-
|
|
85265
|
+
/**
|
|
85266
|
+
* Enables or disables the editable controls of an address grid (used by "Same as…" checkboxes).
|
|
85267
|
+
* Hiding a grid also clears it. Showing it again refills it with the address Athennian sent for
|
|
85268
|
+
* it, or leaves it empty when there is none (and when the user has already typed something).
|
|
85269
|
+
*/
|
|
85270
|
+
static setOfficeAddressEnabled(group2, enabled) {
|
|
85271
|
+
if (!group2) {
|
|
86291
85272
|
return;
|
|
86292
85273
|
}
|
|
86293
|
-
|
|
85274
|
+
const restore = incomingAddressByGrid.get(group2);
|
|
85275
|
+
const isEmpty = EDITABLE_ADDRESS_CONTROLS.every((name) => !group2.get(name)?.value);
|
|
85276
|
+
EDITABLE_ADDRESS_CONTROLS.forEach((name) => {
|
|
85277
|
+
const control = group2.get(name);
|
|
85278
|
+
if (enabled) {
|
|
85279
|
+
control?.enable({ emitEvent: false });
|
|
85280
|
+
if (restore && isEmpty) {
|
|
85281
|
+
control?.setValue(restore[name] ?? "", { emitEvent: false });
|
|
85282
|
+
}
|
|
85283
|
+
} else {
|
|
85284
|
+
control?.setValue("", { emitEvent: false });
|
|
85285
|
+
control?.disable({ emitEvent: false });
|
|
85286
|
+
}
|
|
85287
|
+
});
|
|
85288
|
+
group2.updateValueAndValidity({ emitEvent: false });
|
|
85289
|
+
}
|
|
85290
|
+
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
|
|
85291
|
+
return new FormGroup({
|
|
85292
|
+
[Controls2.ClientMatterNumber]: new FormControl(
|
|
85293
|
+
// `??`: an explicitly cleared value ('') in a saved draft must be preserved; the entity default applies only when absent.
|
|
85294
|
+
deltaData?.referenceNumber ?? clientMatterNumber ?? ""
|
|
85295
|
+
),
|
|
85296
|
+
[Controls2.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
|
|
85297
|
+
});
|
|
85298
|
+
}
|
|
85299
|
+
static readOnly(value) {
|
|
85300
|
+
return new FormControl({ value: value ?? "", disabled: true });
|
|
86294
85301
|
}
|
|
86295
|
-
static \u0275fac = function BritishColumbiaAnnualReportDeltaFormComponent_Factory(__ngFactoryType__) {
|
|
86296
|
-
return new (__ngFactoryType__ || _BritishColumbiaAnnualReportDeltaFormComponent)();
|
|
86297
|
-
};
|
|
86298
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaAnnualReportDeltaFormComponent, selectors: [["british-columbia-annual-report-delta-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], isNote: [1, "isNote"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", save: "save", validate: "validate" }, decls: 15, vars: 18, consts: [[1, "annual-report-delta-form"], [1, "annual-report-delta-form-content", 3, "visiblyValidChange", "form", "task", "errors", "isNote", "isSubmitted", "statusIcon"], [1, "annual-report-delta-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function BritishColumbiaAnnualReportDeltaFormComponent_Template(rf, ctx) {
|
|
86299
|
-
if (rf & 1) {
|
|
86300
|
-
\u0275\u0275elementStart(0, "div", 0)(1, "british-columbia-annual-report-form", 1);
|
|
86301
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaAnnualReportDeltaFormComponent_Template_british_columbia_annual_report_form_visiblyValidChange_1_listener($event) {
|
|
86302
|
-
return ctx.onVisiblyValidChange($event);
|
|
86303
|
-
});
|
|
86304
|
-
\u0275\u0275elementEnd();
|
|
86305
|
-
\u0275\u0275elementStart(2, "div", 2)(3, "button", 3);
|
|
86306
|
-
\u0275\u0275listener("click", function BritishColumbiaAnnualReportDeltaFormComponent_Template_button_click_3_listener() {
|
|
86307
|
-
return ctx.close.emit();
|
|
86308
|
-
});
|
|
86309
|
-
\u0275\u0275elementStart(4, "span", 4);
|
|
86310
|
-
\u0275\u0275text(5);
|
|
86311
|
-
\u0275\u0275pipe(6, "translate");
|
|
86312
|
-
\u0275\u0275elementEnd()();
|
|
86313
|
-
\u0275\u0275elementStart(7, "button", 3);
|
|
86314
|
-
\u0275\u0275listener("click", function BritishColumbiaAnnualReportDeltaFormComponent_Template_button_click_7_listener() {
|
|
86315
|
-
return ctx.save.emit();
|
|
86316
|
-
});
|
|
86317
|
-
\u0275\u0275elementStart(8, "span", 4);
|
|
86318
|
-
\u0275\u0275text(9);
|
|
86319
|
-
\u0275\u0275pipe(10, "translate");
|
|
86320
|
-
\u0275\u0275elementEnd()();
|
|
86321
|
-
\u0275\u0275elementStart(11, "button", 5);
|
|
86322
|
-
\u0275\u0275listener("click", function BritishColumbiaAnnualReportDeltaFormComponent_Template_button_click_11_listener() {
|
|
86323
|
-
return ctx.onValidate();
|
|
86324
|
-
});
|
|
86325
|
-
\u0275\u0275elementStart(12, "span", 4);
|
|
86326
|
-
\u0275\u0275text(13);
|
|
86327
|
-
\u0275\u0275pipe(14, "translate");
|
|
86328
|
-
\u0275\u0275elementEnd()()()();
|
|
86329
|
-
}
|
|
86330
|
-
if (rf & 2) {
|
|
86331
|
-
\u0275\u0275advance();
|
|
86332
|
-
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("isSubmitted", ctx.submitted())("statusIcon", true);
|
|
86333
|
-
\u0275\u0275advance(2);
|
|
86334
|
-
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
86335
|
-
\u0275\u0275advance(2);
|
|
86336
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 12, "Close"));
|
|
86337
|
-
\u0275\u0275advance(2);
|
|
86338
|
-
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
86339
|
-
\u0275\u0275advance(2);
|
|
86340
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 14, "Save Changes"));
|
|
86341
|
-
\u0275\u0275advance(2);
|
|
86342
|
-
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
86343
|
-
\u0275\u0275advance(2);
|
|
86344
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 16, "Validate & Generate Draft"));
|
|
86345
|
-
}
|
|
86346
|
-
}, dependencies: [MatButton, TranslatePipe, BritishColumbiaAnnualReportFormComponent], styles: ["\n\n[_nghost-%COMP%] .annual-report-delta-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .annual-report-delta-form-content[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .annual-report-delta-form-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n[_nghost-%COMP%] .annual-report-delta-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n[_nghost-%COMP%] .annual-report-delta-form-actions[_ngcontent-%COMP%] .submit[_ngcontent-%COMP%] {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=british-columbia-annual-report-delta-form.component.css.map */"], changeDetection: 0 });
|
|
86347
|
-
};
|
|
86348
|
-
(() => {
|
|
86349
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaAnnualReportDeltaFormComponent, [{
|
|
86350
|
-
type: Component,
|
|
86351
|
-
args: [{ standalone: true, selector: "british-columbia-annual-report-delta-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, TranslatePipe, BritishColumbiaAnnualReportFormComponent], template: `<div class="annual-report-delta-form">\r
|
|
86352
|
-
<british-columbia-annual-report-form\r
|
|
86353
|
-
class="annual-report-delta-form-content"\r
|
|
86354
|
-
[form]="form()"\r
|
|
86355
|
-
[task]="task()"\r
|
|
86356
|
-
[errors]="combinedErrors()"\r
|
|
86357
|
-
[isNote]="isNote()"\r
|
|
86358
|
-
[isSubmitted]="submitted()"\r
|
|
86359
|
-
[statusIcon]="true"\r
|
|
86360
|
-
(visiblyValidChange)="onVisiblyValidChange($event)"\r
|
|
86361
|
-
/>\r
|
|
86362
|
-
\r
|
|
86363
|
-
<div class="annual-report-delta-form-actions">\r
|
|
86364
|
-
<button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
|
|
86365
|
-
<span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
|
|
86366
|
-
</button>\r
|
|
86367
|
-
<button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>\r
|
|
86368
|
-
<span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>\r
|
|
86369
|
-
</button>\r
|
|
86370
|
-
<button\r
|
|
86371
|
-
class="submit"\r
|
|
86372
|
-
color="primary"\r
|
|
86373
|
-
mat-flat-button\r
|
|
86374
|
-
[disabled]="actionsDisabled()"\r
|
|
86375
|
-
(click)="onValidate()"\r
|
|
86376
|
-
>\r
|
|
86377
|
-
<span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>\r
|
|
86378
|
-
</button>\r
|
|
86379
|
-
</div>\r
|
|
86380
|
-
</div>\r
|
|
86381
|
-
`, styles: ["/* src/app/components/british-columbia/annual-report/steps/delta/british-columbia-annual-report-delta-form.component.scss */\n:host .annual-report-delta-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .annual-report-delta-form-content {\n flex: 1;\n min-height: 0;\n}\n:host .annual-report-delta-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .annual-report-delta-form-actions button {\n margin: 0;\n}\n:host .annual-report-delta-form-actions .submit {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=british-columbia-annual-report-delta-form.component.css.map */\n"] }]
|
|
86382
|
-
}], null, null);
|
|
86383
|
-
})();
|
|
86384
|
-
(() => {
|
|
86385
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaAnnualReportDeltaFormComponent, { className: "BritishColumbiaAnnualReportDeltaFormComponent", filePath: "src/app/components/british-columbia/annual-report/steps/delta/british-columbia-annual-report-delta-form.component.ts", lineNumber: 25 });
|
|
86386
|
-
})();
|
|
86387
|
-
}
|
|
86388
|
-
});
|
|
86389
|
-
|
|
86390
|
-
// src/app/components/british-columbia/annual-report/steps/preview/british-columbia-annual-report-preview-form.component.ts
|
|
86391
|
-
var BritishColumbiaAnnualReportPreviewFormComponent;
|
|
86392
|
-
var init_british_columbia_annual_report_preview_form_component = __esm({
|
|
86393
|
-
"src/app/components/british-columbia/annual-report/steps/preview/british-columbia-annual-report-preview-form.component.ts"() {
|
|
86394
|
-
init_core();
|
|
86395
|
-
init_button();
|
|
86396
|
-
init_ngx_translate_core();
|
|
86397
|
-
init_british_columbia_annual_report_form_component();
|
|
86398
|
-
init_core();
|
|
86399
|
-
BritishColumbiaAnnualReportPreviewFormComponent = class _BritishColumbiaAnnualReportPreviewFormComponent {
|
|
86400
|
-
form = input.required();
|
|
86401
|
-
actionsDisabled = input(false);
|
|
86402
|
-
task = input();
|
|
86403
|
-
errors = input([]);
|
|
86404
|
-
close = output();
|
|
86405
|
-
file = output();
|
|
86406
|
-
static \u0275fac = function BritishColumbiaAnnualReportPreviewFormComponent_Factory(__ngFactoryType__) {
|
|
86407
|
-
return new (__ngFactoryType__ || _BritishColumbiaAnnualReportPreviewFormComponent)();
|
|
86408
|
-
};
|
|
86409
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaAnnualReportPreviewFormComponent, selectors: [["british-columbia-annual-report-preview-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", file: "file" }, decls: 11, vars: 12, consts: [[1, "annual-report-preview-form"], [1, "annual-report-preview-form-content", 3, "form", "task", "errors", "statusIcon"], [1, "annual-report-preview-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function BritishColumbiaAnnualReportPreviewFormComponent_Template(rf, ctx) {
|
|
86410
|
-
if (rf & 1) {
|
|
86411
|
-
\u0275\u0275elementStart(0, "div", 0);
|
|
86412
|
-
\u0275\u0275element(1, "british-columbia-annual-report-form", 1);
|
|
86413
|
-
\u0275\u0275elementStart(2, "div", 2)(3, "button", 3);
|
|
86414
|
-
\u0275\u0275listener("click", function BritishColumbiaAnnualReportPreviewFormComponent_Template_button_click_3_listener() {
|
|
86415
|
-
return ctx.close.emit();
|
|
86416
|
-
});
|
|
86417
|
-
\u0275\u0275elementStart(4, "span", 4);
|
|
86418
|
-
\u0275\u0275text(5);
|
|
86419
|
-
\u0275\u0275pipe(6, "translate");
|
|
86420
|
-
\u0275\u0275elementEnd()();
|
|
86421
|
-
\u0275\u0275elementStart(7, "button", 5);
|
|
86422
|
-
\u0275\u0275listener("click", function BritishColumbiaAnnualReportPreviewFormComponent_Template_button_click_7_listener() {
|
|
86423
|
-
return ctx.file.emit();
|
|
86424
|
-
});
|
|
86425
|
-
\u0275\u0275elementStart(8, "span", 4);
|
|
86426
|
-
\u0275\u0275text(9);
|
|
86427
|
-
\u0275\u0275pipe(10, "translate");
|
|
86428
|
-
\u0275\u0275elementEnd()()()();
|
|
86429
|
-
}
|
|
86430
|
-
if (rf & 2) {
|
|
86431
|
-
\u0275\u0275advance();
|
|
86432
|
-
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.errors())("statusIcon", false);
|
|
86433
|
-
\u0275\u0275advance(2);
|
|
86434
|
-
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
86435
|
-
\u0275\u0275advance(2);
|
|
86436
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 8, "Close"));
|
|
86437
|
-
\u0275\u0275advance(2);
|
|
86438
|
-
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
86439
|
-
\u0275\u0275advance(2);
|
|
86440
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 10, "File"));
|
|
86441
|
-
}
|
|
86442
|
-
}, dependencies: [MatButton, TranslatePipe, BritishColumbiaAnnualReportFormComponent], styles: ["\n\n[_nghost-%COMP%] .annual-report-preview-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .annual-report-preview-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .annual-report-preview-form-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n[_nghost-%COMP%] .annual-report-preview-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n/*# sourceMappingURL=british-columbia-annual-report-preview-form.component.css.map */"], changeDetection: 0 });
|
|
86443
85302
|
};
|
|
86444
|
-
(() => {
|
|
86445
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaAnnualReportPreviewFormComponent, [{
|
|
86446
|
-
type: Component,
|
|
86447
|
-
args: [{ standalone: true, selector: "british-columbia-annual-report-preview-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, TranslatePipe, BritishColumbiaAnnualReportFormComponent], template: `<div class="annual-report-preview-form">\r
|
|
86448
|
-
<british-columbia-annual-report-form\r
|
|
86449
|
-
class="annual-report-preview-form-content"\r
|
|
86450
|
-
[form]="form()"\r
|
|
86451
|
-
[task]="task()"\r
|
|
86452
|
-
[errors]="errors()"\r
|
|
86453
|
-
[statusIcon]="false"\r
|
|
86454
|
-
/>\r
|
|
86455
|
-
\r
|
|
86456
|
-
<div class="annual-report-preview-form-actions">\r
|
|
86457
|
-
<button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
|
|
86458
|
-
<span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
|
|
86459
|
-
</button>\r
|
|
86460
|
-
<button\r
|
|
86461
|
-
class="submit"\r
|
|
86462
|
-
color="primary"\r
|
|
86463
|
-
mat-flat-button\r
|
|
86464
|
-
[disabled]="actionsDisabled()"\r
|
|
86465
|
-
(click)="file.emit()"\r
|
|
86466
|
-
>\r
|
|
86467
|
-
<span class="body-1-semibold">{{ 'File' | translate }}</span>\r
|
|
86468
|
-
</button>\r
|
|
86469
|
-
</div>\r
|
|
86470
|
-
</div>\r
|
|
86471
|
-
`, styles: ["/* src/app/components/british-columbia/annual-report/steps/preview/british-columbia-annual-report-preview-form.component.scss */\n:host .annual-report-preview-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .annual-report-preview-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .annual-report-preview-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .annual-report-preview-form-actions button {\n margin: 0;\n}\n/*# sourceMappingURL=british-columbia-annual-report-preview-form.component.css.map */\n"] }]
|
|
86472
|
-
}], null, null);
|
|
86473
|
-
})();
|
|
86474
|
-
(() => {
|
|
86475
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaAnnualReportPreviewFormComponent, { className: "BritishColumbiaAnnualReportPreviewFormComponent", filePath: "src/app/components/british-columbia/annual-report/steps/preview/british-columbia-annual-report-preview-form.component.ts", lineNumber: 25 });
|
|
86476
|
-
})();
|
|
86477
85303
|
}
|
|
86478
85304
|
});
|
|
86479
85305
|
|
|
86480
85306
|
// src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
|
|
86481
|
-
var Controls3,
|
|
85307
|
+
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;
|
|
86482
85308
|
var init_british_columbia_change_of_directors_form_constants = __esm({
|
|
86483
85309
|
"src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
|
|
86484
85310
|
init_form_enums();
|
|
86485
85311
|
init_british_columbia_form_enums();
|
|
86486
85312
|
init_BritishColumbiaConstants();
|
|
86487
85313
|
Controls3 = BCChangeOfDirectorsFormControls;
|
|
86488
|
-
|
|
85314
|
+
labelledValue = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("Not specified")}`;
|
|
86489
85315
|
readOnlyRow = (label, control, className = "span-12") => ({
|
|
86490
85316
|
type: FormType.Text,
|
|
86491
85317
|
formControlName: control,
|
|
86492
85318
|
class: className,
|
|
86493
|
-
dynamicLabel: (form, t) =>
|
|
85319
|
+
dynamicLabel: (form, t) => labelledValue(label, form.get(control)?.value, t)
|
|
86494
85320
|
});
|
|
86495
85321
|
directorsAddedOrDeleted = (form) => Boolean(form.get(Controls3.DirectorsAddedOrDeleted)?.value);
|
|
86496
85322
|
isNotifyByMail = (form) => form.get(Controls3.NotificationMethod)?.value === BCNotificationMethod.Mail;
|
|
@@ -87110,14 +85936,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87110
85936
|
<strong>{{ 'Incorporation Number' | translate }}:</strong>\r
|
|
87111
85937
|
{{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
|
|
87112
85938
|
</p>\r
|
|
87113
|
-
<div class="company-email-field"
|
|
87114
|
-
<filing-form-group
|
|
87115
|
-
[form]="corporationDetails"
|
|
87116
|
-
[config]="companyEmailFields()"
|
|
87117
|
-
[isSubmitted]="isSubmitted()"
|
|
87118
|
-
(visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"
|
|
87119
|
-
|
|
87120
|
-
</div
|
|
85939
|
+
<div class="company-email-field">
|
|
85940
|
+
<filing-form-group
|
|
85941
|
+
[form]="corporationDetails"
|
|
85942
|
+
[config]="companyEmailFields()"
|
|
85943
|
+
[isSubmitted]="isSubmitted()"
|
|
85944
|
+
(visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"
|
|
85945
|
+
/>
|
|
85946
|
+
</div>
|
|
87121
85947
|
</div>\r
|
|
87122
85948
|
</expandable-card>\r
|
|
87123
85949
|
}\r
|
|
@@ -87141,28 +85967,28 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87141
85967
|
\r
|
|
87142
85968
|
<mat-checkbox\r
|
|
87143
85969
|
class="directors-change-checkbox"\r
|
|
87144
|
-
[formControlName]="controls.DirectorsAddedOrDeleted"
|
|
87145
|
-
(change)="
|
|
87146
|
-
filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false })
|
|
87147
|
-
onSectionValidChange('filingDetails', filingDetails.valid)
|
|
87148
|
-
"
|
|
85970
|
+
[formControlName]="controls.DirectorsAddedOrDeleted"
|
|
85971
|
+
(change)="
|
|
85972
|
+
filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
|
|
85973
|
+
onSectionValidChange('filingDetails', filingDetails.valid)
|
|
85974
|
+
"
|
|
87149
85975
|
>\r
|
|
87150
85976
|
{{ 'Directors will be added and/or deleted as part of this filing' | translate }}\r
|
|
87151
85977
|
</mat-checkbox>\r
|
|
87152
85978
|
\r
|
|
87153
85979
|
@if (filingDetails.get(controls.DirectorsAddedOrDeleted)?.value) {\r
|
|
87154
|
-
<div class="filing-details-grid"
|
|
87155
|
-
<div class="date-field"
|
|
87156
|
-
<p class="effective-date-description"
|
|
87157
|
-
{{
|
|
87158
|
-
'The date on which the individual(s) became or ceased to be a director:'
|
|
87159
|
-
| translate
|
|
87160
|
-
}}
|
|
87161
|
-
<strong>{{ getEffectiveDateDisplay(filingDetails.get(controls.ChangeDate)?.value) }}</strong
|
|
87162
|
-
</p
|
|
87163
|
-
</div
|
|
87164
|
-
|
|
87165
|
-
<p class="filing-fee"
|
|
85980
|
+
<div class="filing-details-grid">
|
|
85981
|
+
<div class="date-field">
|
|
85982
|
+
<p class="effective-date-description">
|
|
85983
|
+
{{
|
|
85984
|
+
'The date on which the individual(s) became or ceased to be a director:'
|
|
85985
|
+
| translate
|
|
85986
|
+
}}
|
|
85987
|
+
<strong>{{ getEffectiveDateDisplay(filingDetails.get(controls.ChangeDate)?.value) }}</strong>
|
|
85988
|
+
</p>
|
|
85989
|
+
</div>
|
|
85990
|
+
|
|
85991
|
+
<p class="filing-fee">
|
|
87166
85992
|
<strong>{{ 'Filing Fee' | translate }}:</strong>\r
|
|
87167
85993
|
{{ filingDetails.get(controls.FilingFee)?.value }}\r
|
|
87168
85994
|
</p>\r
|
|
@@ -87174,8 +86000,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87174
86000
|
\r
|
|
87175
86001
|
@let directorsArray = getFormArray(groups.Directors);\r
|
|
87176
86002
|
\r
|
|
87177
|
-
<expandable-card [isStatusIcon]="false" [title]="groups.Directors"
|
|
87178
|
-
@if (directorsArray && directorsArray.length) {
|
|
86003
|
+
<expandable-card [isStatusIcon]="false" [title]="groups.Directors">
|
|
86004
|
+
@if (directorsArray && directorsArray.length) {
|
|
87179
86005
|
<div class="directors-table" role="table">\r
|
|
87180
86006
|
<div class="directors-table-header" role="row">\r
|
|
87181
86007
|
<div role="columnheader">{{ 'Name' | translate }}</div>\r
|
|
@@ -87473,6 +86299,285 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87473
86299
|
}
|
|
87474
86300
|
});
|
|
87475
86301
|
|
|
86302
|
+
// src/app/constants/ui/british-columbia-formation-form.constants.ts
|
|
86303
|
+
var BC_NAME_TYPE_OPTIONS, labelledValue2, isNamed, BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_FORMATION_DELTA_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS, BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS, BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS, BC_FORMATION_CARD_FORM_RECORDS_OFFICE_FIELDS, BC_FORMATION_DELTA_CARD_FORM_COMPLETING_PARTY_FIELDS, BC_FORMATION_CARD_FORM_DIRECTORS_FIELDS, BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS;
|
|
86304
|
+
var init_british_columbia_formation_form_constants = __esm({
|
|
86305
|
+
"src/app/constants/ui/british-columbia-formation-form.constants.ts"() {
|
|
86306
|
+
init_form_enums();
|
|
86307
|
+
init_british_columbia_form_enums();
|
|
86308
|
+
init_BritishColumbiaConstants();
|
|
86309
|
+
init_british_columbia_formation_form_helper();
|
|
86310
|
+
BC_NAME_TYPE_OPTIONS = Object.values(BCNameType).filter((v) => typeof v === "number").map((v) => ({ label: BCNameTypeLabel[v], value: v }));
|
|
86311
|
+
labelledValue2 = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("None")}`;
|
|
86312
|
+
isNamed = (form) => form.get(BCFormationFormControls.CorporationNameType)?.value === BCNameType.Named;
|
|
86313
|
+
BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS = [
|
|
86314
|
+
{
|
|
86315
|
+
type: FormType.Input,
|
|
86316
|
+
label: "Client/Matter Number",
|
|
86317
|
+
formControlName: BCFormationFormControls.ClientMatterNumber
|
|
86318
|
+
},
|
|
86319
|
+
{
|
|
86320
|
+
type: FormType.Input,
|
|
86321
|
+
label: "Docket Number",
|
|
86322
|
+
formControlName: BCFormationFormControls.DocketNumber
|
|
86323
|
+
}
|
|
86324
|
+
];
|
|
86325
|
+
BC_FORMATION_DELTA_CARD_FORM_CORPORATION_DETAILS_FIELDS = [
|
|
86326
|
+
{
|
|
86327
|
+
type: FormType.Select,
|
|
86328
|
+
label: "Corporation Name Type",
|
|
86329
|
+
formControlName: BCFormationFormControls.CorporationNameType,
|
|
86330
|
+
required: true,
|
|
86331
|
+
options: BC_NAME_TYPE_OPTIONS,
|
|
86332
|
+
needTranslate: true,
|
|
86333
|
+
onChange: (form) => {
|
|
86334
|
+
form.get(BCFormationFormControls.CompanyName)?.updateValueAndValidity({ emitEvent: false });
|
|
86335
|
+
form.get(BCFormationFormControls.NameReservationNumber)?.updateValueAndValidity({ emitEvent: false });
|
|
86336
|
+
}
|
|
86337
|
+
},
|
|
86338
|
+
{
|
|
86339
|
+
type: FormType.Text,
|
|
86340
|
+
formControlName: "",
|
|
86341
|
+
class: "span-6 beside-select",
|
|
86342
|
+
// Numbered only: a Named company shows no preview of the typed name.
|
|
86343
|
+
isVisible: (form) => !isNamed(form),
|
|
86344
|
+
dynamicLabel: () => BC_NUMBERED_NAME_PREVIEW
|
|
86345
|
+
},
|
|
86346
|
+
{
|
|
86347
|
+
type: FormType.Input,
|
|
86348
|
+
label: "Proposed Corporate Name",
|
|
86349
|
+
formControlName: BCFormationFormControls.CompanyName,
|
|
86350
|
+
required: true,
|
|
86351
|
+
isVisible: isNamed,
|
|
86352
|
+
class: "column-3"
|
|
86353
|
+
},
|
|
86354
|
+
{
|
|
86355
|
+
type: FormType.Input,
|
|
86356
|
+
label: "Name Reservation #",
|
|
86357
|
+
formControlName: BCFormationFormControls.NameReservationNumber,
|
|
86358
|
+
required: true,
|
|
86359
|
+
maxLength: 9,
|
|
86360
|
+
errorMessage: "Enter a valid Name Reservation number (for example NR1234567)",
|
|
86361
|
+
showRequiredMessage: true,
|
|
86362
|
+
isVisible: isNamed,
|
|
86363
|
+
class: "span-6"
|
|
86364
|
+
},
|
|
86365
|
+
{
|
|
86366
|
+
type: FormType.Text,
|
|
86367
|
+
formControlName: BCFormationFormControls.RequestedDateForIncorporation,
|
|
86368
|
+
class: "span-12 spaced-text",
|
|
86369
|
+
dynamicLabel: (form, t) => labelledValue2("Requested Date for Incorporation", form.get(BCFormationFormControls.RequestedDateForIncorporation)?.value, t)
|
|
86370
|
+
},
|
|
86371
|
+
{
|
|
86372
|
+
type: FormType.Text,
|
|
86373
|
+
formControlName: BCFormationFormControls.IsFutureEffectiveDate,
|
|
86374
|
+
class: "span-12 fee-warning",
|
|
86375
|
+
isVisible: (form) => Boolean(form.get(BCFormationFormControls.IsFutureEffectiveDate)?.value),
|
|
86376
|
+
dynamicLabel: (_, t) => t("There is an additional fee of {{fee}} for an effective date in the future.").replace("{{fee}}", BC_FUTURE_EFFECTIVE_DATE_FEE)
|
|
86377
|
+
},
|
|
86378
|
+
{
|
|
86379
|
+
// Options are filled per task from `task.entity.emailOptions` by the incorporation form.
|
|
86380
|
+
type: FormType.Select,
|
|
86381
|
+
label: "Company Email",
|
|
86382
|
+
formControlName: BCFormationFormControls.CompanyEmail,
|
|
86383
|
+
required: true,
|
|
86384
|
+
options: [],
|
|
86385
|
+
class: "span-6"
|
|
86386
|
+
}
|
|
86387
|
+
// The company password is not shown: it is taken from the entity's registry ID.
|
|
86388
|
+
];
|
|
86389
|
+
BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS = [
|
|
86390
|
+
{
|
|
86391
|
+
type: FormType.Checkbox,
|
|
86392
|
+
label: "This company uses one or more translations of its name outside of Canada.",
|
|
86393
|
+
formControlName: BCFormationFormControls.UsesNameTranslation,
|
|
86394
|
+
class: "span-12",
|
|
86395
|
+
onChange: (form) => {
|
|
86396
|
+
const rows = form.get(BCFormationFormControls.NameTranslations);
|
|
86397
|
+
const enabled = Boolean(form.get(BCFormationFormControls.UsesNameTranslation)?.value);
|
|
86398
|
+
if (!rows) {
|
|
86399
|
+
return;
|
|
86400
|
+
}
|
|
86401
|
+
if (enabled && rows.length === 0) {
|
|
86402
|
+
rows.push(BritishColumbiaFormationFormHelper.createNameTranslationFormGroup());
|
|
86403
|
+
}
|
|
86404
|
+
if (!enabled) {
|
|
86405
|
+
rows.clear();
|
|
86406
|
+
}
|
|
86407
|
+
}
|
|
86408
|
+
},
|
|
86409
|
+
{
|
|
86410
|
+
type: FormType.Text,
|
|
86411
|
+
formControlName: "",
|
|
86412
|
+
class: "span-12",
|
|
86413
|
+
isVisible: (form) => Boolean(form.get(BCFormationFormControls.UsesNameTranslation)?.value),
|
|
86414
|
+
dynamicLabel: (_, t) => `<span class="body-1-semibold">${t("Note")}:</span> ${t("Name translations must use the Latin Alphabet (English, French, etc.). Names that use other writing systems must spell the name phonetically in English or French.")}`
|
|
86415
|
+
}
|
|
86416
|
+
];
|
|
86417
|
+
BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS = [
|
|
86418
|
+
{
|
|
86419
|
+
type: FormType.Input,
|
|
86420
|
+
label: "Name Translation",
|
|
86421
|
+
formControlName: BCFormationFormControls.NameTranslation,
|
|
86422
|
+
required: true,
|
|
86423
|
+
class: "span-6"
|
|
86424
|
+
}
|
|
86425
|
+
];
|
|
86426
|
+
BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS = [
|
|
86427
|
+
{
|
|
86428
|
+
type: FormType.Text,
|
|
86429
|
+
formControlName: BCFormationFormControls.MailingAddress,
|
|
86430
|
+
class: "span-12",
|
|
86431
|
+
dynamicLabel: (form, t) => labelledValue2("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
86432
|
+
},
|
|
86433
|
+
{
|
|
86434
|
+
type: FormType.Text,
|
|
86435
|
+
formControlName: BCFormationFormControls.DeliveryAddress,
|
|
86436
|
+
class: "span-12",
|
|
86437
|
+
dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value, t)
|
|
86438
|
+
}
|
|
86439
|
+
];
|
|
86440
|
+
BC_FORMATION_CARD_FORM_RECORDS_OFFICE_FIELDS = [
|
|
86441
|
+
{
|
|
86442
|
+
type: FormType.Text,
|
|
86443
|
+
formControlName: BCFormationFormControls.RecordsOfficeMailingAddress,
|
|
86444
|
+
class: "span-12",
|
|
86445
|
+
dynamicLabel: (form, t) => labelledValue2("Mailing Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeMailingAddress)?.value, t)
|
|
86446
|
+
},
|
|
86447
|
+
{
|
|
86448
|
+
type: FormType.Text,
|
|
86449
|
+
formControlName: BCFormationFormControls.RecordsOfficeDeliveryAddress,
|
|
86450
|
+
class: "span-12",
|
|
86451
|
+
dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeDeliveryAddress)?.value, t)
|
|
86452
|
+
}
|
|
86453
|
+
];
|
|
86454
|
+
BC_FORMATION_DELTA_CARD_FORM_COMPLETING_PARTY_FIELDS = [
|
|
86455
|
+
{
|
|
86456
|
+
type: FormType.Input,
|
|
86457
|
+
label: "First Name",
|
|
86458
|
+
formControlName: BCFormationFormControls.CompletingPartyFirstName,
|
|
86459
|
+
required: true,
|
|
86460
|
+
class: "column-3"
|
|
86461
|
+
},
|
|
86462
|
+
{
|
|
86463
|
+
type: FormType.Input,
|
|
86464
|
+
label: "Middle Name",
|
|
86465
|
+
formControlName: BCFormationFormControls.CompletingPartyMiddleName,
|
|
86466
|
+
class: "column-3"
|
|
86467
|
+
},
|
|
86468
|
+
{
|
|
86469
|
+
type: FormType.Input,
|
|
86470
|
+
label: "Last Name",
|
|
86471
|
+
formControlName: BCFormationFormControls.CompletingPartyLastName,
|
|
86472
|
+
required: true,
|
|
86473
|
+
class: "column-3"
|
|
86474
|
+
},
|
|
86475
|
+
{
|
|
86476
|
+
type: FormType.Input,
|
|
86477
|
+
inputType: "email",
|
|
86478
|
+
label: "Email",
|
|
86479
|
+
formControlName: BCFormationFormControls.CompletingPartyEmail,
|
|
86480
|
+
required: true,
|
|
86481
|
+
errorMessage: "Enter a valid email address",
|
|
86482
|
+
showRequiredMessage: true,
|
|
86483
|
+
class: "column-3"
|
|
86484
|
+
},
|
|
86485
|
+
{
|
|
86486
|
+
type: FormType.Text,
|
|
86487
|
+
formControlName: "",
|
|
86488
|
+
class: "span-12",
|
|
86489
|
+
dynamicLabel: (_, t) => t("A copy of the filed Incorporation Application is emailed to this address.")
|
|
86490
|
+
},
|
|
86491
|
+
{
|
|
86492
|
+
type: FormType.Input,
|
|
86493
|
+
label: "Street Address",
|
|
86494
|
+
formControlName: BCFormationFormControls.AddressLine1,
|
|
86495
|
+
required: true,
|
|
86496
|
+
class: "column-3"
|
|
86497
|
+
},
|
|
86498
|
+
{
|
|
86499
|
+
type: FormType.Input,
|
|
86500
|
+
label: "Additional Street Address",
|
|
86501
|
+
formControlName: BCFormationFormControls.AddressLine2,
|
|
86502
|
+
class: "column-3"
|
|
86503
|
+
},
|
|
86504
|
+
{
|
|
86505
|
+
type: FormType.Input,
|
|
86506
|
+
label: "City",
|
|
86507
|
+
formControlName: BCFormationFormControls.City,
|
|
86508
|
+
required: true,
|
|
86509
|
+
class: "column-2"
|
|
86510
|
+
},
|
|
86511
|
+
{
|
|
86512
|
+
type: FormType.Input,
|
|
86513
|
+
label: "Province / State",
|
|
86514
|
+
formControlName: BCFormationFormControls.ProvinceState,
|
|
86515
|
+
required: true,
|
|
86516
|
+
class: "column-2"
|
|
86517
|
+
},
|
|
86518
|
+
{
|
|
86519
|
+
type: FormType.Input,
|
|
86520
|
+
label: "Postal / Zip Code",
|
|
86521
|
+
formControlName: BCFormationFormControls.PostalZip,
|
|
86522
|
+
required: true,
|
|
86523
|
+
errorMessage: "Enter a valid Canadian postal code (for example V8W 1X4)",
|
|
86524
|
+
showRequiredMessage: true,
|
|
86525
|
+
class: "column-2"
|
|
86526
|
+
},
|
|
86527
|
+
{
|
|
86528
|
+
type: FormType.Select,
|
|
86529
|
+
label: "Country",
|
|
86530
|
+
formControlName: BCFormationFormControls.Country,
|
|
86531
|
+
required: true,
|
|
86532
|
+
options: BC_COMPLETING_PARTY_COUNTRY_OPTIONS,
|
|
86533
|
+
class: "span-4",
|
|
86534
|
+
// Province / State is required for Canada and the US, and the postal code format is Canada-only.
|
|
86535
|
+
onChange: (form) => {
|
|
86536
|
+
[BCFormationFormControls.ProvinceState, BCFormationFormControls.PostalZip].forEach((control) => form.get(control)?.updateValueAndValidity({ emitEvent: false }));
|
|
86537
|
+
}
|
|
86538
|
+
},
|
|
86539
|
+
{
|
|
86540
|
+
type: FormType.Checkbox,
|
|
86541
|
+
// Checkbox labels don't get the renderer's required asterisk, so it is added here (AC2).
|
|
86542
|
+
dynamicLabel: (_, t) => `${t("The Completing Party confirms they have examined the Articles and the Incorporation Agreement, and the signature requirements have been met.")} *`,
|
|
86543
|
+
formControlName: BCFormationFormControls.HasConfirmedCompletion,
|
|
86544
|
+
required: true,
|
|
86545
|
+
class: "span-12"
|
|
86546
|
+
},
|
|
86547
|
+
{
|
|
86548
|
+
type: FormType.Checkbox,
|
|
86549
|
+
// Checkbox labels don't get the renderer's required asterisk, so it is added here (AC2).
|
|
86550
|
+
dynamicLabel: (_, t) => `${t("I have a signed Incorporation Agreement and a set of Articles for the company to be incorporated.")} *`,
|
|
86551
|
+
formControlName: BCFormationFormControls.HasRequiredDocuments,
|
|
86552
|
+
required: true,
|
|
86553
|
+
class: "span-12"
|
|
86554
|
+
}
|
|
86555
|
+
];
|
|
86556
|
+
BC_FORMATION_CARD_FORM_DIRECTORS_FIELDS = [
|
|
86557
|
+
{
|
|
86558
|
+
type: FormType.Text,
|
|
86559
|
+
formControlName: BCFormationFormControls.MailingAddress,
|
|
86560
|
+
class: "span-12",
|
|
86561
|
+
dynamicLabel: (form, t) => labelledValue2("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
86562
|
+
},
|
|
86563
|
+
{
|
|
86564
|
+
type: FormType.Text,
|
|
86565
|
+
formControlName: BCFormationFormControls.DeliveryAddress,
|
|
86566
|
+
class: "span-12",
|
|
86567
|
+
dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value, t)
|
|
86568
|
+
}
|
|
86569
|
+
];
|
|
86570
|
+
BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS = [
|
|
86571
|
+
{
|
|
86572
|
+
type: FormType.Text,
|
|
86573
|
+
formControlName: BCFormationFormControls.FullAddress,
|
|
86574
|
+
class: "span-12",
|
|
86575
|
+
dynamicLabel: (form, t) => labelledValue2("Full Address", form.get(BCFormationFormControls.FullAddress)?.value, t)
|
|
86576
|
+
}
|
|
86577
|
+
];
|
|
86578
|
+
}
|
|
86579
|
+
});
|
|
86580
|
+
|
|
87476
86581
|
// src/app/components/british-columbia/incorporation/british-columbia-incorporation-form/british-columbia-incorporation-form.component.ts
|
|
87477
86582
|
function BritishColumbiaIncorporationFormComponent_Conditional_1_Template(rf, ctx) {
|
|
87478
86583
|
if (rf & 1) {
|
|
@@ -89545,52 +88650,52 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89545
88650
|
function BritishColumbiaComponent_Conditional_2_Conditional_0_Template(rf, ctx) {
|
|
89546
88651
|
if (rf & 1) {
|
|
89547
88652
|
const _r5 = \u0275\u0275getCurrentView();
|
|
89548
|
-
\u0275\u0275elementStart(0, "british-columbia-
|
|
89549
|
-
\u0275\u0275listener("validate", function
|
|
88653
|
+
\u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form", 6);
|
|
88654
|
+
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_validate_0_listener() {
|
|
89550
88655
|
\u0275\u0275restoreView(_r5);
|
|
89551
88656
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89552
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
89553
|
-
})("close", function
|
|
88657
|
+
return \u0275\u0275resetView(ctx_r1.onFormationValidate());
|
|
88658
|
+
})("close", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_close_0_listener() {
|
|
89554
88659
|
\u0275\u0275restoreView(_r5);
|
|
89555
88660
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89556
88661
|
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
89557
|
-
})("save", function
|
|
88662
|
+
})("save", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_save_0_listener() {
|
|
89558
88663
|
\u0275\u0275restoreView(_r5);
|
|
89559
88664
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89560
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
88665
|
+
return \u0275\u0275resetView(ctx_r1.onFormationSave());
|
|
89561
88666
|
});
|
|
89562
88667
|
\u0275\u0275elementEnd();
|
|
89563
88668
|
}
|
|
89564
88669
|
if (rf & 2) {
|
|
89565
88670
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89566
88671
|
const taskData_r3 = \u0275\u0275readContextLet(0);
|
|
89567
|
-
\u0275\u0275property("task", taskData_r3)("
|
|
88672
|
+
\u0275\u0275property("task", taskData_r3)("errors", ctx_r1.errors())("isNote", ctx_r1.isNote())("actionsDisabled", ctx_r1.actionsDisabled())("form", ctx_r1.deltaForm());
|
|
89568
88673
|
}
|
|
89569
88674
|
}
|
|
89570
88675
|
function BritishColumbiaComponent_Conditional_2_Conditional_1_Template(rf, ctx) {
|
|
89571
88676
|
if (rf & 1) {
|
|
89572
88677
|
const _r6 = \u0275\u0275getCurrentView();
|
|
89573
|
-
\u0275\u0275elementStart(0, "british-columbia-
|
|
89574
|
-
\u0275\u0275listener("
|
|
88678
|
+
\u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 7);
|
|
88679
|
+
\u0275\u0275listener("next", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_next_0_listener() {
|
|
89575
88680
|
\u0275\u0275restoreView(_r6);
|
|
89576
88681
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89577
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
89578
|
-
})("
|
|
88682
|
+
return \u0275\u0275resetView(ctx_r1.onFormationSubmit());
|
|
88683
|
+
})("close", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_close_0_listener() {
|
|
89579
88684
|
\u0275\u0275restoreView(_r6);
|
|
89580
88685
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89581
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
88686
|
+
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
89582
88687
|
});
|
|
89583
88688
|
\u0275\u0275elementEnd();
|
|
89584
88689
|
}
|
|
89585
88690
|
if (rf & 2) {
|
|
89586
88691
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89587
88692
|
const taskData_r3 = \u0275\u0275readContextLet(0);
|
|
89588
|
-
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("
|
|
88693
|
+
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("errors", ctx_r1.errors())("actionsDisabled", ctx_r1.actionsDisabled());
|
|
89589
88694
|
}
|
|
89590
88695
|
}
|
|
89591
88696
|
function BritishColumbiaComponent_Conditional_2_Template(rf, ctx) {
|
|
89592
88697
|
if (rf & 1) {
|
|
89593
|
-
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_2_Conditional_0_Template, 1, 5, "british-columbia-
|
|
88698
|
+
\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);
|
|
89594
88699
|
}
|
|
89595
88700
|
if (rf & 2) {
|
|
89596
88701
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
@@ -89602,75 +88707,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89602
88707
|
function BritishColumbiaComponent_Conditional_3_Conditional_0_Template(rf, ctx) {
|
|
89603
88708
|
if (rf & 1) {
|
|
89604
88709
|
const _r7 = \u0275\u0275getCurrentView();
|
|
89605
|
-
\u0275\u0275elementStart(0, "british-columbia-
|
|
89606
|
-
\u0275\u0275listener("validate", function
|
|
88710
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-delta-form", 2);
|
|
88711
|
+
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_validate_0_listener() {
|
|
89607
88712
|
\u0275\u0275restoreView(_r7);
|
|
89608
88713
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89609
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
89610
|
-
})("close", function
|
|
88714
|
+
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesValidate());
|
|
88715
|
+
})("close", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_close_0_listener() {
|
|
89611
88716
|
\u0275\u0275restoreView(_r7);
|
|
89612
88717
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89613
88718
|
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
89614
|
-
})("save", function
|
|
88719
|
+
})("save", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_save_0_listener() {
|
|
89615
88720
|
\u0275\u0275restoreView(_r7);
|
|
89616
88721
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89617
|
-
return \u0275\u0275resetView(ctx_r1.onFormationSave());
|
|
89618
|
-
});
|
|
89619
|
-
\u0275\u0275elementEnd();
|
|
89620
|
-
}
|
|
89621
|
-
if (rf & 2) {
|
|
89622
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89623
|
-
const taskData_r3 = \u0275\u0275readContextLet(0);
|
|
89624
|
-
\u0275\u0275property("task", taskData_r3)("errors", ctx_r1.errors())("isNote", ctx_r1.isNote())("actionsDisabled", ctx_r1.actionsDisabled())("form", ctx_r1.deltaForm());
|
|
89625
|
-
}
|
|
89626
|
-
}
|
|
89627
|
-
function BritishColumbiaComponent_Conditional_3_Conditional_1_Template(rf, ctx) {
|
|
89628
|
-
if (rf & 1) {
|
|
89629
|
-
const _r8 = \u0275\u0275getCurrentView();
|
|
89630
|
-
\u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 7);
|
|
89631
|
-
\u0275\u0275listener("next", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_incorporation_preview_form_next_0_listener() {
|
|
89632
|
-
\u0275\u0275restoreView(_r8);
|
|
89633
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89634
|
-
return \u0275\u0275resetView(ctx_r1.onFormationSubmit());
|
|
89635
|
-
})("close", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_incorporation_preview_form_close_0_listener() {
|
|
89636
|
-
\u0275\u0275restoreView(_r8);
|
|
89637
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89638
|
-
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
89639
|
-
});
|
|
89640
|
-
\u0275\u0275elementEnd();
|
|
89641
|
-
}
|
|
89642
|
-
if (rf & 2) {
|
|
89643
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89644
|
-
const taskData_r3 = \u0275\u0275readContextLet(0);
|
|
89645
|
-
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("errors", ctx_r1.errors())("actionsDisabled", ctx_r1.actionsDisabled());
|
|
89646
|
-
}
|
|
89647
|
-
}
|
|
89648
|
-
function BritishColumbiaComponent_Conditional_3_Template(rf, ctx) {
|
|
89649
|
-
if (rf & 1) {
|
|
89650
|
-
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_3_Conditional_0_Template, 1, 5, "british-columbia-incorporation-delta-form", 4)(1, BritishColumbiaComponent_Conditional_3_Conditional_1_Template, 1, 4, "british-columbia-incorporation-preview-form", 5);
|
|
89651
|
-
}
|
|
89652
|
-
if (rf & 2) {
|
|
89653
|
-
const ctx_r1 = \u0275\u0275nextContext();
|
|
89654
|
-
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.Validate ? 0 : -1);
|
|
89655
|
-
\u0275\u0275advance();
|
|
89656
|
-
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
|
|
89657
|
-
}
|
|
89658
|
-
}
|
|
89659
|
-
function BritishColumbiaComponent_Conditional_4_Conditional_0_Template(rf, ctx) {
|
|
89660
|
-
if (rf & 1) {
|
|
89661
|
-
const _r9 = \u0275\u0275getCurrentView();
|
|
89662
|
-
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-delta-form", 2);
|
|
89663
|
-
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_4_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_validate_0_listener() {
|
|
89664
|
-
\u0275\u0275restoreView(_r9);
|
|
89665
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89666
|
-
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesValidate());
|
|
89667
|
-
})("close", function BritishColumbiaComponent_Conditional_4_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_close_0_listener() {
|
|
89668
|
-
\u0275\u0275restoreView(_r9);
|
|
89669
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89670
|
-
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
89671
|
-
})("save", function BritishColumbiaComponent_Conditional_4_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_save_0_listener() {
|
|
89672
|
-
\u0275\u0275restoreView(_r9);
|
|
89673
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89674
88722
|
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesSave());
|
|
89675
88723
|
});
|
|
89676
88724
|
\u0275\u0275elementEnd();
|
|
@@ -89681,16 +88729,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89681
88729
|
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.deltaForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors())("isNote", ctx_r1.isNote());
|
|
89682
88730
|
}
|
|
89683
88731
|
}
|
|
89684
|
-
function
|
|
88732
|
+
function BritishColumbiaComponent_Conditional_3_Conditional_1_Template(rf, ctx) {
|
|
89685
88733
|
if (rf & 1) {
|
|
89686
|
-
const
|
|
88734
|
+
const _r8 = \u0275\u0275getCurrentView();
|
|
89687
88735
|
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-preview-form", 3);
|
|
89688
|
-
\u0275\u0275listener("close", function
|
|
89689
|
-
\u0275\u0275restoreView(
|
|
88736
|
+
\u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_close_0_listener() {
|
|
88737
|
+
\u0275\u0275restoreView(_r8);
|
|
89690
88738
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89691
88739
|
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
89692
|
-
})("file", function
|
|
89693
|
-
\u0275\u0275restoreView(
|
|
88740
|
+
})("file", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_file_0_listener() {
|
|
88741
|
+
\u0275\u0275restoreView(_r8);
|
|
89694
88742
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89695
88743
|
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesFile());
|
|
89696
88744
|
});
|
|
@@ -89702,9 +88750,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89702
88750
|
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors());
|
|
89703
88751
|
}
|
|
89704
88752
|
}
|
|
89705
|
-
function
|
|
88753
|
+
function BritishColumbiaComponent_Conditional_3_Template(rf, ctx) {
|
|
89706
88754
|
if (rf & 1) {
|
|
89707
|
-
\u0275\u0275template(0,
|
|
88755
|
+
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_3_Conditional_0_Template, 1, 5, "british-columbia-change-of-office-addresses-delta-form", 0)(1, BritishColumbiaComponent_Conditional_3_Conditional_1_Template, 1, 4, "british-columbia-change-of-office-addresses-preview-form", 1);
|
|
89708
88756
|
}
|
|
89709
88757
|
if (rf & 2) {
|
|
89710
88758
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
@@ -89723,15 +88771,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89723
88771
|
init_app_enums();
|
|
89724
88772
|
init_BritishColumbiaConstants();
|
|
89725
88773
|
init_british_columbia_form_enums();
|
|
89726
|
-
init_british_columbia_annual_report_form_helper();
|
|
89727
88774
|
init_british_columbia_change_of_directors_form_helper();
|
|
89728
88775
|
init_british_columbia_formation_form_helper();
|
|
89729
88776
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
89730
88777
|
init_delta_state_service();
|
|
89731
88778
|
init_common_utils();
|
|
89732
88779
|
init_confirm_modal_component();
|
|
89733
|
-
init_british_columbia_annual_report_delta_form_component();
|
|
89734
|
-
init_british_columbia_annual_report_preview_form_component();
|
|
89735
88780
|
init_change_of_directors_delta_form_component();
|
|
89736
88781
|
init_change_of_directors_preview_form_component();
|
|
89737
88782
|
init_british_columbia_incorporation_delta_form_component();
|
|
@@ -89757,10 +88802,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89757
88802
|
nextStep = output();
|
|
89758
88803
|
recheckStep = output();
|
|
89759
88804
|
prevStep = output();
|
|
89760
|
-
// Annual Report outputs
|
|
89761
|
-
arValidate = output();
|
|
89762
|
-
saveArDeltaData = output();
|
|
89763
|
-
arSubmit = output();
|
|
89764
88805
|
// Change of Office Addresses outputs
|
|
89765
88806
|
coaValidate = output();
|
|
89766
88807
|
saveCoaDeltaData = output();
|
|
@@ -89771,7 +88812,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89771
88812
|
steps = Step;
|
|
89772
88813
|
isChangeOfDirectorsTask = isChangeOfPrincipalsTask;
|
|
89773
88814
|
isFormationTask = isFormationTask2;
|
|
89774
|
-
isAnnualReportTask = isAnnualReturnTask;
|
|
89775
88815
|
isChangeOfOfficeAddressesTask = isChangeOfAddressTask;
|
|
89776
88816
|
deltaForm = signal(new FormGroup({}));
|
|
89777
88817
|
previewForm = signal(new FormGroup({}));
|
|
@@ -89790,12 +88830,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89790
88830
|
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key))));
|
|
89791
88831
|
this.deltaState.setBCChangeOfOfficeAddressesInitialDelta(this.generateChangeOfOfficeAddressesDeltaData());
|
|
89792
88832
|
}
|
|
89793
|
-
if (task && isAnnualReturnTask(task)) {
|
|
89794
|
-
untracked2(() => {
|
|
89795
|
-
this.deltaForm.set(new FormGroup(BritishColumbiaAnnualReportFormHelper.generateConfig(task)));
|
|
89796
|
-
this.deltaState.setBCAnnualReportInitialDelta(this.generateAnnualReportDeltaData());
|
|
89797
|
-
});
|
|
89798
|
-
}
|
|
89799
88833
|
});
|
|
89800
88834
|
effect(() => {
|
|
89801
88835
|
const task = this.task();
|
|
@@ -89819,14 +88853,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89819
88853
|
this.nextStep.emit();
|
|
89820
88854
|
}
|
|
89821
88855
|
}
|
|
89822
|
-
if (isAnnualReturnTask(task)) {
|
|
89823
|
-
const form = new FormGroup(BritishColumbiaAnnualReportFormHelper.generateConfig(task));
|
|
89824
|
-
form.disable();
|
|
89825
|
-
this.previewForm.set(form);
|
|
89826
|
-
if (untracked2(() => this.activeStep()) === Step.Validate) {
|
|
89827
|
-
this.nextStep.emit();
|
|
89828
|
-
}
|
|
89829
|
-
}
|
|
89830
88856
|
if (task && isChangeOfAddressTask(task) && deltaData) {
|
|
89831
88857
|
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
|
|
89832
88858
|
form.disable();
|
|
@@ -89840,33 +88866,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89840
88866
|
}
|
|
89841
88867
|
});
|
|
89842
88868
|
}
|
|
89843
|
-
onAnnualReportValidate() {
|
|
89844
|
-
markFormGroupTouched(this.deltaForm());
|
|
89845
|
-
this.arValidate.emit(this.generateAnnualReportDeltaData());
|
|
89846
|
-
}
|
|
89847
|
-
onAnnualReportSave() {
|
|
89848
|
-
const delta = this.generateAnnualReportDeltaData();
|
|
89849
|
-
this.deltaState.setBCAnnualReportInitialDelta(delta);
|
|
89850
|
-
this.saveArDeltaData.emit(delta);
|
|
89851
|
-
}
|
|
89852
|
-
/** No certification step for this filing: "File" submits the staged draft directly. */
|
|
89853
|
-
onAnnualReportSubmit() {
|
|
89854
|
-
this.arSubmit.emit();
|
|
89855
|
-
}
|
|
89856
|
-
generateAnnualReportDeltaData() {
|
|
89857
|
-
const formData = this.deltaForm().getRawValue();
|
|
89858
|
-
const general = formData[BCAnnualReportFormGroups.General];
|
|
89859
|
-
const companyEmail = formData[BCAnnualReportFormGroups.CompanyEmail];
|
|
89860
|
-
const reminder = formData[BCAnnualReportFormGroups.AnnualReportReminder];
|
|
89861
|
-
return {
|
|
89862
|
-
referenceNumbers: {
|
|
89863
|
-
referenceNumber: general?.[BCAnnualReportFormControls.ClientMatterNumber] ?? null,
|
|
89864
|
-
docketNumber: general?.[BCAnnualReportFormControls.DocketNumber] ?? null
|
|
89865
|
-
},
|
|
89866
|
-
companyEmail: companyEmail?.[BCAnnualReportFormControls.CompanyEmail] ?? null,
|
|
89867
|
-
isAnnualReportReminderRequired: Boolean(reminder?.[BCAnnualReportFormControls.IsAnnualReportReminderRequired])
|
|
89868
|
-
};
|
|
89869
|
-
}
|
|
89870
88869
|
onChangeOfOfficeAddressesValidate() {
|
|
89871
88870
|
markFormGroupTouched(this.deltaForm());
|
|
89872
88871
|
this.coaValidate.emit(this.generateChangeOfOfficeAddressesDeltaData());
|
|
@@ -89969,7 +88968,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89969
88968
|
annualReportReminder: reminder?.[c.AnnualReportReminder] ?? null,
|
|
89970
88969
|
directorChanges: {
|
|
89971
88970
|
addIds: directors.filter((d) => d[c.AffiliationType] === "Add").map((d) => d[c.Id]).filter(Boolean),
|
|
89972
|
-
editIds: directors.filter((d) => d[c.AffiliationType] === "Update").map((d) => d[c.Id]).filter(Boolean),
|
|
88971
|
+
editIds: directors.filter((d) => d[c.AffiliationType] === "Update" || !d[c.AffiliationType]).map((d) => d[c.Id]).filter(Boolean),
|
|
89973
88972
|
ceaseIds: directors.filter((d) => d[c.AffiliationType] === "Cease").map((d) => d[c.Id]).filter(Boolean)
|
|
89974
88973
|
}
|
|
89975
88974
|
};
|
|
@@ -90018,7 +89017,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90018
89017
|
}
|
|
90019
89018
|
onClose() {
|
|
90020
89019
|
const task = this.task();
|
|
90021
|
-
const hasChanges = task &&
|
|
89020
|
+
const hasChanges = task && isFormationTask2(task) ? !deepEqual(this.deltaState.bcFormationInitialDelta(), this.generateFormationDeltaData()) : task && isChangeOfAddressTask(task) ? !deepEqual(this.deltaState.bcChangeOfOfficeAddressesInitialDelta(), this.generateChangeOfOfficeAddressesDeltaData()) : !deepEqual(this.deltaState.bcChangeOfDirectorsInitialDelta(), this.generateChangeOfDirectorsDeltaData());
|
|
90022
89021
|
if (!hasChanges) {
|
|
90023
89022
|
this.close.emit();
|
|
90024
89023
|
return;
|
|
@@ -90034,9 +89033,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90034
89033
|
width: "65rem"
|
|
90035
89034
|
}).afterClosed().subscribe((val) => {
|
|
90036
89035
|
if (val) {
|
|
90037
|
-
if (task &&
|
|
90038
|
-
this.onAnnualReportSave();
|
|
90039
|
-
} else if (task && isFormationTask2(task)) {
|
|
89036
|
+
if (task && isFormationTask2(task)) {
|
|
90040
89037
|
this.onFormationSave();
|
|
90041
89038
|
} else if (task && isChangeOfAddressTask(task)) {
|
|
90042
89039
|
this.onChangeOfOfficeAddressesSave();
|
|
@@ -90050,25 +89047,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90050
89047
|
static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
|
|
90051
89048
|
return new (__ngFactoryType__ || _BritishColumbiaComponent)();
|
|
90052
89049
|
};
|
|
90053
|
-
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",
|
|
89050
|
+
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) {
|
|
90054
89051
|
if (rf & 1) {
|
|
90055
89052
|
\u0275\u0275declareLet(0);
|
|
90056
|
-
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2)(3, BritishColumbiaComponent_Conditional_3_Template, 2, 2)
|
|
89053
|
+
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2)(3, BritishColumbiaComponent_Conditional_3_Template, 2, 2);
|
|
90057
89054
|
}
|
|
90058
89055
|
if (rf & 2) {
|
|
90059
|
-
const
|
|
90060
|
-
\u0275\u0275advance();
|
|
90061
|
-
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r11) ? 1 : -1);
|
|
89056
|
+
const taskData_r9 = \u0275\u0275storeLet(ctx.task());
|
|
90062
89057
|
\u0275\u0275advance();
|
|
90063
|
-
\u0275\u0275conditional(ctx.
|
|
89058
|
+
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r9) ? 1 : -1);
|
|
90064
89059
|
\u0275\u0275advance();
|
|
90065
|
-
\u0275\u0275conditional(ctx.isFormationTask(
|
|
89060
|
+
\u0275\u0275conditional(ctx.isFormationTask(taskData_r9) ? 2 : -1);
|
|
90066
89061
|
\u0275\u0275advance();
|
|
90067
|
-
\u0275\u0275conditional(ctx.isChangeOfOfficeAddressesTask(
|
|
89062
|
+
\u0275\u0275conditional(ctx.isChangeOfOfficeAddressesTask(taskData_r9) ? 3 : -1);
|
|
90068
89063
|
}
|
|
90069
89064
|
}, dependencies: [
|
|
90070
|
-
BritishColumbiaAnnualReportDeltaFormComponent,
|
|
90071
|
-
BritishColumbiaAnnualReportPreviewFormComponent,
|
|
90072
89065
|
BritishColumbiaChangeOfDirectorsDeltaFormComponent,
|
|
90073
89066
|
BritishColumbiaChangeOfDirectorsPreviewFormComponent,
|
|
90074
89067
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
@@ -90081,19 +89074,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90081
89074
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaComponent, [{
|
|
90082
89075
|
type: Component,
|
|
90083
89076
|
args: [{ standalone: true, selector: "british-columbia", changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
90084
|
-
BritishColumbiaAnnualReportDeltaFormComponent,
|
|
90085
|
-
BritishColumbiaAnnualReportPreviewFormComponent,
|
|
90086
89077
|
BritishColumbiaChangeOfDirectorsDeltaFormComponent,
|
|
90087
89078
|
BritishColumbiaChangeOfDirectorsPreviewFormComponent,
|
|
90088
89079
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
90089
89080
|
BritishColumbiaIncorporationPreviewFormComponent,
|
|
90090
89081
|
BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent,
|
|
90091
89082
|
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
90092
|
-
], 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 (
|
|
89083
|
+
], 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"] }]
|
|
90093
89084
|
}], () => [], null);
|
|
90094
89085
|
})();
|
|
90095
89086
|
(() => {
|
|
90096
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber:
|
|
89087
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber: 72 });
|
|
90097
89088
|
})();
|
|
90098
89089
|
}
|
|
90099
89090
|
});
|
|
@@ -96316,10 +95307,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96316
95307
|
/**
|
|
96317
95308
|
* Orders the corporation's current data extract and waits until it is ready, returning the
|
|
96318
95309
|
* `currentDataServiceOrderId` that Validate Filing needs. The registry bot can take a while,
|
|
96319
|
-
* so the extract is polled every `intervalMs`
|
|
95310
|
+
* so the extract is polled every `intervalMs` until the registry returns a terminal status.
|
|
96320
95311
|
*/
|
|
96321
95312
|
ensureCurrentDataExtract(_0, _1) {
|
|
96322
|
-
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3
|
|
95313
|
+
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3 } = {}) {
|
|
96323
95314
|
ensureAuthInputs(signature);
|
|
96324
95315
|
const fetchFn = opts.fetchImpl ?? fetch;
|
|
96325
95316
|
const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
|
|
@@ -96333,7 +95324,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96333
95324
|
errors: ordered.errors?.length ? ordered.errors : (ordered.additionalInformation ?? []).map((message) => ({ message }))
|
|
96334
95325
|
}));
|
|
96335
95326
|
}
|
|
96336
|
-
for (
|
|
95327
|
+
for (; ; ) {
|
|
96337
95328
|
const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
|
|
96338
95329
|
method: "GET",
|
|
96339
95330
|
headers: __spreadValues({
|
|
@@ -96352,7 +95343,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96352
95343
|
}
|
|
96353
95344
|
yield new Promise((resolve) => setTimeout(resolve, intervalMs));
|
|
96354
95345
|
}
|
|
96355
|
-
throw new Error("BC current data extract is still processing. Please try again in a moment.");
|
|
96356
95346
|
});
|
|
96357
95347
|
}
|
|
96358
95348
|
getCurrentDataExtract() {
|
|
@@ -96474,14 +95464,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96474
95464
|
});
|
|
96475
95465
|
|
|
96476
95466
|
// src/app/helpers/mappers/british-columbia-change-of-directors.mapper.ts
|
|
96477
|
-
function
|
|
95467
|
+
function getBritishColumbiaAccessCode(task, password) {
|
|
96478
95468
|
return password?.trim() || task.entity._profile.registry_id?.trim() || "";
|
|
96479
95469
|
}
|
|
96480
95470
|
function buildBritishColumbiaDataExtractOrder(task, password) {
|
|
96481
95471
|
const incorporationDate = toYyyyMmDd(task.entity._compliance.incorporation_date) ?? "";
|
|
96482
95472
|
const request = {
|
|
96483
95473
|
corporationNumber: task.entity._profile.corp_number?.trim() ?? "",
|
|
96484
|
-
accessCodeOrPassword:
|
|
95474
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode(task, password),
|
|
96485
95475
|
incorporationDate: /^\d{4}-\d{2}-\d{2}$/.test(incorporationDate) ? incorporationDate : "",
|
|
96486
95476
|
filingType: "changeOfDirectorsFiling"
|
|
96487
95477
|
};
|
|
@@ -96525,7 +95515,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96525
95515
|
currentDataServiceOrderId,
|
|
96526
95516
|
filing: __spreadProps(__spreadValues({
|
|
96527
95517
|
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
96528
|
-
accessCodeOrPassword:
|
|
95518
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode(task),
|
|
96529
95519
|
reference: deltaData.referenceNumbers.referenceNumber ?? null,
|
|
96530
95520
|
docket: deltaData.referenceNumbers.docketNumber ?? null
|
|
96531
95521
|
}, (addDirectors.length || ceaseDirectors.length) && effectiveDate ? { effectiveDate } : {}), {
|
|
@@ -96633,12 +95623,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96633
95623
|
});
|
|
96634
95624
|
|
|
96635
95625
|
// src/app/services/british-columbia/british-columbia-maintenance.service.ts
|
|
96636
|
-
|
|
96637
|
-
const result = error?.validateResult;
|
|
96638
|
-
const fromResult = (result?.Errors ?? []).some((e) => e.Code === EXTRACT_NOT_COMPLETED_CODE || EXTRACT_NOT_COMPLETED_MESSAGE.test(e.Message ?? ""));
|
|
96639
|
-
return fromResult || EXTRACT_NOT_COMPLETED_MESSAGE.test(error?.message ?? "");
|
|
96640
|
-
}
|
|
96641
|
-
var MAINTENANCE_FILING_PATH, TEMP_UAT_BC_FILING_URL2, DATA_EXTRACT_PATH, DEFAULT_EXTRACT_POLL, DEFAULT_RESULT_POLL, DEFAULT_VALIDATE_RETRY, EXTRACT_NOT_COMPLETED_CODE, EXTRACT_NOT_COMPLETED_MESSAGE, BritishColumbiaMaintenanceService;
|
|
95626
|
+
var MAINTENANCE_FILING_PATH, TEMP_UAT_BC_FILING_URL2, DATA_EXTRACT_PATH, DEFAULT_EXTRACT_POLL, DEFAULT_RESULT_POLL, BritishColumbiaMaintenanceService;
|
|
96642
95627
|
var init_british_columbia_maintenance_service = __esm({
|
|
96643
95628
|
"src/app/services/british-columbia/british-columbia-maintenance.service.ts"() {
|
|
96644
95629
|
init_core();
|
|
@@ -96649,9 +95634,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96649
95634
|
DATA_EXTRACT_PATH = "/filings/ca/bc/data-extract";
|
|
96650
95635
|
DEFAULT_EXTRACT_POLL = { intervalMs: 3e3, timeoutMs: 6e5 };
|
|
96651
95636
|
DEFAULT_RESULT_POLL = { intervalMs: 3e3, timeoutMs: 6e5 };
|
|
96652
|
-
DEFAULT_VALIDATE_RETRY = { intervalMs: 3e3, timeoutMs: 12e4 };
|
|
96653
|
-
EXTRACT_NOT_COMPLETED_CODE = "SVC1031";
|
|
96654
|
-
EXTRACT_NOT_COMPLETED_MESSAGE = /extract has not completed/i;
|
|
96655
95637
|
BritishColumbiaMaintenanceService = class _BritishColumbiaMaintenanceService {
|
|
96656
95638
|
config;
|
|
96657
95639
|
setConfig(config2) {
|
|
@@ -96664,7 +95646,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96664
95646
|
corporationNumber: context2.corporationNumber,
|
|
96665
95647
|
accessCodeOrPassword: context2.accessCodeOrPassword,
|
|
96666
95648
|
incorporationDate: context2.incorporationDate,
|
|
96667
|
-
filingType:
|
|
95649
|
+
filingType: "changeOfAddressFiling"
|
|
96668
95650
|
}, opts);
|
|
96669
95651
|
const id = body?.currentDataServiceOrderId ?? body?.CurrentDataServiceOrderId;
|
|
96670
95652
|
if (!ok || !id || String(body?.status ?? "").toLowerCase() === "failed") {
|
|
@@ -96700,23 +95682,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96700
95682
|
* saved request used to detect Entity changes.
|
|
96701
95683
|
*/
|
|
96702
95684
|
validate(_0, _1, _2, _3) {
|
|
96703
|
-
return __async(this, arguments, function* (signature, requestBody, extractId, context2, opts = {}
|
|
96704
|
-
const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_VALIDATE_RETRY), retry);
|
|
96705
|
-
const deadline = Date.now() + timeoutMs;
|
|
96706
|
-
for (; ; ) {
|
|
96707
|
-
try {
|
|
96708
|
-
return yield this.validateOnce(signature, requestBody, extractId, context2, opts);
|
|
96709
|
-
} catch (error) {
|
|
96710
|
-
if (!isExtractNotCompleted(error) || Date.now() >= deadline) {
|
|
96711
|
-
throw error;
|
|
96712
|
-
}
|
|
96713
|
-
yield this.sleep(intervalMs);
|
|
96714
|
-
}
|
|
96715
|
-
}
|
|
96716
|
-
});
|
|
96717
|
-
}
|
|
96718
|
-
validateOnce(signature, requestBody, extractId, context2, opts) {
|
|
96719
|
-
return __async(this, null, function* () {
|
|
95685
|
+
return __async(this, arguments, function* (signature, requestBody, extractId, context2, opts = {}) {
|
|
96720
95686
|
const { status, ok, body, raw } = yield this.send(signature, "POST", MAINTENANCE_FILING_PATH, {
|
|
96721
95687
|
currentDataServiceOrderId: extractId,
|
|
96722
95688
|
filingType: requestBody.filingType,
|
|
@@ -96866,6 +95832,83 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96866
95832
|
}
|
|
96867
95833
|
});
|
|
96868
95834
|
|
|
95835
|
+
// src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts
|
|
95836
|
+
function formatPostalCode(value) {
|
|
95837
|
+
const compact = clean(value).replace(/[\s-]+/g, "").toUpperCase();
|
|
95838
|
+
return compact.length === 6 ? `${compact.slice(0, 3)} ${compact.slice(3)}` : clean(value).toUpperCase();
|
|
95839
|
+
}
|
|
95840
|
+
function toEcoreAddress(address) {
|
|
95841
|
+
const line2 = clean(address?.addressLine2);
|
|
95842
|
+
return __spreadProps(__spreadValues({
|
|
95843
|
+
streetAddress: clean(address?.addressLine1)
|
|
95844
|
+
}, line2 ? { additionalStreetAddress: line2 } : {}), {
|
|
95845
|
+
city: clean(address?.city),
|
|
95846
|
+
provinceOrState: BC_PROVINCE_CODE,
|
|
95847
|
+
postalOrZipCode: formatPostalCode(address?.postalCode),
|
|
95848
|
+
country: CANADA_COUNTRY_CODE
|
|
95849
|
+
});
|
|
95850
|
+
}
|
|
95851
|
+
function isSameAddress(a, b) {
|
|
95852
|
+
const key = (x) => [x.streetAddress, x.additionalStreetAddress, x.city, x.provinceOrState, x.postalOrZipCode, x.country].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
95853
|
+
return key(a) === key(b);
|
|
95854
|
+
}
|
|
95855
|
+
function buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData) {
|
|
95856
|
+
const registered = deltaData.registeredOffice;
|
|
95857
|
+
const records = deltaData.recordsOffice;
|
|
95858
|
+
const registeredMailing = toEcoreAddress(registered?.mailingAddress);
|
|
95859
|
+
const registeredDelivery = registered?.deliverySameAsMailing ? registeredMailing : toEcoreAddress(registered?.deliveryAddress);
|
|
95860
|
+
const recordsMailing = records?.sameAsRegisteredOffice ? registeredMailing : toEcoreAddress(records?.mailingAddress);
|
|
95861
|
+
const recordsDelivery = records?.sameAsRegisteredOffice ? registeredDelivery : records?.deliverySameAsMailing ? recordsMailing : toEcoreAddress(records?.deliveryAddress);
|
|
95862
|
+
const registeredDeliverySame = isSameAddress(registeredDelivery, registeredMailing);
|
|
95863
|
+
const recordsSameAsRegistered = isSameAddress(recordsMailing, registeredMailing);
|
|
95864
|
+
const recordsDeliverySame = isSameAddress(recordsDelivery, recordsMailing);
|
|
95865
|
+
const filing = {
|
|
95866
|
+
registeredOfficeMailingAddress: registeredMailing,
|
|
95867
|
+
isRegisteredOfficeDeliveryAddressSameAsMailing: registeredDeliverySame,
|
|
95868
|
+
isRecordsOfficeMailingAddressSameAsRegisteredOfficeMailing: recordsSameAsRegistered,
|
|
95869
|
+
isRecordsOfficeDeliveryAddressSameAsRecordsOfficeMailing: recordsDeliverySame,
|
|
95870
|
+
// Both are picked on the form; the fallbacks only cover data saved before they were added.
|
|
95871
|
+
companyEmail: clean(deltaData.companyEmail) || BritishColumbiaChangeOfOfficeAddressesFormHelper.resolveCompanyEmail(task),
|
|
95872
|
+
isAnnualReportReminderRequired: deltaData.annualReportReminder === BCAnnualReportReminder.Yes
|
|
95873
|
+
};
|
|
95874
|
+
const reference = clean(deltaData.referenceNumbers?.referenceNumber);
|
|
95875
|
+
const docket = clean(deltaData.referenceNumbers?.docketNumber);
|
|
95876
|
+
if (reference) {
|
|
95877
|
+
filing.reference = reference;
|
|
95878
|
+
}
|
|
95879
|
+
if (docket) {
|
|
95880
|
+
filing.docket = docket;
|
|
95881
|
+
}
|
|
95882
|
+
if (!registeredDeliverySame) {
|
|
95883
|
+
filing.registeredOfficeDeliveryAddress = registeredDelivery;
|
|
95884
|
+
}
|
|
95885
|
+
if (!recordsSameAsRegistered) {
|
|
95886
|
+
filing.recordsOfficeMailingAddress = recordsMailing;
|
|
95887
|
+
}
|
|
95888
|
+
if (!recordsDeliverySame) {
|
|
95889
|
+
filing.recordsOfficeDeliveryAddress = recordsDelivery;
|
|
95890
|
+
}
|
|
95891
|
+
return { filingType: "changeOfAddressFiling", filing };
|
|
95892
|
+
}
|
|
95893
|
+
function getBritishColumbiaAccessCode2(task, env) {
|
|
95894
|
+
const registryId = task.entity._profile.registry_id?.trim() ?? "";
|
|
95895
|
+
if (registryId) {
|
|
95896
|
+
return registryId;
|
|
95897
|
+
}
|
|
95898
|
+
return env === "TEST" ? TEMP_UAT_TEST_ACCESS_CODE : "";
|
|
95899
|
+
}
|
|
95900
|
+
var TEMP_UAT_TEST_ACCESS_CODE, BC_PROVINCE_CODE, CANADA_COUNTRY_CODE, clean;
|
|
95901
|
+
var init_british_columbia_change_of_office_addresses_mapper = __esm({
|
|
95902
|
+
"src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
|
|
95903
|
+
init_BritishColumbiaConstants();
|
|
95904
|
+
init_british_columbia_change_of_office_addresses_form_helper();
|
|
95905
|
+
TEMP_UAT_TEST_ACCESS_CODE = "12345678";
|
|
95906
|
+
BC_PROVINCE_CODE = "BC";
|
|
95907
|
+
CANADA_COUNTRY_CODE = "CA";
|
|
95908
|
+
clean = (value) => (value ?? "").trim();
|
|
95909
|
+
}
|
|
95910
|
+
});
|
|
95911
|
+
|
|
96869
95912
|
// src/app/components/filing/filing.component.ts
|
|
96870
95913
|
function FilingComponent_Conditional_7_Template(rf, ctx) {
|
|
96871
95914
|
if (rf & 1) {
|
|
@@ -96981,18 +96024,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96981
96024
|
\u0275\u0275restoreView(_r6);
|
|
96982
96025
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
96983
96026
|
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfOfficeAddressesSubmit());
|
|
96984
|
-
})("arValidate", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_arValidate_0_listener($event) {
|
|
96985
|
-
\u0275\u0275restoreView(_r6);
|
|
96986
|
-
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
96987
|
-
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaAnnualReportValidate($event));
|
|
96988
|
-
})("saveArDeltaData", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_saveArDeltaData_0_listener($event) {
|
|
96989
|
-
\u0275\u0275restoreView(_r6);
|
|
96990
|
-
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
96991
|
-
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaAnnualReportSave($event));
|
|
96992
|
-
})("arSubmit", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_arSubmit_0_listener() {
|
|
96993
|
-
\u0275\u0275restoreView(_r6);
|
|
96994
|
-
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
96995
|
-
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaAnnualReportSubmit());
|
|
96996
96027
|
})("formationValidate", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_formationValidate_0_listener($event) {
|
|
96997
96028
|
\u0275\u0275restoreView(_r6);
|
|
96998
96029
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
@@ -97099,7 +96130,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97099
96130
|
init_federal_update_maintain_service();
|
|
97100
96131
|
init_ontario_update_maintain_service();
|
|
97101
96132
|
init_initial_return_payload_helper();
|
|
97102
|
-
init_british_columbia_annual_report_mapper();
|
|
97103
96133
|
init_ontario_formation_mapper();
|
|
97104
96134
|
init_federal_formation_mapper();
|
|
97105
96135
|
init_ontario_update_maintain_mapper();
|
|
@@ -97204,7 +96234,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97204
96234
|
return `File ${jurisdiction} Notice of Change`;
|
|
97205
96235
|
}
|
|
97206
96236
|
if (isAnnualReturnTask(task)) {
|
|
97207
|
-
return
|
|
96237
|
+
return `File ${jurisdiction} Annual Return`;
|
|
97208
96238
|
}
|
|
97209
96239
|
if (isFormationTask2(task)) {
|
|
97210
96240
|
return `File ${jurisdiction} Articles of Incorporation`;
|
|
@@ -97484,10 +96514,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97484
96514
|
const signature = this._signature();
|
|
97485
96515
|
if (signature) {
|
|
97486
96516
|
const requestBody = buildBCFormationValidateRequest(signature.task, deltaData);
|
|
97487
|
-
const issues =
|
|
97488
|
-
...findBCOfficeAddressIssues(signature.task),
|
|
97489
|
-
...findBCRequestIssues(requestBody)
|
|
97490
|
-
];
|
|
96517
|
+
const issues = findBCRequestIssues(requestBody);
|
|
97491
96518
|
if (issues.length) {
|
|
97492
96519
|
this.errors.set(issues);
|
|
97493
96520
|
return;
|
|
@@ -97560,99 +96587,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97560
96587
|
}
|
|
97561
96588
|
});
|
|
97562
96589
|
}
|
|
97563
|
-
/**
|
|
97564
|
-
* British Columbia Annual Report "Validate & Generate Draft": orders the registry's current data,
|
|
97565
|
-
* sends the filing to eCore, hands the draft PDF to the host, and saves the delta together with
|
|
97566
|
-
* the ServiceOrderId and the request sent (`validatedData`) used to detect later Entity changes.
|
|
97567
|
-
*/
|
|
97568
|
-
onBritishColumbiaAnnualReportValidate(deltaData) {
|
|
97569
|
-
return __async(this, null, function* () {
|
|
97570
|
-
const task = this.task();
|
|
97571
|
-
const signature = this._signature();
|
|
97572
|
-
try {
|
|
97573
|
-
if (!task || !signature || !isAnnualReturnTask(task)) {
|
|
97574
|
-
throw new Error("The filing is not ready yet. Please try again.");
|
|
97575
|
-
}
|
|
97576
|
-
this.isLoading.set(true);
|
|
97577
|
-
this.errors.set([]);
|
|
97578
|
-
const requestBody = buildBCAnnualReportValidateRequest(task, deltaData);
|
|
97579
|
-
const opts = this.validateOptions() ?? {};
|
|
97580
|
-
const context2 = buildBCAnnualReportContext(task, signature.env);
|
|
97581
|
-
const extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
97582
|
-
yield this.bcMaintenanceService.waitForCurrentDataExtract(signature, extractId, opts);
|
|
97583
|
-
const response = yield this.bcMaintenanceService.validate(signature, requestBody, extractId, context2, opts);
|
|
97584
|
-
if (this.hasResponseErrors(response))
|
|
97585
|
-
return;
|
|
97586
|
-
const serviceOrderId = response.ServiceOrderId ?? "";
|
|
97587
|
-
const draftPdf = response.Draft ?? "";
|
|
97588
|
-
const searchOrFilingType = getSearchOrFilingType(task);
|
|
97589
|
-
if (draftPdf && searchOrFilingType) {
|
|
97590
|
-
this.filingValidateSuccess.emit({
|
|
97591
|
-
searchOrFilingType,
|
|
97592
|
-
serviceOrderId,
|
|
97593
|
-
validatedOn: /* @__PURE__ */ new Date(),
|
|
97594
|
-
provider: getFilingProvider(task),
|
|
97595
|
-
draftPdf,
|
|
97596
|
-
documentName: this.validateOptions()?.documentName ?? "British Columbia Annual Report Draft",
|
|
97597
|
-
documentType: "pdf"
|
|
97598
|
-
});
|
|
97599
|
-
}
|
|
97600
|
-
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
97601
|
-
serviceOrderId,
|
|
97602
|
-
// The corporation number is added by the service, not by the request builder, so it is
|
|
97603
|
-
// stored explicitly (the access code is deliberately left out) to detect entity changes.
|
|
97604
|
-
validatedData: __spreadProps(__spreadValues({}, JSON.parse(JSON.stringify(requestBody))), {
|
|
97605
|
-
corporationNumber: context2.corporationNumber
|
|
97606
|
-
})
|
|
97607
|
-
}));
|
|
97608
|
-
this.close.emit();
|
|
97609
|
-
} catch (response) {
|
|
97610
|
-
this.handleCatchError(response);
|
|
97611
|
-
} finally {
|
|
97612
|
-
this.isLoading.set(false);
|
|
97613
|
-
}
|
|
97614
|
-
});
|
|
97615
|
-
}
|
|
97616
|
-
/**
|
|
97617
|
-
* British Columbia Annual Report save – propagates delta data to the host.
|
|
97618
|
-
* The draft link (ServiceOrderId and the request it was generated from) is kept, so reopening
|
|
97619
|
-
* can tell whether the saved data still matches the draft and show "Entity changed" if not.
|
|
97620
|
-
*/
|
|
97621
|
-
onBritishColumbiaAnnualReportSave(deltaData) {
|
|
97622
|
-
const oldDeltaData = this.task()?.deltaData;
|
|
97623
|
-
const draftLink = oldDeltaData?.serviceOrderId && oldDeltaData?.validatedData ? {
|
|
97624
|
-
serviceOrderId: oldDeltaData.serviceOrderId,
|
|
97625
|
-
validatedData: oldDeltaData.validatedData
|
|
97626
|
-
} : {};
|
|
97627
|
-
if (oldDeltaData) {
|
|
97628
|
-
delete this.task()?.deltaData;
|
|
97629
|
-
}
|
|
97630
|
-
this.deltaDataChange.emit(__spreadValues(__spreadValues({}, deltaData), draftLink));
|
|
97631
|
-
}
|
|
97632
|
-
/**
|
|
97633
|
-
* British Columbia Annual Report submit/file: submits the filing staged by "Validate & Generate
|
|
97634
|
-
* Draft" using the ServiceOrderId saved with the delta. There is no certification step.
|
|
97635
|
-
*/
|
|
97636
|
-
onBritishColumbiaAnnualReportSubmit() {
|
|
97637
|
-
return __async(this, null, function* () {
|
|
97638
|
-
const signature = this._signature();
|
|
97639
|
-
const serviceOrderId = this.task()?.deltaData?.serviceOrderId;
|
|
97640
|
-
if (!signature || !serviceOrderId) {
|
|
97641
|
-
this.handleCatchError(new Error("Missing serviceOrderId. Generate a draft before filing."));
|
|
97642
|
-
return;
|
|
97643
|
-
}
|
|
97644
|
-
try {
|
|
97645
|
-
this.isLoading.set(true);
|
|
97646
|
-
this.errors.set([]);
|
|
97647
|
-
yield this.bcMaintenanceService.submitAndWait(signature, serviceOrderId, this.validateOptions() ?? {});
|
|
97648
|
-
this.close.emit();
|
|
97649
|
-
} catch (response) {
|
|
97650
|
-
this.handleCatchError(response);
|
|
97651
|
-
} finally {
|
|
97652
|
-
this.isLoading.set(false);
|
|
97653
|
-
}
|
|
97654
|
-
});
|
|
97655
|
-
}
|
|
97656
96590
|
/**
|
|
97657
96591
|
* British Columbia Change of Office Addresses "Validate & Generate Draft": sends the filing
|
|
97658
96592
|
* to eCore, hands the draft PDF to the host, and saves the delta together with the
|
|
@@ -97672,7 +96606,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97672
96606
|
const opts = this.validateOptions() ?? {};
|
|
97673
96607
|
const context2 = {
|
|
97674
96608
|
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
97675
|
-
accessCodeOrPassword:
|
|
96609
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode2(task, signature.env),
|
|
97676
96610
|
incorporationDate: String(task.entity._compliance?.incorporation_date ?? "").slice(0, 10)
|
|
97677
96611
|
};
|
|
97678
96612
|
const extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
@@ -97712,19 +96646,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97712
96646
|
}
|
|
97713
96647
|
/**
|
|
97714
96648
|
* British Columbia Change of Office Addresses save – propagates delta data to the host.
|
|
97715
|
-
* The draft link (ServiceOrderId and the request it was generated from) is kept, so reopening
|
|
97716
|
-
* can tell whether the saved data still matches the draft and show "Entity changed" if not.
|
|
97717
96649
|
*/
|
|
97718
96650
|
onBritishColumbiaChangeOfOfficeAddressesSave(deltaData) {
|
|
97719
96651
|
const oldDeltaData = this.task()?.deltaData;
|
|
97720
|
-
const draftLink = oldDeltaData?.serviceOrderId && oldDeltaData?.validatedData ? {
|
|
97721
|
-
serviceOrderId: oldDeltaData.serviceOrderId,
|
|
97722
|
-
validatedData: oldDeltaData.validatedData
|
|
97723
|
-
} : {};
|
|
97724
96652
|
if (oldDeltaData) {
|
|
97725
96653
|
delete this.task()?.deltaData;
|
|
97726
96654
|
}
|
|
97727
|
-
this.deltaDataChange.emit(
|
|
96655
|
+
this.deltaDataChange.emit(deltaData);
|
|
97728
96656
|
}
|
|
97729
96657
|
/**
|
|
97730
96658
|
* British Columbia Change of Office Addresses submit/file: submits the filing staged by
|
|
@@ -97972,7 +96900,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97972
96900
|
const task = this.task();
|
|
97973
96901
|
if (!task)
|
|
97974
96902
|
return;
|
|
97975
|
-
if (isUpdateMaintain(task)
|
|
96903
|
+
if (isUpdateMaintain(task)) {
|
|
97976
96904
|
this.serviceOrderId = "";
|
|
97977
96905
|
void this.getCurrentData();
|
|
97978
96906
|
} else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
@@ -98116,8 +97044,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98116
97044
|
initialDelta = isOntarioTask(task) ? this.deltaState.formationInitialDelta() : isBritishColumbiaTask(task) ? this.deltaState.bcFormationInitialDelta() : this.deltaState.federalFormationInitialDelta();
|
|
98117
97045
|
} else if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
|
|
98118
97046
|
initialDelta = this.deltaState.bcChangeOfOfficeAddressesInitialDelta();
|
|
98119
|
-
} else if (isAnnualReturnTask(task) && isBritishColumbiaTask(task)) {
|
|
98120
|
-
initialDelta = this.deltaState.bcAnnualReportInitialDelta();
|
|
98121
97047
|
} else if (isUpdateMaintain(task)) {
|
|
98122
97048
|
initialDelta = isOntarioTask(task) ? this.deltaState.initialReturnInitialDelta() : this.deltaState.federalUpdateMaintainInitialDelta();
|
|
98123
97049
|
} else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
@@ -98156,11 +97082,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98156
97082
|
corporationNumber: task.entity._profile.corp_number ?? ""
|
|
98157
97083
|
});
|
|
98158
97084
|
}
|
|
98159
|
-
if (isAnnualReturnTask(task) && isBritishColumbiaTask(task)) {
|
|
98160
|
-
return __spreadProps(__spreadValues({}, buildBCAnnualReportValidateRequest(task, deltaData)), {
|
|
98161
|
-
corporationNumber: task.entity._profile.corp_number ?? ""
|
|
98162
|
-
});
|
|
98163
|
-
}
|
|
98164
97085
|
if (isUpdateMaintain(task) && isOntarioTask(task)) {
|
|
98165
97086
|
const serviceOrderId = deltaData?.serviceOrderId ?? this.serviceOrderId;
|
|
98166
97087
|
if (!serviceOrderId) {
|
|
@@ -98189,7 +97110,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98189
97110
|
if (rf & 2) {
|
|
98190
97111
|
\u0275\u0275styleProp("height", ctx.modalHeight());
|
|
98191
97112
|
}
|
|
98192
|
-
}, 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", "
|
|
97113
|
+
}, 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) {
|
|
98193
97114
|
if (rf & 1) {
|
|
98194
97115
|
const _r1 = \u0275\u0275getCurrentView();
|
|
98195
97116
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
@@ -98303,9 +97224,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98303
97224
|
(coaValidate)="onBritishColumbiaChangeOfOfficeAddressesValidate($event)"\r
|
|
98304
97225
|
(saveCoaDeltaData)="onBritishColumbiaChangeOfOfficeAddressesSave($event)"\r
|
|
98305
97226
|
(coaSubmit)="onBritishColumbiaChangeOfOfficeAddressesSubmit()"\r
|
|
98306
|
-
(arValidate)="onBritishColumbiaAnnualReportValidate($event)"\r
|
|
98307
|
-
(saveArDeltaData)="onBritishColumbiaAnnualReportSave($event)"\r
|
|
98308
|
-
(arSubmit)="onBritishColumbiaAnnualReportSubmit()"\r
|
|
98309
97227
|
(formationValidate)="onBritishColumbiaFormationValidate($event)"\r
|
|
98310
97228
|
(saveFormationDeltaData)="onBritishColumbiaFormationSave($event)"\r
|
|
98311
97229
|
(formationSubmit)="onBritishColumbiaFormationSubmit()"\r
|
|
@@ -98339,7 +97257,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98339
97257
|
}], () => [], null);
|
|
98340
97258
|
})();
|
|
98341
97259
|
(() => {
|
|
98342
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber:
|
|
97260
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 98 });
|
|
98343
97261
|
})();
|
|
98344
97262
|
}
|
|
98345
97263
|
});
|
|
@@ -102995,13 +101913,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102995
101913
|
"New Delivery Address": "New Delivery Address",
|
|
102996
101914
|
"Same as Mailing Address": "Same as Mailing Address",
|
|
102997
101915
|
"Same as Registered Office": "Same as Registered Office",
|
|
102998
|
-
"The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.": "The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable."
|
|
102999
|
-
"Company Name": "Company Name",
|
|
103000
|
-
"Name Reservation (NR) Number": "Name Reservation (NR) Number",
|
|
103001
|
-
"File British Columbia Annual Report": "File British Columbia Annual Report",
|
|
103002
|
-
"Would the company like to receive reminders to file its annual reports": "Would the company like to receive reminders to file its annual reports",
|
|
103003
|
-
"Company Email is required": "Company Email is required",
|
|
103004
|
-
"The draft is missing its Service Order ID. Close this window and generate a new draft.": "The draft is missing its Service Order ID. Close this window and generate a new draft."
|
|
101916
|
+
"The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.": "The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable."
|
|
103005
101917
|
};
|
|
103006
101918
|
}
|
|
103007
101919
|
});
|
|
@@ -103357,10 +102269,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
103357
102269
|
"New Delivery Address": "Nouvelle adresse de livraison",
|
|
103358
102270
|
"Same as Mailing Address": "Identique \xE0 l'adresse postale",
|
|
103359
102271
|
"Same as Registered Office": "Identique au si\xE8ge social",
|
|
103360
|
-
"The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.": "L'adresse de livraison doit \xEAtre un lieu physique en Colombie-Britannique o\xF9 des documents peuvent \xEAtre livr\xE9s pendant les heures d'ouverture l\xE9gales. Une case postale n'est pas accept\xE9e."
|
|
103361
|
-
"File British Columbia Articles of Incorporation": "D\xE9poser les statuts constitutifs de la Colombie-Britannique",
|
|
103362
|
-
"Company Name": "Nom de la soci\xE9t\xE9",
|
|
103363
|
-
"Name Reservation (NR) Number": "Num\xE9ro de r\xE9servation de nom (NR)"
|
|
102272
|
+
"The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.": "L'adresse de livraison doit \xEAtre un lieu physique en Colombie-Britannique o\xF9 des documents peuvent \xEAtre livr\xE9s pendant les heures d'ouverture l\xE9gales. Une case postale n'est pas accept\xE9e."
|
|
103364
102273
|
};
|
|
103365
102274
|
}
|
|
103366
102275
|
});
|