@dyedurham/search-and-file-widget 2.1.26 → 2.1.28
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 +518 -393
- package/package.json +11 -11
- package/dyedurham-search-and-file-widget-2.1.21.tgz +0 -0
- package/dyedurham-search-and-file-widget-2.1.22.tgz +0 -0
- package/dyedurham-search-and-file-widget-2.1.23.tgz +0 -0
- package/dyedurham-search-and-file-widget-2.1.24.tgz +0 -0
- package/dyedurham-search-and-file-widget-2.1.25.tgz +0 -0
- package/dyedurham-search-and-file-widget-2.1.26.tgz +0 -0
package/dnd-filing-shell.js
CHANGED
|
@@ -84312,12 +84312,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84312
84312
|
const entityDetails = deltaData.entityDetails;
|
|
84313
84313
|
const isNamed2 = entityDetails?.corporationNameType === BCNameType.Named;
|
|
84314
84314
|
const nameTranslations = entityDetails?.usesNameTranslation ? (entityDetails.nameTranslations ?? []).filter(Boolean) : [];
|
|
84315
|
-
const
|
|
84316
|
-
const
|
|
84317
|
-
const regMailing = pickAddress(
|
|
84318
|
-
const regDelivery = pickAddress(
|
|
84319
|
-
const recMailing = pickAddress(
|
|
84320
|
-
const recDelivery = pickAddress(
|
|
84315
|
+
const registeredOfficeAddresses = collectSharedAddresses(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84316
|
+
const recordsOfficeAddresses = collectSharedAddresses(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
84317
|
+
const regMailing = pickAddress(registeredOfficeAddresses, "Mailing");
|
|
84318
|
+
const regDelivery = pickAddress(registeredOfficeAddresses, "Delivery");
|
|
84319
|
+
const recMailing = pickAddress(recordsOfficeAddresses, "Mailing");
|
|
84320
|
+
const recDelivery = pickAddress(recordsOfficeAddresses, "Delivery");
|
|
84321
84321
|
const regMailingBC = mapAddress(regMailing);
|
|
84322
84322
|
const regDeliveryBC = regDelivery ? mapAddress(regDelivery) : void 0;
|
|
84323
84323
|
const recMailingBC = recMailing ? mapAddress(recMailing) : void 0;
|
|
@@ -84358,6 +84358,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84358
84358
|
};
|
|
84359
84359
|
return pruneUndefined(request);
|
|
84360
84360
|
}
|
|
84361
|
+
function findBCOfficeAddressIssues(task) {
|
|
84362
|
+
const affiliations = task.entity.affiliations ?? [];
|
|
84363
|
+
const issues = [];
|
|
84364
|
+
const offices = [
|
|
84365
|
+
{ name: "Registered Office", title: AddressTitle2.REGISTERED_OFFICE, required: true },
|
|
84366
|
+
{ name: "Records Office", title: AddressTitle2.RECORDS_OFFICE, required: false }
|
|
84367
|
+
];
|
|
84368
|
+
for (const { name, title, required } of offices) {
|
|
84369
|
+
const addresses = collectSharedAddresses(affiliations, title);
|
|
84370
|
+
if (!addresses.length && !required) {
|
|
84371
|
+
continue;
|
|
84372
|
+
}
|
|
84373
|
+
for (const type of ["Mailing", "Delivery"]) {
|
|
84374
|
+
if (!pickAddress(addresses, type)) {
|
|
84375
|
+
issues.push(`The ${name} has no ${type} address.`);
|
|
84376
|
+
}
|
|
84377
|
+
}
|
|
84378
|
+
}
|
|
84379
|
+
return issues;
|
|
84380
|
+
}
|
|
84361
84381
|
function findBCRequestIssues(request) {
|
|
84362
84382
|
const issues = [];
|
|
84363
84383
|
const email = request.companyEmail?.trim() ?? "";
|
|
@@ -84366,17 +84386,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84366
84386
|
} else if (email.length > 150) {
|
|
84367
84387
|
issues.push("Company Email must be 150 characters or fewer.");
|
|
84368
84388
|
}
|
|
84369
|
-
if (!request.registeredOfficeMailingAddress?.streetAddress?.trim()) {
|
|
84370
|
-
issues.push("The Registered Office has no Mailing address. Add one in Athennian.");
|
|
84371
|
-
}
|
|
84372
84389
|
for (const director of request.directors ?? []) {
|
|
84373
84390
|
if (!director.mailingAddress?.streetAddress?.trim()) {
|
|
84374
|
-
issues.push(`Director ${`${director.firstName} ${director.lastName}`.trim()} has no Mailing address
|
|
84391
|
+
issues.push(`Director ${`${director.firstName} ${director.lastName}`.trim()} has no Mailing address.`);
|
|
84375
84392
|
}
|
|
84376
84393
|
}
|
|
84394
|
+
if (!request.authorizedShareStructure?.shareClasses?.length) {
|
|
84395
|
+
issues.push("The Authorized Share Structure is required.");
|
|
84396
|
+
}
|
|
84377
84397
|
const password = request.password ?? "";
|
|
84378
84398
|
if (password.length < BC_PASSWORD_MIN_LENGTH || password.length > BC_PASSWORD_MAX_LENGTH || !/^[A-Za-z0-9]+$/.test(password)) {
|
|
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
|
|
84399
|
+
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.`);
|
|
84380
84400
|
}
|
|
84381
84401
|
return issues;
|
|
84382
84402
|
}
|
|
@@ -84431,7 +84451,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84431
84451
|
return {
|
|
84432
84452
|
incorporatorType: isIndividual ? "individual" : "corporationOrFirm",
|
|
84433
84453
|
// Names are only accepted for an individual; a corporation or firm is identified by
|
|
84434
|
-
// `corporationOrFirmName` (the API rejects first/last name otherwise
|
|
84454
|
+
// `corporationOrFirmName` (the deployed API rejects first/last name otherwise, although its
|
|
84455
|
+
// published spec lists them as required).
|
|
84435
84456
|
firstName: isIndividual ? incorporator.firstName ?? "" : void 0,
|
|
84436
84457
|
middleName: isIndividual ? incorporator.middleName || void 0 : void 0,
|
|
84437
84458
|
lastName: isIndividual ? incorporator.lastName ?? "" : void 0,
|
|
@@ -84470,6 +84491,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84470
84491
|
function findSharedAddressAffiliation(affiliations, staticTitle) {
|
|
84471
84492
|
return affiliations.find((a) => a.role?.role_name === AddressRole2.SHARED_ADDRESS && a.role?.static_title === staticTitle && isActiveAffiliation(a));
|
|
84472
84493
|
}
|
|
84494
|
+
function collectSharedAddresses(affiliations, staticTitle) {
|
|
84495
|
+
return affiliations.filter((a) => a.role?.role_name === AddressRole2.SHARED_ADDRESS && a.role?.static_title === staticTitle && isActiveAffiliation(a)).flatMap((a) => a.addresses ?? []);
|
|
84496
|
+
}
|
|
84473
84497
|
function pickAddress(addresses, locationType, fallbackToFirst = false) {
|
|
84474
84498
|
const match = addresses?.find((a) => (a.computed_location_type ?? a.location_type)?.toLowerCase() === locationType.toLowerCase());
|
|
84475
84499
|
return match ?? (fallbackToFirst ? addresses?.[0] : void 0);
|
|
@@ -84606,7 +84630,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84606
84630
|
const affiliations = task.entity.affiliations ?? [];
|
|
84607
84631
|
const delta = task.deltaData;
|
|
84608
84632
|
const registeredOffice = findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84609
|
-
const
|
|
84633
|
+
const registeredOfficeAddresses = collectSharedAddresses(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84634
|
+
const recordsOfficeAddresses = collectSharedAddresses(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
84610
84635
|
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
|
|
84611
84636
|
// Office) when no Registered Office shared address exists.
|
|
84612
84637
|
task.entity.addresses?.flatMap((a) => a.communications ?? []).find((c) => c.type === "Business Email")?.value ?? "";
|
|
@@ -84615,19 +84640,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84615
84640
|
config2[BCFormationFormGroups.CorporationDetails] = this.generateCorporationDetailsFormGroup(task, delta?.entityDetails, companyEmail);
|
|
84616
84641
|
config2[BCFormationFormGroups.RegisteredOfficeAddress] = new FormGroup({
|
|
84617
84642
|
[BCFormationFormControls.MailingAddress]: new FormControl({
|
|
84618
|
-
value: this.formatFullAddress(this.pickAddress(
|
|
84643
|
+
value: this.formatFullAddress(this.pickAddress(registeredOfficeAddresses, "Mailing", true)),
|
|
84619
84644
|
disabled: true
|
|
84620
84645
|
}),
|
|
84621
84646
|
[BCFormationFormControls.DeliveryAddress]: new FormControl({
|
|
84622
|
-
value: this.formatFullAddress(this.pickAddress(
|
|
84647
|
+
value: this.formatFullAddress(this.pickAddress(registeredOfficeAddresses, "Delivery", true)),
|
|
84623
84648
|
disabled: true
|
|
84624
84649
|
}),
|
|
84625
84650
|
[BCFormationFormControls.RecordsOfficeMailingAddress]: new FormControl({
|
|
84626
|
-
value: this.formatFullAddress(this.pickAddress(
|
|
84651
|
+
value: this.formatFullAddress(this.pickAddress(recordsOfficeAddresses, "Mailing", true)),
|
|
84627
84652
|
disabled: true
|
|
84628
84653
|
}),
|
|
84629
84654
|
[BCFormationFormControls.RecordsOfficeDeliveryAddress]: new FormControl({
|
|
84630
|
-
value: this.formatFullAddress(this.pickAddress(
|
|
84655
|
+
value: this.formatFullAddress(this.pickAddress(recordsOfficeAddresses, "Delivery", true)),
|
|
84631
84656
|
disabled: true
|
|
84632
84657
|
})
|
|
84633
84658
|
});
|
|
@@ -85104,7 +85129,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85104
85129
|
Controls2.PostalCode
|
|
85105
85130
|
];
|
|
85106
85131
|
BritishColumbiaChangeOfOfficeAddressesFormHelper = class {
|
|
85107
|
-
static generateConfig(task, _translateFn) {
|
|
85132
|
+
static generateConfig(task, _translateFn, currentDataExtract) {
|
|
85108
85133
|
const affiliations = task.entity.affiliations ?? [];
|
|
85109
85134
|
const delta = task.deltaData;
|
|
85110
85135
|
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
@@ -85112,7 +85137,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85112
85137
|
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85113
85138
|
const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
85114
85139
|
const incoming = this.incomingOfficeAddresses(task);
|
|
85115
|
-
const
|
|
85140
|
+
const extract = this.officeExtract(currentDataExtract);
|
|
85141
|
+
const seed = this.resolveOfficeAddresses(task, currentDataExtract);
|
|
85116
85142
|
const config2 = {};
|
|
85117
85143
|
config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
|
|
85118
85144
|
config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
|
|
@@ -85125,8 +85151,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85125
85151
|
});
|
|
85126
85152
|
const regDeliverySame = seed.registeredOffice?.deliverySameAsMailing ?? true;
|
|
85127
85153
|
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"))),
|
|
85154
|
+
[Controls2.CurrentMailingAddress]: this.readOnly(this.previousText(extract, "regMailing", format(pick(registeredOffice?.addresses, "Mailing")))),
|
|
85155
|
+
[Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "regDelivery", format(pick(registeredOffice?.addresses, "Delivery")))),
|
|
85130
85156
|
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.mailingAddress, true),
|
|
85131
85157
|
[Controls2.DeliverySameAsMailing]: new FormControl(regDeliverySame),
|
|
85132
85158
|
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress, !regDeliverySame)
|
|
@@ -85134,8 +85160,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85134
85160
|
const recSameAsRegistered = seed.recordsOffice?.sameAsRegisteredOffice ?? true;
|
|
85135
85161
|
const recDeliverySame = seed.recordsOffice?.deliverySameAsMailing ?? true;
|
|
85136
85162
|
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"))),
|
|
85163
|
+
[Controls2.CurrentMailingAddress]: this.readOnly(this.previousText(extract, "recMailing", format(pick(recordsOffice?.addresses, "Mailing")))),
|
|
85164
|
+
[Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "recDelivery", format(pick(recordsOffice?.addresses, "Delivery")))),
|
|
85139
85165
|
[Controls2.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
|
|
85140
85166
|
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.mailingAddress, !recSameAsRegistered),
|
|
85141
85167
|
[Controls2.DeliverySameAsMailing]: new FormControl(recDeliverySame),
|
|
@@ -85184,19 +85210,104 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85184
85210
|
}
|
|
85185
85211
|
};
|
|
85186
85212
|
}
|
|
85187
|
-
/**
|
|
85188
|
-
|
|
85189
|
-
|
|
85190
|
-
|
|
85213
|
+
/**
|
|
85214
|
+
* The new office addresses: the incoming Shared Address, else the registry's current address
|
|
85215
|
+
* (the data extract, or the Entity's own addresses when there is no extract).
|
|
85216
|
+
*/
|
|
85217
|
+
static resolveOfficeAddresses(task, currentDataExtract) {
|
|
85218
|
+
const affiliations = task.entity.affiliations ?? [];
|
|
85219
|
+
return this.withCurrentAddresses(this.seedFromIncomingAffiliations(task), this.incomingOfficeAddresses(task), BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE), BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE), this.officeExtract(currentDataExtract));
|
|
85220
|
+
}
|
|
85221
|
+
/**
|
|
85222
|
+
* For an office without an incoming address, the new address is its
|
|
85223
|
+
* current address on the register (so the filing leaves it unchanged). A current address outside
|
|
85224
|
+
* British Columbia is not used: the office is then reported as missing.
|
|
85225
|
+
*/
|
|
85226
|
+
static withCurrentAddresses(seed, incoming, registeredOffice, recordsOffice, extract) {
|
|
85227
|
+
const pickBy = BritishColumbiaFormationFormHelper.pickAddress;
|
|
85228
|
+
const current = (office, type, key) => {
|
|
85229
|
+
if (extract) {
|
|
85230
|
+
const registry = extract[key];
|
|
85231
|
+
return registry && this.isBritishColumbiaExtract(registry) ? this.extractToOfficeAddressDelta(registry) : void 0;
|
|
85232
|
+
}
|
|
85233
|
+
const address = pickBy(office?.addresses, type);
|
|
85234
|
+
return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
|
|
85235
|
+
};
|
|
85236
|
+
const result = __spreadValues({}, seed);
|
|
85237
|
+
if (!incoming.regMailing) {
|
|
85238
|
+
const mailing = current(registeredOffice, "Mailing", "regMailing");
|
|
85239
|
+
const delivery = current(registeredOffice, "Delivery", "regDelivery");
|
|
85240
|
+
if (mailing) {
|
|
85241
|
+
const same = !delivery || this.isSameOfficeAddress(delivery, mailing);
|
|
85242
|
+
result.registeredOffice = {
|
|
85243
|
+
mailingAddress: mailing,
|
|
85244
|
+
deliverySameAsMailing: same,
|
|
85245
|
+
deliveryAddress: same ? void 0 : delivery
|
|
85246
|
+
};
|
|
85247
|
+
}
|
|
85248
|
+
}
|
|
85249
|
+
if (!incoming.recMailing) {
|
|
85250
|
+
const mailing = current(recordsOffice, "Mailing", "recMailing");
|
|
85251
|
+
const delivery = current(recordsOffice, "Delivery", "recDelivery");
|
|
85252
|
+
if (mailing) {
|
|
85253
|
+
const registeredMailing = result.registeredOffice?.mailingAddress;
|
|
85254
|
+
const registeredDelivery = result.registeredOffice?.deliveryAddress ?? registeredMailing;
|
|
85255
|
+
const sameAsRegistered = this.isSameOfficeAddress(mailing, registeredMailing) && this.isSameOfficeAddress(delivery ?? mailing, registeredDelivery);
|
|
85256
|
+
const deliverySame = !delivery || this.isSameOfficeAddress(delivery, mailing);
|
|
85257
|
+
result.recordsOffice = {
|
|
85258
|
+
sameAsRegisteredOffice: sameAsRegistered,
|
|
85259
|
+
mailingAddress: sameAsRegistered ? void 0 : mailing,
|
|
85260
|
+
deliverySameAsMailing: deliverySame,
|
|
85261
|
+
deliveryAddress: deliverySame ? void 0 : delivery
|
|
85262
|
+
};
|
|
85263
|
+
} else {
|
|
85264
|
+
result.recordsOffice = { sameAsRegisteredOffice: false, deliverySameAsMailing: false };
|
|
85265
|
+
}
|
|
85266
|
+
}
|
|
85267
|
+
return result;
|
|
85268
|
+
}
|
|
85269
|
+
/** The four office addresses of the registry's data extract, or undefined when there is none. */
|
|
85270
|
+
static officeExtract(extract) {
|
|
85271
|
+
const data = extract?.dataExtract;
|
|
85272
|
+
if (!data || !(data["registeredOfficeMailingAddress"] || data["registeredOfficeDeliveryAddress"] || data["recordsOfficeMailingAddress"] || data["recordsOfficeDeliveryAddress"])) {
|
|
85273
|
+
return void 0;
|
|
85274
|
+
}
|
|
85191
85275
|
return {
|
|
85192
|
-
|
|
85193
|
-
|
|
85194
|
-
|
|
85195
|
-
|
|
85196
|
-
|
|
85197
|
-
|
|
85198
|
-
|
|
85199
|
-
|
|
85276
|
+
regMailing: data["registeredOfficeMailingAddress"],
|
|
85277
|
+
regDelivery: data["registeredOfficeDeliveryAddress"],
|
|
85278
|
+
recMailing: data["recordsOfficeMailingAddress"],
|
|
85279
|
+
recDelivery: data["recordsOfficeDeliveryAddress"]
|
|
85280
|
+
};
|
|
85281
|
+
}
|
|
85282
|
+
/** The "Previous" text of an office line: the registry's address, else the Entity's own. */
|
|
85283
|
+
static previousText(extract, key, fallback) {
|
|
85284
|
+
if (!extract) {
|
|
85285
|
+
return fallback;
|
|
85286
|
+
}
|
|
85287
|
+
const address = extract[key];
|
|
85288
|
+
const province = this.isBritishColumbiaExtract(address) ? BC_DEFAULT_PROVINCE_STATE : address?.provinceOrState;
|
|
85289
|
+
const country = (address?.country ?? "").toUpperCase() === "CA" ? BC_DEFAULT_COUNTRY : address?.country;
|
|
85290
|
+
return [
|
|
85291
|
+
address?.streetAddress,
|
|
85292
|
+
address?.additionalStreetAddress,
|
|
85293
|
+
address?.city,
|
|
85294
|
+
province,
|
|
85295
|
+
address?.postalOrZipCode,
|
|
85296
|
+
country
|
|
85297
|
+
].filter((part) => Boolean(part?.trim())).join(", ");
|
|
85298
|
+
}
|
|
85299
|
+
static isBritishColumbiaExtract(address) {
|
|
85300
|
+
const province = (address?.provinceOrState ?? "").trim().toLowerCase();
|
|
85301
|
+
return !!address && ["bc", "b.c.", "british columbia"].includes(province);
|
|
85302
|
+
}
|
|
85303
|
+
static extractToOfficeAddressDelta(address) {
|
|
85304
|
+
return {
|
|
85305
|
+
addressLine1: address.streetAddress ?? "",
|
|
85306
|
+
addressLine2: address.additionalStreetAddress ?? "",
|
|
85307
|
+
city: address.city ?? "",
|
|
85308
|
+
postalCode: address.postalOrZipCode ?? "",
|
|
85309
|
+
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85310
|
+
country: BC_DEFAULT_COUNTRY
|
|
85200
85311
|
};
|
|
85201
85312
|
}
|
|
85202
85313
|
/** The four office addresses of the task's incoming Shared Address, as form values. */
|
|
@@ -85936,14 +86047,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85936
86047
|
<strong>{{ 'Incorporation Number' | translate }}:</strong>\r
|
|
85937
86048
|
{{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
|
|
85938
86049
|
</p>\r
|
|
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
|
|
86050
|
+
<div class="company-email-field">\r
|
|
86051
|
+
<filing-form-group\r
|
|
86052
|
+
[form]="corporationDetails"\r
|
|
86053
|
+
[config]="companyEmailFields()"\r
|
|
86054
|
+
[isSubmitted]="isSubmitted()"\r
|
|
86055
|
+
(visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"\r
|
|
86056
|
+
/>\r
|
|
86057
|
+
</div>\r
|
|
85947
86058
|
</div>\r
|
|
85948
86059
|
</expandable-card>\r
|
|
85949
86060
|
}\r
|
|
@@ -85967,28 +86078,28 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85967
86078
|
\r
|
|
85968
86079
|
<mat-checkbox\r
|
|
85969
86080
|
class="directors-change-checkbox"\r
|
|
85970
|
-
[formControlName]="controls.DirectorsAddedOrDeleted"
|
|
85971
|
-
(change)="
|
|
85972
|
-
filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false })
|
|
85973
|
-
onSectionValidChange('filingDetails', filingDetails.valid)
|
|
85974
|
-
"
|
|
86081
|
+
[formControlName]="controls.DirectorsAddedOrDeleted"\r
|
|
86082
|
+
(change)="\r
|
|
86083
|
+
filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false });\r
|
|
86084
|
+
onSectionValidChange('filingDetails', filingDetails.valid)\r
|
|
86085
|
+
"\r
|
|
85975
86086
|
>\r
|
|
85976
86087
|
{{ 'Directors will be added and/or deleted as part of this filing' | translate }}\r
|
|
85977
86088
|
</mat-checkbox>\r
|
|
85978
86089
|
\r
|
|
85979
86090
|
@if (filingDetails.get(controls.DirectorsAddedOrDeleted)?.value) {\r
|
|
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"
|
|
86091
|
+
<div class="filing-details-grid">\r
|
|
86092
|
+
<div class="date-field">\r
|
|
86093
|
+
<p class="effective-date-description">\r
|
|
86094
|
+
{{\r
|
|
86095
|
+
'The date on which the individual(s) became or ceased to be a director:'\r
|
|
86096
|
+
| translate\r
|
|
86097
|
+
}}\r
|
|
86098
|
+
<strong>{{ getEffectiveDateDisplay(filingDetails.get(controls.ChangeDate)?.value) }}</strong>\r
|
|
86099
|
+
</p>\r
|
|
86100
|
+
</div>\r
|
|
86101
|
+
\r
|
|
86102
|
+
<p class="filing-fee">\r
|
|
85992
86103
|
<strong>{{ 'Filing Fee' | translate }}:</strong>\r
|
|
85993
86104
|
{{ filingDetails.get(controls.FilingFee)?.value }}\r
|
|
85994
86105
|
</p>\r
|
|
@@ -86000,8 +86111,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86000
86111
|
\r
|
|
86001
86112
|
@let directorsArray = getFormArray(groups.Directors);\r
|
|
86002
86113
|
\r
|
|
86003
|
-
<expandable-card [isStatusIcon]="false" [title]="groups.Directors"
|
|
86004
|
-
@if (directorsArray && directorsArray.length) {
|
|
86114
|
+
<expandable-card [isStatusIcon]="false" [title]="groups.Directors">\r
|
|
86115
|
+
@if (directorsArray && directorsArray.length) {\r
|
|
86005
86116
|
<div class="directors-table" role="table">\r
|
|
86006
86117
|
<div class="directors-table-header" role="row">\r
|
|
86007
86118
|
<div role="columnheader">{{ 'Name' | translate }}</div>\r
|
|
@@ -86564,7 +86675,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86564
86675
|
type: FormType.Text,
|
|
86565
86676
|
formControlName: BCFormationFormControls.DeliveryAddress,
|
|
86566
86677
|
class: "span-12",
|
|
86567
|
-
|
|
86678
|
+
// A director without a Delivery address is filed with "delivery same as mailing", so the
|
|
86679
|
+
// Mailing address is shown, as in the draft.
|
|
86680
|
+
dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value || form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
86568
86681
|
}
|
|
86569
86682
|
];
|
|
86570
86683
|
BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS = [
|
|
@@ -87743,11 +87856,20 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87743
87856
|
\u0275\u0275property("content", ctx_r0.errors());
|
|
87744
87857
|
}
|
|
87745
87858
|
}
|
|
87746
|
-
function
|
|
87859
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_3_Template(rf, ctx) {
|
|
87860
|
+
if (rf & 1) {
|
|
87861
|
+
\u0275\u0275element(0, "alert", 2);
|
|
87862
|
+
}
|
|
87863
|
+
if (rf & 2) {
|
|
87864
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87865
|
+
\u0275\u0275property("content", ctx_r0.missingMessages());
|
|
87866
|
+
}
|
|
87867
|
+
}
|
|
87868
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template(rf, ctx) {
|
|
87747
87869
|
if (rf & 1) {
|
|
87748
87870
|
const _r2 = \u0275\u0275getCurrentView();
|
|
87749
87871
|
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 7);
|
|
87750
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87872
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87751
87873
|
\u0275\u0275restoreView(_r2);
|
|
87752
87874
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87753
87875
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
|
|
@@ -87756,17 +87878,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87756
87878
|
}
|
|
87757
87879
|
if (rf & 2) {
|
|
87758
87880
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87759
|
-
const referenceNumbers_r3 = \u0275\u0275readContextLet(
|
|
87881
|
+
const referenceNumbers_r3 = \u0275\u0275readContextLet(5);
|
|
87760
87882
|
\u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
|
|
87761
87883
|
\u0275\u0275advance();
|
|
87762
87884
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
|
|
87763
87885
|
}
|
|
87764
87886
|
}
|
|
87765
|
-
function
|
|
87887
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template(rf, ctx) {
|
|
87766
87888
|
if (rf & 1) {
|
|
87767
87889
|
const _r4 = \u0275\u0275getCurrentView();
|
|
87768
87890
|
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 7);
|
|
87769
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87891
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87770
87892
|
\u0275\u0275restoreView(_r4);
|
|
87771
87893
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87772
87894
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corpDetails", $event));
|
|
@@ -87775,232 +87897,129 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87775
87897
|
}
|
|
87776
87898
|
if (rf & 2) {
|
|
87777
87899
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87778
|
-
const corporationDetails_r5 = \u0275\u0275readContextLet(
|
|
87900
|
+
const corporationDetails_r5 = \u0275\u0275readContextLet(7);
|
|
87779
87901
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["corpDetails"] !== false)("title", ctx_r0.groups.CorporationDetails);
|
|
87780
87902
|
\u0275\u0275advance();
|
|
87781
87903
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r5)("config", ctx_r0.corporationDetailsFields());
|
|
87782
87904
|
}
|
|
87783
87905
|
}
|
|
87784
|
-
function
|
|
87906
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Conditional_7_Template(rf, ctx) {
|
|
87785
87907
|
if (rf & 1) {
|
|
87786
|
-
|
|
87787
|
-
\u0275\
|
|
87788
|
-
\u0275\
|
|
87789
|
-
\u0275\u0275restoreView(_r7);
|
|
87790
|
-
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87791
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87792
|
-
});
|
|
87793
|
-
\u0275\u0275elementEnd();
|
|
87794
|
-
}
|
|
87795
|
-
if (rf & 2) {
|
|
87796
|
-
\u0275\u0275nextContext();
|
|
87797
|
-
const registeredMailing_r8 = \u0275\u0275readContextLet(0);
|
|
87798
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87799
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredMailing_r8)("config", ctx_r0.addressFields);
|
|
87800
|
-
}
|
|
87801
|
-
}
|
|
87802
|
-
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template(rf, ctx) {
|
|
87803
|
-
if (rf & 1) {
|
|
87804
|
-
const _r9 = \u0275\u0275getCurrentView();
|
|
87805
|
-
\u0275\u0275element(0, "filing-form-group", 9);
|
|
87806
|
-
\u0275\u0275elementStart(1, "filing-form-group", 7);
|
|
87807
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template_filing_form_group_visiblyValidChange_1_listener() {
|
|
87808
|
-
\u0275\u0275restoreView(_r9);
|
|
87809
|
-
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87810
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87811
|
-
});
|
|
87908
|
+
\u0275\u0275elementStart(0, "div", 12);
|
|
87909
|
+
\u0275\u0275text(1);
|
|
87910
|
+
\u0275\u0275pipe(2, "translate");
|
|
87812
87911
|
\u0275\u0275elementEnd();
|
|
87813
87912
|
}
|
|
87814
87913
|
if (rf & 2) {
|
|
87815
|
-
\u0275\u0275nextContext();
|
|
87816
|
-
const registeredDelivery_r10 = \u0275\u0275readContextLet(1);
|
|
87817
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87818
|
-
const registeredOffice_r11 = \u0275\u0275readContextLet(8);
|
|
87819
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliveryNoteFields);
|
|
87914
|
+
const row_r6 = \u0275\u0275nextContext().$implicit;
|
|
87820
87915
|
\u0275\u0275advance();
|
|
87821
|
-
\u0275\
|
|
87916
|
+
\u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r6.previous, " ");
|
|
87822
87917
|
}
|
|
87823
87918
|
}
|
|
87824
|
-
function
|
|
87919
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Template(rf, ctx) {
|
|
87825
87920
|
if (rf & 1) {
|
|
87826
|
-
|
|
87827
|
-
\u0275\
|
|
87828
|
-
\u0275\
|
|
87829
|
-
\u0275\u0275element(5, "filing-form-group", 9);
|
|
87830
|
-
\u0275\u0275elementStart(6, "h4", 10);
|
|
87831
|
-
\u0275\u0275text(7);
|
|
87832
|
-
\u0275\u0275pipe(8, "translate");
|
|
87921
|
+
\u0275\u0275elementStart(0, "div", 9)(1, "div", 10)(2, "span", 11);
|
|
87922
|
+
\u0275\u0275text(3);
|
|
87923
|
+
\u0275\u0275pipe(4, "translate");
|
|
87833
87924
|
\u0275\u0275elementEnd();
|
|
87834
|
-
\u0275\
|
|
87835
|
-
\u0275\
|
|
87836
|
-
\u0275\u0275text(11);
|
|
87837
|
-
\u0275\u0275pipe(12, "translate");
|
|
87925
|
+
\u0275\u0275text(5);
|
|
87926
|
+
\u0275\u0275pipe(6, "translate");
|
|
87838
87927
|
\u0275\u0275elementEnd();
|
|
87839
|
-
\u0275\
|
|
87840
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template_filing_form_group_visiblyValidChange_13_listener() {
|
|
87841
|
-
\u0275\u0275restoreView(_r6);
|
|
87842
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87843
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87844
|
-
});
|
|
87928
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Conditional_7_Template, 3, 4, "div", 12);
|
|
87845
87929
|
\u0275\u0275elementEnd();
|
|
87846
|
-
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template, 2, 6);
|
|
87847
|
-
\u0275\u0275elementEnd()();
|
|
87848
87930
|
}
|
|
87849
87931
|
if (rf & 2) {
|
|
87850
|
-
const
|
|
87851
|
-
|
|
87852
|
-
|
|
87853
|
-
\u0275\u0275advance();
|
|
87854
|
-
const registeredDelivery_r13 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewDeliveryAddress));
|
|
87855
|
-
const registeredDeliverySame_r14 = ctx_r0.isChecked(registeredOffice_r11, ctx_r0.controls.DeliverySameAsMailing);
|
|
87856
|
-
\u0275\u0275advance(2);
|
|
87857
|
-
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
87858
|
-
\u0275\u0275advance(2);
|
|
87859
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.currentAddressesFields);
|
|
87860
|
-
\u0275\u0275advance(2);
|
|
87861
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(8, 15, "New Mailing Address"));
|
|
87862
|
-
\u0275\u0275advance(2);
|
|
87863
|
-
\u0275\u0275conditional(registeredMailing_r12 ? 9 : -1);
|
|
87932
|
+
const row_r6 = ctx.$implicit;
|
|
87933
|
+
\u0275\u0275advance(3);
|
|
87934
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(4, 3, row_r6.label), ":");
|
|
87864
87935
|
\u0275\u0275advance(2);
|
|
87865
|
-
\u0275\
|
|
87936
|
+
\u0275\u0275textInterpolate1(" ", row_r6.value || \u0275\u0275pipeBind1(6, 5, "Not specified"), " ");
|
|
87866
87937
|
\u0275\u0275advance(2);
|
|
87867
|
-
\u0275\
|
|
87868
|
-
\u0275\u0275advance();
|
|
87869
|
-
\u0275\u0275conditional(!registeredDeliverySame_r14 && registeredDelivery_r13 ? 14 : -1);
|
|
87938
|
+
\u0275\u0275conditional(row_r6.previous ? 7 : -1);
|
|
87870
87939
|
}
|
|
87871
87940
|
}
|
|
87872
|
-
function
|
|
87941
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_Template(rf, ctx) {
|
|
87873
87942
|
if (rf & 1) {
|
|
87874
|
-
|
|
87875
|
-
\u0275\
|
|
87876
|
-
\u0275\
|
|
87877
|
-
\u0275\u0275restoreView(_r17);
|
|
87878
|
-
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
87879
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87880
|
-
});
|
|
87881
|
-
\u0275\u0275elementEnd();
|
|
87943
|
+
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
|
|
87944
|
+
\u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Template, 8, 7, "div", 9, _forTrack05);
|
|
87945
|
+
\u0275\u0275elementEnd()();
|
|
87882
87946
|
}
|
|
87883
87947
|
if (rf & 2) {
|
|
87884
|
-
\u0275\u0275nextContext(2);
|
|
87885
|
-
const recordsMailing_r18 = \u0275\u0275readContextLet(0);
|
|
87886
87948
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87887
|
-
\u0275\u0275property("
|
|
87949
|
+
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
87950
|
+
\u0275\u0275advance(2);
|
|
87951
|
+
\u0275\u0275repeater(ctx_r0.registeredRows());
|
|
87888
87952
|
}
|
|
87889
87953
|
}
|
|
87890
|
-
function
|
|
87954
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Conditional_7_Template(rf, ctx) {
|
|
87891
87955
|
if (rf & 1) {
|
|
87892
|
-
|
|
87893
|
-
\u0275\
|
|
87894
|
-
\u0275\
|
|
87895
|
-
\u0275\u0275restoreView(_r19);
|
|
87896
|
-
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
87897
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87898
|
-
});
|
|
87956
|
+
\u0275\u0275elementStart(0, "div", 12);
|
|
87957
|
+
\u0275\u0275text(1);
|
|
87958
|
+
\u0275\u0275pipe(2, "translate");
|
|
87899
87959
|
\u0275\u0275elementEnd();
|
|
87900
87960
|
}
|
|
87901
87961
|
if (rf & 2) {
|
|
87902
|
-
\u0275\u0275nextContext(
|
|
87903
|
-
|
|
87904
|
-
|
|
87905
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsDelivery_r20)("config", ctx_r0.addressFields);
|
|
87962
|
+
const row_r7 = \u0275\u0275nextContext().$implicit;
|
|
87963
|
+
\u0275\u0275advance();
|
|
87964
|
+
\u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r7.previous, " ");
|
|
87906
87965
|
}
|
|
87907
87966
|
}
|
|
87908
|
-
function
|
|
87967
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Template(rf, ctx) {
|
|
87909
87968
|
if (rf & 1) {
|
|
87910
|
-
|
|
87911
|
-
\u0275\
|
|
87912
|
-
\u0275\
|
|
87913
|
-
\u0275\u0275pipe(2, "translate");
|
|
87969
|
+
\u0275\u0275elementStart(0, "div", 9)(1, "div", 10)(2, "span", 11);
|
|
87970
|
+
\u0275\u0275text(3);
|
|
87971
|
+
\u0275\u0275pipe(4, "translate");
|
|
87914
87972
|
\u0275\u0275elementEnd();
|
|
87915
|
-
\u0275\u0275template(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template, 1, 3, "filing-form-group", 9);
|
|
87916
|
-
\u0275\u0275elementStart(4, "h4", 10);
|
|
87917
87973
|
\u0275\u0275text(5);
|
|
87918
87974
|
\u0275\u0275pipe(6, "translate");
|
|
87919
87975
|
\u0275\u0275elementEnd();
|
|
87920
|
-
\u0275\
|
|
87921
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
87922
|
-
\u0275\u0275restoreView(_r16);
|
|
87923
|
-
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87924
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87925
|
-
});
|
|
87976
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Conditional_7_Template, 3, 4, "div", 12);
|
|
87926
87977
|
\u0275\u0275elementEnd();
|
|
87927
|
-
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template, 1, 3, "filing-form-group", 9);
|
|
87928
87978
|
}
|
|
87929
87979
|
if (rf & 2) {
|
|
87930
|
-
|
|
87931
|
-
|
|
87932
|
-
|
|
87933
|
-
const recordsDeliverySame_r21 = \u0275\u0275readContextLet(3);
|
|
87934
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87935
|
-
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
87936
|
-
\u0275\u0275advance();
|
|
87937
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 7, "New Mailing Address"));
|
|
87938
|
-
\u0275\u0275advance(2);
|
|
87939
|
-
\u0275\u0275conditional(recordsMailing_r18 ? 3 : -1);
|
|
87980
|
+
const row_r7 = ctx.$implicit;
|
|
87981
|
+
\u0275\u0275advance(3);
|
|
87982
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(4, 3, row_r7.label), ":");
|
|
87940
87983
|
\u0275\u0275advance(2);
|
|
87941
|
-
\u0275\
|
|
87984
|
+
\u0275\u0275textInterpolate1(" ", row_r7.value || \u0275\u0275pipeBind1(6, 5, "Not specified"), " ");
|
|
87942
87985
|
\u0275\u0275advance(2);
|
|
87943
|
-
\u0275\
|
|
87944
|
-
\u0275\u0275advance();
|
|
87945
|
-
\u0275\u0275conditional(!recordsDeliverySame_r21 && recordsDelivery_r20 ? 8 : -1);
|
|
87986
|
+
\u0275\u0275conditional(row_r7.previous ? 7 : -1);
|
|
87946
87987
|
}
|
|
87947
87988
|
}
|
|
87948
|
-
function
|
|
87989
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_Template(rf, ctx) {
|
|
87949
87990
|
if (rf & 1) {
|
|
87950
|
-
|
|
87951
|
-
\u0275\
|
|
87952
|
-
\u0275\u0275elementStart(4, "expandable-card", 5)(5, "div", 8);
|
|
87953
|
-
\u0275\u0275element(6, "filing-form-group", 9);
|
|
87954
|
-
\u0275\u0275elementStart(7, "filing-form-group", 7);
|
|
87955
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
87956
|
-
\u0275\u0275restoreView(_r15);
|
|
87957
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87958
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87959
|
-
});
|
|
87960
|
-
\u0275\u0275elementEnd();
|
|
87961
|
-
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template, 9, 11);
|
|
87991
|
+
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
|
|
87992
|
+
\u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Template, 8, 7, "div", 9, _forTrack05);
|
|
87962
87993
|
\u0275\u0275elementEnd()();
|
|
87963
87994
|
}
|
|
87964
87995
|
if (rf & 2) {
|
|
87965
87996
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87966
|
-
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
87967
|
-
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewMailingAddress));
|
|
87968
|
-
\u0275\u0275advance();
|
|
87969
|
-
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewDeliveryAddress));
|
|
87970
|
-
const recordsSameAsRegistered_r23 = ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.SameAsRegisteredOffice);
|
|
87971
|
-
\u0275\u0275advance(2);
|
|
87972
|
-
\u0275\u0275storeLet(ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.DeliverySameAsMailing));
|
|
87973
|
-
\u0275\u0275advance();
|
|
87974
87997
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
|
|
87975
87998
|
\u0275\u0275advance(2);
|
|
87976
|
-
\u0275\
|
|
87977
|
-
\u0275\u0275advance();
|
|
87978
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.sameAsRegisteredOfficeFields);
|
|
87979
|
-
\u0275\u0275advance();
|
|
87980
|
-
\u0275\u0275conditional(!recordsSameAsRegistered_r23 ? 8 : -1);
|
|
87999
|
+
\u0275\u0275repeater(ctx_r0.recordsRows());
|
|
87981
88000
|
}
|
|
87982
88001
|
}
|
|
87983
|
-
function
|
|
88002
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_14_Template(rf, ctx) {
|
|
87984
88003
|
if (rf & 1) {
|
|
87985
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
88004
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "p");
|
|
87986
88005
|
\u0275\u0275text(3);
|
|
87987
88006
|
\u0275\u0275pipe(4, "translate");
|
|
87988
88007
|
\u0275\u0275elementEnd();
|
|
87989
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
88008
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 14)(6, "mat-radio-button", 15);
|
|
87990
88009
|
\u0275\u0275text(7);
|
|
87991
88010
|
\u0275\u0275pipe(8, "translate");
|
|
87992
88011
|
\u0275\u0275elementEnd();
|
|
87993
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
88012
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 15);
|
|
87994
88013
|
\u0275\u0275text(10);
|
|
87995
88014
|
\u0275\u0275pipe(11, "translate");
|
|
87996
88015
|
\u0275\u0275elementEnd()()()();
|
|
87997
88016
|
}
|
|
87998
88017
|
if (rf & 2) {
|
|
87999
88018
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
88000
|
-
const
|
|
88019
|
+
const annualReportReminder_r8 = \u0275\u0275readContextLet(13);
|
|
88001
88020
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
|
|
88002
88021
|
\u0275\u0275advance();
|
|
88003
|
-
\u0275\u0275property("formGroup",
|
|
88022
|
+
\u0275\u0275property("formGroup", annualReportReminder_r8);
|
|
88004
88023
|
\u0275\u0275advance(2);
|
|
88005
88024
|
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 9, "Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company."), " ");
|
|
88006
88025
|
\u0275\u0275advance(2);
|
|
@@ -88015,7 +88034,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88015
88034
|
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(11, 13, "No, I do not need to be reminded"), " ");
|
|
88016
88035
|
}
|
|
88017
88036
|
}
|
|
88018
|
-
var BritishColumbiaChangeOfOfficeAddressesFormComponent;
|
|
88037
|
+
var _forTrack05, BritishColumbiaChangeOfOfficeAddressesFormComponent;
|
|
88019
88038
|
var init_change_of_office_addresses_form_component = __esm({
|
|
88020
88039
|
"src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts"() {
|
|
88021
88040
|
init_core();
|
|
@@ -88028,16 +88047,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88028
88047
|
init_expandable_card_component();
|
|
88029
88048
|
init_british_columbia_form_enums();
|
|
88030
88049
|
init_british_columbia_change_of_office_addresses_form_constants();
|
|
88031
|
-
init_forms_utils();
|
|
88032
88050
|
init_BritishColumbiaConstants();
|
|
88033
88051
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
88034
88052
|
init_core();
|
|
88035
88053
|
init_forms();
|
|
88054
|
+
_forTrack05 = ($index, $item) => $item.label;
|
|
88036
88055
|
BritishColumbiaChangeOfOfficeAddressesFormComponent = class _BritishColumbiaChangeOfOfficeAddressesFormComponent {
|
|
88037
88056
|
form = input.required();
|
|
88038
88057
|
task = input();
|
|
88039
88058
|
errors = input([]);
|
|
88040
88059
|
isNote = input(false);
|
|
88060
|
+
/** True while the registry's current data is loading: addresses are not reported missing yet. */
|
|
88061
|
+
loading = input(false);
|
|
88041
88062
|
isSubmitted = input(false);
|
|
88042
88063
|
readonly = input(false);
|
|
88043
88064
|
visiblyValidChange = output();
|
|
@@ -88055,17 +88076,41 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88055
88076
|
deliveryNoteFields = BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS;
|
|
88056
88077
|
deliverySameAsMailingFields = BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS;
|
|
88057
88078
|
sameAsRegisteredOfficeFields = BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
|
|
88079
|
+
translate = inject(TranslateService);
|
|
88058
88080
|
sectionValidity = {};
|
|
88059
88081
|
isVisiblyValid() {
|
|
88060
88082
|
return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
|
|
88061
88083
|
}
|
|
88062
88084
|
isRegisteredOfficeValid() {
|
|
88063
|
-
|
|
88064
|
-
return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
|
|
88085
|
+
return !this.isRegisteredMissing();
|
|
88065
88086
|
}
|
|
88066
88087
|
isRecordsOfficeValid() {
|
|
88067
|
-
|
|
88068
|
-
|
|
88088
|
+
return !this.isRecordsMissing();
|
|
88089
|
+
}
|
|
88090
|
+
/** One message per missing office address, shown in the banner at the top of the form. */
|
|
88091
|
+
missingMessages() {
|
|
88092
|
+
const t = (key) => this.translate.instant(key);
|
|
88093
|
+
const records = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88094
|
+
if (this.loading() || !records || !this.getFormGroup(this.groups.RegisteredOfficeAddress)) {
|
|
88095
|
+
return [];
|
|
88096
|
+
}
|
|
88097
|
+
const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
|
|
88098
|
+
const [regMailing, regDelivery] = this.registeredRows();
|
|
88099
|
+
const [recMailing, recDelivery] = this.recordsRows();
|
|
88100
|
+
return [
|
|
88101
|
+
!regMailing.value && t("The Registered Office mailing address is missing. Add it in UEM, then try again."),
|
|
88102
|
+
!regDelivery.value && t("The Registered Office delivery address is missing. Add it in UEM, then try again."),
|
|
88103
|
+
// "Same as Registered Office" is already reported by the registered office messages.
|
|
88104
|
+
!recordsSameAsRegistered && !recMailing.value && t("The Records Office mailing address is missing. Add it in UEM, then try again."),
|
|
88105
|
+
!recordsSameAsRegistered && !recDelivery.value && t("The Records Office delivery address is missing. Add it in UEM, then try again.")
|
|
88106
|
+
].filter((m) => !!m);
|
|
88107
|
+
}
|
|
88108
|
+
/** The incoming Shared Address supplied no new address for a line (and none is on the register). */
|
|
88109
|
+
isRegisteredMissing() {
|
|
88110
|
+
return !!this.getFormGroup(this.groups.RegisteredOfficeAddress) && this.registeredRows().some((row) => !row.value);
|
|
88111
|
+
}
|
|
88112
|
+
isRecordsMissing() {
|
|
88113
|
+
return !!this.getFormGroup(this.groups.RecordsOfficeAddress) && this.recordsRows().some((row) => !row.value);
|
|
88069
88114
|
}
|
|
88070
88115
|
isChecked(office, control) {
|
|
88071
88116
|
return Boolean(office?.get(control)?.value);
|
|
@@ -88083,28 +88128,77 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88083
88128
|
getAddressGroup(office, control) {
|
|
88084
88129
|
return office?.get(control) ?? null;
|
|
88085
88130
|
}
|
|
88086
|
-
|
|
88087
|
-
|
|
88088
|
-
|
|
88131
|
+
/** Registered office lines: the new (incoming) address and, if it changed, the previous one. */
|
|
88132
|
+
registeredRows() {
|
|
88133
|
+
const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
|
|
88134
|
+
return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
|
|
88135
|
+
}
|
|
88136
|
+
/** Records office lines; "Same as Registered Office" reuses the registered office's new lines. */
|
|
88137
|
+
recordsRows() {
|
|
88138
|
+
const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88139
|
+
if (this.isChecked(office, this.controls.SameAsRegisteredOffice)) {
|
|
88140
|
+
const registered = this.registeredRows();
|
|
88141
|
+
const current = this.currentOf(office);
|
|
88142
|
+
return registered.map((row, i) => __spreadProps(__spreadValues({}, row), {
|
|
88143
|
+
previous: this.changedPrevious(row.value, i === 0 ? current.mailing : current.delivery)
|
|
88144
|
+
}));
|
|
88145
|
+
}
|
|
88146
|
+
return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
|
|
88147
|
+
}
|
|
88148
|
+
buildRows(office, deliverySame) {
|
|
88149
|
+
const current = this.currentOf(office);
|
|
88150
|
+
const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress));
|
|
88151
|
+
const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress));
|
|
88152
|
+
return [
|
|
88153
|
+
{
|
|
88154
|
+
label: "Mailing Address",
|
|
88155
|
+
value: mailing,
|
|
88156
|
+
previous: this.changedPrevious(mailing, current.mailing)
|
|
88157
|
+
},
|
|
88158
|
+
{
|
|
88159
|
+
label: "Delivery Address",
|
|
88160
|
+
value: delivery,
|
|
88161
|
+
previous: this.changedPrevious(delivery, current.delivery)
|
|
88162
|
+
}
|
|
88163
|
+
];
|
|
88164
|
+
}
|
|
88165
|
+
currentOf(office) {
|
|
88166
|
+
return {
|
|
88167
|
+
mailing: office?.get(this.controls.CurrentMailingAddress)?.value ?? "",
|
|
88168
|
+
delivery: office?.get(this.controls.CurrentDeliveryAddress)?.value ?? ""
|
|
88169
|
+
};
|
|
88170
|
+
}
|
|
88171
|
+
formatNew(group2) {
|
|
88172
|
+
const c = this.controls;
|
|
88173
|
+
const v = group2?.getRawValue() ?? {};
|
|
88174
|
+
if (![v[c.AddressLine1], v[c.City], v[c.PostalCode]].some((part) => part?.trim())) {
|
|
88175
|
+
return "";
|
|
88176
|
+
}
|
|
88177
|
+
return [v[c.AddressLine1], v[c.AddressLine2], v[c.City], v[c.Province], v[c.PostalCode], v[c.Country]].filter((part) => Boolean(part?.trim())).join(", ");
|
|
88178
|
+
}
|
|
88179
|
+
/** The previous address, only when it exists and differs from the new one. */
|
|
88180
|
+
changedPrevious(next, previous) {
|
|
88181
|
+
const normalize = (s) => s.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
88182
|
+
return previous && normalize(previous) !== normalize(next) ? previous : "";
|
|
88089
88183
|
}
|
|
88090
88184
|
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
|
|
88091
88185
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
|
|
88092
88186
|
};
|
|
88093
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesFormComponent, selectors: [["british-columbia-change-of-office-addresses-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls:
|
|
88187
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesFormComponent, selectors: [["british-columbia-change-of-office-addresses-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], loading: [1, "loading"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 15, vars: 11, consts: [[1, "change-of-office-addresses-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "change-of-office-addresses-form-content"], [3, "title"], [3, "isStatusIcon", "isValid", "title"], [3, "isStatusIcon", "title"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item"], [1, "change-of-office-addresses-form-address"], [1, "body-1-regular", "grey"], [1, "body-1-semibold"], [1, "change-of-office-addresses-form-previous"], [1, "annual-reminder", 3, "formGroup"], [3, "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfOfficeAddressesFormComponent_Template(rf, ctx) {
|
|
88094
88188
|
if (rf & 1) {
|
|
88095
88189
|
\u0275\u0275elementStart(0, "div", 0);
|
|
88096
|
-
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
88097
|
-
\u0275\u0275elementStart(
|
|
88098
|
-
\u0275\u0275declareLet(
|
|
88099
|
-
\u0275\u0275template(
|
|
88100
|
-
\u0275\u0275declareLet(
|
|
88101
|
-
\u0275\u0275template(
|
|
88102
|
-
\u0275\u0275declareLet(
|
|
88103
|
-
\u0275\u0275template(
|
|
88104
|
-
\u0275\u0275declareLet(
|
|
88105
|
-
\u0275\u0275template(
|
|
88106
|
-
\u0275\u0275declareLet(
|
|
88107
|
-
\u0275\u0275template(
|
|
88190
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2)(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_3_Template, 1, 1, "alert", 2);
|
|
88191
|
+
\u0275\u0275elementStart(4, "div", 3);
|
|
88192
|
+
\u0275\u0275declareLet(5);
|
|
88193
|
+
\u0275\u0275template(6, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template, 2, 4, "expandable-card", 4);
|
|
88194
|
+
\u0275\u0275declareLet(7);
|
|
88195
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template, 2, 6, "expandable-card", 5);
|
|
88196
|
+
\u0275\u0275declareLet(9);
|
|
88197
|
+
\u0275\u0275template(10, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_Template, 4, 3, "expandable-card", 5);
|
|
88198
|
+
\u0275\u0275declareLet(11);
|
|
88199
|
+
\u0275\u0275template(12, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_Template, 4, 3, "expandable-card", 5);
|
|
88200
|
+
\u0275\u0275declareLet(13);
|
|
88201
|
+
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_14_Template, 12, 15, "expandable-card", 6);
|
|
88108
88202
|
\u0275\u0275elementEnd()();
|
|
88109
88203
|
}
|
|
88110
88204
|
if (rf & 2) {
|
|
@@ -88112,26 +88206,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88112
88206
|
\u0275\u0275conditional(ctx.isNote() ? 1 : -1);
|
|
88113
88207
|
\u0275\u0275advance();
|
|
88114
88208
|
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
88115
|
-
\u0275\u0275advance(2);
|
|
88116
|
-
const referenceNumbers_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
88117
|
-
\u0275\u0275advance();
|
|
88118
|
-
\u0275\u0275conditional(referenceNumbers_r25 ? 5 : -1);
|
|
88119
|
-
\u0275\u0275advance();
|
|
88120
|
-
const corporationDetails_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
88121
88209
|
\u0275\u0275advance();
|
|
88122
|
-
\u0275\u0275conditional(
|
|
88123
|
-
\u0275\u0275advance();
|
|
88124
|
-
const
|
|
88210
|
+
\u0275\u0275conditional(ctx.missingMessages().length ? 3 : -1);
|
|
88211
|
+
\u0275\u0275advance(2);
|
|
88212
|
+
const referenceNumbers_r9 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
88125
88213
|
\u0275\u0275advance();
|
|
88126
|
-
\u0275\u0275conditional(
|
|
88214
|
+
\u0275\u0275conditional(referenceNumbers_r9 ? 6 : -1);
|
|
88127
88215
|
\u0275\u0275advance();
|
|
88128
|
-
const
|
|
88216
|
+
const corporationDetails_r10 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
88129
88217
|
\u0275\u0275advance();
|
|
88130
|
-
\u0275\u0275conditional(
|
|
88218
|
+
\u0275\u0275conditional(corporationDetails_r10 ? 8 : -1);
|
|
88219
|
+
const registeredOffice_r11 = ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress);
|
|
88220
|
+
\u0275\u0275advance(2);
|
|
88221
|
+
\u0275\u0275conditional(registeredOffice_r11 ? 10 : -1);
|
|
88222
|
+
const recordsOffice_r12 = ctx.getFormGroup(ctx.groups.RecordsOfficeAddress);
|
|
88223
|
+
\u0275\u0275advance(2);
|
|
88224
|
+
\u0275\u0275conditional(recordsOffice_r12 ? 12 : -1);
|
|
88131
88225
|
\u0275\u0275advance();
|
|
88132
|
-
const
|
|
88226
|
+
const annualReportReminder_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
88133
88227
|
\u0275\u0275advance();
|
|
88134
|
-
\u0275\u0275conditional(
|
|
88228
|
+
\u0275\u0275conditional(annualReportReminder_r13 ? 14 : -1);
|
|
88135
88229
|
}
|
|
88136
88230
|
}, dependencies: [
|
|
88137
88231
|
FilingFormGroupComponent,
|
|
@@ -88145,7 +88239,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88145
88239
|
FormGroupDirective,
|
|
88146
88240
|
FormControlName,
|
|
88147
88241
|
TranslatePipe
|
|
88148
|
-
], styles: [
|
|
88242
|
+
], styles: ['\n\n[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 14px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] .mat-mdc-radio-button .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] .mat-mdc-radio-button {\n --mdc-radio-state-layer-size: 40px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-item-title[_ngcontent-%COMP%] {\n color: var(--filing-modal-color-dark-blue);\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-address[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-previous[_ngcontent-%COMP%] {\n font-size: 13px !important;\n line-height: 18px;\n font-family: "Open Sans";\n font-style: italic;\n color: var(--filing-modal-color-grey-mid);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */'], changeDetection: 0 });
|
|
88149
88243
|
};
|
|
88150
88244
|
(() => {
|
|
88151
88245
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
|
|
@@ -88173,6 +88267,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88173
88267
|
[content]="errors()"\r
|
|
88174
88268
|
/>\r
|
|
88175
88269
|
}\r
|
|
88270
|
+
\r
|
|
88271
|
+
@if (missingMessages().length) {\r
|
|
88272
|
+
<alert\r
|
|
88273
|
+
title="The following issues need to be resolved before proceeding:"\r
|
|
88274
|
+
[content]="missingMessages()"\r
|
|
88275
|
+
/>\r
|
|
88276
|
+
}\r
|
|
88176
88277
|
\r
|
|
88177
88278
|
<div class="change-of-office-addresses-form-content">\r
|
|
88178
88279
|
@let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
|
|
@@ -88209,54 +88310,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88209
88310
|
@let registeredOffice = getFormGroup(groups.RegisteredOfficeAddress);\r
|
|
88210
88311
|
\r
|
|
88211
88312
|
@if (registeredOffice) {\r
|
|
88212
|
-
@let registeredMailing = getAddressGroup(registeredOffice, controls.NewMailingAddress);\r
|
|
88213
|
-
@let registeredDelivery = getAddressGroup(registeredOffice, controls.NewDeliveryAddress);\r
|
|
88214
|
-
@let registeredDeliverySame = isChecked(registeredOffice, controls.DeliverySameAsMailing);\r
|
|
88215
|
-
\r
|
|
88216
88313
|
<expandable-card\r
|
|
88217
88314
|
[isStatusIcon]="!readonly()"\r
|
|
88218
88315
|
[isValid]="isRegisteredOfficeValid()"\r
|
|
88219
88316
|
[title]="groups.RegisteredOfficeAddress"\r
|
|
88220
88317
|
>\r
|
|
88221
88318
|
<div class="change-of-office-addresses-form-item">\r
|
|
88222
|
-
|
|
88223
|
-
|
|
88224
|
-
|
|
88225
|
-
|
|
88226
|
-
|
|
88227
|
-
|
|
88228
|
-
|
|
88229
|
-
|
|
88230
|
-
|
|
88231
|
-
|
|
88232
|
-
|
|
88233
|
-
|
|
88234
|
-
[config]="addressFields"\r
|
|
88235
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88236
|
-
/>\r
|
|
88237
|
-
}\r
|
|
88238
|
-
\r
|
|
88239
|
-
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
88240
|
-
\r
|
|
88241
|
-
<filing-form-group\r
|
|
88242
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88243
|
-
[form]="registeredOffice"\r
|
|
88244
|
-
[config]="deliverySameAsMailingFields"\r
|
|
88245
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88246
|
-
/>\r
|
|
88247
|
-
\r
|
|
88248
|
-
@if (!registeredDeliverySame && registeredDelivery) {\r
|
|
88249
|
-
<filing-form-group\r
|
|
88250
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88251
|
-
[form]="registeredOffice"\r
|
|
88252
|
-
[config]="deliveryNoteFields"\r
|
|
88253
|
-
/>\r
|
|
88254
|
-
<filing-form-group\r
|
|
88255
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88256
|
-
[form]="registeredDelivery"\r
|
|
88257
|
-
[config]="addressFields"\r
|
|
88258
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88259
|
-
/>\r
|
|
88319
|
+
@for (row of registeredRows(); track row.label) {\r
|
|
88320
|
+
<div class="change-of-office-addresses-form-address">\r
|
|
88321
|
+
<div class="body-1-regular grey">\r
|
|
88322
|
+
<span class="body-1-semibold">{{ row.label | translate }}:</span>\r
|
|
88323
|
+
{{ row.value || ('Not specified' | translate) }}\r
|
|
88324
|
+
</div>\r
|
|
88325
|
+
@if (row.previous) {\r
|
|
88326
|
+
<div class="change-of-office-addresses-form-previous">\r
|
|
88327
|
+
{{ 'Previous' | translate }}: {{ row.previous }}\r
|
|
88328
|
+
</div>\r
|
|
88329
|
+
}\r
|
|
88330
|
+
</div>\r
|
|
88260
88331
|
}\r
|
|
88261
88332
|
</div>\r
|
|
88262
88333
|
</expandable-card>\r
|
|
@@ -88266,59 +88337,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88266
88337
|
@let recordsOffice = getFormGroup(groups.RecordsOfficeAddress);\r
|
|
88267
88338
|
\r
|
|
88268
88339
|
@if (recordsOffice) {\r
|
|
88269
|
-
@let recordsMailing = getAddressGroup(recordsOffice, controls.NewMailingAddress);\r
|
|
88270
|
-
@let recordsDelivery = getAddressGroup(recordsOffice, controls.NewDeliveryAddress);\r
|
|
88271
|
-
@let recordsSameAsRegistered = isChecked(recordsOffice, controls.SameAsRegisteredOffice);\r
|
|
88272
|
-
@let recordsDeliverySame = isChecked(recordsOffice, controls.DeliverySameAsMailing);\r
|
|
88273
|
-
\r
|
|
88274
88340
|
<expandable-card\r
|
|
88275
88341
|
[isStatusIcon]="!readonly()"\r
|
|
88276
88342
|
[isValid]="isRecordsOfficeValid()"\r
|
|
88277
88343
|
[title]="groups.RecordsOfficeAddress"\r
|
|
88278
88344
|
>\r
|
|
88279
88345
|
<div class="change-of-office-addresses-form-item">\r
|
|
88280
|
-
|
|
88281
|
-
|
|
88282
|
-
|
|
88283
|
-
|
|
88284
|
-
|
|
88285
|
-
|
|
88286
|
-
|
|
88287
|
-
|
|
88288
|
-
|
|
88289
|
-
|
|
88290
|
-
|
|
88291
|
-
|
|
88292
|
-
\r
|
|
88293
|
-
@if (!recordsSameAsRegistered) {\r
|
|
88294
|
-
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
|
|
88295
|
-
\r
|
|
88296
|
-
@if (recordsMailing) {\r
|
|
88297
|
-
<filing-form-group\r
|
|
88298
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88299
|
-
[form]="recordsMailing"\r
|
|
88300
|
-
[config]="addressFields"\r
|
|
88301
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88302
|
-
/>\r
|
|
88303
|
-
}\r
|
|
88304
|
-
\r
|
|
88305
|
-
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
88306
|
-
\r
|
|
88307
|
-
<filing-form-group\r
|
|
88308
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88309
|
-
[form]="recordsOffice"\r
|
|
88310
|
-
[config]="deliverySameAsMailingFields"\r
|
|
88311
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88312
|
-
/>\r
|
|
88313
|
-
\r
|
|
88314
|
-
@if (!recordsDeliverySame && recordsDelivery) {\r
|
|
88315
|
-
<filing-form-group\r
|
|
88316
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88317
|
-
[form]="recordsDelivery"\r
|
|
88318
|
-
[config]="addressFields"\r
|
|
88319
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88320
|
-
/>\r
|
|
88321
|
-
}\r
|
|
88346
|
+
@for (row of recordsRows(); track row.label) {\r
|
|
88347
|
+
<div class="change-of-office-addresses-form-address">\r
|
|
88348
|
+
<div class="body-1-regular grey">\r
|
|
88349
|
+
<span class="body-1-semibold">{{ row.label | translate }}:</span>\r
|
|
88350
|
+
{{ row.value || ('Not specified' | translate) }}\r
|
|
88351
|
+
</div>\r
|
|
88352
|
+
@if (row.previous) {\r
|
|
88353
|
+
<div class="change-of-office-addresses-form-previous">\r
|
|
88354
|
+
{{ 'Previous' | translate }}: {{ row.previous }}\r
|
|
88355
|
+
</div>\r
|
|
88356
|
+
}\r
|
|
88357
|
+
</div>\r
|
|
88322
88358
|
}\r
|
|
88323
88359
|
</div>\r
|
|
88324
88360
|
</expandable-card>\r
|
|
@@ -88348,11 +88384,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88348
88384
|
}\r
|
|
88349
88385
|
</div>\r
|
|
88350
88386
|
</div>\r
|
|
88351
|
-
`, styles: [
|
|
88387
|
+
`, styles: ['/* src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.scss */\n:host {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n:host .change-of-office-addresses-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-office-addresses-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n}\n:host .change-of-office-addresses-form .annual-reminder {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n:host .change-of-office-addresses-form .annual-reminder p {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n:host .change-of-office-addresses-form .annual-reminder mat-radio-group {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 14px;\n}\n:host .change-of-office-addresses-form .annual-reminder ::ng-deep .mat-mdc-radio-button .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n:host .change-of-office-addresses-form .annual-reminder ::ng-deep .mat-mdc-radio-button {\n --mdc-radio-state-layer-size: 40px;\n}\n:host .change-of-office-addresses-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .change-of-office-addresses-form-item-title {\n color: var(--filing-modal-color-dark-blue);\n}\n:host .change-of-office-addresses-form-address {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .change-of-office-addresses-form-previous {\n font-size: 13px !important;\n line-height: 18px;\n font-family: "Open Sans";\n font-style: italic;\n color: var(--filing-modal-color-grey-mid);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */\n'] }]
|
|
88352
88388
|
}], null, null);
|
|
88353
88389
|
})();
|
|
88354
88390
|
(() => {
|
|
88355
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfOfficeAddressesFormComponent, { className: "BritishColumbiaChangeOfOfficeAddressesFormComponent", filePath: "src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts", lineNumber:
|
|
88391
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfOfficeAddressesFormComponent, { className: "BritishColumbiaChangeOfOfficeAddressesFormComponent", filePath: "src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts", lineNumber: 61 });
|
|
88356
88392
|
})();
|
|
88357
88393
|
}
|
|
88358
88394
|
});
|
|
@@ -88406,7 +88442,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88406
88442
|
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Factory(__ngFactoryType__) {
|
|
88407
88443
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent)();
|
|
88408
88444
|
};
|
|
88409
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent, selectors: [["british-columbia-change-of-office-addresses-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:
|
|
88445
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent, selectors: [["british-columbia-change-of-office-addresses-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: 19, consts: [[1, "change-of-office-addresses-delta-form"], [1, "change-of-office-addresses-delta-form-content", 3, "visiblyValidChange", "form", "task", "errors", "isNote", "loading", "isSubmitted", "readonly"], [1, "change-of-office-addresses-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 BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template(rf, ctx) {
|
|
88410
88446
|
if (rf & 1) {
|
|
88411
88447
|
\u0275\u0275elementStart(0, "div", 0)(1, "british-columbia-change-of-office-addresses-form", 1);
|
|
88412
88448
|
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_british_columbia_change_of_office_addresses_form_visiblyValidChange_1_listener($event) {
|
|
@@ -88440,19 +88476,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88440
88476
|
}
|
|
88441
88477
|
if (rf & 2) {
|
|
88442
88478
|
\u0275\u0275advance();
|
|
88443
|
-
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("isSubmitted", ctx.submitted())("readonly", false);
|
|
88479
|
+
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("loading", ctx.actionsDisabled())("isSubmitted", ctx.submitted())("readonly", false);
|
|
88444
88480
|
\u0275\u0275advance(2);
|
|
88445
88481
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
88446
88482
|
\u0275\u0275advance(2);
|
|
88447
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6,
|
|
88483
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 13, "Close"));
|
|
88448
88484
|
\u0275\u0275advance(2);
|
|
88449
88485
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
88450
88486
|
\u0275\u0275advance(2);
|
|
88451
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10,
|
|
88487
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 15, "Save Changes"));
|
|
88452
88488
|
\u0275\u0275advance(2);
|
|
88453
88489
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
88454
88490
|
\u0275\u0275advance(2);
|
|
88455
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14,
|
|
88491
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 17, "Validate & Generate Draft"));
|
|
88456
88492
|
}
|
|
88457
88493
|
}, dependencies: [MatButton, TranslatePipe, BritishColumbiaChangeOfOfficeAddressesFormComponent], styles: ["\n\n[_nghost-%COMP%] .change-of-office-addresses-delta-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-office-addresses-delta-form-content[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-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%] .change-of-office-addresses-delta-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-delta-form-actions[_ngcontent-%COMP%] .submit[_ngcontent-%COMP%] {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=change-of-office-addresses-delta-form.component.css.map */"], changeDetection: 0 });
|
|
88458
88494
|
};
|
|
@@ -88466,6 +88502,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88466
88502
|
[task]="task()"\r
|
|
88467
88503
|
[errors]="combinedErrors()"\r
|
|
88468
88504
|
[isNote]="isNote()"\r
|
|
88505
|
+
[loading]="actionsDisabled()"\r
|
|
88469
88506
|
[isSubmitted]="submitted()"\r
|
|
88470
88507
|
[readonly]="false"\r
|
|
88471
88508
|
(visiblyValidChange)="onVisiblyValidChange($event)"\r
|
|
@@ -88792,6 +88829,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88792
88829
|
actionsDisabled = input(false);
|
|
88793
88830
|
errors = input([]);
|
|
88794
88831
|
currentDataExtract = input();
|
|
88832
|
+
/** False while the registry's current data is loading; the validated-draft preview waits for it. */
|
|
88833
|
+
extractReady = input(true);
|
|
88795
88834
|
close = output();
|
|
88796
88835
|
codValidate = output();
|
|
88797
88836
|
saveCodDeltaData = output();
|
|
@@ -88827,7 +88866,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88827
88866
|
this.deltaState.setBCFormationInitialDelta(this.generateFormationDeltaData());
|
|
88828
88867
|
}
|
|
88829
88868
|
if (task && isChangeOfAddressTask(task)) {
|
|
88830
|
-
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key))));
|
|
88869
|
+
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract())));
|
|
88831
88870
|
this.deltaState.setBCChangeOfOfficeAddressesInitialDelta(this.generateChangeOfOfficeAddressesDeltaData());
|
|
88832
88871
|
}
|
|
88833
88872
|
});
|
|
@@ -88853,8 +88892,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88853
88892
|
this.nextStep.emit();
|
|
88854
88893
|
}
|
|
88855
88894
|
}
|
|
88856
|
-
if (task && isChangeOfAddressTask(task) && deltaData) {
|
|
88857
|
-
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
|
|
88895
|
+
if (task && isChangeOfAddressTask(task) && deltaData && this.extractReady()) {
|
|
88896
|
+
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract()));
|
|
88858
88897
|
form.disable();
|
|
88859
88898
|
this.previewForm.set(form);
|
|
88860
88899
|
const step = untracked2(() => this.activeStep());
|
|
@@ -88968,7 +89007,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88968
89007
|
annualReportReminder: reminder?.[c.AnnualReportReminder] ?? null,
|
|
88969
89008
|
directorChanges: {
|
|
88970
89009
|
addIds: directors.filter((d) => d[c.AffiliationType] === "Add").map((d) => d[c.Id]).filter(Boolean),
|
|
88971
|
-
editIds: directors.filter((d) => d[c.AffiliationType] === "Update"
|
|
89010
|
+
editIds: directors.filter((d) => d[c.AffiliationType] === "Update").map((d) => d[c.Id]).filter(Boolean),
|
|
88972
89011
|
ceaseIds: directors.filter((d) => d[c.AffiliationType] === "Cease").map((d) => d[c.Id]).filter(Boolean)
|
|
88973
89012
|
}
|
|
88974
89013
|
};
|
|
@@ -89047,7 +89086,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89047
89086
|
static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
|
|
89048
89087
|
return new (__ngFactoryType__ || _BritishColumbiaComponent)();
|
|
89049
89088
|
};
|
|
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) {
|
|
89089
|
+
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"], extractReady: [1, "extractReady"] }, 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) {
|
|
89051
89090
|
if (rf & 1) {
|
|
89052
89091
|
\u0275\u0275declareLet(0);
|
|
89053
89092
|
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2)(3, BritishColumbiaComponent_Conditional_3_Template, 2, 2);
|
|
@@ -90736,7 +90775,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90736
90775
|
\u0275\u0275pipe(7, "translate");
|
|
90737
90776
|
\u0275\u0275elementEnd();
|
|
90738
90777
|
\u0275\u0275elementStart(8, "ul", 16);
|
|
90739
|
-
\u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17,
|
|
90778
|
+
\u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17, _forTrack06);
|
|
90740
90779
|
\u0275\u0275elementEnd()();
|
|
90741
90780
|
\u0275\u0275elementStart(11, "span", 17);
|
|
90742
90781
|
\u0275\u0275text(12);
|
|
@@ -90939,7 +90978,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90939
90978
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", contactForm_r24)("config", ctx_r0.contactControl);
|
|
90940
90979
|
}
|
|
90941
90980
|
}
|
|
90942
|
-
var _c016,
|
|
90981
|
+
var _c016, _forTrack06, FederalIncorporationFormComponent;
|
|
90943
90982
|
var init_federal_incorporation_form_component = __esm({
|
|
90944
90983
|
"src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts"() {
|
|
90945
90984
|
init_core();
|
|
@@ -90964,7 +91003,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90964
91003
|
init_common();
|
|
90965
91004
|
init_core();
|
|
90966
91005
|
_c016 = ["*"];
|
|
90967
|
-
|
|
91006
|
+
_forTrack06 = ($index, $item) => $item.affiliationID;
|
|
90968
91007
|
FederalIncorporationFormComponent = class _FederalIncorporationFormComponent {
|
|
90969
91008
|
form = input.required();
|
|
90970
91009
|
isNote = input(false);
|
|
@@ -95307,10 +95346,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95307
95346
|
/**
|
|
95308
95347
|
* Orders the corporation's current data extract and waits until it is ready, returning the
|
|
95309
95348
|
* `currentDataServiceOrderId` that Validate Filing needs. The registry bot can take a while,
|
|
95310
|
-
* so the extract is polled every `intervalMs`
|
|
95349
|
+
* so the extract is polled every `intervalMs` for up to `maxAttempts` times.
|
|
95311
95350
|
*/
|
|
95312
95351
|
ensureCurrentDataExtract(_0, _1) {
|
|
95313
|
-
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3 } = {}) {
|
|
95352
|
+
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3, maxAttempts = 40 } = {}) {
|
|
95314
95353
|
ensureAuthInputs(signature);
|
|
95315
95354
|
const fetchFn = opts.fetchImpl ?? fetch;
|
|
95316
95355
|
const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
|
|
@@ -95324,7 +95363,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95324
95363
|
errors: ordered.errors?.length ? ordered.errors : (ordered.additionalInformation ?? []).map((message) => ({ message }))
|
|
95325
95364
|
}));
|
|
95326
95365
|
}
|
|
95327
|
-
for (; ; ) {
|
|
95366
|
+
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
95328
95367
|
const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
|
|
95329
95368
|
method: "GET",
|
|
95330
95369
|
headers: __spreadValues({
|
|
@@ -95343,6 +95382,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95343
95382
|
}
|
|
95344
95383
|
yield new Promise((resolve) => setTimeout(resolve, intervalMs));
|
|
95345
95384
|
}
|
|
95385
|
+
throw new Error("BC current data extract is still processing. Please try again in a moment.");
|
|
95346
95386
|
});
|
|
95347
95387
|
}
|
|
95348
95388
|
getCurrentDataExtract() {
|
|
@@ -95500,13 +95540,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95500
95540
|
...outgoingDirectors
|
|
95501
95541
|
].map((affiliation) => [String(affiliation._id), affiliation]));
|
|
95502
95542
|
const selected = deltaData.directorChanges;
|
|
95503
|
-
const
|
|
95504
|
-
const
|
|
95505
|
-
const
|
|
95506
|
-
const addSource = incomingSource.length ? incomingSource.filter((affiliation) => findDirectorNumber(affiliation, currentDataExtract) === void 0) : addedDirectors;
|
|
95507
|
-
const matchedEditSource = incomingSource.filter((affiliation) => findDirectorNumber(affiliation, currentDataExtract) !== void 0);
|
|
95508
|
-
const editSource = incomingSource.length ? matchedEditSource : editedDirectors;
|
|
95509
|
-
const ceaseSource = selected?.ceaseIds.length ? selected.ceaseIds.map((id) => byId.get(String(id))).filter(Boolean) : outgoingDirectors.length ? outgoingDirectors : ceasedDirectors;
|
|
95543
|
+
const addSource = selected ? selected.addIds.map((id) => byId.get(String(id))).filter(Boolean) : incomingDirectors.length ? incomingDirectors : addedDirectors;
|
|
95544
|
+
const editSource = selected ? selected.editIds.map((id) => byId.get(String(id))).filter(Boolean) : editedDirectors;
|
|
95545
|
+
const ceaseSource = selected ? selected.ceaseIds.map((id) => byId.get(String(id))).filter(Boolean) : outgoingDirectors.length ? outgoingDirectors : ceasedDirectors;
|
|
95510
95546
|
const addDirectors = addSource.map((affiliation) => buildDirector(affiliation));
|
|
95511
95547
|
const ceaseDirectors = ceaseSource.map((affiliation) => buildCeasedDirector(affiliation));
|
|
95512
95548
|
const editDirectors = editSource.map((director) => {
|
|
@@ -95659,7 +95695,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95659
95695
|
return String(id);
|
|
95660
95696
|
});
|
|
95661
95697
|
}
|
|
95662
|
-
/** Polls the extract until the registry has it ready (`success`). */
|
|
95698
|
+
/** Polls the extract until the registry has it ready (`success`) and returns the extract. */
|
|
95663
95699
|
waitForCurrentDataExtract(_0, _1) {
|
|
95664
95700
|
return __async(this, arguments, function* (signature, extractId, opts = {}, poll = {}) {
|
|
95665
95701
|
const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_EXTRACT_POLL), poll);
|
|
@@ -95668,7 +95704,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95668
95704
|
const { status, ok, body, raw } = yield this.send(signature, "GET", `${DATA_EXTRACT_PATH}/${encodeURIComponent(extractId)}`, void 0, opts);
|
|
95669
95705
|
const state2 = String(body?.status ?? "").toLowerCase();
|
|
95670
95706
|
if (ok && state2 === "success") {
|
|
95671
|
-
return;
|
|
95707
|
+
return body ?? {};
|
|
95672
95708
|
}
|
|
95673
95709
|
if (!ok || state2 === "failed" || state2 === "sourceunavailable") {
|
|
95674
95710
|
throw this.failure(status, "Retrieving the current data from the registry failed", body, raw);
|
|
@@ -95906,7 +95942,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95906
95942
|
"src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
|
|
95907
95943
|
init_BritishColumbiaConstants();
|
|
95908
95944
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
95909
|
-
TEMP_UAT_TEST_ACCESS_CODE = "
|
|
95945
|
+
TEMP_UAT_TEST_ACCESS_CODE = "xxxxxxxx";
|
|
95910
95946
|
BC_PROVINCE_CODE = "BC";
|
|
95911
95947
|
CANADA_COUNTRY_CODE = "CA";
|
|
95912
95948
|
clean = (value) => (value ?? "").trim();
|
|
@@ -96046,7 +96082,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96046
96082
|
if (rf & 2) {
|
|
96047
96083
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
96048
96084
|
const currentTask_r5 = \u0275\u0275readContextLet(9);
|
|
96049
|
-
\u0275\u0275property("task", currentTask_r5)("currentUser", ctx_r2.currentUser())("activeStep", ctx_r2.activeStep())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("errors", ctx_r2.errors())("currentDataExtract", ctx_r2.currentDataExtract());
|
|
96085
|
+
\u0275\u0275property("task", currentTask_r5)("currentUser", ctx_r2.currentUser())("activeStep", ctx_r2.activeStep())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("errors", ctx_r2.errors())("currentDataExtract", ctx_r2.currentDataExtract())("extractReady", ctx_r2.bcCoaExtractReady());
|
|
96050
96086
|
}
|
|
96051
96087
|
}
|
|
96052
96088
|
function FilingComponent_Conditional_10_Conditional_2_Template(rf, ctx) {
|
|
@@ -96096,7 +96132,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96096
96132
|
}
|
|
96097
96133
|
function FilingComponent_Conditional_10_Template(rf, ctx) {
|
|
96098
96134
|
if (rf & 1) {
|
|
96099
|
-
\u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1,
|
|
96135
|
+
\u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1, 8, "british-columbia", 9)(2, FilingComponent_Conditional_10_Conditional_2_Template, 1, 5, "federal", 10);
|
|
96100
96136
|
}
|
|
96101
96137
|
if (rf & 2) {
|
|
96102
96138
|
const ctx_r2 = \u0275\u0275nextContext();
|
|
@@ -96144,6 +96180,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96144
96180
|
init_british_columbia_change_of_directors_service();
|
|
96145
96181
|
init_british_columbia_change_of_directors_mapper();
|
|
96146
96182
|
init_british_columbia_maintenance_service();
|
|
96183
|
+
init_british_columbia_change_of_office_addresses_form_helper();
|
|
96147
96184
|
init_british_columbia_change_of_office_addresses_mapper();
|
|
96148
96185
|
init_core();
|
|
96149
96186
|
init_button();
|
|
@@ -96218,6 +96255,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96218
96255
|
dataWasChanged = signal(false);
|
|
96219
96256
|
serviceOrderId = "";
|
|
96220
96257
|
bcCurrentDataServiceOrderId = "";
|
|
96258
|
+
/** The registry's current data ordered for the Change of Office Addresses; reused by Validate. */
|
|
96259
|
+
bcCoaExtractId = "";
|
|
96260
|
+
/** False while the registry's current office addresses are loading. */
|
|
96261
|
+
bcCoaExtractReady = signal(true);
|
|
96262
|
+
/** Numbers the loads, so a load for a task that is no longer the active one cannot publish. */
|
|
96263
|
+
bcCoaLoadId = 0;
|
|
96221
96264
|
currentDataExtract = signal(void 0);
|
|
96222
96265
|
bcDataExtractTaskId = "";
|
|
96223
96266
|
activeStep = signal(Step.Validate);
|
|
@@ -96312,8 +96355,62 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96312
96355
|
this.isLoading.set(false);
|
|
96313
96356
|
}
|
|
96314
96357
|
}
|
|
96358
|
+
if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
|
|
96359
|
+
if (!this._signature()) {
|
|
96360
|
+
return;
|
|
96361
|
+
}
|
|
96362
|
+
this.bcDataExtractTaskId = task._id;
|
|
96363
|
+
yield this.loadBritishColumbiaOfficeAddressExtract(task);
|
|
96364
|
+
}
|
|
96315
96365
|
}));
|
|
96316
96366
|
}
|
|
96367
|
+
/**
|
|
96368
|
+
* Orders the registry's current office addresses as soon as the Change of Office Addresses opens,
|
|
96369
|
+
* so each office shows its registry address as "Previous". If the registry is unavailable the form
|
|
96370
|
+
* falls back to the Entity's own addresses, and Validate orders the extract again.
|
|
96371
|
+
*/
|
|
96372
|
+
loadBritishColumbiaOfficeAddressExtract(task) {
|
|
96373
|
+
return __async(this, null, function* () {
|
|
96374
|
+
const signature = this._signature();
|
|
96375
|
+
if (!signature) {
|
|
96376
|
+
return;
|
|
96377
|
+
}
|
|
96378
|
+
const loadId = ++this.bcCoaLoadId;
|
|
96379
|
+
const isLatest = () => loadId === this.bcCoaLoadId;
|
|
96380
|
+
const isActive = () => isLatest() && this.task()?._id === task._id;
|
|
96381
|
+
this.bcCoaExtractId = "";
|
|
96382
|
+
this.isLoading.set(true);
|
|
96383
|
+
this.bcCoaExtractReady.set(false);
|
|
96384
|
+
try {
|
|
96385
|
+
const opts = this.validateOptions() ?? {};
|
|
96386
|
+
const context2 = this.getBritishColumbiaOfficeAddressContext(task, signature);
|
|
96387
|
+
const extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
96388
|
+
const extract = yield this.bcMaintenanceService.waitForCurrentDataExtract(signature, extractId, opts);
|
|
96389
|
+
if (isActive()) {
|
|
96390
|
+
this.bcCoaExtractId = extractId;
|
|
96391
|
+
this.currentDataExtract.set(extract);
|
|
96392
|
+
}
|
|
96393
|
+
} catch (error) {
|
|
96394
|
+
if (isActive()) {
|
|
96395
|
+
this.bcCoaExtractId = "";
|
|
96396
|
+
this.currentDataExtract.set(void 0);
|
|
96397
|
+
console.warn("The registry's current office addresses could not be loaded.", error);
|
|
96398
|
+
}
|
|
96399
|
+
} finally {
|
|
96400
|
+
if (isLatest()) {
|
|
96401
|
+
this.bcCoaExtractReady.set(true);
|
|
96402
|
+
this.isLoading.set(false);
|
|
96403
|
+
}
|
|
96404
|
+
}
|
|
96405
|
+
});
|
|
96406
|
+
}
|
|
96407
|
+
getBritishColumbiaOfficeAddressContext(task, signature) {
|
|
96408
|
+
return {
|
|
96409
|
+
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
96410
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode2(task, signature.env),
|
|
96411
|
+
incorporationDate: String(task.entity._compliance?.incorporation_date ?? "").slice(0, 10)
|
|
96412
|
+
};
|
|
96413
|
+
}
|
|
96317
96414
|
getCurrentData() {
|
|
96318
96415
|
return __async(this, null, function* () {
|
|
96319
96416
|
const signature = this._signature();
|
|
@@ -96518,7 +96615,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96518
96615
|
const signature = this._signature();
|
|
96519
96616
|
if (signature) {
|
|
96520
96617
|
const requestBody = buildBCFormationValidateRequest(signature.task, deltaData);
|
|
96521
|
-
const issues =
|
|
96618
|
+
const issues = [
|
|
96619
|
+
...findBCOfficeAddressIssues(signature.task),
|
|
96620
|
+
...findBCRequestIssues(requestBody)
|
|
96621
|
+
];
|
|
96522
96622
|
if (issues.length) {
|
|
96523
96623
|
this.errors.set(issues);
|
|
96524
96624
|
return;
|
|
@@ -96606,15 +96706,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96606
96706
|
}
|
|
96607
96707
|
this.isLoading.set(true);
|
|
96608
96708
|
this.errors.set([]);
|
|
96609
|
-
const requestBody = buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData);
|
|
96610
96709
|
const opts = this.validateOptions() ?? {};
|
|
96611
|
-
const context2 =
|
|
96612
|
-
|
|
96613
|
-
|
|
96614
|
-
|
|
96615
|
-
|
|
96616
|
-
|
|
96617
|
-
|
|
96710
|
+
const context2 = this.getBritishColumbiaOfficeAddressContext(task, signature);
|
|
96711
|
+
let extractId = this.bcCoaExtractId;
|
|
96712
|
+
let filingData = deltaData;
|
|
96713
|
+
if (!extractId) {
|
|
96714
|
+
extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
96715
|
+
const extract = yield this.bcMaintenanceService.waitForCurrentDataExtract(signature, extractId, opts);
|
|
96716
|
+
this.bcCoaExtractId = extractId;
|
|
96717
|
+
const { registeredOffice, recordsOffice } = BritishColumbiaChangeOfOfficeAddressesFormHelper.resolveOfficeAddresses(task, extract);
|
|
96718
|
+
filingData = __spreadProps(__spreadValues({}, deltaData), {
|
|
96719
|
+
registeredOffice: registeredOffice ?? deltaData.registeredOffice,
|
|
96720
|
+
recordsOffice: recordsOffice ?? deltaData.recordsOffice
|
|
96721
|
+
});
|
|
96722
|
+
}
|
|
96723
|
+
const requestBody = buildBCChangeOfOfficeAddressesValidateRequest(task, filingData);
|
|
96618
96724
|
const response = yield this.bcMaintenanceService.validate(signature, requestBody, extractId, context2, opts);
|
|
96619
96725
|
if (this.hasResponseErrors(response))
|
|
96620
96726
|
return;
|
|
@@ -96632,7 +96738,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96632
96738
|
documentType: "pdf"
|
|
96633
96739
|
});
|
|
96634
96740
|
}
|
|
96635
|
-
this.deltaDataChange.emit(__spreadProps(__spreadValues({},
|
|
96741
|
+
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, filingData), {
|
|
96636
96742
|
serviceOrderId,
|
|
96637
96743
|
// The corporation number is added by the service, not by the request builder, so it is
|
|
96638
96744
|
// stored explicitly (the access code is deliberately left out) to detect entity changes.
|
|
@@ -96650,13 +96756,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96650
96756
|
}
|
|
96651
96757
|
/**
|
|
96652
96758
|
* British Columbia Change of Office Addresses save – propagates delta data to the host.
|
|
96759
|
+
* The draft link (ServiceOrderId and the request it was generated from) is kept, so reopening
|
|
96760
|
+
* can tell whether the saved data still matches the draft and show "Entity changed" if not.
|
|
96653
96761
|
*/
|
|
96654
96762
|
onBritishColumbiaChangeOfOfficeAddressesSave(deltaData) {
|
|
96655
96763
|
const oldDeltaData = this.task()?.deltaData;
|
|
96764
|
+
const draftLink = oldDeltaData?.serviceOrderId && oldDeltaData?.validatedData ? {
|
|
96765
|
+
serviceOrderId: oldDeltaData.serviceOrderId,
|
|
96766
|
+
validatedData: oldDeltaData.validatedData
|
|
96767
|
+
} : {};
|
|
96656
96768
|
if (oldDeltaData) {
|
|
96657
96769
|
delete this.task()?.deltaData;
|
|
96658
96770
|
}
|
|
96659
|
-
this.deltaDataChange.emit(deltaData);
|
|
96771
|
+
this.deltaDataChange.emit(__spreadValues(__spreadValues({}, deltaData), draftLink));
|
|
96660
96772
|
}
|
|
96661
96773
|
/**
|
|
96662
96774
|
* British Columbia Change of Office Addresses submit/file: submits the filing staged by
|
|
@@ -97114,7 +97226,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97114
97226
|
if (rf & 2) {
|
|
97115
97227
|
\u0275\u0275styleProp("height", ctx.modalHeight());
|
|
97116
97228
|
}
|
|
97117
|
-
}, 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) {
|
|
97229
|
+
}, 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", "extractReady"], [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", "extractReady"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
|
|
97118
97230
|
if (rf & 1) {
|
|
97119
97231
|
const _r1 = \u0275\u0275getCurrentView();
|
|
97120
97232
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
@@ -97218,6 +97330,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97218
97330
|
[actionsDisabled]="isLoading()"\r
|
|
97219
97331
|
[errors]="errors()"\r
|
|
97220
97332
|
[currentDataExtract]="currentDataExtract()"\r
|
|
97333
|
+
[extractReady]="bcCoaExtractReady()"\r
|
|
97221
97334
|
(close)="close.emit()"\r
|
|
97222
97335
|
(nextStep)="onNextStepClick()"\r
|
|
97223
97336
|
(recheckStep)="defineInitialStep()"\r
|
|
@@ -97261,7 +97374,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97261
97374
|
}], () => [], null);
|
|
97262
97375
|
})();
|
|
97263
97376
|
(() => {
|
|
97264
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber:
|
|
97377
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 99 });
|
|
97265
97378
|
})();
|
|
97266
97379
|
}
|
|
97267
97380
|
});
|
|
@@ -101911,6 +102024,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
101911
102024
|
"File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
|
|
101912
102025
|
"Records Office Address": "Records Office Address",
|
|
101913
102026
|
"The new addresses will take effect at the beginning of the day following the filing date. The registered and records offices must be located in British Columbia.": "The new addresses will take effect at the beginning of the day following the filing date. The registered and records offices must be located in British Columbia.",
|
|
102027
|
+
"The Registered Office mailing address is missing. Add it in UEM, then try again.": "The Registered Office mailing address is missing. Add it in UEM, then try again.",
|
|
102028
|
+
"The Registered Office delivery address is missing. Add it in UEM, then try again.": "The Registered Office delivery address is missing. Add it in UEM, then try again.",
|
|
102029
|
+
"The Records Office mailing address is missing. Add it in UEM, then try again.": "The Records Office mailing address is missing. Add it in UEM, then try again.",
|
|
102030
|
+
"The Records Office delivery address is missing. Add it in UEM, then try again.": "The Records Office delivery address is missing. Add it in UEM, then try again.",
|
|
102031
|
+
"Mailing Address": "Mailing Address",
|
|
102032
|
+
"Delivery Address": "Delivery Address",
|
|
101914
102033
|
"Current Mailing Address": "Current Mailing Address",
|
|
101915
102034
|
"Current Delivery Address": "Current Delivery Address",
|
|
101916
102035
|
"New Mailing Address": "New Mailing Address",
|
|
@@ -102267,6 +102386,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102267
102386
|
"Without Par Value": "Sans valeur nominale",
|
|
102268
102387
|
"File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
|
|
102269
102388
|
"The new addresses will take effect at the beginning of the day following the filing date. The registered and records offices must be located in British Columbia.": "Les nouvelles adresses prendront effet au d\xE9but du jour suivant la date de d\xE9p\xF4t. Le si\xE8ge social et le bureau des registres doivent \xEAtre situ\xE9s en Colombie-Britannique.",
|
|
102389
|
+
"The Registered Office mailing address is missing. Add it in UEM, then try again.": "L'adresse postale du si\xE8ge social est manquante. Ajoutez-la dans UEM, puis r\xE9essayez.",
|
|
102390
|
+
"The Registered Office delivery address is missing. Add it in UEM, then try again.": "L'adresse de livraison du si\xE8ge social est manquante. Ajoutez-la dans UEM, puis r\xE9essayez.",
|
|
102391
|
+
"The Records Office mailing address is missing. Add it in UEM, then try again.": "L'adresse postale du bureau des registres est manquante. Ajoutez-la dans UEM, puis r\xE9essayez.",
|
|
102392
|
+
"The Records Office delivery address is missing. Add it in UEM, then try again.": "L'adresse de livraison du bureau des registres est manquante. Ajoutez-la dans UEM, puis r\xE9essayez.",
|
|
102393
|
+
"Mailing Address": "Adresse postale",
|
|
102394
|
+
"Delivery Address": "Adresse de livraison",
|
|
102270
102395
|
"Current Mailing Address": "Adresse postale actuelle",
|
|
102271
102396
|
"Current Delivery Address": "Adresse de livraison actuelle",
|
|
102272
102397
|
"New Mailing Address": "Nouvelle adresse postale",
|