@dyedurham/search-and-file-widget 2.1.30 → 2.1.32
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 +1088 -2234
- package/package.json +2 -2
package/dnd-filing-shell.js
CHANGED
|
@@ -58112,9 +58112,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58112
58112
|
return task?._taskType === TaskType.AnnualCompliance;
|
|
58113
58113
|
}
|
|
58114
58114
|
function getFilingProvider(task) {
|
|
58115
|
-
if (task && isBritishColumbiaTask(task)) {
|
|
58116
|
-
return "bcreg";
|
|
58117
|
-
}
|
|
58118
58115
|
return task && !isOntarioTask(task) ? "federal" : "obr";
|
|
58119
58116
|
}
|
|
58120
58117
|
function getSearchOrFilingType(task) {
|
|
@@ -81316,16 +81313,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81316
81313
|
bcChangeOfDirectorsInitialDelta = signal(null);
|
|
81317
81314
|
bcFormationInitialDelta = signal(null);
|
|
81318
81315
|
bcChangeOfOfficeAddressesInitialDelta = signal(null);
|
|
81319
|
-
bcAnnualReportInitialDelta = signal(null);
|
|
81320
81316
|
setFormationInitialDelta(delta) {
|
|
81321
81317
|
this.formationInitialDelta.set(delta);
|
|
81322
81318
|
}
|
|
81323
81319
|
setBCFormationInitialDelta(delta) {
|
|
81324
81320
|
this.bcFormationInitialDelta.set(delta);
|
|
81325
81321
|
}
|
|
81326
|
-
setBCAnnualReportInitialDelta(delta) {
|
|
81327
|
-
this.bcAnnualReportInitialDelta.set(delta);
|
|
81328
|
-
}
|
|
81329
81322
|
setBCChangeOfOfficeAddressesInitialDelta(delta) {
|
|
81330
81323
|
this.bcChangeOfOfficeAddressesInitialDelta.set(delta);
|
|
81331
81324
|
}
|
|
@@ -81349,7 +81342,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81349
81342
|
this.bcChangeOfDirectorsInitialDelta.set(null);
|
|
81350
81343
|
this.bcFormationInitialDelta.set(null);
|
|
81351
81344
|
this.bcChangeOfOfficeAddressesInitialDelta.set(null);
|
|
81352
|
-
this.bcAnnualReportInitialDelta.set(null);
|
|
81353
81345
|
}
|
|
81354
81346
|
static \u0275fac = function DeltaStateService_Factory(__ngFactoryType__) {
|
|
81355
81347
|
return new (__ngFactoryType__ || _DeltaStateService)();
|
|
@@ -84157,7 +84149,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84157
84149
|
});
|
|
84158
84150
|
|
|
84159
84151
|
// src/app/constants/BritishColumbiaConstants.ts
|
|
84160
|
-
var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BCNotificationMethod, BCNotificationMethodLabel, BC_NOTIFICATION_METHOD_OPTIONS,
|
|
84152
|
+
var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BCNotificationMethod, BCNotificationMethodLabel, BC_NOTIFICATION_METHOD_OPTIONS, BCAnnualReportReminder, BCAnnualReportReminderLabel, BC_ANNUAL_REPORT_REMINDER_OPTIONS, BC_DEFAULT_PROVINCE_STATE, BC_DEFAULT_COUNTRY, BC_FUTURE_EFFECTIVE_DATE_FEE, BC_PASSWORD_MIN_LENGTH, BC_PASSWORD_MAX_LENGTH, BC_PASSWORD_PATTERN, BC_COMPANY_EMAIL_MAX_LENGTH, BC_CANADIAN_POSTAL_PATTERN, BC_NAME_RESERVATION_MAX_LENGTH, BC_NAME_RESERVATION_PATTERN, BC_COMPLETING_PARTY_COUNTRY_OPTIONS;
|
|
84161
84153
|
var init_BritishColumbiaConstants = __esm({
|
|
84162
84154
|
"src/app/constants/BritishColumbiaConstants.ts"() {
|
|
84163
84155
|
init_app_enums();
|
|
@@ -84180,7 +84172,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84180
84172
|
[BCNotificationMethod.Mail]: "Notify by mail"
|
|
84181
84173
|
};
|
|
84182
84174
|
BC_NOTIFICATION_METHOD_OPTIONS = Object.values(BCNotificationMethod).map((value) => ({ value, label: BCNotificationMethodLabel[value] }));
|
|
84183
|
-
BC_CHANGE_OF_DIRECTORS_FILING_FEE = "$21.50";
|
|
84184
84175
|
(function(BCAnnualReportReminder2) {
|
|
84185
84176
|
BCAnnualReportReminder2["Yes"] = "yes";
|
|
84186
84177
|
BCAnnualReportReminder2["No"] = "no";
|
|
@@ -84210,7 +84201,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84210
84201
|
});
|
|
84211
84202
|
|
|
84212
84203
|
// src/app/enums/british-columbia-form.enums.ts
|
|
84213
|
-
var BCChangeOfDirectorsFormControls, BCChangeOfDirectorsFormGroups, BCFormationFormControls, BCChangeOfOfficeAddressesFormControls, BCChangeOfOfficeAddressesFormGroups,
|
|
84204
|
+
var BCChangeOfDirectorsFormControls, BCChangeOfDirectorsFormGroups, BCFormationFormControls, BCChangeOfOfficeAddressesFormControls, BCChangeOfOfficeAddressesFormGroups, BCFormationFormGroups;
|
|
84214
84205
|
var init_british_columbia_form_enums = __esm({
|
|
84215
84206
|
"src/app/enums/british-columbia-form.enums.ts"() {
|
|
84216
84207
|
(function(BCChangeOfDirectorsFormControls2) {
|
|
@@ -84224,7 +84215,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84224
84215
|
BCChangeOfDirectorsFormControls2["CompanyEmail"] = "companyEmail";
|
|
84225
84216
|
BCChangeOfDirectorsFormControls2["DirectorsAddedOrDeleted"] = "directorsAddedOrDeleted";
|
|
84226
84217
|
BCChangeOfDirectorsFormControls2["ChangeDate"] = "changeDate";
|
|
84227
|
-
BCChangeOfDirectorsFormControls2["FilingFee"] = "filingFee";
|
|
84228
84218
|
BCChangeOfDirectorsFormControls2["RegisterAsOfDate"] = "registerAsOfDate";
|
|
84229
84219
|
BCChangeOfDirectorsFormControls2["MailingAddress"] = "mailingAddress";
|
|
84230
84220
|
BCChangeOfDirectorsFormControls2["DeliveryAddress"] = "deliveryAddress";
|
|
@@ -84302,26 +84292,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84302
84292
|
BCChangeOfOfficeAddressesFormGroups2["RecordsOfficeAddress"] = "Records Office Address";
|
|
84303
84293
|
BCChangeOfOfficeAddressesFormGroups2["AnnualReportReminder"] = "Annual Report Reminder";
|
|
84304
84294
|
})(BCChangeOfOfficeAddressesFormGroups || (BCChangeOfOfficeAddressesFormGroups = {}));
|
|
84305
|
-
(function(BCAnnualReportFormControls2) {
|
|
84306
|
-
BCAnnualReportFormControls2["Id"] = "id";
|
|
84307
|
-
BCAnnualReportFormControls2["AffiliationName"] = "entityName";
|
|
84308
|
-
BCAnnualReportFormControls2["Role"] = "Role";
|
|
84309
|
-
BCAnnualReportFormControls2["AffiliationType"] = "AffiliationType";
|
|
84310
|
-
BCAnnualReportFormControls2["ClientMatterNumber"] = "ClientMatterNumber";
|
|
84311
|
-
BCAnnualReportFormControls2["DocketNumber"] = "docketNumber";
|
|
84312
|
-
BCAnnualReportFormControls2["EntityIdentifier"] = "entityIdentifier";
|
|
84313
|
-
BCAnnualReportFormControls2["EffectiveDate"] = "effectiveDate";
|
|
84314
|
-
BCAnnualReportFormControls2["CeaseDate"] = "ceaseDate";
|
|
84315
|
-
BCAnnualReportFormControls2["FullAddress"] = "fullAddress";
|
|
84316
|
-
BCAnnualReportFormControls2["CompanyEmail"] = "companyEmail";
|
|
84317
|
-
BCAnnualReportFormControls2["IsAnnualReportReminderRequired"] = "isAnnualReportReminderRequired";
|
|
84318
|
-
})(BCAnnualReportFormControls || (BCAnnualReportFormControls = {}));
|
|
84319
|
-
(function(BCAnnualReportFormGroups2) {
|
|
84320
|
-
BCAnnualReportFormGroups2["General"] = "General";
|
|
84321
|
-
BCAnnualReportFormGroups2["Officers"] = "Officers";
|
|
84322
|
-
BCAnnualReportFormGroups2["CompanyEmail"] = "Company Email";
|
|
84323
|
-
BCAnnualReportFormGroups2["AnnualReportReminder"] = "Annual Report Reminder";
|
|
84324
|
-
})(BCAnnualReportFormGroups || (BCAnnualReportFormGroups = {}));
|
|
84325
84295
|
(function(BCFormationFormGroups2) {
|
|
84326
84296
|
BCFormationFormGroups2["ReferenceNumbers"] = "Reference Numbers";
|
|
84327
84297
|
BCFormationFormGroups2["CorporationDetails"] = "Corporation Details";
|
|
@@ -84958,516 +84928,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84958
84928
|
}
|
|
84959
84929
|
});
|
|
84960
84930
|
|
|
84961
|
-
// src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts
|
|
84962
|
-
var Controls, COMPANY_EMAIL_TYPES, isCompanyEmail, incomingAddressByGrid, EDITABLE_ADDRESS_CONTROLS, BritishColumbiaChangeOfOfficeAddressesFormHelper;
|
|
84963
|
-
var init_british_columbia_change_of_office_addresses_form_helper = __esm({
|
|
84964
|
-
"src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts"() {
|
|
84965
|
-
init_forms();
|
|
84966
|
-
init_common_models();
|
|
84967
|
-
init_british_columbia_form_enums();
|
|
84968
|
-
init_BritishColumbiaConstants();
|
|
84969
|
-
init_british_columbia_formation_form_helper();
|
|
84970
|
-
init_BritishColumbiaConstants();
|
|
84971
|
-
init_common_utils();
|
|
84972
|
-
Controls = BCChangeOfOfficeAddressesFormControls;
|
|
84973
|
-
COMPANY_EMAIL_TYPES = ["Business Email", "Email"];
|
|
84974
|
-
isCompanyEmail = (communication) => Boolean(communication?.value) && COMPANY_EMAIL_TYPES.includes(communication?.type ?? "");
|
|
84975
|
-
incomingAddressByGrid = /* @__PURE__ */ new WeakMap();
|
|
84976
|
-
EDITABLE_ADDRESS_CONTROLS = [
|
|
84977
|
-
Controls.AddressLine1,
|
|
84978
|
-
Controls.AddressLine2,
|
|
84979
|
-
Controls.City,
|
|
84980
|
-
Controls.PostalCode
|
|
84981
|
-
];
|
|
84982
|
-
BritishColumbiaChangeOfOfficeAddressesFormHelper = class {
|
|
84983
|
-
static generateConfig(task, _translateFn) {
|
|
84984
|
-
const affiliations = task.entity.affiliations ?? [];
|
|
84985
|
-
const delta = task.deltaData;
|
|
84986
|
-
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
84987
|
-
const pick = BritishColumbiaFormationFormHelper.pickAddress;
|
|
84988
|
-
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
84989
|
-
const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
84990
|
-
const incoming = this.incomingOfficeAddresses(task);
|
|
84991
|
-
const seed = delta?.registeredOffice ? this.fillEmptyAddresses(delta, incoming) : this.seedFromIncomingAffiliations(task);
|
|
84992
|
-
const config2 = {};
|
|
84993
|
-
config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
|
|
84994
|
-
config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
|
|
84995
|
-
[Controls.CorporationName]: this.readOnly(task.entity._profile.name),
|
|
84996
|
-
[Controls.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
|
|
84997
|
-
[Controls.CompanyEmail]: new FormControl(delta?.companyEmail || this.resolveCompanyEmail(task), Validators.required)
|
|
84998
|
-
});
|
|
84999
|
-
config2[BCChangeOfOfficeAddressesFormGroups.AnnualReportReminder] = new FormGroup({
|
|
85000
|
-
[Controls.AnnualReportReminder]: new FormControl(delta?.annualReportReminder ?? BCAnnualReportReminder.Yes, Validators.required)
|
|
85001
|
-
});
|
|
85002
|
-
const regDeliverySame = seed.registeredOffice?.deliverySameAsMailing ?? true;
|
|
85003
|
-
config2[BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress] = new FormGroup({
|
|
85004
|
-
[Controls.CurrentMailingAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Mailing"))),
|
|
85005
|
-
[Controls.CurrentDeliveryAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Delivery"))),
|
|
85006
|
-
[Controls.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.mailingAddress, true),
|
|
85007
|
-
[Controls.DeliverySameAsMailing]: new FormControl(regDeliverySame),
|
|
85008
|
-
[Controls.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress, !regDeliverySame)
|
|
85009
|
-
});
|
|
85010
|
-
const recSameAsRegistered = seed.recordsOffice?.sameAsRegisteredOffice ?? true;
|
|
85011
|
-
const recDeliverySame = seed.recordsOffice?.deliverySameAsMailing ?? true;
|
|
85012
|
-
config2[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress] = new FormGroup({
|
|
85013
|
-
[Controls.CurrentMailingAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Mailing"))),
|
|
85014
|
-
[Controls.CurrentDeliveryAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Delivery"))),
|
|
85015
|
-
[Controls.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
|
|
85016
|
-
[Controls.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.mailingAddress, !recSameAsRegistered),
|
|
85017
|
-
[Controls.DeliverySameAsMailing]: new FormControl(recDeliverySame),
|
|
85018
|
-
[Controls.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.deliveryAddress, !recSameAsRegistered && !recDeliverySame)
|
|
85019
|
-
});
|
|
85020
|
-
const grid = (group2, control) => config2[group2].get(control);
|
|
85021
|
-
const register = (target, address) => address && incomingAddressByGrid.set(target, address);
|
|
85022
|
-
register(grid(BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress, Controls.NewDeliveryAddress), incoming.regDelivery);
|
|
85023
|
-
register(grid(BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress, Controls.NewMailingAddress), incoming.recMailing);
|
|
85024
|
-
register(grid(BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress, Controls.NewDeliveryAddress), incoming.recDelivery);
|
|
85025
|
-
return config2;
|
|
85026
|
-
}
|
|
85027
|
-
/** The company email choices: the entity's email options, plus the resolved default if it isn't one. */
|
|
85028
|
-
static getCompanyEmailOptions(task) {
|
|
85029
|
-
const values = (task.entity.emailOptions ?? []).filter(isCompanyEmail).map((o) => o.value);
|
|
85030
|
-
const fallback = this.resolveCompanyEmail(task);
|
|
85031
|
-
return [...new Set(fallback ? [...values, fallback] : values)].map((value) => ({
|
|
85032
|
-
value,
|
|
85033
|
-
label: value
|
|
85034
|
-
}));
|
|
85035
|
-
}
|
|
85036
|
-
/**
|
|
85037
|
-
* Pre-fills the new addresses from the task's incoming "Shared Address" affiliations (Registered
|
|
85038
|
-
* Office / Records Office), taking each Mailing / Delivery address from the affiliation or, when
|
|
85039
|
-
* it has none, from its parent affiliation. Nothing is pre-filled without an incoming address.
|
|
85040
|
-
*/
|
|
85041
|
-
static seedFromIncomingAffiliations(task) {
|
|
85042
|
-
const { regMailing, regDelivery, recMailing, recDelivery } = this.incomingOfficeAddresses(task);
|
|
85043
|
-
if (!regMailing && !recMailing) {
|
|
85044
|
-
return {};
|
|
85045
|
-
}
|
|
85046
|
-
const regDeliverySame = !regDelivery || this.isSameOfficeAddress(regDelivery, regMailing);
|
|
85047
|
-
const recDeliverySame = !recDelivery || this.isSameOfficeAddress(recDelivery, recMailing);
|
|
85048
|
-
const recSameAsRegistered = !recMailing || this.isSameOfficeAddress(recMailing, regMailing) && this.isSameOfficeAddress(recDelivery ?? recMailing, regDelivery ?? regMailing);
|
|
85049
|
-
return {
|
|
85050
|
-
registeredOffice: {
|
|
85051
|
-
mailingAddress: regMailing,
|
|
85052
|
-
deliverySameAsMailing: regDeliverySame,
|
|
85053
|
-
deliveryAddress: regDeliverySame ? void 0 : regDelivery
|
|
85054
|
-
},
|
|
85055
|
-
recordsOffice: {
|
|
85056
|
-
sameAsRegisteredOffice: recSameAsRegistered,
|
|
85057
|
-
mailingAddress: recSameAsRegistered ? void 0 : recMailing,
|
|
85058
|
-
deliverySameAsMailing: recDeliverySame,
|
|
85059
|
-
deliveryAddress: recDeliverySame ? void 0 : recDelivery
|
|
85060
|
-
}
|
|
85061
|
-
};
|
|
85062
|
-
}
|
|
85063
|
-
/** Keeps the saved flags and addresses, but fills an address the draft left empty from `incoming`. */
|
|
85064
|
-
static fillEmptyAddresses(saved, incoming) {
|
|
85065
|
-
const hasValues = (address) => EDITABLE_ADDRESS_CONTROLS.some((name) => Boolean(address?.[name]));
|
|
85066
|
-
const pick = (savedAddress, incomingAddress) => hasValues(savedAddress) ? savedAddress : incomingAddress ?? savedAddress;
|
|
85067
|
-
return {
|
|
85068
|
-
registeredOffice: __spreadProps(__spreadValues({}, saved.registeredOffice), {
|
|
85069
|
-
mailingAddress: pick(saved.registeredOffice?.mailingAddress, incoming.regMailing),
|
|
85070
|
-
deliveryAddress: pick(saved.registeredOffice?.deliveryAddress, incoming.regDelivery)
|
|
85071
|
-
}),
|
|
85072
|
-
recordsOffice: __spreadProps(__spreadValues({}, saved.recordsOffice), {
|
|
85073
|
-
mailingAddress: pick(saved.recordsOffice?.mailingAddress, incoming.recMailing),
|
|
85074
|
-
deliveryAddress: pick(saved.recordsOffice?.deliveryAddress, incoming.recDelivery)
|
|
85075
|
-
})
|
|
85076
|
-
};
|
|
85077
|
-
}
|
|
85078
|
-
/** The four office addresses of the task's incoming Shared Address, as form values. */
|
|
85079
|
-
static incomingOfficeAddresses(task) {
|
|
85080
|
-
const incoming = task.incomingAffiliations ?? [];
|
|
85081
|
-
const pickBy = (title, locationType) => {
|
|
85082
|
-
const pool = incoming.filter((a) => a.role?.role_name === AddressRole2.SHARED_ADDRESS && a.role?.static_title === title).flatMap((a) => a.addresses?.length ? a.addresses : a.parent_affiliation?.addresses ?? []);
|
|
85083
|
-
const wanted = locationType.toLowerCase();
|
|
85084
|
-
const address = pool.find((a) => (a.computed_location_type ?? "").toLowerCase() === wanted || (a.location_type ?? "").toLowerCase() === wanted);
|
|
85085
|
-
return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
|
|
85086
|
-
};
|
|
85087
|
-
return {
|
|
85088
|
-
regMailing: pickBy(AddressTitle2.REGISTERED_OFFICE, "Mailing"),
|
|
85089
|
-
regDelivery: pickBy(AddressTitle2.REGISTERED_OFFICE, "Delivery"),
|
|
85090
|
-
recMailing: pickBy(AddressTitle2.RECORDS_OFFICE, "Mailing"),
|
|
85091
|
-
recDelivery: pickBy(AddressTitle2.RECORDS_OFFICE, "Delivery")
|
|
85092
|
-
};
|
|
85093
|
-
}
|
|
85094
|
-
/** Street = street number + street name; the suite goes to Address Line 2. */
|
|
85095
|
-
static toOfficeAddressDelta(address) {
|
|
85096
|
-
const street = [getAddressComponent(address, "Street Number Only"), getAddressComponent(address, "Street Only")].filter(Boolean).join(" ") || getAddressComponent(address, "Street Address") || address.street || "";
|
|
85097
|
-
return {
|
|
85098
|
-
addressLine1: street,
|
|
85099
|
-
addressLine2: getAddressComponent(address, "Suite/Apartment") || address.address2 || "",
|
|
85100
|
-
city: address.city ?? "",
|
|
85101
|
-
postalCode: address.postal_zip ?? "",
|
|
85102
|
-
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85103
|
-
country: BC_DEFAULT_COUNTRY
|
|
85104
|
-
};
|
|
85105
|
-
}
|
|
85106
|
-
/** An address with no province is accepted; the form only ever deals in British Columbia. */
|
|
85107
|
-
static isBritishColumbia(address) {
|
|
85108
|
-
const province = (address.province_state ?? "").trim().toLowerCase();
|
|
85109
|
-
return !province || ["bc", "b.c.", "british columbia"].includes(province);
|
|
85110
|
-
}
|
|
85111
|
-
static isSameOfficeAddress(a, b) {
|
|
85112
|
-
const key = (x) => [x?.addressLine1, x?.addressLine2, x?.city, x?.postalCode].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
85113
|
-
return key(a) === key(b);
|
|
85114
|
-
}
|
|
85115
|
-
/**
|
|
85116
|
-
* The company's email: the entity's email options, then the Registered Office's email, then the
|
|
85117
|
-
* entity's own, then any other address of the entity (e.g. a Head Office). Only a Business Email
|
|
85118
|
-
* or an Email counts; a Personal Email never does.
|
|
85119
|
-
*/
|
|
85120
|
-
static resolveCompanyEmail(task) {
|
|
85121
|
-
const affiliations = task.entity.affiliations ?? [];
|
|
85122
|
-
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85123
|
-
return task.entity.emailOptions?.find(isCompanyEmail)?.value || registeredOffice?.addresses?.[0]?.communications?.find(isCompanyEmail)?.value || task.entity.communications?.find(isCompanyEmail)?.value || task.entity.addresses?.flatMap((a) => a.communications ?? []).find(isCompanyEmail)?.value || "";
|
|
85124
|
-
}
|
|
85125
|
-
/**
|
|
85126
|
-
* Address Line 1*, Address Line 2, City*, Postal Code*, Province (BC), Country (Canada).
|
|
85127
|
-
* Province and Country are always disabled; the rest follow `enabled`.
|
|
85128
|
-
*/
|
|
85129
|
-
static createOfficeAddressFormGroup(delta, enabled = true) {
|
|
85130
|
-
const group2 = new FormGroup({
|
|
85131
|
-
[Controls.AddressLine1]: new FormControl(delta?.addressLine1 ?? "", Validators.required),
|
|
85132
|
-
[Controls.AddressLine2]: new FormControl(delta?.addressLine2 ?? ""),
|
|
85133
|
-
[Controls.City]: new FormControl(delta?.city ?? "", Validators.required),
|
|
85134
|
-
[Controls.PostalCode]: new FormControl(delta?.postalCode ?? "", Validators.required),
|
|
85135
|
-
[Controls.Province]: this.readOnly(delta?.province ?? BC_DEFAULT_PROVINCE_STATE),
|
|
85136
|
-
[Controls.Country]: this.readOnly(delta?.country ?? BC_DEFAULT_COUNTRY)
|
|
85137
|
-
});
|
|
85138
|
-
this.setOfficeAddressEnabled(group2, enabled);
|
|
85139
|
-
return group2;
|
|
85140
|
-
}
|
|
85141
|
-
/**
|
|
85142
|
-
* Enables or disables the editable controls of an address grid (used by "Same as…" checkboxes).
|
|
85143
|
-
* Hiding a grid also clears it. Showing it again refills it with the address Athennian sent for
|
|
85144
|
-
* it, or leaves it empty when there is none (and when the user has already typed something).
|
|
85145
|
-
*/
|
|
85146
|
-
static setOfficeAddressEnabled(group2, enabled) {
|
|
85147
|
-
if (!group2) {
|
|
85148
|
-
return;
|
|
85149
|
-
}
|
|
85150
|
-
const restore = incomingAddressByGrid.get(group2);
|
|
85151
|
-
const isEmpty = EDITABLE_ADDRESS_CONTROLS.every((name) => !group2.get(name)?.value);
|
|
85152
|
-
EDITABLE_ADDRESS_CONTROLS.forEach((name) => {
|
|
85153
|
-
const control = group2.get(name);
|
|
85154
|
-
if (enabled) {
|
|
85155
|
-
control?.enable({ emitEvent: false });
|
|
85156
|
-
if (restore && isEmpty) {
|
|
85157
|
-
control?.setValue(restore[name] ?? "", { emitEvent: false });
|
|
85158
|
-
}
|
|
85159
|
-
} else {
|
|
85160
|
-
control?.setValue("", { emitEvent: false });
|
|
85161
|
-
control?.disable({ emitEvent: false });
|
|
85162
|
-
}
|
|
85163
|
-
});
|
|
85164
|
-
group2.updateValueAndValidity({ emitEvent: false });
|
|
85165
|
-
}
|
|
85166
|
-
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
|
|
85167
|
-
return new FormGroup({
|
|
85168
|
-
[Controls.ClientMatterNumber]: new FormControl(
|
|
85169
|
-
// `??`: an explicitly cleared value ('') in a saved draft must be preserved; the entity default applies only when absent.
|
|
85170
|
-
deltaData?.referenceNumber ?? clientMatterNumber ?? ""
|
|
85171
|
-
),
|
|
85172
|
-
[Controls.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
|
|
85173
|
-
});
|
|
85174
|
-
}
|
|
85175
|
-
static readOnly(value) {
|
|
85176
|
-
return new FormControl({ value: value ?? "", disabled: true });
|
|
85177
|
-
}
|
|
85178
|
-
};
|
|
85179
|
-
}
|
|
85180
|
-
});
|
|
85181
|
-
|
|
85182
|
-
// src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts
|
|
85183
|
-
function formatPostalCode(value) {
|
|
85184
|
-
const compact = clean(value).replace(/[\s-]+/g, "").toUpperCase();
|
|
85185
|
-
return compact.length === 6 ? `${compact.slice(0, 3)} ${compact.slice(3)}` : clean(value).toUpperCase();
|
|
85186
|
-
}
|
|
85187
|
-
function toEcoreAddress(address) {
|
|
85188
|
-
const line2 = clean(address?.addressLine2);
|
|
85189
|
-
return __spreadProps(__spreadValues({
|
|
85190
|
-
streetAddress: clean(address?.addressLine1)
|
|
85191
|
-
}, line2 ? { additionalStreetAddress: line2 } : {}), {
|
|
85192
|
-
city: clean(address?.city),
|
|
85193
|
-
provinceOrState: BC_PROVINCE_CODE,
|
|
85194
|
-
postalOrZipCode: formatPostalCode(address?.postalCode),
|
|
85195
|
-
country: CANADA_COUNTRY_CODE
|
|
85196
|
-
});
|
|
85197
|
-
}
|
|
85198
|
-
function isSameAddress(a, b) {
|
|
85199
|
-
const key = (x) => [x.streetAddress, x.additionalStreetAddress, x.city, x.provinceOrState, x.postalOrZipCode, x.country].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
85200
|
-
return key(a) === key(b);
|
|
85201
|
-
}
|
|
85202
|
-
function buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData) {
|
|
85203
|
-
const registered = deltaData.registeredOffice;
|
|
85204
|
-
const records = deltaData.recordsOffice;
|
|
85205
|
-
const registeredMailing = toEcoreAddress(registered?.mailingAddress);
|
|
85206
|
-
const registeredDelivery = registered?.deliverySameAsMailing ? registeredMailing : toEcoreAddress(registered?.deliveryAddress);
|
|
85207
|
-
const recordsMailing = records?.sameAsRegisteredOffice ? registeredMailing : toEcoreAddress(records?.mailingAddress);
|
|
85208
|
-
const recordsDelivery = records?.sameAsRegisteredOffice ? registeredDelivery : records?.deliverySameAsMailing ? recordsMailing : toEcoreAddress(records?.deliveryAddress);
|
|
85209
|
-
const registeredDeliverySame = isSameAddress(registeredDelivery, registeredMailing);
|
|
85210
|
-
const recordsSameAsRegistered = isSameAddress(recordsMailing, registeredMailing);
|
|
85211
|
-
const recordsDeliverySame = isSameAddress(recordsDelivery, recordsMailing);
|
|
85212
|
-
const filing = {
|
|
85213
|
-
registeredOfficeMailingAddress: registeredMailing,
|
|
85214
|
-
isRegisteredOfficeDeliveryAddressSameAsMailing: registeredDeliverySame,
|
|
85215
|
-
isRecordsOfficeMailingAddressSameAsRegisteredOfficeMailing: recordsSameAsRegistered,
|
|
85216
|
-
isRecordsOfficeDeliveryAddressSameAsRecordsOfficeMailing: recordsDeliverySame,
|
|
85217
|
-
// Both are picked on the form; the fallbacks only cover data saved before they were added.
|
|
85218
|
-
companyEmail: clean(deltaData.companyEmail) || BritishColumbiaChangeOfOfficeAddressesFormHelper.resolveCompanyEmail(task),
|
|
85219
|
-
isAnnualReportReminderRequired: deltaData.annualReportReminder === BCAnnualReportReminder.Yes
|
|
85220
|
-
};
|
|
85221
|
-
const reference = clean(deltaData.referenceNumbers?.referenceNumber);
|
|
85222
|
-
const docket = clean(deltaData.referenceNumbers?.docketNumber);
|
|
85223
|
-
if (reference) {
|
|
85224
|
-
filing.reference = reference;
|
|
85225
|
-
}
|
|
85226
|
-
if (docket) {
|
|
85227
|
-
filing.docket = docket;
|
|
85228
|
-
}
|
|
85229
|
-
if (!registeredDeliverySame) {
|
|
85230
|
-
filing.registeredOfficeDeliveryAddress = registeredDelivery;
|
|
85231
|
-
}
|
|
85232
|
-
if (!recordsSameAsRegistered) {
|
|
85233
|
-
filing.recordsOfficeMailingAddress = recordsMailing;
|
|
85234
|
-
}
|
|
85235
|
-
if (!recordsDeliverySame) {
|
|
85236
|
-
filing.recordsOfficeDeliveryAddress = recordsDelivery;
|
|
85237
|
-
}
|
|
85238
|
-
return { filingType: "changeOfAddressFiling", filing };
|
|
85239
|
-
}
|
|
85240
|
-
function getBritishColumbiaAccessCode(task, env) {
|
|
85241
|
-
const registryId = task.entity._profile.registry_id?.trim() ?? "";
|
|
85242
|
-
if (registryId) {
|
|
85243
|
-
return registryId;
|
|
85244
|
-
}
|
|
85245
|
-
return env === "TEST" ? TEMP_UAT_TEST_ACCESS_CODE : "";
|
|
85246
|
-
}
|
|
85247
|
-
var TEMP_UAT_TEST_ACCESS_CODE, BC_PROVINCE_CODE, CANADA_COUNTRY_CODE, clean;
|
|
85248
|
-
var init_british_columbia_change_of_office_addresses_mapper = __esm({
|
|
85249
|
-
"src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
|
|
85250
|
-
init_BritishColumbiaConstants();
|
|
85251
|
-
init_british_columbia_change_of_office_addresses_form_helper();
|
|
85252
|
-
TEMP_UAT_TEST_ACCESS_CODE = "12345678";
|
|
85253
|
-
BC_PROVINCE_CODE = "BC";
|
|
85254
|
-
CANADA_COUNTRY_CODE = "CA";
|
|
85255
|
-
clean = (value) => (value ?? "").trim();
|
|
85256
|
-
}
|
|
85257
|
-
});
|
|
85258
|
-
|
|
85259
|
-
// src/app/helpers/mappers/british-columbia-annual-report.mapper.ts
|
|
85260
|
-
function toBCOfficerPosition(title) {
|
|
85261
|
-
return OFFICER_POSITIONS.get((title ?? "").trim().toLowerCase()) ?? "otherOffices";
|
|
85262
|
-
}
|
|
85263
|
-
function toBCExtractOfficers(dataExtract) {
|
|
85264
|
-
const officers = dataExtract?.officers;
|
|
85265
|
-
return (Array.isArray(officers) ? officers : []).map((o, index) => ({
|
|
85266
|
-
officerNumber: Number.isInteger(o?.officerNumber) ? o.officerNumber : index + 1,
|
|
85267
|
-
firstName: o?.firstName ?? "",
|
|
85268
|
-
middleName: o?.middleName || void 0,
|
|
85269
|
-
lastName: o?.lastName ?? "",
|
|
85270
|
-
positions: Array.isArray(o?.positions) ? o.positions : []
|
|
85271
|
-
}));
|
|
85272
|
-
}
|
|
85273
|
-
function getBCAnnualReportOfficerChanges(task, extractOfficers = []) {
|
|
85274
|
-
const isOfficer = (a) => isPrincipalAffiliation2(a) && a.role?.role_name === OFFICER_ROLE_NAME && a._participant?.participant_type === "person";
|
|
85275
|
-
const incoming = (task.incomingAffiliations ?? []).filter(isOfficer).map((affiliation) => {
|
|
85276
|
-
const { firstName, lastName } = officerName(affiliation);
|
|
85277
|
-
return {
|
|
85278
|
-
affiliation,
|
|
85279
|
-
current: extractOfficers.find((e) => normalizeName(e.firstName) === normalizeName(firstName) && normalizeName(e.lastName) === normalizeName(lastName))
|
|
85280
|
-
};
|
|
85281
|
-
});
|
|
85282
|
-
return {
|
|
85283
|
-
incoming,
|
|
85284
|
-
added: incoming.filter((o) => !o.current).map((o) => o.affiliation),
|
|
85285
|
-
edited: incoming.filter((o) => Boolean(o.current)),
|
|
85286
|
-
ceased: (task.outgoingAffiliations ?? []).filter(isOfficer)
|
|
85287
|
-
};
|
|
85288
|
-
}
|
|
85289
|
-
function buildBCAnnualReportContext(task, env) {
|
|
85290
|
-
return {
|
|
85291
|
-
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
85292
|
-
accessCodeOrPassword: getBritishColumbiaAccessCode(task, env),
|
|
85293
|
-
incorporationDate: String(task.entity._compliance?.incorporation_date ?? "").slice(0, 10),
|
|
85294
|
-
filingType: "annualReportFiling"
|
|
85295
|
-
};
|
|
85296
|
-
}
|
|
85297
|
-
function buildBCAnnualReportValidateRequest(task, deltaData, extractOfficers = []) {
|
|
85298
|
-
const { added, edited, ceased } = getBCAnnualReportOfficerChanges(task, extractOfficers);
|
|
85299
|
-
return pruneUndefined({
|
|
85300
|
-
filingType: "annualReportFiling",
|
|
85301
|
-
filing: {
|
|
85302
|
-
reference: deltaData.referenceNumbers?.referenceNumber || void 0,
|
|
85303
|
-
docket: deltaData.referenceNumbers?.docketNumber || void 0,
|
|
85304
|
-
addOfficers: added.map(mapAddedOfficer),
|
|
85305
|
-
ceaseOfficers: ceased.map(mapCeasedOfficer),
|
|
85306
|
-
// Athennian does not populate edits (UEM-235 mapping), so they come from matching the task's
|
|
85307
|
-
// officers with the registry's current data.
|
|
85308
|
-
editOfficers: edited.map(mapEditedOfficer),
|
|
85309
|
-
companyEmail: deltaData.companyEmail?.trim() ?? "",
|
|
85310
|
-
isAnnualReportReminderRequired: Boolean(deltaData.isAnnualReportReminderRequired)
|
|
85311
|
-
}
|
|
85312
|
-
});
|
|
85313
|
-
}
|
|
85314
|
-
function officerAddresses(affiliation) {
|
|
85315
|
-
const addresses = affiliation.addresses?.length ? affiliation.addresses : affiliation.parent_affiliation?.addresses ?? [];
|
|
85316
|
-
const delivery = pickAddress(addresses, "Delivery");
|
|
85317
|
-
return {
|
|
85318
|
-
// Falls back to the first address when none is typed "Mailing", like the other BC filings.
|
|
85319
|
-
mailing: mapAddress(pickAddress(addresses, "Mailing", true)),
|
|
85320
|
-
delivery: delivery ? mapAddress(delivery) : void 0
|
|
85321
|
-
};
|
|
85322
|
-
}
|
|
85323
|
-
function officerName(affiliation) {
|
|
85324
|
-
const profile = affiliation.participant?._profile;
|
|
85325
|
-
return {
|
|
85326
|
-
firstName: profile?.firstName ?? "",
|
|
85327
|
-
middleName: profile?.middleName || void 0,
|
|
85328
|
-
lastName: profile?.lastName ?? ""
|
|
85329
|
-
};
|
|
85330
|
-
}
|
|
85331
|
-
function mapAddedOfficer(affiliation) {
|
|
85332
|
-
const { mailing, delivery } = officerAddresses(affiliation);
|
|
85333
|
-
const isSame = !delivery || sameAddress(delivery, mailing);
|
|
85334
|
-
return __spreadProps(__spreadValues({}, officerName(affiliation)), {
|
|
85335
|
-
positions: toBCOfficerPosition(affiliation.role?.static_title),
|
|
85336
|
-
mailingAddress: mailing,
|
|
85337
|
-
isDeliveryAddressSameAsMailing: isSame,
|
|
85338
|
-
deliveryAddress: isSame ? void 0 : delivery
|
|
85339
|
-
});
|
|
85340
|
-
}
|
|
85341
|
-
function mapEditedOfficer({ affiliation, current }) {
|
|
85342
|
-
const { mailing, delivery } = officerAddresses(affiliation);
|
|
85343
|
-
const position = toBCOfficerPosition(affiliation.role?.static_title);
|
|
85344
|
-
return {
|
|
85345
|
-
officerNumber: current.officerNumber,
|
|
85346
|
-
hasNameChange: false,
|
|
85347
|
-
addOfficerPositions: current.positions.includes(position) ? void 0 : [position],
|
|
85348
|
-
mailingAddress: mailing,
|
|
85349
|
-
// Both addresses are required to edit an officer; send the mailing address again when there is no delivery one.
|
|
85350
|
-
deliveryAddress: delivery ?? mailing
|
|
85351
|
-
};
|
|
85352
|
-
}
|
|
85353
|
-
function mapCeasedOfficer(affiliation) {
|
|
85354
|
-
const { mailing, delivery } = officerAddresses(affiliation);
|
|
85355
|
-
return __spreadProps(__spreadValues({}, officerName(affiliation)), {
|
|
85356
|
-
mailingAddress: mailing,
|
|
85357
|
-
// The API requires a delivery address to cease an officer; send the mailing address again.
|
|
85358
|
-
deliveryAddress: delivery ?? mailing
|
|
85359
|
-
});
|
|
85360
|
-
}
|
|
85361
|
-
var OFFICER_ROLE_NAME, OFFICER_POSITIONS, normalizeName;
|
|
85362
|
-
var init_british_columbia_annual_report_mapper = __esm({
|
|
85363
|
-
"src/app/helpers/mappers/british-columbia-annual-report.mapper.ts"() {
|
|
85364
|
-
init_common_utils();
|
|
85365
|
-
init_british_columbia_change_of_office_addresses_mapper();
|
|
85366
|
-
init_british_columbia_formation_mapper();
|
|
85367
|
-
OFFICER_ROLE_NAME = "Officer";
|
|
85368
|
-
OFFICER_POSITIONS = /* @__PURE__ */ new Map([
|
|
85369
|
-
["chairman", "chair"],
|
|
85370
|
-
["chair", "chair"],
|
|
85371
|
-
["chair person", "chair"],
|
|
85372
|
-
["chairwoman", "chair"],
|
|
85373
|
-
["president", "president"],
|
|
85374
|
-
["vice-president", "vicePresident"],
|
|
85375
|
-
["chief executive officer", "ceo"],
|
|
85376
|
-
["chief financial officer", "cfo"],
|
|
85377
|
-
["assistant secretary", "assistantSecretary"],
|
|
85378
|
-
["secretary", "secretary"],
|
|
85379
|
-
["treasurer", "treasurer"]
|
|
85380
|
-
]);
|
|
85381
|
-
normalizeName = (value) => (value ?? "").trim().toLowerCase();
|
|
85382
|
-
}
|
|
85383
|
-
});
|
|
85384
|
-
|
|
85385
|
-
// src/app/helpers/british-columbia/annual-report/british-columbia-annual-report-form.helper.ts
|
|
85386
|
-
var BritishColumbiaAnnualReportFormHelper;
|
|
85387
|
-
var init_british_columbia_annual_report_form_helper = __esm({
|
|
85388
|
-
"src/app/helpers/british-columbia/annual-report/british-columbia-annual-report-form.helper.ts"() {
|
|
85389
|
-
init_forms();
|
|
85390
|
-
init_british_columbia_form_enums();
|
|
85391
|
-
init_initial_return_enums();
|
|
85392
|
-
init_BritishColumbiaConstants();
|
|
85393
|
-
init_common_utils();
|
|
85394
|
-
init_british_columbia_annual_report_mapper();
|
|
85395
|
-
init_british_columbia_formation_mapper();
|
|
85396
|
-
init_british_columbia_formation_form_helper();
|
|
85397
|
-
BritishColumbiaAnnualReportFormHelper = class {
|
|
85398
|
-
/**
|
|
85399
|
-
* `extractOfficers` are the officers of the registry's current data: an incoming officer who is
|
|
85400
|
-
* already one of them is shown as an "Update" (filed as an edit) instead of an "Add".
|
|
85401
|
-
*/
|
|
85402
|
-
static generateConfig(task, extractOfficers = []) {
|
|
85403
|
-
const delta = task.deltaData;
|
|
85404
|
-
const { incoming, ceased } = getBCAnnualReportOfficerChanges(task, extractOfficers);
|
|
85405
|
-
const config2 = {};
|
|
85406
|
-
config2[BCAnnualReportFormGroups.General] = new FormGroup({
|
|
85407
|
-
[BCAnnualReportFormControls.ClientMatterNumber]: new FormControl(delta?.referenceNumbers?.referenceNumber ?? task.entity._profile.client_matter_number ?? ""),
|
|
85408
|
-
[BCAnnualReportFormControls.DocketNumber]: new FormControl(delta?.referenceNumbers?.docketNumber ?? ""),
|
|
85409
|
-
[BCAnnualReportFormControls.EntityIdentifier]: new FormControl({
|
|
85410
|
-
value: task.entity._profile.corp_number ?? "",
|
|
85411
|
-
disabled: true
|
|
85412
|
-
})
|
|
85413
|
-
});
|
|
85414
|
-
config2[BCAnnualReportFormGroups.Officers] = new FormArray([
|
|
85415
|
-
...incoming.map(({ affiliation, current }) => this.generateOfficerFormGroup(affiliation, current ? IRAffiliationType.Update : IRAffiliationType.Add)),
|
|
85416
|
-
...ceased.map((officer) => this.generateOfficerFormGroup(officer, IRAffiliationType.Ceased))
|
|
85417
|
-
]);
|
|
85418
|
-
const emailOptions = this.getCompanyEmailOptions(task);
|
|
85419
|
-
config2[BCAnnualReportFormGroups.CompanyEmail] = new FormGroup({
|
|
85420
|
-
// A saved choice wins; otherwise a lone entity email is preselected, else the user picks one.
|
|
85421
|
-
[BCAnnualReportFormControls.CompanyEmail]: new FormControl(delta?.companyEmail ?? (emailOptions.length === 1 ? emailOptions[0].value : ""), [Validators.required, Validators.email, Validators.maxLength(BC_COMPANY_EMAIL_MAX_LENGTH)])
|
|
85422
|
-
});
|
|
85423
|
-
config2[BCAnnualReportFormGroups.AnnualReportReminder] = new FormGroup({
|
|
85424
|
-
[BCAnnualReportFormControls.IsAnnualReportReminderRequired]: new FormControl(delta?.isAnnualReportReminderRequired ?? false)
|
|
85425
|
-
});
|
|
85426
|
-
return config2;
|
|
85427
|
-
}
|
|
85428
|
-
/** The entity's own emails (built by Athennian), plus a previously saved value that is no longer among them. */
|
|
85429
|
-
static getCompanyEmailOptions(task) {
|
|
85430
|
-
const options = (task.entity.emailOptions ?? []).filter((option) => option.value).map((option) => ({ value: option.value, label: option.value }));
|
|
85431
|
-
const saved = task.deltaData?.companyEmail;
|
|
85432
|
-
if (saved && !options.some((option) => option.value === saved)) {
|
|
85433
|
-
options.push({ value: saved, label: saved });
|
|
85434
|
-
}
|
|
85435
|
-
return options.filter((option, index) => options.findIndex((other) => other.value === option.value) === index);
|
|
85436
|
-
}
|
|
85437
|
-
/** One read-only officer row; `AffiliationType` drives the Add / Cease chip. */
|
|
85438
|
-
static generateOfficerFormGroup(affiliation, affiliationType) {
|
|
85439
|
-
const addresses = affiliation.addresses?.length ? affiliation.addresses : affiliation.parent_affiliation?.addresses ?? [];
|
|
85440
|
-
return new FormGroup({
|
|
85441
|
-
[BCAnnualReportFormControls.Id]: new FormControl(affiliation._id),
|
|
85442
|
-
[BCAnnualReportFormControls.AffiliationName]: new FormControl({
|
|
85443
|
-
value: generateTaskAffiliationFullName(affiliation),
|
|
85444
|
-
disabled: true
|
|
85445
|
-
}),
|
|
85446
|
-
[BCAnnualReportFormControls.Role]: new FormControl({
|
|
85447
|
-
value: affiliation.role?.static_title ?? "",
|
|
85448
|
-
disabled: true
|
|
85449
|
-
}),
|
|
85450
|
-
[BCAnnualReportFormControls.AffiliationType]: new FormControl(affiliationType),
|
|
85451
|
-
[BCAnnualReportFormControls.EffectiveDate]: new FormControl({
|
|
85452
|
-
value: affiliation.start_date ? toYyyyMmDd(affiliation.start_date) ?? "" : "",
|
|
85453
|
-
disabled: true
|
|
85454
|
-
}),
|
|
85455
|
-
[BCAnnualReportFormControls.CeaseDate]: new FormControl({
|
|
85456
|
-
value: affiliation.end_date ? toYyyyMmDd(affiliation.end_date) ?? "" : "",
|
|
85457
|
-
disabled: true
|
|
85458
|
-
}),
|
|
85459
|
-
[BCAnnualReportFormControls.FullAddress]: new FormControl({
|
|
85460
|
-
value: BritishColumbiaFormationFormHelper.formatFullAddress(pickAddress(addresses, "Mailing", true)),
|
|
85461
|
-
disabled: true
|
|
85462
|
-
})
|
|
85463
|
-
});
|
|
85464
|
-
}
|
|
85465
|
-
};
|
|
85466
|
-
}
|
|
85467
|
-
});
|
|
85468
|
-
|
|
85469
84931
|
// src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts
|
|
85470
|
-
var
|
|
84932
|
+
var Controls, BritishColumbiaChangeOfDirectorsFormHelper;
|
|
85471
84933
|
var init_british_columbia_change_of_directors_form_helper = __esm({
|
|
85472
84934
|
"src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts"() {
|
|
85473
84935
|
init_forms();
|
|
@@ -85478,7 +84940,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85478
84940
|
init_BritishColumbiaConstants();
|
|
85479
84941
|
init_custom_validators();
|
|
85480
84942
|
init_british_columbia_formation_form_helper();
|
|
85481
|
-
|
|
84943
|
+
Controls = BCChangeOfDirectorsFormControls;
|
|
85482
84944
|
BritishColumbiaChangeOfDirectorsFormHelper = class {
|
|
85483
84945
|
static generateConfig(task, _translateFn, currentDataExtract) {
|
|
85484
84946
|
const affiliations = task.entity.affiliations ?? [];
|
|
@@ -85493,9 +84955,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85493
84955
|
const config2 = {};
|
|
85494
84956
|
config2[BCChangeOfDirectorsFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile?.client_matter_number, delta?.referenceNumbers?.referenceNumber);
|
|
85495
84957
|
config2[BCChangeOfDirectorsFormGroups.CorporationDetails] = new FormGroup({
|
|
85496
|
-
[
|
|
85497
|
-
[
|
|
85498
|
-
[
|
|
84958
|
+
[Controls.CorporationName]: this.readOnly(task.entity._profile.name),
|
|
84959
|
+
[Controls.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
|
|
84960
|
+
[Controls.CompanyEmail]: new FormControl(companyEmail, [Validators.required, Validators.email])
|
|
85499
84961
|
});
|
|
85500
84962
|
const isDirector = (a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director";
|
|
85501
84963
|
const incoming = task.incomingAffiliations ?? [];
|
|
@@ -85503,13 +84965,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85503
84965
|
const ceasedIds = new Set(outgoing.filter(isDirector).map((a) => a._id));
|
|
85504
84966
|
const hasAddOrCease = ceasedIds.size > 0 || incoming.filter(isDirector).length > 0;
|
|
85505
84967
|
config2[BCChangeOfDirectorsFormGroups.FilingDetails] = new FormGroup({
|
|
85506
|
-
[
|
|
85507
|
-
[
|
|
85508
|
-
[Controls2.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
|
|
84968
|
+
[Controls.DirectorsAddedOrDeleted]: new FormControl(delta?.filingDetails?.directorsAddedOrDeleted ?? hasAddOrCease),
|
|
84969
|
+
[Controls.ChangeDate]: this.readOnly(effectiveDate)
|
|
85509
84970
|
});
|
|
85510
84971
|
const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
|
|
84972
|
+
const savedAddIds = new Set((delta?.directorChanges?.addIds ?? []).map(String));
|
|
84973
|
+
const savedEditIds = new Set((delta?.directorChanges?.editIds ?? []).map(String));
|
|
85511
84974
|
const directors = [
|
|
85512
|
-
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
|
|
84975
|
+
...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, savedEditIds.has(String(a._id)) ? IRAffiliationType.Update : savedAddIds.has(String(a._id)) ? IRAffiliationType.Add : currentDirectorKeys.has(this.getDirectorKey(a)) ? IRAffiliationType.Update : IRAffiliationType.Add)),
|
|
85513
84976
|
...outgoing.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Ceased))
|
|
85514
84977
|
];
|
|
85515
84978
|
const fallbackDirectors = directors.length ? [] : this.generateDirectorFormGroupsFromChangeDirectors(task);
|
|
@@ -85517,13 +84980,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85517
84980
|
config2[BCChangeOfDirectorsFormGroups.Directors] = new FormArray(directors.length ? directors : fallbackDirectors);
|
|
85518
84981
|
}
|
|
85519
84982
|
config2[BCChangeOfDirectorsFormGroups.Notification] = new FormGroup({
|
|
85520
|
-
[
|
|
85521
|
-
[
|
|
85522
|
-
[
|
|
85523
|
-
[
|
|
84983
|
+
[Controls.RegisterAsOfDate]: this.readOnly(today),
|
|
84984
|
+
[Controls.NotificationMethod]: new FormControl(delta?.notification?.method ?? BCNotificationMethod.Email, Validators.required),
|
|
84985
|
+
[Controls.NotificationEmail]: new FormControl(delta?.notification?.email ?? companyEmail, requiredIfValue(Controls.NotificationMethod, BCNotificationMethod.Email)),
|
|
84986
|
+
[Controls.NotificationMailingAddress]: this.readOnly(registeredMailing)
|
|
85524
84987
|
});
|
|
85525
84988
|
config2[BCChangeOfDirectorsFormGroups.AnnualReportReminder] = new FormGroup({
|
|
85526
|
-
[
|
|
84989
|
+
[Controls.AnnualReportReminder]: new FormControl(delta?.annualReportReminder ?? BCAnnualReportReminder.Yes, Validators.required)
|
|
85527
84990
|
});
|
|
85528
84991
|
return config2;
|
|
85529
84992
|
}
|
|
@@ -85568,18 +85031,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85568
85031
|
}
|
|
85569
85032
|
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber, savedClientMatterNumber) {
|
|
85570
85033
|
return new FormGroup({
|
|
85571
|
-
[
|
|
85572
|
-
[
|
|
85034
|
+
[Controls.ClientMatterNumber]: new FormControl(clientMatterNumber ?? savedClientMatterNumber ?? ""),
|
|
85035
|
+
[Controls.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
|
|
85573
85036
|
});
|
|
85574
85037
|
}
|
|
85575
85038
|
static generateDirectorFormGroup(affiliation, affiliationType) {
|
|
85576
85039
|
const addresses = affiliation.addresses?.length ? affiliation.addresses : affiliation.parent_affiliation?.addresses ?? [];
|
|
85577
85040
|
return new FormGroup({
|
|
85578
|
-
[
|
|
85579
|
-
[
|
|
85580
|
-
[
|
|
85581
|
-
[
|
|
85582
|
-
[
|
|
85041
|
+
[Controls.Id]: new FormControl(affiliation._id),
|
|
85042
|
+
[Controls.AffiliationName]: this.readOnly(generateTaskAffiliationFullName(affiliation)),
|
|
85043
|
+
[Controls.AffiliationType]: this.readOnly(affiliationType),
|
|
85044
|
+
[Controls.MailingAddress]: this.readOnly(BritishColumbiaFormationFormHelper.formatFullAddress(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Mailing"))),
|
|
85045
|
+
[Controls.DeliveryAddress]: this.readOnly(BritishColumbiaFormationFormHelper.formatFullAddress(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Delivery")))
|
|
85583
85046
|
});
|
|
85584
85047
|
}
|
|
85585
85048
|
static generateDirectorFormGroupsFromChangeDirectors(task) {
|
|
@@ -85610,11 +85073,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85610
85073
|
static generateDirectorFormGroupFromPayload(director, affiliationType) {
|
|
85611
85074
|
const name = director?.PersonName ?? director?.personName ?? director;
|
|
85612
85075
|
return new FormGroup({
|
|
85613
|
-
[
|
|
85614
|
-
[
|
|
85615
|
-
[
|
|
85616
|
-
[
|
|
85617
|
-
[
|
|
85076
|
+
[Controls.Id]: new FormControl(director?.Id ?? director?.id ?? ""),
|
|
85077
|
+
[Controls.AffiliationName]: this.readOnly(this.formatDirectorName(name?.FirstName ?? name?.firstName, name?.MiddleName ?? name?.middleName, name?.LastName ?? name?.lastName)),
|
|
85078
|
+
[Controls.AffiliationType]: this.readOnly(affiliationType),
|
|
85079
|
+
[Controls.MailingAddress]: this.readOnly(this.formatPayloadAddress(director?.mailingAddress ?? director?.MailingAddress ?? director)),
|
|
85080
|
+
[Controls.DeliveryAddress]: this.readOnly(this.formatPayloadAddress(director?.deliveryAddress ?? director?.DeliveryAddress ?? director))
|
|
85618
85081
|
});
|
|
85619
85082
|
}
|
|
85620
85083
|
static formatDirectorName(firstName, middleName, lastName) {
|
|
@@ -85643,891 +85106,327 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85643
85106
|
}
|
|
85644
85107
|
});
|
|
85645
85108
|
|
|
85646
|
-
// src/app/
|
|
85647
|
-
var
|
|
85648
|
-
var
|
|
85649
|
-
"src/app/
|
|
85650
|
-
|
|
85109
|
+
// src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts
|
|
85110
|
+
var Controls2, COMPANY_EMAIL_TYPES, isCompanyEmail, incomingAddressByGrid, EDITABLE_ADDRESS_CONTROLS, BritishColumbiaChangeOfOfficeAddressesFormHelper;
|
|
85111
|
+
var init_british_columbia_change_of_office_addresses_form_helper = __esm({
|
|
85112
|
+
"src/app/helpers/british-columbia/change-of-office-addresses/british-columbia-change-of-office-addresses-form.helper.ts"() {
|
|
85113
|
+
init_forms();
|
|
85114
|
+
init_common_models();
|
|
85651
85115
|
init_british_columbia_form_enums();
|
|
85652
85116
|
init_BritishColumbiaConstants();
|
|
85653
85117
|
init_british_columbia_formation_form_helper();
|
|
85654
|
-
|
|
85655
|
-
|
|
85656
|
-
|
|
85657
|
-
|
|
85658
|
-
|
|
85659
|
-
|
|
85660
|
-
|
|
85661
|
-
|
|
85662
|
-
|
|
85663
|
-
|
|
85664
|
-
|
|
85665
|
-
label: "Docket Number",
|
|
85666
|
-
formControlName: BCFormationFormControls.DocketNumber
|
|
85667
|
-
}
|
|
85118
|
+
init_BritishColumbiaConstants();
|
|
85119
|
+
init_common_utils();
|
|
85120
|
+
Controls2 = BCChangeOfOfficeAddressesFormControls;
|
|
85121
|
+
COMPANY_EMAIL_TYPES = ["Business Email", "Email"];
|
|
85122
|
+
isCompanyEmail = (communication) => Boolean(communication?.value) && COMPANY_EMAIL_TYPES.includes(communication?.type ?? "");
|
|
85123
|
+
incomingAddressByGrid = /* @__PURE__ */ new WeakMap();
|
|
85124
|
+
EDITABLE_ADDRESS_CONTROLS = [
|
|
85125
|
+
Controls2.AddressLine1,
|
|
85126
|
+
Controls2.AddressLine2,
|
|
85127
|
+
Controls2.City,
|
|
85128
|
+
Controls2.PostalCode
|
|
85668
85129
|
];
|
|
85669
|
-
|
|
85670
|
-
{
|
|
85671
|
-
|
|
85672
|
-
|
|
85673
|
-
|
|
85674
|
-
|
|
85675
|
-
|
|
85676
|
-
|
|
85677
|
-
|
|
85678
|
-
|
|
85679
|
-
|
|
85130
|
+
BritishColumbiaChangeOfOfficeAddressesFormHelper = class {
|
|
85131
|
+
static generateConfig(task, _translateFn, currentDataExtract) {
|
|
85132
|
+
const affiliations = task.entity.affiliations ?? [];
|
|
85133
|
+
const delta = task.deltaData;
|
|
85134
|
+
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
85135
|
+
const pick = BritishColumbiaFormationFormHelper.pickAddress;
|
|
85136
|
+
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85137
|
+
const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
85138
|
+
const incoming = this.incomingOfficeAddresses(task);
|
|
85139
|
+
const extract = this.officeExtract(currentDataExtract);
|
|
85140
|
+
const seed = this.resolveOfficeAddresses(task, currentDataExtract);
|
|
85141
|
+
const config2 = {};
|
|
85142
|
+
config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
|
|
85143
|
+
config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
|
|
85144
|
+
[Controls2.CorporationName]: this.readOnly(task.entity._profile.name),
|
|
85145
|
+
[Controls2.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
|
|
85146
|
+
[Controls2.CompanyEmail]: new FormControl(delta?.companyEmail || this.resolveCompanyEmail(task), Validators.required)
|
|
85147
|
+
});
|
|
85148
|
+
config2[BCChangeOfOfficeAddressesFormGroups.AnnualReportReminder] = new FormGroup({
|
|
85149
|
+
[Controls2.AnnualReportReminder]: new FormControl(delta?.annualReportReminder ?? BCAnnualReportReminder.Yes, Validators.required)
|
|
85150
|
+
});
|
|
85151
|
+
const regDeliverySame = seed.registeredOffice?.deliverySameAsMailing ?? true;
|
|
85152
|
+
config2[BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress] = new FormGroup({
|
|
85153
|
+
[Controls2.CurrentMailingAddress]: this.readOnly(this.previousText(extract, "regMailing", format(pick(registeredOffice?.addresses, "Mailing")))),
|
|
85154
|
+
[Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "regDelivery", format(pick(registeredOffice?.addresses, "Delivery")))),
|
|
85155
|
+
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.mailingAddress, true),
|
|
85156
|
+
[Controls2.DeliverySameAsMailing]: new FormControl(regDeliverySame),
|
|
85157
|
+
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress, !regDeliverySame)
|
|
85158
|
+
});
|
|
85159
|
+
const recSameAsRegistered = seed.recordsOffice?.sameAsRegisteredOffice ?? true;
|
|
85160
|
+
const recDeliverySame = seed.recordsOffice?.deliverySameAsMailing ?? true;
|
|
85161
|
+
config2[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress] = new FormGroup({
|
|
85162
|
+
[Controls2.CurrentMailingAddress]: this.readOnly(this.previousText(extract, "recMailing", format(pick(recordsOffice?.addresses, "Mailing")))),
|
|
85163
|
+
[Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "recDelivery", format(pick(recordsOffice?.addresses, "Delivery")))),
|
|
85164
|
+
[Controls2.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
|
|
85165
|
+
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.mailingAddress, !recSameAsRegistered),
|
|
85166
|
+
[Controls2.DeliverySameAsMailing]: new FormControl(recDeliverySame),
|
|
85167
|
+
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.deliveryAddress, !recSameAsRegistered && !recDeliverySame)
|
|
85168
|
+
});
|
|
85169
|
+
const grid = (group2, control) => config2[group2].get(control);
|
|
85170
|
+
const register = (target, address) => address && incomingAddressByGrid.set(target, address);
|
|
85171
|
+
register(grid(BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress, Controls2.NewDeliveryAddress), incoming.regDelivery);
|
|
85172
|
+
register(grid(BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress, Controls2.NewMailingAddress), incoming.recMailing);
|
|
85173
|
+
register(grid(BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress, Controls2.NewDeliveryAddress), incoming.recDelivery);
|
|
85174
|
+
return config2;
|
|
85175
|
+
}
|
|
85176
|
+
/** The company email choices: the entity's email options, plus the resolved default if it isn't one. */
|
|
85177
|
+
static getCompanyEmailOptions(task) {
|
|
85178
|
+
const values = (task.entity.emailOptions ?? []).filter(isCompanyEmail).map((o) => o.value);
|
|
85179
|
+
const fallback = this.resolveCompanyEmail(task);
|
|
85180
|
+
return [...new Set(fallback ? [...values, fallback] : values)].map((value) => ({
|
|
85181
|
+
value,
|
|
85182
|
+
label: value
|
|
85183
|
+
}));
|
|
85184
|
+
}
|
|
85185
|
+
/**
|
|
85186
|
+
* Pre-fills the new addresses from the task's incoming "Shared Address" affiliations (Registered
|
|
85187
|
+
* Office / Records Office), taking each Mailing / Delivery address from the affiliation or, when
|
|
85188
|
+
* it has none, from its parent affiliation. Nothing is pre-filled without an incoming address.
|
|
85189
|
+
*/
|
|
85190
|
+
static seedFromIncomingAffiliations(task) {
|
|
85191
|
+
const { regMailing, regDelivery, recMailing, recDelivery } = this.incomingOfficeAddresses(task);
|
|
85192
|
+
if (!regMailing && !recMailing) {
|
|
85193
|
+
return {};
|
|
85680
85194
|
}
|
|
85681
|
-
|
|
85682
|
-
|
|
85683
|
-
|
|
85684
|
-
|
|
85685
|
-
|
|
85686
|
-
|
|
85687
|
-
|
|
85688
|
-
|
|
85689
|
-
|
|
85690
|
-
|
|
85691
|
-
|
|
85692
|
-
|
|
85693
|
-
|
|
85694
|
-
|
|
85695
|
-
|
|
85696
|
-
|
|
85697
|
-
},
|
|
85698
|
-
{
|
|
85699
|
-
type: FormType.Input,
|
|
85700
|
-
label: "Name Reservation #",
|
|
85701
|
-
formControlName: BCFormationFormControls.NameReservationNumber,
|
|
85702
|
-
required: true,
|
|
85703
|
-
maxLength: 9,
|
|
85704
|
-
errorMessage: "Enter a valid Name Reservation number (for example NR1234567)",
|
|
85705
|
-
showRequiredMessage: true,
|
|
85706
|
-
isVisible: isNamed,
|
|
85707
|
-
class: "span-6"
|
|
85708
|
-
},
|
|
85709
|
-
{
|
|
85710
|
-
type: FormType.Text,
|
|
85711
|
-
formControlName: BCFormationFormControls.RequestedDateForIncorporation,
|
|
85712
|
-
class: "span-12 spaced-text",
|
|
85713
|
-
dynamicLabel: (form, t) => labelledValue("Requested Date for Incorporation", form.get(BCFormationFormControls.RequestedDateForIncorporation)?.value, t)
|
|
85714
|
-
},
|
|
85715
|
-
{
|
|
85716
|
-
type: FormType.Text,
|
|
85717
|
-
formControlName: BCFormationFormControls.IsFutureEffectiveDate,
|
|
85718
|
-
class: "span-12 fee-warning",
|
|
85719
|
-
isVisible: (form) => Boolean(form.get(BCFormationFormControls.IsFutureEffectiveDate)?.value),
|
|
85720
|
-
dynamicLabel: (_, t) => t("There is an additional fee of {{fee}} for an effective date in the future.").replace("{{fee}}", BC_FUTURE_EFFECTIVE_DATE_FEE)
|
|
85721
|
-
},
|
|
85722
|
-
{
|
|
85723
|
-
// Options are filled per task from `task.entity.emailOptions` by the incorporation form.
|
|
85724
|
-
type: FormType.Select,
|
|
85725
|
-
label: "Company Email",
|
|
85726
|
-
formControlName: BCFormationFormControls.CompanyEmail,
|
|
85727
|
-
required: true,
|
|
85728
|
-
options: [],
|
|
85729
|
-
class: "span-6"
|
|
85195
|
+
const regDeliverySame = !regDelivery || this.isSameOfficeAddress(regDelivery, regMailing);
|
|
85196
|
+
const recDeliverySame = !recDelivery || this.isSameOfficeAddress(recDelivery, recMailing);
|
|
85197
|
+
const recSameAsRegistered = !recMailing || this.isSameOfficeAddress(recMailing, regMailing) && this.isSameOfficeAddress(recDelivery ?? recMailing, regDelivery ?? regMailing);
|
|
85198
|
+
return {
|
|
85199
|
+
registeredOffice: {
|
|
85200
|
+
mailingAddress: regMailing,
|
|
85201
|
+
deliverySameAsMailing: regDeliverySame,
|
|
85202
|
+
deliveryAddress: regDeliverySame ? void 0 : regDelivery
|
|
85203
|
+
},
|
|
85204
|
+
recordsOffice: {
|
|
85205
|
+
sameAsRegisteredOffice: recSameAsRegistered,
|
|
85206
|
+
mailingAddress: recSameAsRegistered ? void 0 : recMailing,
|
|
85207
|
+
deliverySameAsMailing: recDeliverySame,
|
|
85208
|
+
deliveryAddress: recDeliverySame ? void 0 : recDelivery
|
|
85209
|
+
}
|
|
85210
|
+
};
|
|
85730
85211
|
}
|
|
85731
|
-
|
|
85732
|
-
|
|
85733
|
-
|
|
85734
|
-
|
|
85735
|
-
|
|
85736
|
-
|
|
85737
|
-
|
|
85738
|
-
|
|
85739
|
-
|
|
85740
|
-
|
|
85741
|
-
|
|
85742
|
-
|
|
85743
|
-
|
|
85212
|
+
/**
|
|
85213
|
+
* The new office addresses: the incoming Shared Address, else the registry's current address
|
|
85214
|
+
* (the data extract, or the Entity's own addresses when there is no extract).
|
|
85215
|
+
*/
|
|
85216
|
+
static resolveOfficeAddresses(task, currentDataExtract) {
|
|
85217
|
+
const affiliations = task.entity.affiliations ?? [];
|
|
85218
|
+
return this.withCurrentAddresses(this.seedFromIncomingAffiliations(task), this.incomingOfficeAddresses(task), BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE), BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE), this.officeExtract(currentDataExtract));
|
|
85219
|
+
}
|
|
85220
|
+
/**
|
|
85221
|
+
* For an office without an incoming address, the new address is its
|
|
85222
|
+
* current address on the register (so the filing leaves it unchanged). A current address outside
|
|
85223
|
+
* British Columbia is not used: the office is then reported as missing.
|
|
85224
|
+
*/
|
|
85225
|
+
static withCurrentAddresses(seed, incoming, registeredOffice, recordsOffice, extract) {
|
|
85226
|
+
const pickBy = BritishColumbiaFormationFormHelper.pickAddress;
|
|
85227
|
+
const current = (office, type, key) => {
|
|
85228
|
+
if (extract) {
|
|
85229
|
+
const registry = extract[key];
|
|
85230
|
+
return registry && this.isBritishColumbiaExtract(registry) ? this.extractToOfficeAddressDelta(registry) : void 0;
|
|
85744
85231
|
}
|
|
85745
|
-
|
|
85746
|
-
|
|
85232
|
+
const address = pickBy(office?.addresses, type);
|
|
85233
|
+
return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
|
|
85234
|
+
};
|
|
85235
|
+
const result = __spreadValues({}, seed);
|
|
85236
|
+
if (!incoming.regMailing) {
|
|
85237
|
+
const mailing = current(registeredOffice, "Mailing", "regMailing");
|
|
85238
|
+
const delivery = current(registeredOffice, "Delivery", "regDelivery");
|
|
85239
|
+
if (mailing) {
|
|
85240
|
+
const same = !delivery || this.isSameOfficeAddress(delivery, mailing);
|
|
85241
|
+
result.registeredOffice = {
|
|
85242
|
+
mailingAddress: mailing,
|
|
85243
|
+
deliverySameAsMailing: same,
|
|
85244
|
+
deliveryAddress: same ? void 0 : delivery
|
|
85245
|
+
};
|
|
85747
85246
|
}
|
|
85748
|
-
|
|
85749
|
-
|
|
85247
|
+
}
|
|
85248
|
+
if (!incoming.recMailing) {
|
|
85249
|
+
const mailing = current(recordsOffice, "Mailing", "recMailing");
|
|
85250
|
+
const delivery = current(recordsOffice, "Delivery", "recDelivery");
|
|
85251
|
+
if (mailing) {
|
|
85252
|
+
const registeredMailing = result.registeredOffice?.mailingAddress;
|
|
85253
|
+
const registeredDelivery = result.registeredOffice?.deliveryAddress ?? registeredMailing;
|
|
85254
|
+
const sameAsRegistered = this.isSameOfficeAddress(mailing, registeredMailing) && this.isSameOfficeAddress(delivery ?? mailing, registeredDelivery);
|
|
85255
|
+
const deliverySame = !delivery || this.isSameOfficeAddress(delivery, mailing);
|
|
85256
|
+
result.recordsOffice = {
|
|
85257
|
+
sameAsRegisteredOffice: sameAsRegistered,
|
|
85258
|
+
mailingAddress: sameAsRegistered ? void 0 : mailing,
|
|
85259
|
+
deliverySameAsMailing: deliverySame,
|
|
85260
|
+
deliveryAddress: deliverySame ? void 0 : delivery
|
|
85261
|
+
};
|
|
85262
|
+
} else {
|
|
85263
|
+
result.recordsOffice = { sameAsRegisteredOffice: false, deliverySameAsMailing: false };
|
|
85750
85264
|
}
|
|
85751
85265
|
}
|
|
85752
|
-
|
|
85753
|
-
{
|
|
85754
|
-
type: FormType.Text,
|
|
85755
|
-
formControlName: "",
|
|
85756
|
-
class: "span-12",
|
|
85757
|
-
isVisible: (form) => Boolean(form.get(BCFormationFormControls.UsesNameTranslation)?.value),
|
|
85758
|
-
dynamicLabel: (_, t) => `<span class="body-1-semibold">${t("Note")}:</span> ${t("Name translations must use the Latin Alphabet (English, French, etc.). Names that use other writing systems must spell the name phonetically in English or French.")}`
|
|
85759
|
-
}
|
|
85760
|
-
];
|
|
85761
|
-
BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS = [
|
|
85762
|
-
{
|
|
85763
|
-
type: FormType.Input,
|
|
85764
|
-
label: "Name Translation",
|
|
85765
|
-
formControlName: BCFormationFormControls.NameTranslation,
|
|
85766
|
-
required: true,
|
|
85767
|
-
class: "span-6"
|
|
85768
|
-
}
|
|
85769
|
-
];
|
|
85770
|
-
BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS = [
|
|
85771
|
-
{
|
|
85772
|
-
type: FormType.Text,
|
|
85773
|
-
formControlName: BCFormationFormControls.MailingAddress,
|
|
85774
|
-
class: "span-12",
|
|
85775
|
-
dynamicLabel: (form, t) => labelledValue("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
85776
|
-
},
|
|
85777
|
-
{
|
|
85778
|
-
type: FormType.Text,
|
|
85779
|
-
formControlName: BCFormationFormControls.DeliveryAddress,
|
|
85780
|
-
class: "span-12",
|
|
85781
|
-
dynamicLabel: (form, t) => labelledValue("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value, t)
|
|
85782
|
-
}
|
|
85783
|
-
];
|
|
85784
|
-
BC_FORMATION_CARD_FORM_RECORDS_OFFICE_FIELDS = [
|
|
85785
|
-
{
|
|
85786
|
-
type: FormType.Text,
|
|
85787
|
-
formControlName: BCFormationFormControls.RecordsOfficeMailingAddress,
|
|
85788
|
-
class: "span-12",
|
|
85789
|
-
dynamicLabel: (form, t) => labelledValue("Mailing Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeMailingAddress)?.value, t)
|
|
85790
|
-
},
|
|
85791
|
-
{
|
|
85792
|
-
type: FormType.Text,
|
|
85793
|
-
formControlName: BCFormationFormControls.RecordsOfficeDeliveryAddress,
|
|
85794
|
-
class: "span-12",
|
|
85795
|
-
dynamicLabel: (form, t) => labelledValue("Delivery Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeDeliveryAddress)?.value, t)
|
|
85266
|
+
return result;
|
|
85796
85267
|
}
|
|
85797
|
-
|
|
85798
|
-
|
|
85799
|
-
|
|
85800
|
-
|
|
85801
|
-
|
|
85802
|
-
formControlName: BCFormationFormControls.CompletingPartyFirstName,
|
|
85803
|
-
required: true,
|
|
85804
|
-
class: "column-3"
|
|
85805
|
-
},
|
|
85806
|
-
{
|
|
85807
|
-
type: FormType.Input,
|
|
85808
|
-
label: "Middle Name",
|
|
85809
|
-
formControlName: BCFormationFormControls.CompletingPartyMiddleName,
|
|
85810
|
-
class: "column-3"
|
|
85811
|
-
},
|
|
85812
|
-
{
|
|
85813
|
-
type: FormType.Input,
|
|
85814
|
-
label: "Last Name",
|
|
85815
|
-
formControlName: BCFormationFormControls.CompletingPartyLastName,
|
|
85816
|
-
required: true,
|
|
85817
|
-
class: "column-3"
|
|
85818
|
-
},
|
|
85819
|
-
{
|
|
85820
|
-
type: FormType.Input,
|
|
85821
|
-
inputType: "email",
|
|
85822
|
-
label: "Email",
|
|
85823
|
-
formControlName: BCFormationFormControls.CompletingPartyEmail,
|
|
85824
|
-
required: true,
|
|
85825
|
-
errorMessage: "Enter a valid email address",
|
|
85826
|
-
showRequiredMessage: true,
|
|
85827
|
-
class: "column-3"
|
|
85828
|
-
},
|
|
85829
|
-
{
|
|
85830
|
-
type: FormType.Text,
|
|
85831
|
-
formControlName: "",
|
|
85832
|
-
class: "span-12",
|
|
85833
|
-
dynamicLabel: (_, t) => t("A copy of the filed Incorporation Application is emailed to this address.")
|
|
85834
|
-
},
|
|
85835
|
-
{
|
|
85836
|
-
type: FormType.Input,
|
|
85837
|
-
label: "Street Address",
|
|
85838
|
-
formControlName: BCFormationFormControls.AddressLine1,
|
|
85839
|
-
required: true,
|
|
85840
|
-
class: "column-3"
|
|
85841
|
-
},
|
|
85842
|
-
{
|
|
85843
|
-
type: FormType.Input,
|
|
85844
|
-
label: "Additional Street Address",
|
|
85845
|
-
formControlName: BCFormationFormControls.AddressLine2,
|
|
85846
|
-
class: "column-3"
|
|
85847
|
-
},
|
|
85848
|
-
{
|
|
85849
|
-
type: FormType.Input,
|
|
85850
|
-
label: "City",
|
|
85851
|
-
formControlName: BCFormationFormControls.City,
|
|
85852
|
-
required: true,
|
|
85853
|
-
class: "column-2"
|
|
85854
|
-
},
|
|
85855
|
-
{
|
|
85856
|
-
type: FormType.Input,
|
|
85857
|
-
label: "Province / State",
|
|
85858
|
-
formControlName: BCFormationFormControls.ProvinceState,
|
|
85859
|
-
required: true,
|
|
85860
|
-
class: "column-2"
|
|
85861
|
-
},
|
|
85862
|
-
{
|
|
85863
|
-
type: FormType.Input,
|
|
85864
|
-
label: "Postal / Zip Code",
|
|
85865
|
-
formControlName: BCFormationFormControls.PostalZip,
|
|
85866
|
-
required: true,
|
|
85867
|
-
errorMessage: "Enter a valid Canadian postal code (for example V8W 1X4)",
|
|
85868
|
-
showRequiredMessage: true,
|
|
85869
|
-
class: "column-2"
|
|
85870
|
-
},
|
|
85871
|
-
{
|
|
85872
|
-
type: FormType.Select,
|
|
85873
|
-
label: "Country",
|
|
85874
|
-
formControlName: BCFormationFormControls.Country,
|
|
85875
|
-
required: true,
|
|
85876
|
-
options: BC_COMPLETING_PARTY_COUNTRY_OPTIONS,
|
|
85877
|
-
class: "span-4",
|
|
85878
|
-
// Province / State is required for Canada and the US, and the postal code format is Canada-only.
|
|
85879
|
-
onChange: (form) => {
|
|
85880
|
-
[BCFormationFormControls.ProvinceState, BCFormationFormControls.PostalZip].forEach((control) => form.get(control)?.updateValueAndValidity({ emitEvent: false }));
|
|
85268
|
+
/** The four office addresses of the registry's data extract, or undefined when there is none. */
|
|
85269
|
+
static officeExtract(extract) {
|
|
85270
|
+
const data = extract?.dataExtract;
|
|
85271
|
+
if (!data || !(data["registeredOfficeMailingAddress"] || data["registeredOfficeDeliveryAddress"] || data["recordsOfficeMailingAddress"] || data["recordsOfficeDeliveryAddress"])) {
|
|
85272
|
+
return void 0;
|
|
85881
85273
|
}
|
|
85882
|
-
|
|
85883
|
-
|
|
85884
|
-
|
|
85885
|
-
|
|
85886
|
-
|
|
85887
|
-
|
|
85888
|
-
required: true,
|
|
85889
|
-
class: "span-12"
|
|
85890
|
-
},
|
|
85891
|
-
{
|
|
85892
|
-
type: FormType.Checkbox,
|
|
85893
|
-
// Checkbox labels don't get the renderer's required asterisk, so it is added here (AC2).
|
|
85894
|
-
dynamicLabel: (_, t) => `${t("I have a signed Incorporation Agreement and a set of Articles for the company to be incorporated.")} *`,
|
|
85895
|
-
formControlName: BCFormationFormControls.HasRequiredDocuments,
|
|
85896
|
-
required: true,
|
|
85897
|
-
class: "span-12"
|
|
85898
|
-
}
|
|
85899
|
-
];
|
|
85900
|
-
BC_FORMATION_CARD_FORM_DIRECTORS_FIELDS = [
|
|
85901
|
-
{
|
|
85902
|
-
type: FormType.Text,
|
|
85903
|
-
formControlName: BCFormationFormControls.MailingAddress,
|
|
85904
|
-
class: "span-12",
|
|
85905
|
-
dynamicLabel: (form, t) => labelledValue("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
85906
|
-
},
|
|
85907
|
-
{
|
|
85908
|
-
type: FormType.Text,
|
|
85909
|
-
formControlName: BCFormationFormControls.DeliveryAddress,
|
|
85910
|
-
class: "span-12",
|
|
85911
|
-
// A director without a Delivery address is filed with "delivery same as mailing", so the
|
|
85912
|
-
// Mailing address is shown, as in the draft.
|
|
85913
|
-
dynamicLabel: (form, t) => labelledValue("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value || form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
85914
|
-
}
|
|
85915
|
-
];
|
|
85916
|
-
BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS = [
|
|
85917
|
-
{
|
|
85918
|
-
type: FormType.Text,
|
|
85919
|
-
formControlName: BCFormationFormControls.FullAddress,
|
|
85920
|
-
class: "span-12",
|
|
85921
|
-
dynamicLabel: (form, t) => labelledValue("Full Address", form.get(BCFormationFormControls.FullAddress)?.value, t)
|
|
85274
|
+
return {
|
|
85275
|
+
regMailing: data["registeredOfficeMailingAddress"],
|
|
85276
|
+
regDelivery: data["registeredOfficeDeliveryAddress"],
|
|
85277
|
+
recMailing: data["recordsOfficeMailingAddress"],
|
|
85278
|
+
recDelivery: data["recordsOfficeDeliveryAddress"]
|
|
85279
|
+
};
|
|
85922
85280
|
}
|
|
85923
|
-
|
|
85924
|
-
|
|
85925
|
-
|
|
85926
|
-
|
|
85927
|
-
|
|
85928
|
-
|
|
85929
|
-
|
|
85930
|
-
|
|
85931
|
-
|
|
85932
|
-
|
|
85933
|
-
|
|
85934
|
-
|
|
85935
|
-
|
|
85936
|
-
|
|
85937
|
-
|
|
85938
|
-
|
|
85939
|
-
},
|
|
85940
|
-
{
|
|
85941
|
-
type: FormType.Input,
|
|
85942
|
-
label: "Docket Number",
|
|
85943
|
-
formControlName: BCAnnualReportFormControls.DocketNumber
|
|
85944
|
-
},
|
|
85945
|
-
{
|
|
85946
|
-
type: FormType.Text,
|
|
85947
|
-
formControlName: BCAnnualReportFormControls.EntityIdentifier,
|
|
85948
|
-
class: "span-12",
|
|
85949
|
-
dynamicLabel: (form, t) => labelledValue("Entity Identifier", form.get(BCAnnualReportFormControls.EntityIdentifier)?.value, t)
|
|
85281
|
+
/** The "Previous" text of an office line: the registry's address, else the Entity's own. */
|
|
85282
|
+
static previousText(extract, key, fallback) {
|
|
85283
|
+
if (!extract) {
|
|
85284
|
+
return fallback;
|
|
85285
|
+
}
|
|
85286
|
+
const address = extract[key];
|
|
85287
|
+
const province = this.isBritishColumbiaExtract(address) ? BC_DEFAULT_PROVINCE_STATE : address?.provinceOrState;
|
|
85288
|
+
const country = (address?.country ?? "").toUpperCase() === "CA" ? BC_DEFAULT_COUNTRY : address?.country;
|
|
85289
|
+
return [
|
|
85290
|
+
address?.streetAddress,
|
|
85291
|
+
address?.additionalStreetAddress,
|
|
85292
|
+
address?.city,
|
|
85293
|
+
province,
|
|
85294
|
+
address?.postalOrZipCode,
|
|
85295
|
+
country
|
|
85296
|
+
].filter((part) => Boolean(part?.trim())).join(", ");
|
|
85950
85297
|
}
|
|
85951
|
-
|
|
85952
|
-
|
|
85953
|
-
|
|
85954
|
-
type: FormType.Text,
|
|
85955
|
-
formControlName: BCAnnualReportFormControls.EffectiveDate,
|
|
85956
|
-
class: "span-12",
|
|
85957
|
-
dynamicLabel: (form, t) => labelledValue("Effective Date", form.get(BCAnnualReportFormControls.EffectiveDate)?.value, t)
|
|
85958
|
-
},
|
|
85959
|
-
{
|
|
85960
|
-
type: FormType.Text,
|
|
85961
|
-
formControlName: BCAnnualReportFormControls.CeaseDate,
|
|
85962
|
-
class: "span-12",
|
|
85963
|
-
dynamicLabel: (form, t) => labelledValue("Cease Date", form.get(BCAnnualReportFormControls.CeaseDate)?.value, t)
|
|
85964
|
-
},
|
|
85965
|
-
{
|
|
85966
|
-
type: FormType.Text,
|
|
85967
|
-
formControlName: BCAnnualReportFormControls.FullAddress,
|
|
85968
|
-
class: "span-12",
|
|
85969
|
-
dynamicLabel: (form, t) => labelledValue("Full Address", form.get(BCAnnualReportFormControls.FullAddress)?.value, t)
|
|
85298
|
+
static isBritishColumbiaExtract(address) {
|
|
85299
|
+
const province = (address?.provinceOrState ?? "").trim().toLowerCase();
|
|
85300
|
+
return !!address && ["bc", "b.c.", "british columbia"].includes(province);
|
|
85970
85301
|
}
|
|
85971
|
-
|
|
85972
|
-
|
|
85973
|
-
|
|
85974
|
-
|
|
85975
|
-
|
|
85976
|
-
|
|
85977
|
-
|
|
85978
|
-
|
|
85979
|
-
|
|
85980
|
-
class: "span-6"
|
|
85302
|
+
static extractToOfficeAddressDelta(address) {
|
|
85303
|
+
return {
|
|
85304
|
+
addressLine1: address.streetAddress ?? "",
|
|
85305
|
+
addressLine2: address.additionalStreetAddress ?? "",
|
|
85306
|
+
city: address.city ?? "",
|
|
85307
|
+
postalCode: address.postalOrZipCode ?? "",
|
|
85308
|
+
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85309
|
+
country: BC_DEFAULT_COUNTRY
|
|
85310
|
+
};
|
|
85981
85311
|
}
|
|
85982
|
-
|
|
85983
|
-
|
|
85984
|
-
|
|
85985
|
-
|
|
85986
|
-
|
|
85987
|
-
|
|
85988
|
-
|
|
85312
|
+
/** The four office addresses of the task's incoming Shared Address, as form values. */
|
|
85313
|
+
static incomingOfficeAddresses(task) {
|
|
85314
|
+
const incoming = task.incomingAffiliations ?? [];
|
|
85315
|
+
const pickBy = (title, locationType) => {
|
|
85316
|
+
const pool = incoming.filter((a) => a.role?.role_name === AddressRole2.SHARED_ADDRESS && a.role?.static_title === title).flatMap((a) => a.addresses?.length ? a.addresses : a.parent_affiliation?.addresses ?? []);
|
|
85317
|
+
const wanted = locationType.toLowerCase();
|
|
85318
|
+
const address = pool.find((a) => (a.computed_location_type ?? "").toLowerCase() === wanted || (a.location_type ?? "").toLowerCase() === wanted);
|
|
85319
|
+
return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
|
|
85320
|
+
};
|
|
85321
|
+
return {
|
|
85322
|
+
regMailing: pickBy(AddressTitle2.REGISTERED_OFFICE, "Mailing"),
|
|
85323
|
+
regDelivery: pickBy(AddressTitle2.REGISTERED_OFFICE, "Delivery"),
|
|
85324
|
+
recMailing: pickBy(AddressTitle2.RECORDS_OFFICE, "Mailing"),
|
|
85325
|
+
recDelivery: pickBy(AddressTitle2.RECORDS_OFFICE, "Delivery")
|
|
85326
|
+
};
|
|
85989
85327
|
}
|
|
85990
|
-
|
|
85991
|
-
|
|
85992
|
-
|
|
85993
|
-
|
|
85994
|
-
|
|
85995
|
-
|
|
85996
|
-
|
|
85997
|
-
|
|
85998
|
-
|
|
85999
|
-
|
|
86000
|
-
|
|
86001
|
-
\u0275\u0275property("type", ctx_r0.alertType.Info);
|
|
86002
|
-
}
|
|
86003
|
-
}
|
|
86004
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_2_Template(rf, ctx) {
|
|
86005
|
-
if (rf & 1) {
|
|
86006
|
-
\u0275\u0275element(0, "alert", 2);
|
|
86007
|
-
}
|
|
86008
|
-
if (rf & 2) {
|
|
86009
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86010
|
-
\u0275\u0275property("content", ctx_r0.errors());
|
|
86011
|
-
}
|
|
86012
|
-
}
|
|
86013
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_5_Template(rf, ctx) {
|
|
86014
|
-
if (rf & 1) {
|
|
86015
|
-
const _r2 = \u0275\u0275getCurrentView();
|
|
86016
|
-
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "div", 8)(2, "filing-form-group", 9);
|
|
86017
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaAnnualReportFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_2_listener($event) {
|
|
86018
|
-
\u0275\u0275restoreView(_r2);
|
|
86019
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86020
|
-
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("general", $event));
|
|
86021
|
-
});
|
|
86022
|
-
\u0275\u0275elementEnd()()();
|
|
86023
|
-
}
|
|
86024
|
-
if (rf & 2) {
|
|
86025
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86026
|
-
const general_r3 = \u0275\u0275readContextLet(4);
|
|
86027
|
-
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.General);
|
|
86028
|
-
\u0275\u0275advance(2);
|
|
86029
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", general_r3)("config", ctx_r0.generalFields);
|
|
86030
|
-
}
|
|
86031
|
-
}
|
|
86032
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_8_Template(rf, ctx) {
|
|
86033
|
-
if (rf & 1) {
|
|
86034
|
-
\u0275\u0275element(0, "expandable-list-card", 5);
|
|
86035
|
-
}
|
|
86036
|
-
if (rf & 2) {
|
|
86037
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86038
|
-
const officersArray_r4 = \u0275\u0275readContextLet(6);
|
|
86039
|
-
const isOpenOfficers_r5 = \u0275\u0275readContextLet(7);
|
|
86040
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("isValid", true)("areItemsOpen", isOpenOfficers_r5)("isStatusIcon", false)("fields", ctx_r0.officersFields)("formArray", officersArray_r4)("title", ctx_r0.groups.Officers);
|
|
86041
|
-
}
|
|
86042
|
-
}
|
|
86043
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_9_Template(rf, ctx) {
|
|
86044
|
-
if (rf & 1) {
|
|
86045
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "h2", 10);
|
|
86046
|
-
\u0275\u0275text(2);
|
|
86047
|
-
\u0275\u0275pipe(3, "translate");
|
|
86048
|
-
\u0275\u0275elementEnd()();
|
|
86049
|
-
}
|
|
86050
|
-
if (rf & 2) {
|
|
86051
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86052
|
-
\u0275\u0275property("title", ctx_r0.groups.Officers);
|
|
86053
|
-
\u0275\u0275advance(2);
|
|
86054
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(3, 2, "Unchanged"));
|
|
86055
|
-
}
|
|
86056
|
-
}
|
|
86057
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_11_Template(rf, ctx) {
|
|
86058
|
-
if (rf & 1) {
|
|
86059
|
-
const _r6 = \u0275\u0275getCurrentView();
|
|
86060
|
-
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 8)(2, "filing-form-group", 9);
|
|
86061
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaAnnualReportFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_2_listener($event) {
|
|
86062
|
-
\u0275\u0275restoreView(_r6);
|
|
86063
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86064
|
-
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("companyEmail", $event));
|
|
86065
|
-
});
|
|
86066
|
-
\u0275\u0275elementEnd()()();
|
|
86067
|
-
}
|
|
86068
|
-
if (rf & 2) {
|
|
86069
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86070
|
-
const companyEmail_r7 = \u0275\u0275readContextLet(10);
|
|
86071
|
-
\u0275\u0275property("isValid", ctx_r0.sectionValidity["companyEmail"])("isStatusIcon", ctx_r0.statusIcon())("title", ctx_r0.groups.CompanyEmail);
|
|
86072
|
-
\u0275\u0275advance(2);
|
|
86073
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", companyEmail_r7)("config", ctx_r0.companyEmailFields());
|
|
86074
|
-
}
|
|
86075
|
-
}
|
|
86076
|
-
function BritishColumbiaAnnualReportFormComponent_Conditional_13_Template(rf, ctx) {
|
|
86077
|
-
if (rf & 1) {
|
|
86078
|
-
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "div", 8);
|
|
86079
|
-
\u0275\u0275element(2, "filing-form-group", 11);
|
|
86080
|
-
\u0275\u0275elementEnd()();
|
|
86081
|
-
}
|
|
86082
|
-
if (rf & 2) {
|
|
86083
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
86084
|
-
const reminder_r8 = \u0275\u0275readContextLet(12);
|
|
86085
|
-
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
|
|
86086
|
-
\u0275\u0275advance(2);
|
|
86087
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", reminder_r8)("config", ctx_r0.reminderFields);
|
|
86088
|
-
}
|
|
86089
|
-
}
|
|
86090
|
-
var BritishColumbiaAnnualReportFormComponent;
|
|
86091
|
-
var init_british_columbia_annual_report_form_component = __esm({
|
|
86092
|
-
"src/app/components/british-columbia/annual-report/british-columbia-annual-report-form/british-columbia-annual-report-form.component.ts"() {
|
|
86093
|
-
init_core();
|
|
86094
|
-
init_ngx_translate_core();
|
|
86095
|
-
init_expandable_card_component();
|
|
86096
|
-
init_expandable_list_card_component();
|
|
86097
|
-
init_filing_form_group_component();
|
|
86098
|
-
init_alert_component();
|
|
86099
|
-
init_alert_enum();
|
|
86100
|
-
init_british_columbia_form_enums();
|
|
86101
|
-
init_british_columbia_annual_report_form_constants();
|
|
86102
|
-
init_british_columbia_annual_report_form_helper();
|
|
86103
|
-
init_core();
|
|
86104
|
-
BritishColumbiaAnnualReportFormComponent = class _BritishColumbiaAnnualReportFormComponent {
|
|
86105
|
-
form = input.required();
|
|
86106
|
-
task = input();
|
|
86107
|
-
errors = input([]);
|
|
86108
|
-
isNote = input(false);
|
|
86109
|
-
statusIcon = input(true);
|
|
86110
|
-
isSubmitted = input(false);
|
|
86111
|
-
visiblyValidChange = output();
|
|
86112
|
-
alertType = AlertType;
|
|
86113
|
-
groups = BCAnnualReportFormGroups;
|
|
86114
|
-
generalFields = BC_ANNUAL_REPORT_GENERAL_FIELDS;
|
|
86115
|
-
officersFields = BC_ANNUAL_REPORT_OFFICERS_FIELDS;
|
|
86116
|
-
reminderFields = BC_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
86117
|
-
companyEmailFields = computed(() => {
|
|
86118
|
-
const task = this.task();
|
|
86119
|
-
return buildBCAnnualReportCompanyEmailFields(task ? BritishColumbiaAnnualReportFormHelper.getCompanyEmailOptions(task) : []);
|
|
86120
|
-
});
|
|
86121
|
-
/** AC2: the Officers section starts expanded for 3 officers or fewer, collapsed for more. */
|
|
86122
|
-
initiallyOpenCardsCount = 3;
|
|
86123
|
-
sectionValidity = {};
|
|
86124
|
-
isVisiblyValid() {
|
|
86125
|
-
return Object.values(this.sectionValidity).every((v) => v);
|
|
85328
|
+
/** Street = street number + street name; the suite goes to Address Line 2. */
|
|
85329
|
+
static toOfficeAddressDelta(address) {
|
|
85330
|
+
const street = [getAddressComponent(address, "Street Number Only"), getAddressComponent(address, "Street Only")].filter(Boolean).join(" ") || getAddressComponent(address, "Street Address") || address.street || "";
|
|
85331
|
+
return {
|
|
85332
|
+
addressLine1: street,
|
|
85333
|
+
addressLine2: getAddressComponent(address, "Suite/Apartment") || address.address2 || "",
|
|
85334
|
+
city: address.city ?? "",
|
|
85335
|
+
postalCode: address.postal_zip ?? "",
|
|
85336
|
+
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85337
|
+
country: BC_DEFAULT_COUNTRY
|
|
85338
|
+
};
|
|
86126
85339
|
}
|
|
86127
|
-
|
|
86128
|
-
|
|
86129
|
-
|
|
85340
|
+
/** An address with no province is accepted; the form only ever deals in British Columbia. */
|
|
85341
|
+
static isBritishColumbia(address) {
|
|
85342
|
+
const province = (address.province_state ?? "").trim().toLowerCase();
|
|
85343
|
+
return !province || ["bc", "b.c.", "british columbia"].includes(province);
|
|
86130
85344
|
}
|
|
86131
|
-
|
|
86132
|
-
|
|
85345
|
+
static isSameOfficeAddress(a, b) {
|
|
85346
|
+
const key = (x) => [x?.addressLine1, x?.addressLine2, x?.city, x?.postalCode].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
85347
|
+
return key(a) === key(b);
|
|
86133
85348
|
}
|
|
86134
|
-
|
|
86135
|
-
|
|
85349
|
+
/**
|
|
85350
|
+
* The company's email: the entity's email options, then the Registered Office's email, then the
|
|
85351
|
+
* entity's own, then any other address of the entity (e.g. a Head Office). Only a Business Email
|
|
85352
|
+
* or an Email counts; a Personal Email never does.
|
|
85353
|
+
*/
|
|
85354
|
+
static resolveCompanyEmail(task) {
|
|
85355
|
+
const affiliations = task.entity.affiliations ?? [];
|
|
85356
|
+
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85357
|
+
return task.entity.emailOptions?.find(isCompanyEmail)?.value || registeredOffice?.addresses?.[0]?.communications?.find(isCompanyEmail)?.value || task.entity.communications?.find(isCompanyEmail)?.value || task.entity.addresses?.flatMap((a) => a.communications ?? []).find(isCompanyEmail)?.value || "";
|
|
86136
85358
|
}
|
|
86137
|
-
|
|
86138
|
-
|
|
86139
|
-
|
|
86140
|
-
|
|
86141
|
-
|
|
86142
|
-
|
|
86143
|
-
|
|
86144
|
-
|
|
86145
|
-
|
|
86146
|
-
|
|
86147
|
-
|
|
86148
|
-
|
|
86149
|
-
|
|
86150
|
-
|
|
86151
|
-
|
|
86152
|
-
\u0275\u0275template(13, BritishColumbiaAnnualReportFormComponent_Conditional_13_Template, 3, 5, "expandable-card", 4);
|
|
86153
|
-
\u0275\u0275elementEnd()();
|
|
86154
|
-
}
|
|
86155
|
-
if (rf & 2) {
|
|
86156
|
-
let tmp_5_0;
|
|
86157
|
-
\u0275\u0275advance();
|
|
86158
|
-
\u0275\u0275conditional(ctx.isNote() ? 1 : -1);
|
|
86159
|
-
\u0275\u0275advance();
|
|
86160
|
-
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
86161
|
-
\u0275\u0275advance(2);
|
|
86162
|
-
const general_r9 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.General));
|
|
86163
|
-
\u0275\u0275advance();
|
|
86164
|
-
\u0275\u0275conditional(general_r9 ? 5 : -1);
|
|
86165
|
-
\u0275\u0275advance();
|
|
86166
|
-
const officersArray_r10 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Officers));
|
|
86167
|
-
\u0275\u0275advance();
|
|
86168
|
-
\u0275\u0275storeLet(((tmp_5_0 = officersArray_r10 == null ? null : officersArray_r10.length) !== null && tmp_5_0 !== void 0 ? tmp_5_0 : 0) <= ctx.initiallyOpenCardsCount);
|
|
86169
|
-
\u0275\u0275advance();
|
|
86170
|
-
\u0275\u0275conditional(officersArray_r10 && officersArray_r10.length ? 8 : 9);
|
|
86171
|
-
\u0275\u0275advance(2);
|
|
86172
|
-
const companyEmail_r11 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CompanyEmail));
|
|
86173
|
-
\u0275\u0275advance();
|
|
86174
|
-
\u0275\u0275conditional(companyEmail_r11 ? 11 : -1);
|
|
86175
|
-
\u0275\u0275advance();
|
|
86176
|
-
const reminder_r12 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
86177
|
-
\u0275\u0275advance();
|
|
86178
|
-
\u0275\u0275conditional(reminder_r12 ? 13 : -1);
|
|
86179
|
-
}
|
|
86180
|
-
}, dependencies: [
|
|
86181
|
-
ExpandableCardComponent,
|
|
86182
|
-
ExpandableListCardComponent,
|
|
86183
|
-
FilingFormGroupComponent,
|
|
86184
|
-
AlertComponent,
|
|
86185
|
-
TranslatePipe
|
|
86186
|
-
], styles: ["\n\n[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .annual-report-form[_ngcontent-%COMP%] {\n display: flex;\n height: 100%;\n flex-direction: column;\n gap: 16px;\n}\n[_nghost-%COMP%] .annual-report-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow: auto;\n min-height: 0;\n}\n[_nghost-%COMP%] .annual-report-form-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n/*# sourceMappingURL=british-columbia-annual-report-form.component.css.map */"], changeDetection: 0 });
|
|
86187
|
-
};
|
|
86188
|
-
(() => {
|
|
86189
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaAnnualReportFormComponent, [{
|
|
86190
|
-
type: Component,
|
|
86191
|
-
args: [{ standalone: true, selector: "british-columbia-annual-report-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
86192
|
-
ExpandableCardComponent,
|
|
86193
|
-
ExpandableListCardComponent,
|
|
86194
|
-
FilingFormGroupComponent,
|
|
86195
|
-
AlertComponent,
|
|
86196
|
-
TranslatePipe
|
|
86197
|
-
], template: `<div class="annual-report-form">\r
|
|
86198
|
-
@if (isNote()) {\r
|
|
86199
|
-
<alert\r
|
|
86200
|
-
[type]="alertType.Info"\r
|
|
86201
|
-
title="Entity changed"\r
|
|
86202
|
-
content="A new draft needs to be generated as the Entity was changed since the last draft was produced."\r
|
|
86203
|
-
/>\r
|
|
86204
|
-
}\r
|
|
86205
|
-
\r
|
|
86206
|
-
@if (errors().length) {\r
|
|
86207
|
-
<alert\r
|
|
86208
|
-
title="The following issues need to be resolved before proceeding:"\r
|
|
86209
|
-
[content]="errors()"\r
|
|
86210
|
-
/>\r
|
|
86211
|
-
}\r
|
|
86212
|
-
\r
|
|
86213
|
-
<div class="annual-report-form-content">\r
|
|
86214
|
-
@let general = getFormGroup(groups.General);\r
|
|
86215
|
-
\r
|
|
86216
|
-
@if (general) {\r
|
|
86217
|
-
<expandable-card [isStatusIcon]="false" [title]="groups.General">\r
|
|
86218
|
-
<div class="annual-report-form-item">\r
|
|
86219
|
-
<filing-form-group\r
|
|
86220
|
-
[isSubmitted]="isSubmitted()"\r
|
|
86221
|
-
[form]="general"\r
|
|
86222
|
-
[config]="generalFields"\r
|
|
86223
|
-
(visiblyValidChange)="onSectionValidChange('general', $event)"\r
|
|
86224
|
-
/>\r
|
|
86225
|
-
</div>\r
|
|
86226
|
-
</expandable-card>\r
|
|
86227
|
-
}\r
|
|
86228
|
-
\r
|
|
86229
|
-
@let officersArray = getFormArray(groups.Officers);\r
|
|
86230
|
-
@let isOpenOfficers = (officersArray?.length ?? 0) <= initiallyOpenCardsCount;\r
|
|
86231
|
-
\r
|
|
86232
|
-
@if (officersArray && officersArray.length) {\r
|
|
86233
|
-
<expandable-list-card\r
|
|
86234
|
-
[isSubmitted]="isSubmitted()"\r
|
|
86235
|
-
[isValid]="true"\r
|
|
86236
|
-
[areItemsOpen]="isOpenOfficers"\r
|
|
86237
|
-
[isStatusIcon]="false"\r
|
|
86238
|
-
[fields]="officersFields"\r
|
|
86239
|
-
[formArray]="officersArray"\r
|
|
86240
|
-
[title]="groups.Officers"\r
|
|
86241
|
-
/>\r
|
|
86242
|
-
} @else {\r
|
|
86243
|
-
<expandable-card [title]="groups.Officers">\r
|
|
86244
|
-
<h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
|
|
86245
|
-
</expandable-card>\r
|
|
86246
|
-
}\r
|
|
86247
|
-
\r
|
|
86248
|
-
@let companyEmail = getFormGroup(groups.CompanyEmail);\r
|
|
86249
|
-
\r
|
|
86250
|
-
@if (companyEmail) {\r
|
|
86251
|
-
<expandable-card\r
|
|
86252
|
-
[isValid]="sectionValidity['companyEmail']"\r
|
|
86253
|
-
[isStatusIcon]="statusIcon()"\r
|
|
86254
|
-
[title]="groups.CompanyEmail"\r
|
|
86255
|
-
>\r
|
|
86256
|
-
<div class="annual-report-form-item">\r
|
|
86257
|
-
<filing-form-group\r
|
|
86258
|
-
[isSubmitted]="isSubmitted()"\r
|
|
86259
|
-
[form]="companyEmail"\r
|
|
86260
|
-
[config]="companyEmailFields()"\r
|
|
86261
|
-
(visiblyValidChange)="onSectionValidChange('companyEmail', $event)"\r
|
|
86262
|
-
/>\r
|
|
86263
|
-
</div>\r
|
|
86264
|
-
</expandable-card>\r
|
|
86265
|
-
}\r
|
|
86266
|
-
\r
|
|
86267
|
-
@let reminder = getFormGroup(groups.AnnualReportReminder);\r
|
|
86268
|
-
\r
|
|
86269
|
-
@if (reminder) {\r
|
|
86270
|
-
<expandable-card [isStatusIcon]="false" [title]="groups.AnnualReportReminder">\r
|
|
86271
|
-
<div class="annual-report-form-item">\r
|
|
86272
|
-
<filing-form-group\r
|
|
86273
|
-
[isSubmitted]="isSubmitted()"\r
|
|
86274
|
-
[form]="reminder"\r
|
|
86275
|
-
[config]="reminderFields"\r
|
|
86276
|
-
/>\r
|
|
86277
|
-
</div>\r
|
|
86278
|
-
</expandable-card>\r
|
|
86279
|
-
}\r
|
|
86280
|
-
</div>\r
|
|
86281
|
-
</div>\r
|
|
86282
|
-
`, styles: ["/* src/app/components/british-columbia/annual-report/british-columbia-annual-report-form/british-columbia-annual-report-form.component.scss */\n:host {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n:host .annual-report-form {\n display: flex;\n height: 100%;\n flex-direction: column;\n gap: 16px;\n}\n:host .annual-report-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow: auto;\n min-height: 0;\n}\n:host .annual-report-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n/*# sourceMappingURL=british-columbia-annual-report-form.component.css.map */\n"] }]
|
|
86283
|
-
}], null, null);
|
|
86284
|
-
})();
|
|
86285
|
-
(() => {
|
|
86286
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaAnnualReportFormComponent, { className: "BritishColumbiaAnnualReportFormComponent", filePath: "src/app/components/british-columbia/annual-report/british-columbia-annual-report-form/british-columbia-annual-report-form.component.ts", lineNumber: 43 });
|
|
86287
|
-
})();
|
|
86288
|
-
}
|
|
86289
|
-
});
|
|
86290
|
-
|
|
86291
|
-
// src/app/components/british-columbia/annual-report/steps/delta/british-columbia-annual-report-delta-form.component.ts
|
|
86292
|
-
var BritishColumbiaAnnualReportDeltaFormComponent;
|
|
86293
|
-
var init_british_columbia_annual_report_delta_form_component = __esm({
|
|
86294
|
-
"src/app/components/british-columbia/annual-report/steps/delta/british-columbia-annual-report-delta-form.component.ts"() {
|
|
86295
|
-
init_core();
|
|
86296
|
-
init_button();
|
|
86297
|
-
init_ngx_translate_core();
|
|
86298
|
-
init_british_columbia_annual_report_form_component();
|
|
86299
|
-
init_common_utils();
|
|
86300
|
-
init_core();
|
|
86301
|
-
BritishColumbiaAnnualReportDeltaFormComponent = class _BritishColumbiaAnnualReportDeltaFormComponent {
|
|
86302
|
-
form = input.required();
|
|
86303
|
-
actionsDisabled = input(false);
|
|
86304
|
-
isNote = input(true);
|
|
86305
|
-
task = input();
|
|
86306
|
-
errors = input([]);
|
|
86307
|
-
close = output();
|
|
86308
|
-
save = output();
|
|
86309
|
-
validate = output();
|
|
86310
|
-
submitted = signal(false);
|
|
86311
|
-
visiblyValid = signal(true);
|
|
86312
|
-
clientErrors = signal([]);
|
|
86313
|
-
translate = inject(TranslateService);
|
|
86314
|
-
combinedErrors = computed(() => {
|
|
86315
|
-
const client = this.clientErrors();
|
|
86316
|
-
return client.length ? client : this.errors();
|
|
86317
|
-
});
|
|
86318
|
-
onVisiblyValidChange(valid) {
|
|
86319
|
-
this.visiblyValid.set(valid);
|
|
85359
|
+
/**
|
|
85360
|
+
* Address Line 1*, Address Line 2, City*, Postal Code*, Province (BC), Country (Canada).
|
|
85361
|
+
* Province and Country are always disabled; the rest follow `enabled`.
|
|
85362
|
+
*/
|
|
85363
|
+
static createOfficeAddressFormGroup(delta, enabled = true) {
|
|
85364
|
+
const group2 = new FormGroup({
|
|
85365
|
+
[Controls2.AddressLine1]: new FormControl(delta?.addressLine1 ?? "", Validators.required),
|
|
85366
|
+
[Controls2.AddressLine2]: new FormControl(delta?.addressLine2 ?? ""),
|
|
85367
|
+
[Controls2.City]: new FormControl(delta?.city ?? "", Validators.required),
|
|
85368
|
+
[Controls2.PostalCode]: new FormControl(delta?.postalCode ?? "", Validators.required),
|
|
85369
|
+
[Controls2.Province]: this.readOnly(delta?.province ?? BC_DEFAULT_PROVINCE_STATE),
|
|
85370
|
+
[Controls2.Country]: this.readOnly(delta?.country ?? BC_DEFAULT_COUNTRY)
|
|
85371
|
+
});
|
|
85372
|
+
this.setOfficeAddressEnabled(group2, enabled);
|
|
85373
|
+
return group2;
|
|
86320
85374
|
}
|
|
86321
|
-
/**
|
|
86322
|
-
|
|
86323
|
-
|
|
86324
|
-
|
|
86325
|
-
|
|
86326
|
-
|
|
86327
|
-
|
|
85375
|
+
/**
|
|
85376
|
+
* Enables or disables the editable controls of an address grid (used by "Same as…" checkboxes).
|
|
85377
|
+
* Hiding a grid also clears it. Showing it again refills it with the address Athennian sent for
|
|
85378
|
+
* it, or leaves it empty when there is none (and when the user has already typed something).
|
|
85379
|
+
*/
|
|
85380
|
+
static setOfficeAddressEnabled(group2, enabled) {
|
|
85381
|
+
if (!group2) {
|
|
86328
85382
|
return;
|
|
86329
85383
|
}
|
|
86330
|
-
|
|
85384
|
+
const restore = incomingAddressByGrid.get(group2);
|
|
85385
|
+
const isEmpty = EDITABLE_ADDRESS_CONTROLS.every((name) => !group2.get(name)?.value);
|
|
85386
|
+
EDITABLE_ADDRESS_CONTROLS.forEach((name) => {
|
|
85387
|
+
const control = group2.get(name);
|
|
85388
|
+
if (enabled) {
|
|
85389
|
+
control?.enable({ emitEvent: false });
|
|
85390
|
+
if (restore && isEmpty) {
|
|
85391
|
+
control?.setValue(restore[name] ?? "", { emitEvent: false });
|
|
85392
|
+
}
|
|
85393
|
+
} else {
|
|
85394
|
+
control?.setValue("", { emitEvent: false });
|
|
85395
|
+
control?.disable({ emitEvent: false });
|
|
85396
|
+
}
|
|
85397
|
+
});
|
|
85398
|
+
group2.updateValueAndValidity({ emitEvent: false });
|
|
85399
|
+
}
|
|
85400
|
+
static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
|
|
85401
|
+
return new FormGroup({
|
|
85402
|
+
[Controls2.ClientMatterNumber]: new FormControl(
|
|
85403
|
+
// `??`: an explicitly cleared value ('') in a saved draft must be preserved; the entity default applies only when absent.
|
|
85404
|
+
deltaData?.referenceNumber ?? clientMatterNumber ?? ""
|
|
85405
|
+
),
|
|
85406
|
+
[Controls2.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
|
|
85407
|
+
});
|
|
85408
|
+
}
|
|
85409
|
+
static readOnly(value) {
|
|
85410
|
+
return new FormControl({ value: value ?? "", disabled: true });
|
|
86331
85411
|
}
|
|
86332
|
-
static \u0275fac = function BritishColumbiaAnnualReportDeltaFormComponent_Factory(__ngFactoryType__) {
|
|
86333
|
-
return new (__ngFactoryType__ || _BritishColumbiaAnnualReportDeltaFormComponent)();
|
|
86334
|
-
};
|
|
86335
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaAnnualReportDeltaFormComponent, selectors: [["british-columbia-annual-report-delta-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], isNote: [1, "isNote"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", save: "save", validate: "validate" }, decls: 15, vars: 18, consts: [[1, "annual-report-delta-form"], [1, "annual-report-delta-form-content", 3, "visiblyValidChange", "form", "task", "errors", "isNote", "isSubmitted", "statusIcon"], [1, "annual-report-delta-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function BritishColumbiaAnnualReportDeltaFormComponent_Template(rf, ctx) {
|
|
86336
|
-
if (rf & 1) {
|
|
86337
|
-
\u0275\u0275elementStart(0, "div", 0)(1, "british-columbia-annual-report-form", 1);
|
|
86338
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaAnnualReportDeltaFormComponent_Template_british_columbia_annual_report_form_visiblyValidChange_1_listener($event) {
|
|
86339
|
-
return ctx.onVisiblyValidChange($event);
|
|
86340
|
-
});
|
|
86341
|
-
\u0275\u0275elementEnd();
|
|
86342
|
-
\u0275\u0275elementStart(2, "div", 2)(3, "button", 3);
|
|
86343
|
-
\u0275\u0275listener("click", function BritishColumbiaAnnualReportDeltaFormComponent_Template_button_click_3_listener() {
|
|
86344
|
-
return ctx.close.emit();
|
|
86345
|
-
});
|
|
86346
|
-
\u0275\u0275elementStart(4, "span", 4);
|
|
86347
|
-
\u0275\u0275text(5);
|
|
86348
|
-
\u0275\u0275pipe(6, "translate");
|
|
86349
|
-
\u0275\u0275elementEnd()();
|
|
86350
|
-
\u0275\u0275elementStart(7, "button", 3);
|
|
86351
|
-
\u0275\u0275listener("click", function BritishColumbiaAnnualReportDeltaFormComponent_Template_button_click_7_listener() {
|
|
86352
|
-
return ctx.save.emit();
|
|
86353
|
-
});
|
|
86354
|
-
\u0275\u0275elementStart(8, "span", 4);
|
|
86355
|
-
\u0275\u0275text(9);
|
|
86356
|
-
\u0275\u0275pipe(10, "translate");
|
|
86357
|
-
\u0275\u0275elementEnd()();
|
|
86358
|
-
\u0275\u0275elementStart(11, "button", 5);
|
|
86359
|
-
\u0275\u0275listener("click", function BritishColumbiaAnnualReportDeltaFormComponent_Template_button_click_11_listener() {
|
|
86360
|
-
return ctx.onValidate();
|
|
86361
|
-
});
|
|
86362
|
-
\u0275\u0275elementStart(12, "span", 4);
|
|
86363
|
-
\u0275\u0275text(13);
|
|
86364
|
-
\u0275\u0275pipe(14, "translate");
|
|
86365
|
-
\u0275\u0275elementEnd()()()();
|
|
86366
|
-
}
|
|
86367
|
-
if (rf & 2) {
|
|
86368
|
-
\u0275\u0275advance();
|
|
86369
|
-
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("isSubmitted", ctx.submitted())("statusIcon", true);
|
|
86370
|
-
\u0275\u0275advance(2);
|
|
86371
|
-
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
86372
|
-
\u0275\u0275advance(2);
|
|
86373
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 12, "Close"));
|
|
86374
|
-
\u0275\u0275advance(2);
|
|
86375
|
-
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
86376
|
-
\u0275\u0275advance(2);
|
|
86377
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 14, "Save Changes"));
|
|
86378
|
-
\u0275\u0275advance(2);
|
|
86379
|
-
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
86380
|
-
\u0275\u0275advance(2);
|
|
86381
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 16, "Validate & Generate Draft"));
|
|
86382
|
-
}
|
|
86383
|
-
}, dependencies: [MatButton, TranslatePipe, BritishColumbiaAnnualReportFormComponent], styles: ["\n\n[_nghost-%COMP%] .annual-report-delta-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .annual-report-delta-form-content[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .annual-report-delta-form-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n[_nghost-%COMP%] .annual-report-delta-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n[_nghost-%COMP%] .annual-report-delta-form-actions[_ngcontent-%COMP%] .submit[_ngcontent-%COMP%] {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=british-columbia-annual-report-delta-form.component.css.map */"], changeDetection: 0 });
|
|
86384
|
-
};
|
|
86385
|
-
(() => {
|
|
86386
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaAnnualReportDeltaFormComponent, [{
|
|
86387
|
-
type: Component,
|
|
86388
|
-
args: [{ standalone: true, selector: "british-columbia-annual-report-delta-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, TranslatePipe, BritishColumbiaAnnualReportFormComponent], template: `<div class="annual-report-delta-form">\r
|
|
86389
|
-
<british-columbia-annual-report-form\r
|
|
86390
|
-
class="annual-report-delta-form-content"\r
|
|
86391
|
-
[form]="form()"\r
|
|
86392
|
-
[task]="task()"\r
|
|
86393
|
-
[errors]="combinedErrors()"\r
|
|
86394
|
-
[isNote]="isNote()"\r
|
|
86395
|
-
[isSubmitted]="submitted()"\r
|
|
86396
|
-
[statusIcon]="true"\r
|
|
86397
|
-
(visiblyValidChange)="onVisiblyValidChange($event)"\r
|
|
86398
|
-
/>\r
|
|
86399
|
-
\r
|
|
86400
|
-
<div class="annual-report-delta-form-actions">\r
|
|
86401
|
-
<button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
|
|
86402
|
-
<span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
|
|
86403
|
-
</button>\r
|
|
86404
|
-
<button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>\r
|
|
86405
|
-
<span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>\r
|
|
86406
|
-
</button>\r
|
|
86407
|
-
<button\r
|
|
86408
|
-
class="submit"\r
|
|
86409
|
-
color="primary"\r
|
|
86410
|
-
mat-flat-button\r
|
|
86411
|
-
[disabled]="actionsDisabled()"\r
|
|
86412
|
-
(click)="onValidate()"\r
|
|
86413
|
-
>\r
|
|
86414
|
-
<span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>\r
|
|
86415
|
-
</button>\r
|
|
86416
|
-
</div>\r
|
|
86417
|
-
</div>\r
|
|
86418
|
-
`, styles: ["/* src/app/components/british-columbia/annual-report/steps/delta/british-columbia-annual-report-delta-form.component.scss */\n:host .annual-report-delta-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .annual-report-delta-form-content {\n flex: 1;\n min-height: 0;\n}\n:host .annual-report-delta-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .annual-report-delta-form-actions button {\n margin: 0;\n}\n:host .annual-report-delta-form-actions .submit {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=british-columbia-annual-report-delta-form.component.css.map */\n"] }]
|
|
86419
|
-
}], null, null);
|
|
86420
|
-
})();
|
|
86421
|
-
(() => {
|
|
86422
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaAnnualReportDeltaFormComponent, { className: "BritishColumbiaAnnualReportDeltaFormComponent", filePath: "src/app/components/british-columbia/annual-report/steps/delta/british-columbia-annual-report-delta-form.component.ts", lineNumber: 25 });
|
|
86423
|
-
})();
|
|
86424
|
-
}
|
|
86425
|
-
});
|
|
86426
|
-
|
|
86427
|
-
// src/app/components/british-columbia/annual-report/steps/preview/british-columbia-annual-report-preview-form.component.ts
|
|
86428
|
-
var BritishColumbiaAnnualReportPreviewFormComponent;
|
|
86429
|
-
var init_british_columbia_annual_report_preview_form_component = __esm({
|
|
86430
|
-
"src/app/components/british-columbia/annual-report/steps/preview/british-columbia-annual-report-preview-form.component.ts"() {
|
|
86431
|
-
init_core();
|
|
86432
|
-
init_button();
|
|
86433
|
-
init_ngx_translate_core();
|
|
86434
|
-
init_british_columbia_annual_report_form_component();
|
|
86435
|
-
init_core();
|
|
86436
|
-
BritishColumbiaAnnualReportPreviewFormComponent = class _BritishColumbiaAnnualReportPreviewFormComponent {
|
|
86437
|
-
form = input.required();
|
|
86438
|
-
actionsDisabled = input(false);
|
|
86439
|
-
task = input();
|
|
86440
|
-
errors = input([]);
|
|
86441
|
-
close = output();
|
|
86442
|
-
file = output();
|
|
86443
|
-
static \u0275fac = function BritishColumbiaAnnualReportPreviewFormComponent_Factory(__ngFactoryType__) {
|
|
86444
|
-
return new (__ngFactoryType__ || _BritishColumbiaAnnualReportPreviewFormComponent)();
|
|
86445
|
-
};
|
|
86446
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaAnnualReportPreviewFormComponent, selectors: [["british-columbia-annual-report-preview-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", file: "file" }, decls: 11, vars: 12, consts: [[1, "annual-report-preview-form"], [1, "annual-report-preview-form-content", 3, "form", "task", "errors", "statusIcon"], [1, "annual-report-preview-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function BritishColumbiaAnnualReportPreviewFormComponent_Template(rf, ctx) {
|
|
86447
|
-
if (rf & 1) {
|
|
86448
|
-
\u0275\u0275elementStart(0, "div", 0);
|
|
86449
|
-
\u0275\u0275element(1, "british-columbia-annual-report-form", 1);
|
|
86450
|
-
\u0275\u0275elementStart(2, "div", 2)(3, "button", 3);
|
|
86451
|
-
\u0275\u0275listener("click", function BritishColumbiaAnnualReportPreviewFormComponent_Template_button_click_3_listener() {
|
|
86452
|
-
return ctx.close.emit();
|
|
86453
|
-
});
|
|
86454
|
-
\u0275\u0275elementStart(4, "span", 4);
|
|
86455
|
-
\u0275\u0275text(5);
|
|
86456
|
-
\u0275\u0275pipe(6, "translate");
|
|
86457
|
-
\u0275\u0275elementEnd()();
|
|
86458
|
-
\u0275\u0275elementStart(7, "button", 5);
|
|
86459
|
-
\u0275\u0275listener("click", function BritishColumbiaAnnualReportPreviewFormComponent_Template_button_click_7_listener() {
|
|
86460
|
-
return ctx.file.emit();
|
|
86461
|
-
});
|
|
86462
|
-
\u0275\u0275elementStart(8, "span", 4);
|
|
86463
|
-
\u0275\u0275text(9);
|
|
86464
|
-
\u0275\u0275pipe(10, "translate");
|
|
86465
|
-
\u0275\u0275elementEnd()()()();
|
|
86466
|
-
}
|
|
86467
|
-
if (rf & 2) {
|
|
86468
|
-
\u0275\u0275advance();
|
|
86469
|
-
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.errors())("statusIcon", false);
|
|
86470
|
-
\u0275\u0275advance(2);
|
|
86471
|
-
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
86472
|
-
\u0275\u0275advance(2);
|
|
86473
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 8, "Close"));
|
|
86474
|
-
\u0275\u0275advance(2);
|
|
86475
|
-
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
86476
|
-
\u0275\u0275advance(2);
|
|
86477
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 10, "File"));
|
|
86478
|
-
}
|
|
86479
|
-
}, dependencies: [MatButton, TranslatePipe, BritishColumbiaAnnualReportFormComponent], styles: ["\n\n[_nghost-%COMP%] .annual-report-preview-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .annual-report-preview-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .annual-report-preview-form-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n[_nghost-%COMP%] .annual-report-preview-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n/*# sourceMappingURL=british-columbia-annual-report-preview-form.component.css.map */"], changeDetection: 0 });
|
|
86480
85412
|
};
|
|
86481
|
-
(() => {
|
|
86482
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaAnnualReportPreviewFormComponent, [{
|
|
86483
|
-
type: Component,
|
|
86484
|
-
args: [{ standalone: true, selector: "british-columbia-annual-report-preview-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, TranslatePipe, BritishColumbiaAnnualReportFormComponent], template: `<div class="annual-report-preview-form">\r
|
|
86485
|
-
<british-columbia-annual-report-form\r
|
|
86486
|
-
class="annual-report-preview-form-content"\r
|
|
86487
|
-
[form]="form()"\r
|
|
86488
|
-
[task]="task()"\r
|
|
86489
|
-
[errors]="errors()"\r
|
|
86490
|
-
[statusIcon]="false"\r
|
|
86491
|
-
/>\r
|
|
86492
|
-
\r
|
|
86493
|
-
<div class="annual-report-preview-form-actions">\r
|
|
86494
|
-
<button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
|
|
86495
|
-
<span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
|
|
86496
|
-
</button>\r
|
|
86497
|
-
<button\r
|
|
86498
|
-
class="submit"\r
|
|
86499
|
-
color="primary"\r
|
|
86500
|
-
mat-flat-button\r
|
|
86501
|
-
[disabled]="actionsDisabled()"\r
|
|
86502
|
-
(click)="file.emit()"\r
|
|
86503
|
-
>\r
|
|
86504
|
-
<span class="body-1-semibold">{{ 'File' | translate }}</span>\r
|
|
86505
|
-
</button>\r
|
|
86506
|
-
</div>\r
|
|
86507
|
-
</div>\r
|
|
86508
|
-
`, styles: ["/* src/app/components/british-columbia/annual-report/steps/preview/british-columbia-annual-report-preview-form.component.scss */\n:host .annual-report-preview-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .annual-report-preview-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .annual-report-preview-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .annual-report-preview-form-actions button {\n margin: 0;\n}\n/*# sourceMappingURL=british-columbia-annual-report-preview-form.component.css.map */\n"] }]
|
|
86509
|
-
}], null, null);
|
|
86510
|
-
})();
|
|
86511
|
-
(() => {
|
|
86512
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaAnnualReportPreviewFormComponent, { className: "BritishColumbiaAnnualReportPreviewFormComponent", filePath: "src/app/components/british-columbia/annual-report/steps/preview/british-columbia-annual-report-preview-form.component.ts", lineNumber: 25 });
|
|
86513
|
-
})();
|
|
86514
85413
|
}
|
|
86515
85414
|
});
|
|
86516
85415
|
|
|
86517
85416
|
// src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
|
|
86518
|
-
var Controls3,
|
|
85417
|
+
var Controls3, labelledValue, readOnlyRow, directorsAddedOrDeleted, isNotifyByMail, BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS, BC_COD_CARD_FORM_DIRECTORS_FIELDS, BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
86519
85418
|
var init_british_columbia_change_of_directors_form_constants = __esm({
|
|
86520
85419
|
"src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
|
|
86521
85420
|
init_form_enums();
|
|
86522
85421
|
init_british_columbia_form_enums();
|
|
86523
85422
|
init_BritishColumbiaConstants();
|
|
86524
85423
|
Controls3 = BCChangeOfDirectorsFormControls;
|
|
86525
|
-
|
|
85424
|
+
labelledValue = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("Not specified")}`;
|
|
86526
85425
|
readOnlyRow = (label, control, className = "span-12") => ({
|
|
86527
85426
|
type: FormType.Text,
|
|
86528
85427
|
formControlName: control,
|
|
86529
85428
|
class: className,
|
|
86530
|
-
dynamicLabel: (form, t) =>
|
|
85429
|
+
dynamicLabel: (form, t) => labelledValue(label, form.get(control)?.value, t)
|
|
86531
85430
|
});
|
|
86532
85431
|
directorsAddedOrDeleted = (form) => Boolean(form.get(Controls3.DirectorsAddedOrDeleted)?.value);
|
|
86533
85432
|
isNotifyByMail = (form) => form.get(Controls3.NotificationMethod)?.value === BCNotificationMethod.Mail;
|
|
@@ -86556,12 +85455,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86556
85455
|
}
|
|
86557
85456
|
];
|
|
86558
85457
|
BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS = [
|
|
86559
|
-
{
|
|
86560
|
-
type: FormType.Text,
|
|
86561
|
-
formControlName: "",
|
|
86562
|
-
class: "span-12",
|
|
86563
|
-
dynamicLabel: (_, t) => `<span class="body-1-semibold">${t("Note")}:</span> ${t("There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.")}`
|
|
86564
|
-
},
|
|
86565
85458
|
{
|
|
86566
85459
|
type: FormType.Checkbox,
|
|
86567
85460
|
label: "Directors will be added and/or deleted as part of this filing",
|
|
@@ -86574,9 +85467,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86574
85467
|
__spreadProps(__spreadValues({}, readOnlyRow("Date Directors were added or deleted", Controls3.ChangeDate, "span-8")), {
|
|
86575
85468
|
isVisible: directorsAddedOrDeleted
|
|
86576
85469
|
}),
|
|
86577
|
-
__spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls3.FilingFee, "span-4")), {
|
|
86578
|
-
isVisible: directorsAddedOrDeleted
|
|
86579
|
-
}),
|
|
86580
85470
|
{
|
|
86581
85471
|
type: FormType.Text,
|
|
86582
85472
|
formControlName: "",
|
|
@@ -86715,48 +85605,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86715
85605
|
\u0275\u0275property("form", corporationDetails_r5)("config", ctx_r0.companyEmailFields())("isSubmitted", ctx_r0.isSubmitted());
|
|
86716
85606
|
}
|
|
86717
85607
|
}
|
|
86718
|
-
function
|
|
85608
|
+
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_5_Template(rf, ctx) {
|
|
86719
85609
|
if (rf & 1) {
|
|
86720
|
-
\u0275\u0275elementStart(0, "div",
|
|
85610
|
+
\u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "p", 17);
|
|
86721
85611
|
\u0275\u0275text(3);
|
|
86722
85612
|
\u0275\u0275pipe(4, "translate");
|
|
86723
85613
|
\u0275\u0275elementStart(5, "strong");
|
|
86724
85614
|
\u0275\u0275text(6);
|
|
86725
|
-
\u0275\u0275elementEnd()()();
|
|
86726
|
-
\u0275\u0275elementStart(7, "p", 19)(8, "strong");
|
|
86727
|
-
\u0275\u0275text(9);
|
|
86728
|
-
\u0275\u0275pipe(10, "translate");
|
|
86729
|
-
\u0275\u0275elementEnd();
|
|
86730
|
-
\u0275\u0275text(11);
|
|
86731
|
-
\u0275\u0275elementEnd()();
|
|
85615
|
+
\u0275\u0275elementEnd()()()();
|
|
86732
85616
|
}
|
|
86733
85617
|
if (rf & 2) {
|
|
86734
85618
|
let tmp_8_0;
|
|
86735
|
-
let tmp_10_0;
|
|
86736
85619
|
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
86737
85620
|
const filingDetails_r7 = \u0275\u0275readContextLet(8);
|
|
86738
85621
|
\u0275\u0275advance(3);
|
|
86739
|
-
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4,
|
|
85622
|
+
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 2, "The date on which the individual(s) became or ceased to be a director:"), " ");
|
|
86740
85623
|
\u0275\u0275advance(3);
|
|
86741
85624
|
\u0275\u0275textInterpolate(ctx_r0.getEffectiveDateDisplay((tmp_8_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_8_0.value));
|
|
86742
|
-
\u0275\u0275advance(3);
|
|
86743
|
-
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 6, "Filing Fee"), ":");
|
|
86744
|
-
\u0275\u0275advance(2);
|
|
86745
|
-
\u0275\u0275textInterpolate1(" ", (tmp_10_0 = filingDetails_r7.get(ctx_r0.controls.FilingFee)) == null ? null : tmp_10_0.value, " ");
|
|
86746
85625
|
}
|
|
86747
85626
|
}
|
|
86748
85627
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
|
|
86749
85628
|
if (rf & 1) {
|
|
86750
85629
|
const _r6 = \u0275\u0275getCurrentView();
|
|
86751
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "
|
|
86752
|
-
\u0275\
|
|
86753
|
-
\u0275\u0275pipe(5, "translate");
|
|
86754
|
-
\u0275\u0275elementEnd();
|
|
86755
|
-
\u0275\u0275text(6);
|
|
86756
|
-
\u0275\u0275pipe(7, "translate");
|
|
86757
|
-
\u0275\u0275elementEnd();
|
|
86758
|
-
\u0275\u0275elementStart(8, "mat-checkbox", 15);
|
|
86759
|
-
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
|
|
85630
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "mat-checkbox", 14);
|
|
85631
|
+
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_2_listener() {
|
|
86760
85632
|
let tmp_7_0;
|
|
86761
85633
|
\u0275\u0275restoreView(_r6);
|
|
86762
85634
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
@@ -86764,34 +85636,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86764
85636
|
(tmp_7_0 = filingDetails_r7.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.updateValueAndValidity({ emitEvent: false });
|
|
86765
85637
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r7.valid));
|
|
86766
85638
|
});
|
|
86767
|
-
\u0275\u0275text(
|
|
86768
|
-
\u0275\u0275pipe(
|
|
85639
|
+
\u0275\u0275text(3);
|
|
85640
|
+
\u0275\u0275pipe(4, "translate");
|
|
86769
85641
|
\u0275\u0275elementEnd();
|
|
86770
|
-
\u0275\u0275template(
|
|
85642
|
+
\u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_5_Template, 7, 4, "div", 15);
|
|
86771
85643
|
\u0275\u0275elementEnd()();
|
|
86772
85644
|
}
|
|
86773
85645
|
if (rf & 2) {
|
|
86774
|
-
let
|
|
85646
|
+
let tmp_12_0;
|
|
86775
85647
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
86776
85648
|
const filingDetails_r7 = \u0275\u0275readContextLet(8);
|
|
86777
85649
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["filingDetails"])("title", ctx_r0.groups.FilingDetails);
|
|
86778
85650
|
\u0275\u0275advance();
|
|
86779
85651
|
\u0275\u0275property("formGroup", filingDetails_r7);
|
|
86780
|
-
\u0275\u0275advance(
|
|
86781
|
-
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Note"), ":");
|
|
86782
|
-
\u0275\u0275advance(2);
|
|
86783
|
-
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(7, 11, "There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing."), " ");
|
|
86784
|
-
\u0275\u0275advance(2);
|
|
85652
|
+
\u0275\u0275advance();
|
|
86785
85653
|
\u0275\u0275property("formControlName", ctx_r0.controls.DirectorsAddedOrDeleted);
|
|
86786
85654
|
\u0275\u0275advance();
|
|
86787
|
-
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(
|
|
85655
|
+
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 7, "Directors will be added and/or deleted as part of this filing"), " ");
|
|
86788
85656
|
\u0275\u0275advance(2);
|
|
86789
|
-
\u0275\u0275conditional(((
|
|
85657
|
+
\u0275\u0275conditional(((tmp_12_0 = filingDetails_r7.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_12_0.value) ? 5 : -1);
|
|
86790
85658
|
}
|
|
86791
85659
|
}
|
|
86792
85660
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
|
|
86793
85661
|
if (rf & 1) {
|
|
86794
|
-
\u0275\u0275elementStart(0, "span",
|
|
85662
|
+
\u0275\u0275elementStart(0, "span", 22);
|
|
86795
85663
|
\u0275\u0275text(1);
|
|
86796
85664
|
\u0275\u0275pipe(2, "translate");
|
|
86797
85665
|
\u0275\u0275elementEnd();
|
|
@@ -86803,7 +85671,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86803
85671
|
}
|
|
86804
85672
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
|
|
86805
85673
|
if (rf & 1) {
|
|
86806
|
-
\u0275\u0275elementStart(0, "span",
|
|
85674
|
+
\u0275\u0275elementStart(0, "span", 23);
|
|
86807
85675
|
\u0275\u0275text(1);
|
|
86808
85676
|
\u0275\u0275pipe(2, "translate");
|
|
86809
85677
|
\u0275\u0275elementEnd();
|
|
@@ -86815,15 +85683,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86815
85683
|
}
|
|
86816
85684
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
|
|
86817
85685
|
if (rf & 1) {
|
|
86818
|
-
\u0275\u0275elementStart(0, "div",
|
|
85686
|
+
\u0275\u0275elementStart(0, "div", 20)(1, "div", 21)(2, "strong");
|
|
86819
85687
|
\u0275\u0275text(3);
|
|
86820
85688
|
\u0275\u0275elementEnd();
|
|
86821
|
-
\u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span",
|
|
85689
|
+
\u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 22)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 23);
|
|
86822
85690
|
\u0275\u0275elementEnd();
|
|
86823
|
-
\u0275\u0275elementStart(6, "div",
|
|
85691
|
+
\u0275\u0275elementStart(6, "div", 21);
|
|
86824
85692
|
\u0275\u0275text(7);
|
|
86825
85693
|
\u0275\u0275elementEnd();
|
|
86826
|
-
\u0275\u0275elementStart(8, "div",
|
|
85694
|
+
\u0275\u0275elementStart(8, "div", 21);
|
|
86827
85695
|
\u0275\u0275text(9);
|
|
86828
85696
|
\u0275\u0275elementEnd()();
|
|
86829
85697
|
}
|
|
@@ -86849,26 +85717,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86849
85717
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
|
|
86850
85718
|
if (rf & 1) {
|
|
86851
85719
|
\u0275\u0275declareLet(0);
|
|
86852
|
-
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div",
|
|
85720
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 20);
|
|
86853
85721
|
}
|
|
86854
85722
|
if (rf & 2) {
|
|
86855
|
-
const \u0275$
|
|
86856
|
-
const directorForm_r10 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$
|
|
85723
|
+
const \u0275$index_83_r9 = ctx.$index;
|
|
85724
|
+
const directorForm_r10 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_83_r9));
|
|
86857
85725
|
\u0275\u0275advance();
|
|
86858
85726
|
\u0275\u0275conditional(directorForm_r10 ? 1 : -1);
|
|
86859
85727
|
}
|
|
86860
85728
|
}
|
|
86861
85729
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
|
|
86862
85730
|
if (rf & 1) {
|
|
86863
|
-
\u0275\u0275elementStart(0, "div", 7)(1, "div",
|
|
85731
|
+
\u0275\u0275elementStart(0, "div", 7)(1, "div", 18)(2, "div", 19);
|
|
86864
85732
|
\u0275\u0275text(3);
|
|
86865
85733
|
\u0275\u0275pipe(4, "translate");
|
|
86866
85734
|
\u0275\u0275elementEnd();
|
|
86867
|
-
\u0275\u0275elementStart(5, "div",
|
|
85735
|
+
\u0275\u0275elementStart(5, "div", 19);
|
|
86868
85736
|
\u0275\u0275text(6);
|
|
86869
85737
|
\u0275\u0275pipe(7, "translate");
|
|
86870
85738
|
\u0275\u0275elementEnd();
|
|
86871
|
-
\u0275\u0275elementStart(8, "div",
|
|
85739
|
+
\u0275\u0275elementStart(8, "div", 19);
|
|
86872
85740
|
\u0275\u0275text(9);
|
|
86873
85741
|
\u0275\u0275pipe(10, "translate");
|
|
86874
85742
|
\u0275\u0275elementEnd()();
|
|
@@ -86903,22 +85771,22 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86903
85771
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
|
|
86904
85772
|
if (rf & 1) {
|
|
86905
85773
|
const _r12 = \u0275\u0275getCurrentView();
|
|
86906
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
85774
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 24)(2, "p");
|
|
86907
85775
|
\u0275\u0275text(3);
|
|
86908
85776
|
\u0275\u0275pipe(4, "translate");
|
|
86909
85777
|
\u0275\u0275elementEnd();
|
|
86910
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
85778
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 25);
|
|
86911
85779
|
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template_mat_radio_group_change_5_listener() {
|
|
86912
85780
|
\u0275\u0275restoreView(_r12);
|
|
86913
85781
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
86914
85782
|
const annualReportReminder_r13 = \u0275\u0275readContextLet(14);
|
|
86915
85783
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r13.valid));
|
|
86916
85784
|
});
|
|
86917
|
-
\u0275\u0275elementStart(6, "mat-radio-button",
|
|
85785
|
+
\u0275\u0275elementStart(6, "mat-radio-button", 26);
|
|
86918
85786
|
\u0275\u0275text(7);
|
|
86919
85787
|
\u0275\u0275pipe(8, "translate");
|
|
86920
85788
|
\u0275\u0275elementEnd();
|
|
86921
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
85789
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 26);
|
|
86922
85790
|
\u0275\u0275text(10);
|
|
86923
85791
|
\u0275\u0275pipe(11, "translate");
|
|
86924
85792
|
\u0275\u0275elementEnd()()()();
|
|
@@ -87026,7 +85894,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87026
85894
|
static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
|
|
87027
85895
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
|
|
87028
85896
|
};
|
|
87029
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfDirectorsFormComponent, selectors: [["british-columbia-change-of-directors-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 16, vars: 14, consts: [[1, "change-of-directors-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "change-of-directors-form-content"], [3, "title"], [3, "isStatusIcon", "title"], [3, "isStatusIcon", "isValid", "title"], ["role", "table", 1, "directors-table"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "readonly-summary"], [1, "company-email-field"], [3, "visiblyValidChange", "form", "config", "isSubmitted"], [1, "filing-details", 3, "formGroup"], [1, "
|
|
85897
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfDirectorsFormComponent, selectors: [["british-columbia-change-of-directors-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 16, vars: 14, consts: [[1, "change-of-directors-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "change-of-directors-form-content"], [3, "title"], [3, "isStatusIcon", "title"], [3, "isStatusIcon", "isValid", "title"], ["role", "table", 1, "directors-table"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "readonly-summary"], [1, "company-email-field"], [3, "visiblyValidChange", "form", "config", "isSubmitted"], [1, "filing-details", 3, "formGroup"], [1, "directors-change-checkbox", 3, "change", "formControlName"], [1, "filing-details-grid"], [1, "date-field"], [1, "effective-date-description"], ["role", "row", 1, "directors-table-header"], ["role", "columnheader"], ["role", "row", 1, "directors-table-row"], ["role", "cell"], [1, "status-pill", "new"], [1, "status-pill", "ceased"], [1, "annual-reminder", 3, "formGroup"], [3, "change", "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfDirectorsFormComponent_Template(rf, ctx) {
|
|
87030
85898
|
if (rf & 1) {
|
|
87031
85899
|
\u0275\u0275elementStart(0, "div", 0);
|
|
87032
85900
|
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
@@ -87036,7 +85904,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87036
85904
|
\u0275\u0275declareLet(6);
|
|
87037
85905
|
\u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 14, 13, "expandable-card", 5);
|
|
87038
85906
|
\u0275\u0275declareLet(8);
|
|
87039
|
-
\u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template,
|
|
85907
|
+
\u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 6, 9, "expandable-card", 6);
|
|
87040
85908
|
\u0275\u0275declareLet(10);
|
|
87041
85909
|
\u0275\u0275elementStart(11, "expandable-card", 5);
|
|
87042
85910
|
\u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 7)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 8);
|
|
@@ -87147,14 +86015,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87147
86015
|
<strong>{{ 'Incorporation Number' | translate }}:</strong>\r
|
|
87148
86016
|
{{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
|
|
87149
86017
|
</p>\r
|
|
87150
|
-
<div class="company-email-field"
|
|
87151
|
-
<filing-form-group
|
|
87152
|
-
[form]="corporationDetails"
|
|
87153
|
-
[config]="companyEmailFields()"
|
|
87154
|
-
[isSubmitted]="isSubmitted()"
|
|
87155
|
-
(visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"
|
|
87156
|
-
|
|
87157
|
-
</div
|
|
86018
|
+
<div class="company-email-field">
|
|
86019
|
+
<filing-form-group
|
|
86020
|
+
[form]="corporationDetails"
|
|
86021
|
+
[config]="companyEmailFields()"
|
|
86022
|
+
[isSubmitted]="isSubmitted()"
|
|
86023
|
+
(visiblyValidChange)="onSectionValidChange('corporationDetails', $event)"
|
|
86024
|
+
/>
|
|
86025
|
+
</div>
|
|
87158
86026
|
</div>\r
|
|
87159
86027
|
</expandable-card>\r
|
|
87160
86028
|
}\r
|
|
@@ -87168,42 +86036,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87168
86036
|
[title]="groups.FilingDetails"\r
|
|
87169
86037
|
>\r
|
|
87170
86038
|
<div class="filing-details" [formGroup]="filingDetails">\r
|
|
87171
|
-
<div class="note-box">\r
|
|
87172
|
-
<strong>{{ 'Note' | translate }}:</strong>\r
|
|
87173
|
-
{{\r
|
|
87174
|
-
'There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.'\r
|
|
87175
|
-
| translate\r
|
|
87176
|
-
}}\r
|
|
87177
|
-
</div>\r
|
|
87178
|
-
\r
|
|
87179
86039
|
<mat-checkbox\r
|
|
87180
86040
|
class="directors-change-checkbox"\r
|
|
87181
|
-
[formControlName]="controls.DirectorsAddedOrDeleted"
|
|
87182
|
-
(change)="
|
|
87183
|
-
filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false })
|
|
87184
|
-
onSectionValidChange('filingDetails', filingDetails.valid)
|
|
87185
|
-
"
|
|
86041
|
+
[formControlName]="controls.DirectorsAddedOrDeleted"
|
|
86042
|
+
(change)="
|
|
86043
|
+
filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
|
|
86044
|
+
onSectionValidChange('filingDetails', filingDetails.valid)
|
|
86045
|
+
"
|
|
87186
86046
|
>\r
|
|
87187
86047
|
{{ 'Directors will be added and/or deleted as part of this filing' | translate }}\r
|
|
87188
86048
|
</mat-checkbox>\r
|
|
87189
86049
|
\r
|
|
87190
86050
|
@if (filingDetails.get(controls.DirectorsAddedOrDeleted)?.value) {\r
|
|
87191
|
-
<div class="filing-details-grid"
|
|
87192
|
-
<div class="date-field"
|
|
87193
|
-
<p class="effective-date-description"
|
|
87194
|
-
{{
|
|
87195
|
-
'The date on which the individual(s) became or ceased to be a director:'
|
|
87196
|
-
| translate
|
|
87197
|
-
}}
|
|
87198
|
-
<strong>{{ getEffectiveDateDisplay(filingDetails.get(controls.ChangeDate)?.value) }}</strong
|
|
87199
|
-
</p
|
|
87200
|
-
</div
|
|
87201
|
-
|
|
87202
|
-
|
|
87203
|
-
<strong>{{ 'Filing Fee' | translate }}:</strong>\r
|
|
87204
|
-
{{ filingDetails.get(controls.FilingFee)?.value }}\r
|
|
87205
|
-
</p>\r
|
|
87206
|
-
</div>\r
|
|
86051
|
+
<div class="filing-details-grid">
|
|
86052
|
+
<div class="date-field">
|
|
86053
|
+
<p class="effective-date-description">
|
|
86054
|
+
{{
|
|
86055
|
+
'The date on which the individual(s) became or ceased to be a director:'
|
|
86056
|
+
| translate
|
|
86057
|
+
}}
|
|
86058
|
+
<strong>{{ getEffectiveDateDisplay(filingDetails.get(controls.ChangeDate)?.value) }}</strong>
|
|
86059
|
+
</p>
|
|
86060
|
+
</div>
|
|
86061
|
+
|
|
86062
|
+
</div>
|
|
87207
86063
|
}\r
|
|
87208
86064
|
</div>\r
|
|
87209
86065
|
</expandable-card>\r
|
|
@@ -87211,8 +86067,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87211
86067
|
\r
|
|
87212
86068
|
@let directorsArray = getFormArray(groups.Directors);\r
|
|
87213
86069
|
\r
|
|
87214
|
-
<expandable-card [isStatusIcon]="false" [title]="groups.Directors"
|
|
87215
|
-
@if (directorsArray && directorsArray.length) {
|
|
86070
|
+
<expandable-card [isStatusIcon]="false" [title]="groups.Directors">
|
|
86071
|
+
@if (directorsArray && directorsArray.length) {
|
|
87216
86072
|
<div class="directors-table" role="table">\r
|
|
87217
86073
|
<div class="directors-table-header" role="row">\r
|
|
87218
86074
|
<div role="columnheader">{{ 'Name' | translate }}</div>\r
|
|
@@ -87510,6 +86366,287 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87510
86366
|
}
|
|
87511
86367
|
});
|
|
87512
86368
|
|
|
86369
|
+
// src/app/constants/ui/british-columbia-formation-form.constants.ts
|
|
86370
|
+
var BC_NAME_TYPE_OPTIONS, labelledValue2, isNamed, BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_FORMATION_DELTA_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS, BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS, BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS, BC_FORMATION_CARD_FORM_RECORDS_OFFICE_FIELDS, BC_FORMATION_DELTA_CARD_FORM_COMPLETING_PARTY_FIELDS, BC_FORMATION_CARD_FORM_DIRECTORS_FIELDS, BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS;
|
|
86371
|
+
var init_british_columbia_formation_form_constants = __esm({
|
|
86372
|
+
"src/app/constants/ui/british-columbia-formation-form.constants.ts"() {
|
|
86373
|
+
init_form_enums();
|
|
86374
|
+
init_british_columbia_form_enums();
|
|
86375
|
+
init_BritishColumbiaConstants();
|
|
86376
|
+
init_british_columbia_formation_form_helper();
|
|
86377
|
+
BC_NAME_TYPE_OPTIONS = Object.values(BCNameType).filter((v) => typeof v === "number").map((v) => ({ label: BCNameTypeLabel[v], value: v }));
|
|
86378
|
+
labelledValue2 = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("None")}`;
|
|
86379
|
+
isNamed = (form) => form.get(BCFormationFormControls.CorporationNameType)?.value === BCNameType.Named;
|
|
86380
|
+
BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS = [
|
|
86381
|
+
{
|
|
86382
|
+
type: FormType.Input,
|
|
86383
|
+
label: "Client/Matter Number",
|
|
86384
|
+
formControlName: BCFormationFormControls.ClientMatterNumber
|
|
86385
|
+
},
|
|
86386
|
+
{
|
|
86387
|
+
type: FormType.Input,
|
|
86388
|
+
label: "Docket Number",
|
|
86389
|
+
formControlName: BCFormationFormControls.DocketNumber
|
|
86390
|
+
}
|
|
86391
|
+
];
|
|
86392
|
+
BC_FORMATION_DELTA_CARD_FORM_CORPORATION_DETAILS_FIELDS = [
|
|
86393
|
+
{
|
|
86394
|
+
type: FormType.Select,
|
|
86395
|
+
label: "Corporation Name Type",
|
|
86396
|
+
formControlName: BCFormationFormControls.CorporationNameType,
|
|
86397
|
+
required: true,
|
|
86398
|
+
options: BC_NAME_TYPE_OPTIONS,
|
|
86399
|
+
needTranslate: true,
|
|
86400
|
+
onChange: (form) => {
|
|
86401
|
+
form.get(BCFormationFormControls.CompanyName)?.updateValueAndValidity({ emitEvent: false });
|
|
86402
|
+
form.get(BCFormationFormControls.NameReservationNumber)?.updateValueAndValidity({ emitEvent: false });
|
|
86403
|
+
}
|
|
86404
|
+
},
|
|
86405
|
+
{
|
|
86406
|
+
type: FormType.Text,
|
|
86407
|
+
formControlName: "",
|
|
86408
|
+
class: "span-6 beside-select",
|
|
86409
|
+
// Numbered only: a Named company shows no preview of the typed name.
|
|
86410
|
+
isVisible: (form) => !isNamed(form),
|
|
86411
|
+
dynamicLabel: () => BC_NUMBERED_NAME_PREVIEW
|
|
86412
|
+
},
|
|
86413
|
+
{
|
|
86414
|
+
type: FormType.Input,
|
|
86415
|
+
label: "Proposed Corporate Name",
|
|
86416
|
+
formControlName: BCFormationFormControls.CompanyName,
|
|
86417
|
+
required: true,
|
|
86418
|
+
isVisible: isNamed,
|
|
86419
|
+
class: "column-3"
|
|
86420
|
+
},
|
|
86421
|
+
{
|
|
86422
|
+
type: FormType.Input,
|
|
86423
|
+
label: "Name Reservation #",
|
|
86424
|
+
formControlName: BCFormationFormControls.NameReservationNumber,
|
|
86425
|
+
required: true,
|
|
86426
|
+
maxLength: 9,
|
|
86427
|
+
errorMessage: "Enter a valid Name Reservation number (for example NR1234567)",
|
|
86428
|
+
showRequiredMessage: true,
|
|
86429
|
+
isVisible: isNamed,
|
|
86430
|
+
class: "span-6"
|
|
86431
|
+
},
|
|
86432
|
+
{
|
|
86433
|
+
type: FormType.Text,
|
|
86434
|
+
formControlName: BCFormationFormControls.RequestedDateForIncorporation,
|
|
86435
|
+
class: "span-12 spaced-text",
|
|
86436
|
+
dynamicLabel: (form, t) => labelledValue2("Requested Date for Incorporation", form.get(BCFormationFormControls.RequestedDateForIncorporation)?.value, t)
|
|
86437
|
+
},
|
|
86438
|
+
{
|
|
86439
|
+
type: FormType.Text,
|
|
86440
|
+
formControlName: BCFormationFormControls.IsFutureEffectiveDate,
|
|
86441
|
+
class: "span-12 fee-warning",
|
|
86442
|
+
isVisible: (form) => Boolean(form.get(BCFormationFormControls.IsFutureEffectiveDate)?.value),
|
|
86443
|
+
dynamicLabel: (_, t) => t("There is an additional fee of {{fee}} for an effective date in the future.").replace("{{fee}}", BC_FUTURE_EFFECTIVE_DATE_FEE)
|
|
86444
|
+
},
|
|
86445
|
+
{
|
|
86446
|
+
// Options are filled per task from `task.entity.emailOptions` by the incorporation form.
|
|
86447
|
+
type: FormType.Select,
|
|
86448
|
+
label: "Company Email",
|
|
86449
|
+
formControlName: BCFormationFormControls.CompanyEmail,
|
|
86450
|
+
required: true,
|
|
86451
|
+
options: [],
|
|
86452
|
+
class: "span-6"
|
|
86453
|
+
}
|
|
86454
|
+
// The company password is not shown: it is taken from the entity's registry ID.
|
|
86455
|
+
];
|
|
86456
|
+
BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS = [
|
|
86457
|
+
{
|
|
86458
|
+
type: FormType.Checkbox,
|
|
86459
|
+
label: "This company uses one or more translations of its name outside of Canada.",
|
|
86460
|
+
formControlName: BCFormationFormControls.UsesNameTranslation,
|
|
86461
|
+
class: "span-12",
|
|
86462
|
+
onChange: (form) => {
|
|
86463
|
+
const rows = form.get(BCFormationFormControls.NameTranslations);
|
|
86464
|
+
const enabled = Boolean(form.get(BCFormationFormControls.UsesNameTranslation)?.value);
|
|
86465
|
+
if (!rows) {
|
|
86466
|
+
return;
|
|
86467
|
+
}
|
|
86468
|
+
if (enabled && rows.length === 0) {
|
|
86469
|
+
rows.push(BritishColumbiaFormationFormHelper.createNameTranslationFormGroup());
|
|
86470
|
+
}
|
|
86471
|
+
if (!enabled) {
|
|
86472
|
+
rows.clear();
|
|
86473
|
+
}
|
|
86474
|
+
}
|
|
86475
|
+
},
|
|
86476
|
+
{
|
|
86477
|
+
type: FormType.Text,
|
|
86478
|
+
formControlName: "",
|
|
86479
|
+
class: "span-12",
|
|
86480
|
+
isVisible: (form) => Boolean(form.get(BCFormationFormControls.UsesNameTranslation)?.value),
|
|
86481
|
+
dynamicLabel: (_, t) => `<span class="body-1-semibold">${t("Note")}:</span> ${t("Name translations must use the Latin Alphabet (English, French, etc.). Names that use other writing systems must spell the name phonetically in English or French.")}`
|
|
86482
|
+
}
|
|
86483
|
+
];
|
|
86484
|
+
BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS = [
|
|
86485
|
+
{
|
|
86486
|
+
type: FormType.Input,
|
|
86487
|
+
label: "Name Translation",
|
|
86488
|
+
formControlName: BCFormationFormControls.NameTranslation,
|
|
86489
|
+
required: true,
|
|
86490
|
+
class: "span-6"
|
|
86491
|
+
}
|
|
86492
|
+
];
|
|
86493
|
+
BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS = [
|
|
86494
|
+
{
|
|
86495
|
+
type: FormType.Text,
|
|
86496
|
+
formControlName: BCFormationFormControls.MailingAddress,
|
|
86497
|
+
class: "span-12",
|
|
86498
|
+
dynamicLabel: (form, t) => labelledValue2("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
86499
|
+
},
|
|
86500
|
+
{
|
|
86501
|
+
type: FormType.Text,
|
|
86502
|
+
formControlName: BCFormationFormControls.DeliveryAddress,
|
|
86503
|
+
class: "span-12",
|
|
86504
|
+
dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value, t)
|
|
86505
|
+
}
|
|
86506
|
+
];
|
|
86507
|
+
BC_FORMATION_CARD_FORM_RECORDS_OFFICE_FIELDS = [
|
|
86508
|
+
{
|
|
86509
|
+
type: FormType.Text,
|
|
86510
|
+
formControlName: BCFormationFormControls.RecordsOfficeMailingAddress,
|
|
86511
|
+
class: "span-12",
|
|
86512
|
+
dynamicLabel: (form, t) => labelledValue2("Mailing Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeMailingAddress)?.value, t)
|
|
86513
|
+
},
|
|
86514
|
+
{
|
|
86515
|
+
type: FormType.Text,
|
|
86516
|
+
formControlName: BCFormationFormControls.RecordsOfficeDeliveryAddress,
|
|
86517
|
+
class: "span-12",
|
|
86518
|
+
dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeDeliveryAddress)?.value, t)
|
|
86519
|
+
}
|
|
86520
|
+
];
|
|
86521
|
+
BC_FORMATION_DELTA_CARD_FORM_COMPLETING_PARTY_FIELDS = [
|
|
86522
|
+
{
|
|
86523
|
+
type: FormType.Input,
|
|
86524
|
+
label: "First Name",
|
|
86525
|
+
formControlName: BCFormationFormControls.CompletingPartyFirstName,
|
|
86526
|
+
required: true,
|
|
86527
|
+
class: "column-3"
|
|
86528
|
+
},
|
|
86529
|
+
{
|
|
86530
|
+
type: FormType.Input,
|
|
86531
|
+
label: "Middle Name",
|
|
86532
|
+
formControlName: BCFormationFormControls.CompletingPartyMiddleName,
|
|
86533
|
+
class: "column-3"
|
|
86534
|
+
},
|
|
86535
|
+
{
|
|
86536
|
+
type: FormType.Input,
|
|
86537
|
+
label: "Last Name",
|
|
86538
|
+
formControlName: BCFormationFormControls.CompletingPartyLastName,
|
|
86539
|
+
required: true,
|
|
86540
|
+
class: "column-3"
|
|
86541
|
+
},
|
|
86542
|
+
{
|
|
86543
|
+
type: FormType.Input,
|
|
86544
|
+
inputType: "email",
|
|
86545
|
+
label: "Email",
|
|
86546
|
+
formControlName: BCFormationFormControls.CompletingPartyEmail,
|
|
86547
|
+
required: true,
|
|
86548
|
+
errorMessage: "Enter a valid email address",
|
|
86549
|
+
showRequiredMessage: true,
|
|
86550
|
+
class: "column-3"
|
|
86551
|
+
},
|
|
86552
|
+
{
|
|
86553
|
+
type: FormType.Text,
|
|
86554
|
+
formControlName: "",
|
|
86555
|
+
class: "span-12",
|
|
86556
|
+
dynamicLabel: (_, t) => t("A copy of the filed Incorporation Application is emailed to this address.")
|
|
86557
|
+
},
|
|
86558
|
+
{
|
|
86559
|
+
type: FormType.Input,
|
|
86560
|
+
label: "Street Address",
|
|
86561
|
+
formControlName: BCFormationFormControls.AddressLine1,
|
|
86562
|
+
required: true,
|
|
86563
|
+
class: "column-3"
|
|
86564
|
+
},
|
|
86565
|
+
{
|
|
86566
|
+
type: FormType.Input,
|
|
86567
|
+
label: "Additional Street Address",
|
|
86568
|
+
formControlName: BCFormationFormControls.AddressLine2,
|
|
86569
|
+
class: "column-3"
|
|
86570
|
+
},
|
|
86571
|
+
{
|
|
86572
|
+
type: FormType.Input,
|
|
86573
|
+
label: "City",
|
|
86574
|
+
formControlName: BCFormationFormControls.City,
|
|
86575
|
+
required: true,
|
|
86576
|
+
class: "column-2"
|
|
86577
|
+
},
|
|
86578
|
+
{
|
|
86579
|
+
type: FormType.Input,
|
|
86580
|
+
label: "Province / State",
|
|
86581
|
+
formControlName: BCFormationFormControls.ProvinceState,
|
|
86582
|
+
required: true,
|
|
86583
|
+
class: "column-2"
|
|
86584
|
+
},
|
|
86585
|
+
{
|
|
86586
|
+
type: FormType.Input,
|
|
86587
|
+
label: "Postal / Zip Code",
|
|
86588
|
+
formControlName: BCFormationFormControls.PostalZip,
|
|
86589
|
+
required: true,
|
|
86590
|
+
errorMessage: "Enter a valid Canadian postal code (for example V8W 1X4)",
|
|
86591
|
+
showRequiredMessage: true,
|
|
86592
|
+
class: "column-2"
|
|
86593
|
+
},
|
|
86594
|
+
{
|
|
86595
|
+
type: FormType.Select,
|
|
86596
|
+
label: "Country",
|
|
86597
|
+
formControlName: BCFormationFormControls.Country,
|
|
86598
|
+
required: true,
|
|
86599
|
+
options: BC_COMPLETING_PARTY_COUNTRY_OPTIONS,
|
|
86600
|
+
class: "span-4",
|
|
86601
|
+
// Province / State is required for Canada and the US, and the postal code format is Canada-only.
|
|
86602
|
+
onChange: (form) => {
|
|
86603
|
+
[BCFormationFormControls.ProvinceState, BCFormationFormControls.PostalZip].forEach((control) => form.get(control)?.updateValueAndValidity({ emitEvent: false }));
|
|
86604
|
+
}
|
|
86605
|
+
},
|
|
86606
|
+
{
|
|
86607
|
+
type: FormType.Checkbox,
|
|
86608
|
+
// Checkbox labels don't get the renderer's required asterisk, so it is added here (AC2).
|
|
86609
|
+
dynamicLabel: (_, t) => `${t("The Completing Party confirms they have examined the Articles and the Incorporation Agreement, and the signature requirements have been met.")} *`,
|
|
86610
|
+
formControlName: BCFormationFormControls.HasConfirmedCompletion,
|
|
86611
|
+
required: true,
|
|
86612
|
+
class: "span-12"
|
|
86613
|
+
},
|
|
86614
|
+
{
|
|
86615
|
+
type: FormType.Checkbox,
|
|
86616
|
+
// Checkbox labels don't get the renderer's required asterisk, so it is added here (AC2).
|
|
86617
|
+
dynamicLabel: (_, t) => `${t("I have a signed Incorporation Agreement and a set of Articles for the company to be incorporated.")} *`,
|
|
86618
|
+
formControlName: BCFormationFormControls.HasRequiredDocuments,
|
|
86619
|
+
required: true,
|
|
86620
|
+
class: "span-12"
|
|
86621
|
+
}
|
|
86622
|
+
];
|
|
86623
|
+
BC_FORMATION_CARD_FORM_DIRECTORS_FIELDS = [
|
|
86624
|
+
{
|
|
86625
|
+
type: FormType.Text,
|
|
86626
|
+
formControlName: BCFormationFormControls.MailingAddress,
|
|
86627
|
+
class: "span-12",
|
|
86628
|
+
dynamicLabel: (form, t) => labelledValue2("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
86629
|
+
},
|
|
86630
|
+
{
|
|
86631
|
+
type: FormType.Text,
|
|
86632
|
+
formControlName: BCFormationFormControls.DeliveryAddress,
|
|
86633
|
+
class: "span-12",
|
|
86634
|
+
// A director without a Delivery address is filed with "delivery same as mailing", so the
|
|
86635
|
+
// Mailing address is shown, as in the draft.
|
|
86636
|
+
dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value || form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
86637
|
+
}
|
|
86638
|
+
];
|
|
86639
|
+
BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS = [
|
|
86640
|
+
{
|
|
86641
|
+
type: FormType.Text,
|
|
86642
|
+
formControlName: BCFormationFormControls.FullAddress,
|
|
86643
|
+
class: "span-12",
|
|
86644
|
+
dynamicLabel: (form, t) => labelledValue2("Full Address", form.get(BCFormationFormControls.FullAddress)?.value, t)
|
|
86645
|
+
}
|
|
86646
|
+
];
|
|
86647
|
+
}
|
|
86648
|
+
});
|
|
86649
|
+
|
|
87513
86650
|
// src/app/components/british-columbia/incorporation/british-columbia-incorporation-form/british-columbia-incorporation-form.component.ts
|
|
87514
86651
|
function BritishColumbiaIncorporationFormComponent_Conditional_1_Template(rf, ctx) {
|
|
87515
86652
|
if (rf & 1) {
|
|
@@ -88675,11 +87812,20 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88675
87812
|
\u0275\u0275property("content", ctx_r0.errors());
|
|
88676
87813
|
}
|
|
88677
87814
|
}
|
|
88678
|
-
function
|
|
87815
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_3_Template(rf, ctx) {
|
|
87816
|
+
if (rf & 1) {
|
|
87817
|
+
\u0275\u0275element(0, "alert", 2);
|
|
87818
|
+
}
|
|
87819
|
+
if (rf & 2) {
|
|
87820
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87821
|
+
\u0275\u0275property("content", ctx_r0.missingMessages());
|
|
87822
|
+
}
|
|
87823
|
+
}
|
|
87824
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template(rf, ctx) {
|
|
88679
87825
|
if (rf & 1) {
|
|
88680
87826
|
const _r2 = \u0275\u0275getCurrentView();
|
|
88681
87827
|
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 7);
|
|
88682
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87828
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
88683
87829
|
\u0275\u0275restoreView(_r2);
|
|
88684
87830
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
88685
87831
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
|
|
@@ -88688,17 +87834,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88688
87834
|
}
|
|
88689
87835
|
if (rf & 2) {
|
|
88690
87836
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
88691
|
-
const referenceNumbers_r3 = \u0275\u0275readContextLet(
|
|
87837
|
+
const referenceNumbers_r3 = \u0275\u0275readContextLet(5);
|
|
88692
87838
|
\u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
|
|
88693
87839
|
\u0275\u0275advance();
|
|
88694
87840
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
|
|
88695
87841
|
}
|
|
88696
87842
|
}
|
|
88697
|
-
function
|
|
87843
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template(rf, ctx) {
|
|
88698
87844
|
if (rf & 1) {
|
|
88699
87845
|
const _r4 = \u0275\u0275getCurrentView();
|
|
88700
87846
|
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 7);
|
|
88701
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87847
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
88702
87848
|
\u0275\u0275restoreView(_r4);
|
|
88703
87849
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
88704
87850
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corpDetails", $event));
|
|
@@ -88707,232 +87853,129 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88707
87853
|
}
|
|
88708
87854
|
if (rf & 2) {
|
|
88709
87855
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
88710
|
-
const corporationDetails_r5 = \u0275\u0275readContextLet(
|
|
87856
|
+
const corporationDetails_r5 = \u0275\u0275readContextLet(7);
|
|
88711
87857
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["corpDetails"] !== false)("title", ctx_r0.groups.CorporationDetails);
|
|
88712
87858
|
\u0275\u0275advance();
|
|
88713
87859
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r5)("config", ctx_r0.corporationDetailsFields());
|
|
88714
87860
|
}
|
|
88715
87861
|
}
|
|
88716
|
-
function
|
|
88717
|
-
if (rf & 1) {
|
|
88718
|
-
const _r7 = \u0275\u0275getCurrentView();
|
|
88719
|
-
\u0275\u0275elementStart(0, "filing-form-group", 7);
|
|
88720
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template_filing_form_group_visiblyValidChange_0_listener() {
|
|
88721
|
-
\u0275\u0275restoreView(_r7);
|
|
88722
|
-
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
88723
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
88724
|
-
});
|
|
88725
|
-
\u0275\u0275elementEnd();
|
|
88726
|
-
}
|
|
88727
|
-
if (rf & 2) {
|
|
88728
|
-
\u0275\u0275nextContext();
|
|
88729
|
-
const registeredMailing_r8 = \u0275\u0275readContextLet(0);
|
|
88730
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
88731
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredMailing_r8)("config", ctx_r0.addressFields);
|
|
88732
|
-
}
|
|
88733
|
-
}
|
|
88734
|
-
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template(rf, ctx) {
|
|
87862
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Conditional_7_Template(rf, ctx) {
|
|
88735
87863
|
if (rf & 1) {
|
|
88736
|
-
|
|
88737
|
-
\u0275\
|
|
88738
|
-
\u0275\
|
|
88739
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template_filing_form_group_visiblyValidChange_1_listener() {
|
|
88740
|
-
\u0275\u0275restoreView(_r9);
|
|
88741
|
-
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
88742
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
88743
|
-
});
|
|
87864
|
+
\u0275\u0275elementStart(0, "div", 12);
|
|
87865
|
+
\u0275\u0275text(1);
|
|
87866
|
+
\u0275\u0275pipe(2, "translate");
|
|
88744
87867
|
\u0275\u0275elementEnd();
|
|
88745
87868
|
}
|
|
88746
87869
|
if (rf & 2) {
|
|
88747
|
-
\u0275\u0275nextContext();
|
|
88748
|
-
const registeredDelivery_r10 = \u0275\u0275readContextLet(1);
|
|
88749
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
88750
|
-
const registeredOffice_r11 = \u0275\u0275readContextLet(8);
|
|
88751
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliveryNoteFields);
|
|
87870
|
+
const row_r6 = \u0275\u0275nextContext().$implicit;
|
|
88752
87871
|
\u0275\u0275advance();
|
|
88753
|
-
\u0275\
|
|
87872
|
+
\u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r6.previous, " ");
|
|
88754
87873
|
}
|
|
88755
87874
|
}
|
|
88756
|
-
function
|
|
87875
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Template(rf, ctx) {
|
|
88757
87876
|
if (rf & 1) {
|
|
88758
|
-
|
|
88759
|
-
\u0275\
|
|
88760
|
-
\u0275\
|
|
88761
|
-
\u0275\u0275element(5, "filing-form-group", 9);
|
|
88762
|
-
\u0275\u0275elementStart(6, "h4", 10);
|
|
88763
|
-
\u0275\u0275text(7);
|
|
88764
|
-
\u0275\u0275pipe(8, "translate");
|
|
87877
|
+
\u0275\u0275elementStart(0, "div", 9)(1, "div", 10)(2, "span", 11);
|
|
87878
|
+
\u0275\u0275text(3);
|
|
87879
|
+
\u0275\u0275pipe(4, "translate");
|
|
88765
87880
|
\u0275\u0275elementEnd();
|
|
88766
|
-
\u0275\
|
|
88767
|
-
\u0275\
|
|
88768
|
-
\u0275\u0275text(11);
|
|
88769
|
-
\u0275\u0275pipe(12, "translate");
|
|
87881
|
+
\u0275\u0275text(5);
|
|
87882
|
+
\u0275\u0275pipe(6, "translate");
|
|
88770
87883
|
\u0275\u0275elementEnd();
|
|
88771
|
-
\u0275\
|
|
88772
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template_filing_form_group_visiblyValidChange_13_listener() {
|
|
88773
|
-
\u0275\u0275restoreView(_r6);
|
|
88774
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
88775
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
88776
|
-
});
|
|
87884
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Conditional_7_Template, 3, 4, "div", 12);
|
|
88777
87885
|
\u0275\u0275elementEnd();
|
|
88778
|
-
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template, 2, 6);
|
|
88779
|
-
\u0275\u0275elementEnd()();
|
|
88780
87886
|
}
|
|
88781
87887
|
if (rf & 2) {
|
|
88782
|
-
const
|
|
88783
|
-
|
|
88784
|
-
|
|
88785
|
-
\u0275\u0275advance();
|
|
88786
|
-
const registeredDelivery_r13 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewDeliveryAddress));
|
|
88787
|
-
const registeredDeliverySame_r14 = ctx_r0.isChecked(registeredOffice_r11, ctx_r0.controls.DeliverySameAsMailing);
|
|
88788
|
-
\u0275\u0275advance(2);
|
|
88789
|
-
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
88790
|
-
\u0275\u0275advance(2);
|
|
88791
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.currentAddressesFields);
|
|
88792
|
-
\u0275\u0275advance(2);
|
|
88793
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(8, 15, "New Mailing Address"));
|
|
88794
|
-
\u0275\u0275advance(2);
|
|
88795
|
-
\u0275\u0275conditional(registeredMailing_r12 ? 9 : -1);
|
|
87888
|
+
const row_r6 = ctx.$implicit;
|
|
87889
|
+
\u0275\u0275advance(3);
|
|
87890
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(4, 3, row_r6.label), ":");
|
|
88796
87891
|
\u0275\u0275advance(2);
|
|
88797
|
-
\u0275\
|
|
87892
|
+
\u0275\u0275textInterpolate1(" ", row_r6.value || \u0275\u0275pipeBind1(6, 5, "Not specified"), " ");
|
|
88798
87893
|
\u0275\u0275advance(2);
|
|
88799
|
-
\u0275\
|
|
88800
|
-
\u0275\u0275advance();
|
|
88801
|
-
\u0275\u0275conditional(!registeredDeliverySame_r14 && registeredDelivery_r13 ? 14 : -1);
|
|
87894
|
+
\u0275\u0275conditional(row_r6.previous ? 7 : -1);
|
|
88802
87895
|
}
|
|
88803
87896
|
}
|
|
88804
|
-
function
|
|
87897
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_Template(rf, ctx) {
|
|
88805
87898
|
if (rf & 1) {
|
|
88806
|
-
|
|
88807
|
-
\u0275\
|
|
88808
|
-
\u0275\
|
|
88809
|
-
\u0275\u0275restoreView(_r17);
|
|
88810
|
-
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
88811
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
88812
|
-
});
|
|
88813
|
-
\u0275\u0275elementEnd();
|
|
87899
|
+
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
|
|
87900
|
+
\u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Template, 8, 7, "div", 9, _forTrack05);
|
|
87901
|
+
\u0275\u0275elementEnd()();
|
|
88814
87902
|
}
|
|
88815
87903
|
if (rf & 2) {
|
|
88816
|
-
\u0275\u0275nextContext(2);
|
|
88817
|
-
const recordsMailing_r18 = \u0275\u0275readContextLet(0);
|
|
88818
87904
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
88819
|
-
\u0275\u0275property("
|
|
87905
|
+
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
87906
|
+
\u0275\u0275advance(2);
|
|
87907
|
+
\u0275\u0275repeater(ctx_r0.registeredRows());
|
|
88820
87908
|
}
|
|
88821
87909
|
}
|
|
88822
|
-
function
|
|
87910
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Conditional_7_Template(rf, ctx) {
|
|
88823
87911
|
if (rf & 1) {
|
|
88824
|
-
|
|
88825
|
-
\u0275\
|
|
88826
|
-
\u0275\
|
|
88827
|
-
\u0275\u0275restoreView(_r19);
|
|
88828
|
-
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
88829
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
88830
|
-
});
|
|
87912
|
+
\u0275\u0275elementStart(0, "div", 12);
|
|
87913
|
+
\u0275\u0275text(1);
|
|
87914
|
+
\u0275\u0275pipe(2, "translate");
|
|
88831
87915
|
\u0275\u0275elementEnd();
|
|
88832
87916
|
}
|
|
88833
87917
|
if (rf & 2) {
|
|
88834
|
-
\u0275\u0275nextContext(
|
|
88835
|
-
|
|
88836
|
-
|
|
88837
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsDelivery_r20)("config", ctx_r0.addressFields);
|
|
87918
|
+
const row_r7 = \u0275\u0275nextContext().$implicit;
|
|
87919
|
+
\u0275\u0275advance();
|
|
87920
|
+
\u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r7.previous, " ");
|
|
88838
87921
|
}
|
|
88839
87922
|
}
|
|
88840
|
-
function
|
|
87923
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Template(rf, ctx) {
|
|
88841
87924
|
if (rf & 1) {
|
|
88842
|
-
|
|
88843
|
-
\u0275\
|
|
88844
|
-
\u0275\
|
|
88845
|
-
\u0275\u0275pipe(2, "translate");
|
|
87925
|
+
\u0275\u0275elementStart(0, "div", 9)(1, "div", 10)(2, "span", 11);
|
|
87926
|
+
\u0275\u0275text(3);
|
|
87927
|
+
\u0275\u0275pipe(4, "translate");
|
|
88846
87928
|
\u0275\u0275elementEnd();
|
|
88847
|
-
\u0275\u0275template(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template, 1, 3, "filing-form-group", 9);
|
|
88848
|
-
\u0275\u0275elementStart(4, "h4", 10);
|
|
88849
87929
|
\u0275\u0275text(5);
|
|
88850
87930
|
\u0275\u0275pipe(6, "translate");
|
|
88851
87931
|
\u0275\u0275elementEnd();
|
|
88852
|
-
\u0275\
|
|
88853
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
88854
|
-
\u0275\u0275restoreView(_r16);
|
|
88855
|
-
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
88856
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
88857
|
-
});
|
|
87932
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Conditional_7_Template, 3, 4, "div", 12);
|
|
88858
87933
|
\u0275\u0275elementEnd();
|
|
88859
|
-
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template, 1, 3, "filing-form-group", 9);
|
|
88860
87934
|
}
|
|
88861
87935
|
if (rf & 2) {
|
|
88862
|
-
|
|
88863
|
-
|
|
88864
|
-
|
|
88865
|
-
const recordsDeliverySame_r21 = \u0275\u0275readContextLet(3);
|
|
88866
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
88867
|
-
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
88868
|
-
\u0275\u0275advance();
|
|
88869
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 7, "New Mailing Address"));
|
|
88870
|
-
\u0275\u0275advance(2);
|
|
88871
|
-
\u0275\u0275conditional(recordsMailing_r18 ? 3 : -1);
|
|
87936
|
+
const row_r7 = ctx.$implicit;
|
|
87937
|
+
\u0275\u0275advance(3);
|
|
87938
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(4, 3, row_r7.label), ":");
|
|
88872
87939
|
\u0275\u0275advance(2);
|
|
88873
|
-
\u0275\
|
|
87940
|
+
\u0275\u0275textInterpolate1(" ", row_r7.value || \u0275\u0275pipeBind1(6, 5, "Not specified"), " ");
|
|
88874
87941
|
\u0275\u0275advance(2);
|
|
88875
|
-
\u0275\
|
|
88876
|
-
\u0275\u0275advance();
|
|
88877
|
-
\u0275\u0275conditional(!recordsDeliverySame_r21 && recordsDelivery_r20 ? 8 : -1);
|
|
87942
|
+
\u0275\u0275conditional(row_r7.previous ? 7 : -1);
|
|
88878
87943
|
}
|
|
88879
87944
|
}
|
|
88880
|
-
function
|
|
87945
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_Template(rf, ctx) {
|
|
88881
87946
|
if (rf & 1) {
|
|
88882
|
-
|
|
88883
|
-
\u0275\
|
|
88884
|
-
\u0275\u0275elementStart(4, "expandable-card", 5)(5, "div", 8);
|
|
88885
|
-
\u0275\u0275element(6, "filing-form-group", 9);
|
|
88886
|
-
\u0275\u0275elementStart(7, "filing-form-group", 7);
|
|
88887
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
88888
|
-
\u0275\u0275restoreView(_r15);
|
|
88889
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
88890
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
88891
|
-
});
|
|
88892
|
-
\u0275\u0275elementEnd();
|
|
88893
|
-
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template, 9, 11);
|
|
87947
|
+
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
|
|
87948
|
+
\u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Template, 8, 7, "div", 9, _forTrack05);
|
|
88894
87949
|
\u0275\u0275elementEnd()();
|
|
88895
87950
|
}
|
|
88896
87951
|
if (rf & 2) {
|
|
88897
87952
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
88898
|
-
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
88899
|
-
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewMailingAddress));
|
|
88900
|
-
\u0275\u0275advance();
|
|
88901
|
-
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewDeliveryAddress));
|
|
88902
|
-
const recordsSameAsRegistered_r23 = ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.SameAsRegisteredOffice);
|
|
88903
|
-
\u0275\u0275advance(2);
|
|
88904
|
-
\u0275\u0275storeLet(ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.DeliverySameAsMailing));
|
|
88905
|
-
\u0275\u0275advance();
|
|
88906
87953
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
|
|
88907
87954
|
\u0275\u0275advance(2);
|
|
88908
|
-
\u0275\
|
|
88909
|
-
\u0275\u0275advance();
|
|
88910
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.sameAsRegisteredOfficeFields);
|
|
88911
|
-
\u0275\u0275advance();
|
|
88912
|
-
\u0275\u0275conditional(!recordsSameAsRegistered_r23 ? 8 : -1);
|
|
87955
|
+
\u0275\u0275repeater(ctx_r0.recordsRows());
|
|
88913
87956
|
}
|
|
88914
87957
|
}
|
|
88915
|
-
function
|
|
87958
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_14_Template(rf, ctx) {
|
|
88916
87959
|
if (rf & 1) {
|
|
88917
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
87960
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "p");
|
|
88918
87961
|
\u0275\u0275text(3);
|
|
88919
87962
|
\u0275\u0275pipe(4, "translate");
|
|
88920
87963
|
\u0275\u0275elementEnd();
|
|
88921
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
87964
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 14)(6, "mat-radio-button", 15);
|
|
88922
87965
|
\u0275\u0275text(7);
|
|
88923
87966
|
\u0275\u0275pipe(8, "translate");
|
|
88924
87967
|
\u0275\u0275elementEnd();
|
|
88925
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
87968
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 15);
|
|
88926
87969
|
\u0275\u0275text(10);
|
|
88927
87970
|
\u0275\u0275pipe(11, "translate");
|
|
88928
87971
|
\u0275\u0275elementEnd()()()();
|
|
88929
87972
|
}
|
|
88930
87973
|
if (rf & 2) {
|
|
88931
87974
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
88932
|
-
const
|
|
87975
|
+
const annualReportReminder_r8 = \u0275\u0275readContextLet(13);
|
|
88933
87976
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
|
|
88934
87977
|
\u0275\u0275advance();
|
|
88935
|
-
\u0275\u0275property("formGroup",
|
|
87978
|
+
\u0275\u0275property("formGroup", annualReportReminder_r8);
|
|
88936
87979
|
\u0275\u0275advance(2);
|
|
88937
87980
|
\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."), " ");
|
|
88938
87981
|
\u0275\u0275advance(2);
|
|
@@ -88947,7 +87990,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88947
87990
|
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(11, 13, "No, I do not need to be reminded"), " ");
|
|
88948
87991
|
}
|
|
88949
87992
|
}
|
|
88950
|
-
var BritishColumbiaChangeOfOfficeAddressesFormComponent;
|
|
87993
|
+
var _forTrack05, BritishColumbiaChangeOfOfficeAddressesFormComponent;
|
|
88951
87994
|
var init_change_of_office_addresses_form_component = __esm({
|
|
88952
87995
|
"src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts"() {
|
|
88953
87996
|
init_core();
|
|
@@ -88960,16 +88003,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88960
88003
|
init_expandable_card_component();
|
|
88961
88004
|
init_british_columbia_form_enums();
|
|
88962
88005
|
init_british_columbia_change_of_office_addresses_form_constants();
|
|
88963
|
-
init_forms_utils();
|
|
88964
88006
|
init_BritishColumbiaConstants();
|
|
88965
88007
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
88966
88008
|
init_core();
|
|
88967
88009
|
init_forms();
|
|
88010
|
+
_forTrack05 = ($index, $item) => $item.label;
|
|
88968
88011
|
BritishColumbiaChangeOfOfficeAddressesFormComponent = class _BritishColumbiaChangeOfOfficeAddressesFormComponent {
|
|
88969
88012
|
form = input.required();
|
|
88970
88013
|
task = input();
|
|
88971
88014
|
errors = input([]);
|
|
88972
88015
|
isNote = input(false);
|
|
88016
|
+
/** True while the registry's current data is loading: addresses are not reported missing yet. */
|
|
88017
|
+
loading = input(false);
|
|
88973
88018
|
isSubmitted = input(false);
|
|
88974
88019
|
readonly = input(false);
|
|
88975
88020
|
visiblyValidChange = output();
|
|
@@ -88987,17 +88032,41 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88987
88032
|
deliveryNoteFields = BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS;
|
|
88988
88033
|
deliverySameAsMailingFields = BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS;
|
|
88989
88034
|
sameAsRegisteredOfficeFields = BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
|
|
88035
|
+
translate = inject(TranslateService);
|
|
88990
88036
|
sectionValidity = {};
|
|
88991
88037
|
isVisiblyValid() {
|
|
88992
88038
|
return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
|
|
88993
88039
|
}
|
|
88994
88040
|
isRegisteredOfficeValid() {
|
|
88995
|
-
|
|
88996
|
-
return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
|
|
88041
|
+
return !this.isRegisteredMissing();
|
|
88997
88042
|
}
|
|
88998
88043
|
isRecordsOfficeValid() {
|
|
88999
|
-
|
|
89000
|
-
|
|
88044
|
+
return !this.isRecordsMissing();
|
|
88045
|
+
}
|
|
88046
|
+
/** One message per missing office address, shown in the banner at the top of the form. */
|
|
88047
|
+
missingMessages() {
|
|
88048
|
+
const t = (key) => this.translate.instant(key);
|
|
88049
|
+
const records = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88050
|
+
if (this.loading() || !records || !this.getFormGroup(this.groups.RegisteredOfficeAddress)) {
|
|
88051
|
+
return [];
|
|
88052
|
+
}
|
|
88053
|
+
const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
|
|
88054
|
+
const [regMailing, regDelivery] = this.registeredRows();
|
|
88055
|
+
const [recMailing, recDelivery] = this.recordsRows();
|
|
88056
|
+
return [
|
|
88057
|
+
!regMailing.value && t("The Registered Office mailing address is missing. Add it in UEM, then try again."),
|
|
88058
|
+
!regDelivery.value && t("The Registered Office delivery address is missing. Add it in UEM, then try again."),
|
|
88059
|
+
// "Same as Registered Office" is already reported by the registered office messages.
|
|
88060
|
+
!recordsSameAsRegistered && !recMailing.value && t("The Records Office mailing address is missing. Add it in UEM, then try again."),
|
|
88061
|
+
!recordsSameAsRegistered && !recDelivery.value && t("The Records Office delivery address is missing. Add it in UEM, then try again.")
|
|
88062
|
+
].filter((m) => !!m);
|
|
88063
|
+
}
|
|
88064
|
+
/** The incoming Shared Address supplied no new address for a line (and none is on the register). */
|
|
88065
|
+
isRegisteredMissing() {
|
|
88066
|
+
return !!this.getFormGroup(this.groups.RegisteredOfficeAddress) && this.registeredRows().some((row) => !row.value);
|
|
88067
|
+
}
|
|
88068
|
+
isRecordsMissing() {
|
|
88069
|
+
return !!this.getFormGroup(this.groups.RecordsOfficeAddress) && this.recordsRows().some((row) => !row.value);
|
|
89001
88070
|
}
|
|
89002
88071
|
isChecked(office, control) {
|
|
89003
88072
|
return Boolean(office?.get(control)?.value);
|
|
@@ -89015,28 +88084,77 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89015
88084
|
getAddressGroup(office, control) {
|
|
89016
88085
|
return office?.get(control) ?? null;
|
|
89017
88086
|
}
|
|
89018
|
-
|
|
89019
|
-
|
|
89020
|
-
|
|
88087
|
+
/** Registered office lines: the new (incoming) address and, if it changed, the previous one. */
|
|
88088
|
+
registeredRows() {
|
|
88089
|
+
const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
|
|
88090
|
+
return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
|
|
88091
|
+
}
|
|
88092
|
+
/** Records office lines; "Same as Registered Office" reuses the registered office's new lines. */
|
|
88093
|
+
recordsRows() {
|
|
88094
|
+
const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88095
|
+
if (this.isChecked(office, this.controls.SameAsRegisteredOffice)) {
|
|
88096
|
+
const registered = this.registeredRows();
|
|
88097
|
+
const current = this.currentOf(office);
|
|
88098
|
+
return registered.map((row, i) => __spreadProps(__spreadValues({}, row), {
|
|
88099
|
+
previous: this.changedPrevious(row.value, i === 0 ? current.mailing : current.delivery)
|
|
88100
|
+
}));
|
|
88101
|
+
}
|
|
88102
|
+
return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
|
|
88103
|
+
}
|
|
88104
|
+
buildRows(office, deliverySame) {
|
|
88105
|
+
const current = this.currentOf(office);
|
|
88106
|
+
const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress));
|
|
88107
|
+
const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress));
|
|
88108
|
+
return [
|
|
88109
|
+
{
|
|
88110
|
+
label: "Mailing Address",
|
|
88111
|
+
value: mailing,
|
|
88112
|
+
previous: this.changedPrevious(mailing, current.mailing)
|
|
88113
|
+
},
|
|
88114
|
+
{
|
|
88115
|
+
label: "Delivery Address",
|
|
88116
|
+
value: delivery,
|
|
88117
|
+
previous: this.changedPrevious(delivery, current.delivery)
|
|
88118
|
+
}
|
|
88119
|
+
];
|
|
88120
|
+
}
|
|
88121
|
+
currentOf(office) {
|
|
88122
|
+
return {
|
|
88123
|
+
mailing: office?.get(this.controls.CurrentMailingAddress)?.value ?? "",
|
|
88124
|
+
delivery: office?.get(this.controls.CurrentDeliveryAddress)?.value ?? ""
|
|
88125
|
+
};
|
|
88126
|
+
}
|
|
88127
|
+
formatNew(group2) {
|
|
88128
|
+
const c = this.controls;
|
|
88129
|
+
const v = group2?.getRawValue() ?? {};
|
|
88130
|
+
if (![v[c.AddressLine1], v[c.City], v[c.PostalCode]].some((part) => part?.trim())) {
|
|
88131
|
+
return "";
|
|
88132
|
+
}
|
|
88133
|
+
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(", ");
|
|
88134
|
+
}
|
|
88135
|
+
/** The previous address, only when it exists and differs from the new one. */
|
|
88136
|
+
changedPrevious(next, previous) {
|
|
88137
|
+
const normalize = (s) => s.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
88138
|
+
return previous && normalize(previous) !== normalize(next) ? previous : "";
|
|
89021
88139
|
}
|
|
89022
88140
|
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
|
|
89023
88141
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
|
|
89024
88142
|
};
|
|
89025
|
-
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:
|
|
88143
|
+
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) {
|
|
89026
88144
|
if (rf & 1) {
|
|
89027
88145
|
\u0275\u0275elementStart(0, "div", 0);
|
|
89028
|
-
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
89029
|
-
\u0275\u0275elementStart(
|
|
89030
|
-
\u0275\u0275declareLet(
|
|
89031
|
-
\u0275\u0275template(
|
|
89032
|
-
\u0275\u0275declareLet(
|
|
89033
|
-
\u0275\u0275template(
|
|
89034
|
-
\u0275\u0275declareLet(
|
|
89035
|
-
\u0275\u0275template(
|
|
89036
|
-
\u0275\u0275declareLet(
|
|
89037
|
-
\u0275\u0275template(
|
|
89038
|
-
\u0275\u0275declareLet(
|
|
89039
|
-
\u0275\u0275template(
|
|
88146
|
+
\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);
|
|
88147
|
+
\u0275\u0275elementStart(4, "div", 3);
|
|
88148
|
+
\u0275\u0275declareLet(5);
|
|
88149
|
+
\u0275\u0275template(6, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template, 2, 4, "expandable-card", 4);
|
|
88150
|
+
\u0275\u0275declareLet(7);
|
|
88151
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template, 2, 6, "expandable-card", 5);
|
|
88152
|
+
\u0275\u0275declareLet(9);
|
|
88153
|
+
\u0275\u0275template(10, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_Template, 4, 3, "expandable-card", 5);
|
|
88154
|
+
\u0275\u0275declareLet(11);
|
|
88155
|
+
\u0275\u0275template(12, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_Template, 4, 3, "expandable-card", 5);
|
|
88156
|
+
\u0275\u0275declareLet(13);
|
|
88157
|
+
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_14_Template, 12, 15, "expandable-card", 6);
|
|
89040
88158
|
\u0275\u0275elementEnd()();
|
|
89041
88159
|
}
|
|
89042
88160
|
if (rf & 2) {
|
|
@@ -89044,26 +88162,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89044
88162
|
\u0275\u0275conditional(ctx.isNote() ? 1 : -1);
|
|
89045
88163
|
\u0275\u0275advance();
|
|
89046
88164
|
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
89047
|
-
\u0275\u0275advance(2);
|
|
89048
|
-
const referenceNumbers_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
89049
|
-
\u0275\u0275advance();
|
|
89050
|
-
\u0275\u0275conditional(referenceNumbers_r25 ? 5 : -1);
|
|
89051
|
-
\u0275\u0275advance();
|
|
89052
|
-
const corporationDetails_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
89053
|
-
\u0275\u0275advance();
|
|
89054
|
-
\u0275\u0275conditional(corporationDetails_r26 ? 7 : -1);
|
|
89055
88165
|
\u0275\u0275advance();
|
|
89056
|
-
|
|
88166
|
+
\u0275\u0275conditional(ctx.missingMessages().length ? 3 : -1);
|
|
88167
|
+
\u0275\u0275advance(2);
|
|
88168
|
+
const referenceNumbers_r9 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
89057
88169
|
\u0275\u0275advance();
|
|
89058
|
-
\u0275\u0275conditional(
|
|
88170
|
+
\u0275\u0275conditional(referenceNumbers_r9 ? 6 : -1);
|
|
89059
88171
|
\u0275\u0275advance();
|
|
89060
|
-
const
|
|
88172
|
+
const corporationDetails_r10 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
89061
88173
|
\u0275\u0275advance();
|
|
89062
|
-
\u0275\u0275conditional(
|
|
88174
|
+
\u0275\u0275conditional(corporationDetails_r10 ? 8 : -1);
|
|
88175
|
+
const registeredOffice_r11 = ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress);
|
|
88176
|
+
\u0275\u0275advance(2);
|
|
88177
|
+
\u0275\u0275conditional(registeredOffice_r11 ? 10 : -1);
|
|
88178
|
+
const recordsOffice_r12 = ctx.getFormGroup(ctx.groups.RecordsOfficeAddress);
|
|
88179
|
+
\u0275\u0275advance(2);
|
|
88180
|
+
\u0275\u0275conditional(recordsOffice_r12 ? 12 : -1);
|
|
89063
88181
|
\u0275\u0275advance();
|
|
89064
|
-
const
|
|
88182
|
+
const annualReportReminder_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
89065
88183
|
\u0275\u0275advance();
|
|
89066
|
-
\u0275\u0275conditional(
|
|
88184
|
+
\u0275\u0275conditional(annualReportReminder_r13 ? 14 : -1);
|
|
89067
88185
|
}
|
|
89068
88186
|
}, dependencies: [
|
|
89069
88187
|
FilingFormGroupComponent,
|
|
@@ -89077,7 +88195,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89077
88195
|
FormGroupDirective,
|
|
89078
88196
|
FormControlName,
|
|
89079
88197
|
TranslatePipe
|
|
89080
|
-
], styles: [
|
|
88198
|
+
], 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 });
|
|
89081
88199
|
};
|
|
89082
88200
|
(() => {
|
|
89083
88201
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
|
|
@@ -89105,6 +88223,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89105
88223
|
[content]="errors()"\r
|
|
89106
88224
|
/>\r
|
|
89107
88225
|
}\r
|
|
88226
|
+
\r
|
|
88227
|
+
@if (missingMessages().length) {\r
|
|
88228
|
+
<alert\r
|
|
88229
|
+
title="The following issues need to be resolved before proceeding:"\r
|
|
88230
|
+
[content]="missingMessages()"\r
|
|
88231
|
+
/>\r
|
|
88232
|
+
}\r
|
|
89108
88233
|
\r
|
|
89109
88234
|
<div class="change-of-office-addresses-form-content">\r
|
|
89110
88235
|
@let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
|
|
@@ -89141,54 +88266,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89141
88266
|
@let registeredOffice = getFormGroup(groups.RegisteredOfficeAddress);\r
|
|
89142
88267
|
\r
|
|
89143
88268
|
@if (registeredOffice) {\r
|
|
89144
|
-
@let registeredMailing = getAddressGroup(registeredOffice, controls.NewMailingAddress);\r
|
|
89145
|
-
@let registeredDelivery = getAddressGroup(registeredOffice, controls.NewDeliveryAddress);\r
|
|
89146
|
-
@let registeredDeliverySame = isChecked(registeredOffice, controls.DeliverySameAsMailing);\r
|
|
89147
|
-
\r
|
|
89148
88269
|
<expandable-card\r
|
|
89149
88270
|
[isStatusIcon]="!readonly()"\r
|
|
89150
88271
|
[isValid]="isRegisteredOfficeValid()"\r
|
|
89151
88272
|
[title]="groups.RegisteredOfficeAddress"\r
|
|
89152
88273
|
>\r
|
|
89153
88274
|
<div class="change-of-office-addresses-form-item">\r
|
|
89154
|
-
|
|
89155
|
-
|
|
89156
|
-
|
|
89157
|
-
|
|
89158
|
-
|
|
89159
|
-
|
|
89160
|
-
|
|
89161
|
-
|
|
89162
|
-
|
|
89163
|
-
|
|
89164
|
-
|
|
89165
|
-
|
|
89166
|
-
[config]="addressFields"\r
|
|
89167
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
89168
|
-
/>\r
|
|
89169
|
-
}\r
|
|
89170
|
-
\r
|
|
89171
|
-
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
89172
|
-
\r
|
|
89173
|
-
<filing-form-group\r
|
|
89174
|
-
[isSubmitted]="isSubmitted()"\r
|
|
89175
|
-
[form]="registeredOffice"\r
|
|
89176
|
-
[config]="deliverySameAsMailingFields"\r
|
|
89177
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
89178
|
-
/>\r
|
|
89179
|
-
\r
|
|
89180
|
-
@if (!registeredDeliverySame && registeredDelivery) {\r
|
|
89181
|
-
<filing-form-group\r
|
|
89182
|
-
[isSubmitted]="isSubmitted()"\r
|
|
89183
|
-
[form]="registeredOffice"\r
|
|
89184
|
-
[config]="deliveryNoteFields"\r
|
|
89185
|
-
/>\r
|
|
89186
|
-
<filing-form-group\r
|
|
89187
|
-
[isSubmitted]="isSubmitted()"\r
|
|
89188
|
-
[form]="registeredDelivery"\r
|
|
89189
|
-
[config]="addressFields"\r
|
|
89190
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
89191
|
-
/>\r
|
|
88275
|
+
@for (row of registeredRows(); track row.label) {\r
|
|
88276
|
+
<div class="change-of-office-addresses-form-address">\r
|
|
88277
|
+
<div class="body-1-regular grey">\r
|
|
88278
|
+
<span class="body-1-semibold">{{ row.label | translate }}:</span>\r
|
|
88279
|
+
{{ row.value || ('Not specified' | translate) }}\r
|
|
88280
|
+
</div>\r
|
|
88281
|
+
@if (row.previous) {\r
|
|
88282
|
+
<div class="change-of-office-addresses-form-previous">\r
|
|
88283
|
+
{{ 'Previous' | translate }}: {{ row.previous }}\r
|
|
88284
|
+
</div>\r
|
|
88285
|
+
}\r
|
|
88286
|
+
</div>\r
|
|
89192
88287
|
}\r
|
|
89193
88288
|
</div>\r
|
|
89194
88289
|
</expandable-card>\r
|
|
@@ -89198,59 +88293,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89198
88293
|
@let recordsOffice = getFormGroup(groups.RecordsOfficeAddress);\r
|
|
89199
88294
|
\r
|
|
89200
88295
|
@if (recordsOffice) {\r
|
|
89201
|
-
@let recordsMailing = getAddressGroup(recordsOffice, controls.NewMailingAddress);\r
|
|
89202
|
-
@let recordsDelivery = getAddressGroup(recordsOffice, controls.NewDeliveryAddress);\r
|
|
89203
|
-
@let recordsSameAsRegistered = isChecked(recordsOffice, controls.SameAsRegisteredOffice);\r
|
|
89204
|
-
@let recordsDeliverySame = isChecked(recordsOffice, controls.DeliverySameAsMailing);\r
|
|
89205
|
-
\r
|
|
89206
88296
|
<expandable-card\r
|
|
89207
88297
|
[isStatusIcon]="!readonly()"\r
|
|
89208
88298
|
[isValid]="isRecordsOfficeValid()"\r
|
|
89209
88299
|
[title]="groups.RecordsOfficeAddress"\r
|
|
89210
88300
|
>\r
|
|
89211
88301
|
<div class="change-of-office-addresses-form-item">\r
|
|
89212
|
-
|
|
89213
|
-
|
|
89214
|
-
|
|
89215
|
-
|
|
89216
|
-
|
|
89217
|
-
|
|
89218
|
-
|
|
89219
|
-
|
|
89220
|
-
|
|
89221
|
-
|
|
89222
|
-
|
|
89223
|
-
|
|
89224
|
-
\r
|
|
89225
|
-
@if (!recordsSameAsRegistered) {\r
|
|
89226
|
-
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
|
|
89227
|
-
\r
|
|
89228
|
-
@if (recordsMailing) {\r
|
|
89229
|
-
<filing-form-group\r
|
|
89230
|
-
[isSubmitted]="isSubmitted()"\r
|
|
89231
|
-
[form]="recordsMailing"\r
|
|
89232
|
-
[config]="addressFields"\r
|
|
89233
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
89234
|
-
/>\r
|
|
89235
|
-
}\r
|
|
89236
|
-
\r
|
|
89237
|
-
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
89238
|
-
\r
|
|
89239
|
-
<filing-form-group\r
|
|
89240
|
-
[isSubmitted]="isSubmitted()"\r
|
|
89241
|
-
[form]="recordsOffice"\r
|
|
89242
|
-
[config]="deliverySameAsMailingFields"\r
|
|
89243
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
89244
|
-
/>\r
|
|
89245
|
-
\r
|
|
89246
|
-
@if (!recordsDeliverySame && recordsDelivery) {\r
|
|
89247
|
-
<filing-form-group\r
|
|
89248
|
-
[isSubmitted]="isSubmitted()"\r
|
|
89249
|
-
[form]="recordsDelivery"\r
|
|
89250
|
-
[config]="addressFields"\r
|
|
89251
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
89252
|
-
/>\r
|
|
89253
|
-
}\r
|
|
88302
|
+
@for (row of recordsRows(); track row.label) {\r
|
|
88303
|
+
<div class="change-of-office-addresses-form-address">\r
|
|
88304
|
+
<div class="body-1-regular grey">\r
|
|
88305
|
+
<span class="body-1-semibold">{{ row.label | translate }}:</span>\r
|
|
88306
|
+
{{ row.value || ('Not specified' | translate) }}\r
|
|
88307
|
+
</div>\r
|
|
88308
|
+
@if (row.previous) {\r
|
|
88309
|
+
<div class="change-of-office-addresses-form-previous">\r
|
|
88310
|
+
{{ 'Previous' | translate }}: {{ row.previous }}\r
|
|
88311
|
+
</div>\r
|
|
88312
|
+
}\r
|
|
88313
|
+
</div>\r
|
|
89254
88314
|
}\r
|
|
89255
88315
|
</div>\r
|
|
89256
88316
|
</expandable-card>\r
|
|
@@ -89280,11 +88340,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89280
88340
|
}\r
|
|
89281
88341
|
</div>\r
|
|
89282
88342
|
</div>\r
|
|
89283
|
-
`, styles: [
|
|
88343
|
+
`, 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'] }]
|
|
89284
88344
|
}], null, null);
|
|
89285
88345
|
})();
|
|
89286
88346
|
(() => {
|
|
89287
|
-
(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:
|
|
88347
|
+
(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 });
|
|
89288
88348
|
})();
|
|
89289
88349
|
}
|
|
89290
88350
|
});
|
|
@@ -89338,7 +88398,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89338
88398
|
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Factory(__ngFactoryType__) {
|
|
89339
88399
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent)();
|
|
89340
88400
|
};
|
|
89341
|
-
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:
|
|
88401
|
+
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) {
|
|
89342
88402
|
if (rf & 1) {
|
|
89343
88403
|
\u0275\u0275elementStart(0, "div", 0)(1, "british-columbia-change-of-office-addresses-form", 1);
|
|
89344
88404
|
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_british_columbia_change_of_office_addresses_form_visiblyValidChange_1_listener($event) {
|
|
@@ -89372,19 +88432,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89372
88432
|
}
|
|
89373
88433
|
if (rf & 2) {
|
|
89374
88434
|
\u0275\u0275advance();
|
|
89375
|
-
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("isSubmitted", ctx.submitted())("readonly", false);
|
|
88435
|
+
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("loading", ctx.actionsDisabled())("isSubmitted", ctx.submitted())("readonly", false);
|
|
89376
88436
|
\u0275\u0275advance(2);
|
|
89377
88437
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
89378
88438
|
\u0275\u0275advance(2);
|
|
89379
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6,
|
|
88439
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 13, "Close"));
|
|
89380
88440
|
\u0275\u0275advance(2);
|
|
89381
88441
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
89382
88442
|
\u0275\u0275advance(2);
|
|
89383
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10,
|
|
88443
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 15, "Save Changes"));
|
|
89384
88444
|
\u0275\u0275advance(2);
|
|
89385
88445
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
89386
88446
|
\u0275\u0275advance(2);
|
|
89387
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14,
|
|
88447
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 17, "Validate & Generate Draft"));
|
|
89388
88448
|
}
|
|
89389
88449
|
}, 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 });
|
|
89390
88450
|
};
|
|
@@ -89398,6 +88458,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89398
88458
|
[task]="task()"\r
|
|
89399
88459
|
[errors]="combinedErrors()"\r
|
|
89400
88460
|
[isNote]="isNote()"\r
|
|
88461
|
+
[loading]="actionsDisabled()"\r
|
|
89401
88462
|
[isSubmitted]="submitted()"\r
|
|
89402
88463
|
[readonly]="false"\r
|
|
89403
88464
|
(visiblyValidChange)="onVisiblyValidChange($event)"\r
|
|
@@ -89582,52 +88643,52 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89582
88643
|
function BritishColumbiaComponent_Conditional_2_Conditional_0_Template(rf, ctx) {
|
|
89583
88644
|
if (rf & 1) {
|
|
89584
88645
|
const _r5 = \u0275\u0275getCurrentView();
|
|
89585
|
-
\u0275\u0275elementStart(0, "british-columbia-
|
|
89586
|
-
\u0275\u0275listener("validate", function
|
|
88646
|
+
\u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form", 6);
|
|
88647
|
+
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_validate_0_listener() {
|
|
89587
88648
|
\u0275\u0275restoreView(_r5);
|
|
89588
88649
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89589
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
89590
|
-
})("close", function
|
|
88650
|
+
return \u0275\u0275resetView(ctx_r1.onFormationValidate());
|
|
88651
|
+
})("close", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_close_0_listener() {
|
|
89591
88652
|
\u0275\u0275restoreView(_r5);
|
|
89592
88653
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89593
88654
|
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
89594
|
-
})("save", function
|
|
88655
|
+
})("save", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_save_0_listener() {
|
|
89595
88656
|
\u0275\u0275restoreView(_r5);
|
|
89596
88657
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89597
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
88658
|
+
return \u0275\u0275resetView(ctx_r1.onFormationSave());
|
|
89598
88659
|
});
|
|
89599
88660
|
\u0275\u0275elementEnd();
|
|
89600
88661
|
}
|
|
89601
88662
|
if (rf & 2) {
|
|
89602
88663
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89603
88664
|
const taskData_r3 = \u0275\u0275readContextLet(0);
|
|
89604
|
-
\u0275\u0275property("task", taskData_r3)("
|
|
88665
|
+
\u0275\u0275property("task", taskData_r3)("errors", ctx_r1.errors())("isNote", ctx_r1.isNote())("actionsDisabled", ctx_r1.actionsDisabled())("form", ctx_r1.deltaForm());
|
|
89605
88666
|
}
|
|
89606
88667
|
}
|
|
89607
88668
|
function BritishColumbiaComponent_Conditional_2_Conditional_1_Template(rf, ctx) {
|
|
89608
88669
|
if (rf & 1) {
|
|
89609
88670
|
const _r6 = \u0275\u0275getCurrentView();
|
|
89610
|
-
\u0275\u0275elementStart(0, "british-columbia-
|
|
89611
|
-
\u0275\u0275listener("
|
|
88671
|
+
\u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 7);
|
|
88672
|
+
\u0275\u0275listener("next", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_next_0_listener() {
|
|
89612
88673
|
\u0275\u0275restoreView(_r6);
|
|
89613
88674
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89614
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
89615
|
-
})("
|
|
88675
|
+
return \u0275\u0275resetView(ctx_r1.onFormationSubmit());
|
|
88676
|
+
})("close", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_close_0_listener() {
|
|
89616
88677
|
\u0275\u0275restoreView(_r6);
|
|
89617
88678
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89618
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
88679
|
+
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
89619
88680
|
});
|
|
89620
88681
|
\u0275\u0275elementEnd();
|
|
89621
88682
|
}
|
|
89622
88683
|
if (rf & 2) {
|
|
89623
88684
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89624
88685
|
const taskData_r3 = \u0275\u0275readContextLet(0);
|
|
89625
|
-
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("
|
|
88686
|
+
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("errors", ctx_r1.errors())("actionsDisabled", ctx_r1.actionsDisabled());
|
|
89626
88687
|
}
|
|
89627
88688
|
}
|
|
89628
88689
|
function BritishColumbiaComponent_Conditional_2_Template(rf, ctx) {
|
|
89629
88690
|
if (rf & 1) {
|
|
89630
|
-
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_2_Conditional_0_Template, 1, 5, "british-columbia-
|
|
88691
|
+
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_2_Conditional_0_Template, 1, 5, "british-columbia-incorporation-delta-form", 4)(1, BritishColumbiaComponent_Conditional_2_Conditional_1_Template, 1, 4, "british-columbia-incorporation-preview-form", 5);
|
|
89631
88692
|
}
|
|
89632
88693
|
if (rf & 2) {
|
|
89633
88694
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
@@ -89639,75 +88700,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89639
88700
|
function BritishColumbiaComponent_Conditional_3_Conditional_0_Template(rf, ctx) {
|
|
89640
88701
|
if (rf & 1) {
|
|
89641
88702
|
const _r7 = \u0275\u0275getCurrentView();
|
|
89642
|
-
\u0275\u0275elementStart(0, "british-columbia-
|
|
89643
|
-
\u0275\u0275listener("validate", function
|
|
88703
|
+
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-delta-form", 2);
|
|
88704
|
+
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_validate_0_listener() {
|
|
89644
88705
|
\u0275\u0275restoreView(_r7);
|
|
89645
88706
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89646
|
-
return \u0275\u0275resetView(ctx_r1.
|
|
89647
|
-
})("close", function
|
|
88707
|
+
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesValidate());
|
|
88708
|
+
})("close", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_close_0_listener() {
|
|
89648
88709
|
\u0275\u0275restoreView(_r7);
|
|
89649
88710
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89650
88711
|
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
89651
|
-
})("save", function
|
|
88712
|
+
})("save", function BritishColumbiaComponent_Conditional_3_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_save_0_listener() {
|
|
89652
88713
|
\u0275\u0275restoreView(_r7);
|
|
89653
88714
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89654
|
-
return \u0275\u0275resetView(ctx_r1.onFormationSave());
|
|
89655
|
-
});
|
|
89656
|
-
\u0275\u0275elementEnd();
|
|
89657
|
-
}
|
|
89658
|
-
if (rf & 2) {
|
|
89659
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89660
|
-
const taskData_r3 = \u0275\u0275readContextLet(0);
|
|
89661
|
-
\u0275\u0275property("task", taskData_r3)("errors", ctx_r1.errors())("isNote", ctx_r1.isNote())("actionsDisabled", ctx_r1.actionsDisabled())("form", ctx_r1.deltaForm());
|
|
89662
|
-
}
|
|
89663
|
-
}
|
|
89664
|
-
function BritishColumbiaComponent_Conditional_3_Conditional_1_Template(rf, ctx) {
|
|
89665
|
-
if (rf & 1) {
|
|
89666
|
-
const _r8 = \u0275\u0275getCurrentView();
|
|
89667
|
-
\u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 7);
|
|
89668
|
-
\u0275\u0275listener("next", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_incorporation_preview_form_next_0_listener() {
|
|
89669
|
-
\u0275\u0275restoreView(_r8);
|
|
89670
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89671
|
-
return \u0275\u0275resetView(ctx_r1.onFormationSubmit());
|
|
89672
|
-
})("close", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_incorporation_preview_form_close_0_listener() {
|
|
89673
|
-
\u0275\u0275restoreView(_r8);
|
|
89674
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89675
|
-
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
89676
|
-
});
|
|
89677
|
-
\u0275\u0275elementEnd();
|
|
89678
|
-
}
|
|
89679
|
-
if (rf & 2) {
|
|
89680
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89681
|
-
const taskData_r3 = \u0275\u0275readContextLet(0);
|
|
89682
|
-
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("errors", ctx_r1.errors())("actionsDisabled", ctx_r1.actionsDisabled());
|
|
89683
|
-
}
|
|
89684
|
-
}
|
|
89685
|
-
function BritishColumbiaComponent_Conditional_3_Template(rf, ctx) {
|
|
89686
|
-
if (rf & 1) {
|
|
89687
|
-
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_3_Conditional_0_Template, 1, 5, "british-columbia-incorporation-delta-form", 4)(1, BritishColumbiaComponent_Conditional_3_Conditional_1_Template, 1, 4, "british-columbia-incorporation-preview-form", 5);
|
|
89688
|
-
}
|
|
89689
|
-
if (rf & 2) {
|
|
89690
|
-
const ctx_r1 = \u0275\u0275nextContext();
|
|
89691
|
-
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.Validate ? 0 : -1);
|
|
89692
|
-
\u0275\u0275advance();
|
|
89693
|
-
\u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
|
|
89694
|
-
}
|
|
89695
|
-
}
|
|
89696
|
-
function BritishColumbiaComponent_Conditional_4_Conditional_0_Template(rf, ctx) {
|
|
89697
|
-
if (rf & 1) {
|
|
89698
|
-
const _r9 = \u0275\u0275getCurrentView();
|
|
89699
|
-
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-delta-form", 2);
|
|
89700
|
-
\u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_4_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_validate_0_listener() {
|
|
89701
|
-
\u0275\u0275restoreView(_r9);
|
|
89702
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89703
|
-
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesValidate());
|
|
89704
|
-
})("close", function BritishColumbiaComponent_Conditional_4_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_close_0_listener() {
|
|
89705
|
-
\u0275\u0275restoreView(_r9);
|
|
89706
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89707
|
-
return \u0275\u0275resetView(ctx_r1.onClose());
|
|
89708
|
-
})("save", function BritishColumbiaComponent_Conditional_4_Conditional_0_Template_british_columbia_change_of_office_addresses_delta_form_save_0_listener() {
|
|
89709
|
-
\u0275\u0275restoreView(_r9);
|
|
89710
|
-
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89711
88715
|
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesSave());
|
|
89712
88716
|
});
|
|
89713
88717
|
\u0275\u0275elementEnd();
|
|
@@ -89718,16 +88722,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89718
88722
|
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.deltaForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors())("isNote", ctx_r1.isNote());
|
|
89719
88723
|
}
|
|
89720
88724
|
}
|
|
89721
|
-
function
|
|
88725
|
+
function BritishColumbiaComponent_Conditional_3_Conditional_1_Template(rf, ctx) {
|
|
89722
88726
|
if (rf & 1) {
|
|
89723
|
-
const
|
|
88727
|
+
const _r8 = \u0275\u0275getCurrentView();
|
|
89724
88728
|
\u0275\u0275elementStart(0, "british-columbia-change-of-office-addresses-preview-form", 3);
|
|
89725
|
-
\u0275\u0275listener("close", function
|
|
89726
|
-
\u0275\u0275restoreView(
|
|
88729
|
+
\u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_close_0_listener() {
|
|
88730
|
+
\u0275\u0275restoreView(_r8);
|
|
89727
88731
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89728
88732
|
return \u0275\u0275resetView(ctx_r1.close.emit());
|
|
89729
|
-
})("file", function
|
|
89730
|
-
\u0275\u0275restoreView(
|
|
88733
|
+
})("file", function BritishColumbiaComponent_Conditional_3_Conditional_1_Template_british_columbia_change_of_office_addresses_preview_form_file_0_listener() {
|
|
88734
|
+
\u0275\u0275restoreView(_r8);
|
|
89731
88735
|
const ctx_r1 = \u0275\u0275nextContext(2);
|
|
89732
88736
|
return \u0275\u0275resetView(ctx_r1.onChangeOfOfficeAddressesFile());
|
|
89733
88737
|
});
|
|
@@ -89739,9 +88743,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89739
88743
|
\u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors());
|
|
89740
88744
|
}
|
|
89741
88745
|
}
|
|
89742
|
-
function
|
|
88746
|
+
function BritishColumbiaComponent_Conditional_3_Template(rf, ctx) {
|
|
89743
88747
|
if (rf & 1) {
|
|
89744
|
-
\u0275\u0275template(0,
|
|
88748
|
+
\u0275\u0275template(0, BritishColumbiaComponent_Conditional_3_Conditional_0_Template, 1, 5, "british-columbia-change-of-office-addresses-delta-form", 0)(1, BritishColumbiaComponent_Conditional_3_Conditional_1_Template, 1, 4, "british-columbia-change-of-office-addresses-preview-form", 1);
|
|
89745
88749
|
}
|
|
89746
88750
|
if (rf & 2) {
|
|
89747
88751
|
const ctx_r1 = \u0275\u0275nextContext();
|
|
@@ -89760,15 +88764,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89760
88764
|
init_app_enums();
|
|
89761
88765
|
init_BritishColumbiaConstants();
|
|
89762
88766
|
init_british_columbia_form_enums();
|
|
89763
|
-
init_british_columbia_annual_report_form_helper();
|
|
89764
88767
|
init_british_columbia_change_of_directors_form_helper();
|
|
89765
88768
|
init_british_columbia_formation_form_helper();
|
|
89766
88769
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
89767
88770
|
init_delta_state_service();
|
|
89768
88771
|
init_common_utils();
|
|
89769
88772
|
init_confirm_modal_component();
|
|
89770
|
-
init_british_columbia_annual_report_delta_form_component();
|
|
89771
|
-
init_british_columbia_annual_report_preview_form_component();
|
|
89772
88773
|
init_change_of_directors_delta_form_component();
|
|
89773
88774
|
init_change_of_directors_preview_form_component();
|
|
89774
88775
|
init_british_columbia_incorporation_delta_form_component();
|
|
@@ -89784,8 +88785,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89784
88785
|
actionsDisabled = input(false);
|
|
89785
88786
|
errors = input([]);
|
|
89786
88787
|
currentDataExtract = input();
|
|
89787
|
-
/**
|
|
89788
|
-
|
|
88788
|
+
/** False while the registry's current data is loading; the validated-draft preview waits for it. */
|
|
88789
|
+
extractReady = input(true);
|
|
89789
88790
|
close = output();
|
|
89790
88791
|
codValidate = output();
|
|
89791
88792
|
saveCodDeltaData = output();
|
|
@@ -89796,10 +88797,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89796
88797
|
nextStep = output();
|
|
89797
88798
|
recheckStep = output();
|
|
89798
88799
|
prevStep = output();
|
|
89799
|
-
// Annual Report outputs
|
|
89800
|
-
arValidate = output();
|
|
89801
|
-
saveArDeltaData = output();
|
|
89802
|
-
arSubmit = output();
|
|
89803
88800
|
// Change of Office Addresses outputs
|
|
89804
88801
|
coaValidate = output();
|
|
89805
88802
|
saveCoaDeltaData = output();
|
|
@@ -89810,7 +88807,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89810
88807
|
steps = Step;
|
|
89811
88808
|
isChangeOfDirectorsTask = isChangeOfPrincipalsTask;
|
|
89812
88809
|
isFormationTask = isFormationTask2;
|
|
89813
|
-
isAnnualReportTask = isAnnualReturnTask;
|
|
89814
88810
|
isChangeOfOfficeAddressesTask = isChangeOfAddressTask;
|
|
89815
88811
|
deltaForm = signal(new FormGroup({}));
|
|
89816
88812
|
previewForm = signal(new FormGroup({}));
|
|
@@ -89826,16 +88822,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89826
88822
|
this.deltaState.setBCFormationInitialDelta(this.generateFormationDeltaData());
|
|
89827
88823
|
}
|
|
89828
88824
|
if (task && isChangeOfAddressTask(task)) {
|
|
89829
|
-
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key))));
|
|
88825
|
+
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract())));
|
|
89830
88826
|
this.deltaState.setBCChangeOfOfficeAddressesInitialDelta(this.generateChangeOfOfficeAddressesDeltaData());
|
|
89831
88827
|
}
|
|
89832
|
-
if (task && isAnnualReturnTask(task)) {
|
|
89833
|
-
const extractOfficers = this.annualReportExtract() ?? [];
|
|
89834
|
-
untracked2(() => {
|
|
89835
|
-
this.deltaForm.set(new FormGroup(BritishColumbiaAnnualReportFormHelper.generateConfig(task, extractOfficers)));
|
|
89836
|
-
this.deltaState.setBCAnnualReportInitialDelta(this.generateAnnualReportDeltaData());
|
|
89837
|
-
});
|
|
89838
|
-
}
|
|
89839
88828
|
});
|
|
89840
88829
|
effect(() => {
|
|
89841
88830
|
const task = this.task();
|
|
@@ -89859,16 +88848,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89859
88848
|
this.nextStep.emit();
|
|
89860
88849
|
}
|
|
89861
88850
|
}
|
|
89862
|
-
if (
|
|
89863
|
-
const form = new FormGroup(
|
|
89864
|
-
form.disable();
|
|
89865
|
-
this.previewForm.set(form);
|
|
89866
|
-
if (untracked2(() => this.activeStep()) === Step.Validate) {
|
|
89867
|
-
this.nextStep.emit();
|
|
89868
|
-
}
|
|
89869
|
-
}
|
|
89870
|
-
if (task && isChangeOfAddressTask(task) && deltaData) {
|
|
89871
|
-
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
|
|
88851
|
+
if (task && isChangeOfAddressTask(task) && deltaData && this.extractReady()) {
|
|
88852
|
+
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract()));
|
|
89872
88853
|
form.disable();
|
|
89873
88854
|
this.previewForm.set(form);
|
|
89874
88855
|
const step = untracked2(() => this.activeStep());
|
|
@@ -89880,33 +88861,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89880
88861
|
}
|
|
89881
88862
|
});
|
|
89882
88863
|
}
|
|
89883
|
-
onAnnualReportValidate() {
|
|
89884
|
-
markFormGroupTouched(this.deltaForm());
|
|
89885
|
-
this.arValidate.emit(this.generateAnnualReportDeltaData());
|
|
89886
|
-
}
|
|
89887
|
-
onAnnualReportSave() {
|
|
89888
|
-
const delta = this.generateAnnualReportDeltaData();
|
|
89889
|
-
this.deltaState.setBCAnnualReportInitialDelta(delta);
|
|
89890
|
-
this.saveArDeltaData.emit(delta);
|
|
89891
|
-
}
|
|
89892
|
-
/** No certification step for this filing: "File" submits the staged draft directly. */
|
|
89893
|
-
onAnnualReportSubmit() {
|
|
89894
|
-
this.arSubmit.emit();
|
|
89895
|
-
}
|
|
89896
|
-
generateAnnualReportDeltaData() {
|
|
89897
|
-
const formData = this.deltaForm().getRawValue();
|
|
89898
|
-
const general = formData[BCAnnualReportFormGroups.General];
|
|
89899
|
-
const companyEmail = formData[BCAnnualReportFormGroups.CompanyEmail];
|
|
89900
|
-
const reminder = formData[BCAnnualReportFormGroups.AnnualReportReminder];
|
|
89901
|
-
return {
|
|
89902
|
-
referenceNumbers: {
|
|
89903
|
-
referenceNumber: general?.[BCAnnualReportFormControls.ClientMatterNumber] ?? null,
|
|
89904
|
-
docketNumber: general?.[BCAnnualReportFormControls.DocketNumber] ?? null
|
|
89905
|
-
},
|
|
89906
|
-
companyEmail: companyEmail?.[BCAnnualReportFormControls.CompanyEmail] ?? null,
|
|
89907
|
-
isAnnualReportReminderRequired: Boolean(reminder?.[BCAnnualReportFormControls.IsAnnualReportReminderRequired])
|
|
89908
|
-
};
|
|
89909
|
-
}
|
|
89910
88864
|
onChangeOfOfficeAddressesValidate() {
|
|
89911
88865
|
markFormGroupTouched(this.deltaForm());
|
|
89912
88866
|
this.coaValidate.emit(this.generateChangeOfOfficeAddressesDeltaData());
|
|
@@ -90058,7 +89012,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90058
89012
|
}
|
|
90059
89013
|
onClose() {
|
|
90060
89014
|
const task = this.task();
|
|
90061
|
-
const hasChanges = task &&
|
|
89015
|
+
const hasChanges = task && isFormationTask2(task) ? !deepEqual(this.deltaState.bcFormationInitialDelta(), this.generateFormationDeltaData()) : task && isChangeOfAddressTask(task) ? !deepEqual(this.deltaState.bcChangeOfOfficeAddressesInitialDelta(), this.generateChangeOfOfficeAddressesDeltaData()) : !deepEqual(this.deltaState.bcChangeOfDirectorsInitialDelta(), this.generateChangeOfDirectorsDeltaData());
|
|
90062
89016
|
if (!hasChanges) {
|
|
90063
89017
|
this.close.emit();
|
|
90064
89018
|
return;
|
|
@@ -90074,9 +89028,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90074
89028
|
width: "65rem"
|
|
90075
89029
|
}).afterClosed().subscribe((val) => {
|
|
90076
89030
|
if (val) {
|
|
90077
|
-
if (task &&
|
|
90078
|
-
this.onAnnualReportSave();
|
|
90079
|
-
} else if (task && isFormationTask2(task)) {
|
|
89031
|
+
if (task && isFormationTask2(task)) {
|
|
90080
89032
|
this.onFormationSave();
|
|
90081
89033
|
} else if (task && isChangeOfAddressTask(task)) {
|
|
90082
89034
|
this.onChangeOfOfficeAddressesSave();
|
|
@@ -90090,25 +89042,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90090
89042
|
static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
|
|
90091
89043
|
return new (__ngFactoryType__ || _BritishColumbiaComponent)();
|
|
90092
89044
|
};
|
|
90093
|
-
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"],
|
|
89045
|
+
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) {
|
|
90094
89046
|
if (rf & 1) {
|
|
90095
89047
|
\u0275\u0275declareLet(0);
|
|
90096
|
-
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2)(3, BritishColumbiaComponent_Conditional_3_Template, 2, 2)
|
|
89048
|
+
\u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2)(3, BritishColumbiaComponent_Conditional_3_Template, 2, 2);
|
|
90097
89049
|
}
|
|
90098
89050
|
if (rf & 2) {
|
|
90099
|
-
const
|
|
90100
|
-
\u0275\u0275advance();
|
|
90101
|
-
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r11) ? 1 : -1);
|
|
89051
|
+
const taskData_r9 = \u0275\u0275storeLet(ctx.task());
|
|
90102
89052
|
\u0275\u0275advance();
|
|
90103
|
-
\u0275\u0275conditional(ctx.
|
|
89053
|
+
\u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r9) ? 1 : -1);
|
|
90104
89054
|
\u0275\u0275advance();
|
|
90105
|
-
\u0275\u0275conditional(ctx.isFormationTask(
|
|
89055
|
+
\u0275\u0275conditional(ctx.isFormationTask(taskData_r9) ? 2 : -1);
|
|
90106
89056
|
\u0275\u0275advance();
|
|
90107
|
-
\u0275\u0275conditional(ctx.isChangeOfOfficeAddressesTask(
|
|
89057
|
+
\u0275\u0275conditional(ctx.isChangeOfOfficeAddressesTask(taskData_r9) ? 3 : -1);
|
|
90108
89058
|
}
|
|
90109
89059
|
}, dependencies: [
|
|
90110
|
-
BritishColumbiaAnnualReportDeltaFormComponent,
|
|
90111
|
-
BritishColumbiaAnnualReportPreviewFormComponent,
|
|
90112
89060
|
BritishColumbiaChangeOfDirectorsDeltaFormComponent,
|
|
90113
89061
|
BritishColumbiaChangeOfDirectorsPreviewFormComponent,
|
|
90114
89062
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
@@ -90121,19 +89069,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90121
89069
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaComponent, [{
|
|
90122
89070
|
type: Component,
|
|
90123
89071
|
args: [{ standalone: true, selector: "british-columbia", changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
90124
|
-
BritishColumbiaAnnualReportDeltaFormComponent,
|
|
90125
|
-
BritishColumbiaAnnualReportPreviewFormComponent,
|
|
90126
89072
|
BritishColumbiaChangeOfDirectorsDeltaFormComponent,
|
|
90127
89073
|
BritishColumbiaChangeOfDirectorsPreviewFormComponent,
|
|
90128
89074
|
BritishColumbiaIncorporationDeltaFormComponent,
|
|
90129
89075
|
BritishColumbiaIncorporationPreviewFormComponent,
|
|
90130
89076
|
BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent,
|
|
90131
89077
|
BritishColumbiaChangeOfOfficeAddressesPreviewFormComponent
|
|
90132
|
-
], template: '@let taskData = this.task();\r\n\r\n@if (isChangeOfDirectorsTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-change-of-directors-delta-form\r\n [task]="taskData"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onChangeOfDirectorsValidate()"\r\n (close)="onClose()"\r\n (save)="onChangeOfDirectorsSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-change-of-directors-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="onChangeOfDirectorsSubmit()"\r\n />\r\n }\r\n}\r\n\r\n@if (
|
|
89078
|
+
], template: '@let taskData = this.task();\r\n\r\n@if (isChangeOfDirectorsTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-change-of-directors-delta-form\r\n [task]="taskData"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onChangeOfDirectorsValidate()"\r\n (close)="onClose()"\r\n (save)="onChangeOfDirectorsSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-change-of-directors-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="onChangeOfDirectorsSubmit()"\r\n />\r\n }\r\n}\r\n\r\n@if (isFormationTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-incorporation-delta-form\r\n [task]="taskData"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [form]="deltaForm()"\r\n (validate)="onFormationValidate()"\r\n (close)="onClose()"\r\n (save)="onFormationSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-incorporation-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [errors]="errors()"\r\n [actionsDisabled]="actionsDisabled()"\r\n (next)="onFormationSubmit()"\r\n (close)="close.emit()"\r\n />\r\n }\r\n}\r\n\r\n@if (isChangeOfOfficeAddressesTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-change-of-office-addresses-delta-form\r\n [task]="taskData"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onChangeOfOfficeAddressesValidate()"\r\n (close)="onClose()"\r\n (save)="onChangeOfOfficeAddressesSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-change-of-office-addresses-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="onChangeOfOfficeAddressesFile()"\r\n />\r\n }\r\n}\r\n', styles: ["/* src/app/components/british-columbia/british-columbia.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */\n"] }]
|
|
90133
89079
|
}], () => [], null);
|
|
90134
89080
|
})();
|
|
90135
89081
|
(() => {
|
|
90136
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber:
|
|
89082
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber: 72 });
|
|
90137
89083
|
})();
|
|
90138
89084
|
}
|
|
90139
89085
|
});
|
|
@@ -91785,7 +90731,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
91785
90731
|
\u0275\u0275pipe(7, "translate");
|
|
91786
90732
|
\u0275\u0275elementEnd();
|
|
91787
90733
|
\u0275\u0275elementStart(8, "ul", 16);
|
|
91788
|
-
\u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17,
|
|
90734
|
+
\u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17, _forTrack06);
|
|
91789
90735
|
\u0275\u0275elementEnd()();
|
|
91790
90736
|
\u0275\u0275elementStart(11, "span", 17);
|
|
91791
90737
|
\u0275\u0275text(12);
|
|
@@ -91988,7 +90934,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
91988
90934
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", contactForm_r24)("config", ctx_r0.contactControl);
|
|
91989
90935
|
}
|
|
91990
90936
|
}
|
|
91991
|
-
var _c016,
|
|
90937
|
+
var _c016, _forTrack06, FederalIncorporationFormComponent;
|
|
91992
90938
|
var init_federal_incorporation_form_component = __esm({
|
|
91993
90939
|
"src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts"() {
|
|
91994
90940
|
init_core();
|
|
@@ -92013,7 +90959,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
92013
90959
|
init_common();
|
|
92014
90960
|
init_core();
|
|
92015
90961
|
_c016 = ["*"];
|
|
92016
|
-
|
|
90962
|
+
_forTrack06 = ($index, $item) => $item.affiliationID;
|
|
92017
90963
|
FederalIncorporationFormComponent = class _FederalIncorporationFormComponent {
|
|
92018
90964
|
form = input.required();
|
|
92019
90965
|
isNote = input(false);
|
|
@@ -96356,10 +95302,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96356
95302
|
/**
|
|
96357
95303
|
* Orders the corporation's current data extract and waits until it is ready, returning the
|
|
96358
95304
|
* `currentDataServiceOrderId` that Validate Filing needs. The registry bot can take a while,
|
|
96359
|
-
* so the extract is polled every `intervalMs`
|
|
95305
|
+
* so the extract is polled every `intervalMs` until the registry returns a terminal status.
|
|
96360
95306
|
*/
|
|
96361
95307
|
ensureCurrentDataExtract(_0, _1) {
|
|
96362
|
-
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3
|
|
95308
|
+
return __async(this, arguments, function* (signature, order, opts = {}, { intervalMs = 3e3 } = {}) {
|
|
96363
95309
|
ensureAuthInputs(signature);
|
|
96364
95310
|
const fetchFn = opts.fetchImpl ?? fetch;
|
|
96365
95311
|
const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
|
|
@@ -96373,7 +95319,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96373
95319
|
errors: ordered.errors?.length ? ordered.errors : (ordered.additionalInformation ?? []).map((message) => ({ message }))
|
|
96374
95320
|
}));
|
|
96375
95321
|
}
|
|
96376
|
-
for (
|
|
95322
|
+
for (; ; ) {
|
|
96377
95323
|
const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
|
|
96378
95324
|
method: "GET",
|
|
96379
95325
|
headers: __spreadValues({
|
|
@@ -96392,7 +95338,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96392
95338
|
}
|
|
96393
95339
|
yield new Promise((resolve) => setTimeout(resolve, intervalMs));
|
|
96394
95340
|
}
|
|
96395
|
-
throw new Error("BC current data extract is still processing. Please try again in a moment.");
|
|
96396
95341
|
});
|
|
96397
95342
|
}
|
|
96398
95343
|
getCurrentDataExtract() {
|
|
@@ -96514,14 +95459,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96514
95459
|
});
|
|
96515
95460
|
|
|
96516
95461
|
// src/app/helpers/mappers/british-columbia-change-of-directors.mapper.ts
|
|
96517
|
-
function
|
|
95462
|
+
function getBritishColumbiaAccessCode(task, password) {
|
|
96518
95463
|
return password?.trim() || task.entity._profile.registry_id?.trim() || "";
|
|
96519
95464
|
}
|
|
96520
95465
|
function buildBritishColumbiaDataExtractOrder(task, password) {
|
|
96521
95466
|
const incorporationDate = toYyyyMmDd(task.entity._compliance.incorporation_date) ?? "";
|
|
96522
95467
|
const request = {
|
|
96523
95468
|
corporationNumber: task.entity._profile.corp_number?.trim() ?? "",
|
|
96524
|
-
accessCodeOrPassword:
|
|
95469
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode(task, password),
|
|
96525
95470
|
incorporationDate: /^\d{4}-\d{2}-\d{2}$/.test(incorporationDate) ? incorporationDate : "",
|
|
96526
95471
|
filingType: "changeOfDirectorsFiling"
|
|
96527
95472
|
};
|
|
@@ -96565,7 +95510,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96565
95510
|
currentDataServiceOrderId,
|
|
96566
95511
|
filing: __spreadProps(__spreadValues({
|
|
96567
95512
|
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
96568
|
-
accessCodeOrPassword:
|
|
95513
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode(task),
|
|
96569
95514
|
reference: deltaData.referenceNumbers.referenceNumber ?? null,
|
|
96570
95515
|
docket: deltaData.referenceNumbers.docketNumber ?? null
|
|
96571
95516
|
}, (addDirectors.length || ceaseDirectors.length) && effectiveDate ? { effectiveDate } : {}), {
|
|
@@ -96639,7 +95584,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96639
95584
|
return result;
|
|
96640
95585
|
}
|
|
96641
95586
|
function normaliseDirectorName(value) {
|
|
96642
|
-
const name = value?.PersonName ?? value?.personName ?? value;
|
|
95587
|
+
const name = value?.PersonName ?? value?.personName ?? value?.participant?._profile ?? value;
|
|
96643
95588
|
return [
|
|
96644
95589
|
name?.FirstName ?? name?.firstName,
|
|
96645
95590
|
name?.MiddleName ?? name?.middleName,
|
|
@@ -96673,12 +95618,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96673
95618
|
});
|
|
96674
95619
|
|
|
96675
95620
|
// src/app/services/british-columbia/british-columbia-maintenance.service.ts
|
|
96676
|
-
|
|
96677
|
-
const result = error?.validateResult;
|
|
96678
|
-
const fromResult = (result?.Errors ?? []).some((e) => e.Code === EXTRACT_NOT_COMPLETED_CODE || EXTRACT_NOT_COMPLETED_MESSAGE.test(e.Message ?? ""));
|
|
96679
|
-
return fromResult || EXTRACT_NOT_COMPLETED_MESSAGE.test(error?.message ?? "");
|
|
96680
|
-
}
|
|
96681
|
-
var MAINTENANCE_FILING_PATH, TEMP_UAT_BC_FILING_URL2, DATA_EXTRACT_PATH, DEFAULT_EXTRACT_POLL, DEFAULT_RESULT_POLL, DEFAULT_VALIDATE_RETRY, EXTRACT_NOT_COMPLETED_CODE, EXTRACT_NOT_COMPLETED_MESSAGE, BritishColumbiaMaintenanceService;
|
|
95621
|
+
var MAINTENANCE_FILING_PATH, TEMP_UAT_BC_FILING_URL2, DATA_EXTRACT_PATH, DEFAULT_EXTRACT_POLL, DEFAULT_RESULT_POLL, BritishColumbiaMaintenanceService;
|
|
96682
95622
|
var init_british_columbia_maintenance_service = __esm({
|
|
96683
95623
|
"src/app/services/british-columbia/british-columbia-maintenance.service.ts"() {
|
|
96684
95624
|
init_core();
|
|
@@ -96689,9 +95629,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96689
95629
|
DATA_EXTRACT_PATH = "/filings/ca/bc/data-extract";
|
|
96690
95630
|
DEFAULT_EXTRACT_POLL = { intervalMs: 3e3, timeoutMs: 6e5 };
|
|
96691
95631
|
DEFAULT_RESULT_POLL = { intervalMs: 3e3, timeoutMs: 6e5 };
|
|
96692
|
-
DEFAULT_VALIDATE_RETRY = { intervalMs: 3e3, timeoutMs: 12e4 };
|
|
96693
|
-
EXTRACT_NOT_COMPLETED_CODE = "SVC1031";
|
|
96694
|
-
EXTRACT_NOT_COMPLETED_MESSAGE = /extract has not completed/i;
|
|
96695
95632
|
BritishColumbiaMaintenanceService = class _BritishColumbiaMaintenanceService {
|
|
96696
95633
|
config;
|
|
96697
95634
|
setConfig(config2) {
|
|
@@ -96704,16 +95641,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96704
95641
|
corporationNumber: context2.corporationNumber,
|
|
96705
95642
|
accessCodeOrPassword: context2.accessCodeOrPassword,
|
|
96706
95643
|
incorporationDate: context2.incorporationDate,
|
|
96707
|
-
filingType:
|
|
95644
|
+
filingType: "changeOfAddressFiling"
|
|
96708
95645
|
}, opts);
|
|
96709
95646
|
const id = body?.currentDataServiceOrderId ?? body?.CurrentDataServiceOrderId;
|
|
96710
95647
|
if (!ok || !id || String(body?.status ?? "").toLowerCase() === "failed") {
|
|
96711
|
-
throw this.failure(status, "
|
|
95648
|
+
throw this.failure(status, "BC current data extract order failed", body, raw);
|
|
96712
95649
|
}
|
|
96713
95650
|
return String(id);
|
|
96714
95651
|
});
|
|
96715
95652
|
}
|
|
96716
|
-
/** Polls the extract until the registry has it ready (`success`) and returns
|
|
95653
|
+
/** Polls the extract until the registry has it ready (`success`) and returns the extract. */
|
|
96717
95654
|
waitForCurrentDataExtract(_0, _1) {
|
|
96718
95655
|
return __async(this, arguments, function* (signature, extractId, opts = {}, poll = {}) {
|
|
96719
95656
|
const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_EXTRACT_POLL), poll);
|
|
@@ -96722,10 +95659,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96722
95659
|
const { status, ok, body, raw } = yield this.send(signature, "GET", `${DATA_EXTRACT_PATH}/${encodeURIComponent(extractId)}`, void 0, opts);
|
|
96723
95660
|
const state2 = String(body?.status ?? "").toLowerCase();
|
|
96724
95661
|
if (ok && state2 === "success") {
|
|
96725
|
-
return body;
|
|
95662
|
+
return body ?? {};
|
|
96726
95663
|
}
|
|
96727
95664
|
if (!ok || state2 === "failed" || state2 === "sourceunavailable") {
|
|
96728
|
-
throw this.failure(status, "
|
|
95665
|
+
throw this.failure(status, "BC current data extract failed", body, raw);
|
|
96729
95666
|
}
|
|
96730
95667
|
if (Date.now() >= deadline) {
|
|
96731
95668
|
throw new Error("The registry is still preparing the current data after 10 minutes. Please try again later.");
|
|
@@ -96740,23 +95677,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96740
95677
|
* saved request used to detect Entity changes.
|
|
96741
95678
|
*/
|
|
96742
95679
|
validate(_0, _1, _2, _3) {
|
|
96743
|
-
return __async(this, arguments, function* (signature, requestBody, extractId, context2, opts = {}
|
|
96744
|
-
const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_VALIDATE_RETRY), retry);
|
|
96745
|
-
const deadline = Date.now() + timeoutMs;
|
|
96746
|
-
for (; ; ) {
|
|
96747
|
-
try {
|
|
96748
|
-
return yield this.validateOnce(signature, requestBody, extractId, context2, opts);
|
|
96749
|
-
} catch (error) {
|
|
96750
|
-
if (!isExtractNotCompleted(error) || Date.now() >= deadline) {
|
|
96751
|
-
throw error;
|
|
96752
|
-
}
|
|
96753
|
-
yield this.sleep(intervalMs);
|
|
96754
|
-
}
|
|
96755
|
-
}
|
|
96756
|
-
});
|
|
96757
|
-
}
|
|
96758
|
-
validateOnce(signature, requestBody, extractId, context2, opts) {
|
|
96759
|
-
return __async(this, null, function* () {
|
|
95680
|
+
return __async(this, arguments, function* (signature, requestBody, extractId, context2, opts = {}) {
|
|
96760
95681
|
const { status, ok, body, raw } = yield this.send(signature, "POST", MAINTENANCE_FILING_PATH, {
|
|
96761
95682
|
currentDataServiceOrderId: extractId,
|
|
96762
95683
|
filingType: requestBody.filingType,
|
|
@@ -96906,6 +95827,83 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96906
95827
|
}
|
|
96907
95828
|
});
|
|
96908
95829
|
|
|
95830
|
+
// src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts
|
|
95831
|
+
function formatPostalCode(value) {
|
|
95832
|
+
const compact = clean(value).replace(/[\s-]+/g, "").toUpperCase();
|
|
95833
|
+
return compact.length === 6 ? `${compact.slice(0, 3)} ${compact.slice(3)}` : clean(value).toUpperCase();
|
|
95834
|
+
}
|
|
95835
|
+
function toEcoreAddress(address) {
|
|
95836
|
+
const line2 = clean(address?.addressLine2);
|
|
95837
|
+
return __spreadProps(__spreadValues({
|
|
95838
|
+
streetAddress: clean(address?.addressLine1)
|
|
95839
|
+
}, line2 ? { additionalStreetAddress: line2 } : {}), {
|
|
95840
|
+
city: clean(address?.city),
|
|
95841
|
+
provinceOrState: BC_PROVINCE_CODE,
|
|
95842
|
+
postalOrZipCode: formatPostalCode(address?.postalCode),
|
|
95843
|
+
country: CANADA_COUNTRY_CODE
|
|
95844
|
+
});
|
|
95845
|
+
}
|
|
95846
|
+
function isSameAddress(a, b) {
|
|
95847
|
+
const key = (x) => [x.streetAddress, x.additionalStreetAddress, x.city, x.provinceOrState, x.postalOrZipCode, x.country].map((v) => (v ?? "").trim().toLowerCase().replace(/\s+/g, " ")).join("|");
|
|
95848
|
+
return key(a) === key(b);
|
|
95849
|
+
}
|
|
95850
|
+
function buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData) {
|
|
95851
|
+
const registered = deltaData.registeredOffice;
|
|
95852
|
+
const records = deltaData.recordsOffice;
|
|
95853
|
+
const registeredMailing = toEcoreAddress(registered?.mailingAddress);
|
|
95854
|
+
const registeredDelivery = registered?.deliverySameAsMailing ? registeredMailing : toEcoreAddress(registered?.deliveryAddress);
|
|
95855
|
+
const recordsMailing = records?.sameAsRegisteredOffice ? registeredMailing : toEcoreAddress(records?.mailingAddress);
|
|
95856
|
+
const recordsDelivery = records?.sameAsRegisteredOffice ? registeredDelivery : records?.deliverySameAsMailing ? recordsMailing : toEcoreAddress(records?.deliveryAddress);
|
|
95857
|
+
const registeredDeliverySame = isSameAddress(registeredDelivery, registeredMailing);
|
|
95858
|
+
const recordsSameAsRegistered = isSameAddress(recordsMailing, registeredMailing);
|
|
95859
|
+
const recordsDeliverySame = isSameAddress(recordsDelivery, recordsMailing);
|
|
95860
|
+
const filing = {
|
|
95861
|
+
registeredOfficeMailingAddress: registeredMailing,
|
|
95862
|
+
isRegisteredOfficeDeliveryAddressSameAsMailing: registeredDeliverySame,
|
|
95863
|
+
isRecordsOfficeMailingAddressSameAsRegisteredOfficeMailing: recordsSameAsRegistered,
|
|
95864
|
+
isRecordsOfficeDeliveryAddressSameAsRecordsOfficeMailing: recordsDeliverySame,
|
|
95865
|
+
// Both are picked on the form; the fallbacks only cover data saved before they were added.
|
|
95866
|
+
companyEmail: clean(deltaData.companyEmail) || BritishColumbiaChangeOfOfficeAddressesFormHelper.resolveCompanyEmail(task),
|
|
95867
|
+
isAnnualReportReminderRequired: deltaData.annualReportReminder === BCAnnualReportReminder.Yes
|
|
95868
|
+
};
|
|
95869
|
+
const reference = clean(deltaData.referenceNumbers?.referenceNumber);
|
|
95870
|
+
const docket = clean(deltaData.referenceNumbers?.docketNumber);
|
|
95871
|
+
if (reference) {
|
|
95872
|
+
filing.reference = reference;
|
|
95873
|
+
}
|
|
95874
|
+
if (docket) {
|
|
95875
|
+
filing.docket = docket;
|
|
95876
|
+
}
|
|
95877
|
+
if (!registeredDeliverySame) {
|
|
95878
|
+
filing.registeredOfficeDeliveryAddress = registeredDelivery;
|
|
95879
|
+
}
|
|
95880
|
+
if (!recordsSameAsRegistered) {
|
|
95881
|
+
filing.recordsOfficeMailingAddress = recordsMailing;
|
|
95882
|
+
}
|
|
95883
|
+
if (!recordsDeliverySame) {
|
|
95884
|
+
filing.recordsOfficeDeliveryAddress = recordsDelivery;
|
|
95885
|
+
}
|
|
95886
|
+
return { filingType: "changeOfAddressFiling", filing };
|
|
95887
|
+
}
|
|
95888
|
+
function getBritishColumbiaAccessCode2(task, env) {
|
|
95889
|
+
const registryId = task.entity._profile.registry_id?.trim() ?? "";
|
|
95890
|
+
if (registryId) {
|
|
95891
|
+
return registryId;
|
|
95892
|
+
}
|
|
95893
|
+
return env === "TEST" ? TEMP_UAT_TEST_ACCESS_CODE : "";
|
|
95894
|
+
}
|
|
95895
|
+
var TEMP_UAT_TEST_ACCESS_CODE, BC_PROVINCE_CODE, CANADA_COUNTRY_CODE, clean;
|
|
95896
|
+
var init_british_columbia_change_of_office_addresses_mapper = __esm({
|
|
95897
|
+
"src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
|
|
95898
|
+
init_BritishColumbiaConstants();
|
|
95899
|
+
init_british_columbia_change_of_office_addresses_form_helper();
|
|
95900
|
+
TEMP_UAT_TEST_ACCESS_CODE = "xxxxxxxx";
|
|
95901
|
+
BC_PROVINCE_CODE = "BC";
|
|
95902
|
+
CANADA_COUNTRY_CODE = "CA";
|
|
95903
|
+
clean = (value) => (value ?? "").trim();
|
|
95904
|
+
}
|
|
95905
|
+
});
|
|
95906
|
+
|
|
96909
95907
|
// src/app/components/filing/filing.component.ts
|
|
96910
95908
|
function FilingComponent_Conditional_7_Template(rf, ctx) {
|
|
96911
95909
|
if (rf & 1) {
|
|
@@ -97021,18 +96019,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97021
96019
|
\u0275\u0275restoreView(_r6);
|
|
97022
96020
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
97023
96021
|
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfOfficeAddressesSubmit());
|
|
97024
|
-
})("arValidate", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_arValidate_0_listener($event) {
|
|
97025
|
-
\u0275\u0275restoreView(_r6);
|
|
97026
|
-
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
97027
|
-
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaAnnualReportValidate($event));
|
|
97028
|
-
})("saveArDeltaData", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_saveArDeltaData_0_listener($event) {
|
|
97029
|
-
\u0275\u0275restoreView(_r6);
|
|
97030
|
-
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
97031
|
-
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaAnnualReportSave($event));
|
|
97032
|
-
})("arSubmit", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_arSubmit_0_listener() {
|
|
97033
|
-
\u0275\u0275restoreView(_r6);
|
|
97034
|
-
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
97035
|
-
return \u0275\u0275resetView(ctx_r2.onBritishColumbiaAnnualReportSubmit());
|
|
97036
96022
|
})("formationValidate", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_formationValidate_0_listener($event) {
|
|
97037
96023
|
\u0275\u0275restoreView(_r6);
|
|
97038
96024
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
@@ -97051,7 +96037,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97051
96037
|
if (rf & 2) {
|
|
97052
96038
|
const ctx_r2 = \u0275\u0275nextContext(2);
|
|
97053
96039
|
const currentTask_r5 = \u0275\u0275readContextLet(9);
|
|
97054
|
-
\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())("
|
|
96040
|
+
\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());
|
|
97055
96041
|
}
|
|
97056
96042
|
}
|
|
97057
96043
|
function FilingComponent_Conditional_10_Conditional_2_Template(rf, ctx) {
|
|
@@ -97139,7 +96125,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97139
96125
|
init_federal_update_maintain_service();
|
|
97140
96126
|
init_ontario_update_maintain_service();
|
|
97141
96127
|
init_initial_return_payload_helper();
|
|
97142
|
-
init_british_columbia_annual_report_mapper();
|
|
97143
96128
|
init_ontario_formation_mapper();
|
|
97144
96129
|
init_federal_formation_mapper();
|
|
97145
96130
|
init_ontario_update_maintain_mapper();
|
|
@@ -97224,13 +96209,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97224
96209
|
dataWasChanged = signal(false);
|
|
97225
96210
|
serviceOrderId = "";
|
|
97226
96211
|
bcCurrentDataServiceOrderId = "";
|
|
96212
|
+
/** The registry's current data ordered for the Change of Office Addresses; reused by Validate. */
|
|
96213
|
+
bcCoaExtractId = "";
|
|
96214
|
+
/** False while the registry's current office addresses are loading. */
|
|
96215
|
+
bcCoaExtractReady = signal(true);
|
|
96216
|
+
/** Numbers the loads, so a load for a task that is no longer the active one cannot publish. */
|
|
96217
|
+
bcCoaLoadId = 0;
|
|
97227
96218
|
currentDataExtract = signal(void 0);
|
|
97228
96219
|
bcDataExtractTaskId = "";
|
|
97229
|
-
// BC Annual Report: the registry's current data, ordered when the task opens (like Change of Directors).
|
|
97230
|
-
bcAnnualReportExtract = signal(void 0);
|
|
97231
|
-
bcAnnualReportExtractId = "";
|
|
97232
|
-
bcAnnualReportExtractOfficers;
|
|
97233
|
-
bcAnnualReportExtractTaskId = "";
|
|
97234
96220
|
activeStep = signal(Step.Validate);
|
|
97235
96221
|
isLoading = signal(false);
|
|
97236
96222
|
validationConfig = signal(null);
|
|
@@ -97249,7 +96235,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97249
96235
|
return `File ${jurisdiction} Notice of Change`;
|
|
97250
96236
|
}
|
|
97251
96237
|
if (isAnnualReturnTask(task)) {
|
|
97252
|
-
return
|
|
96238
|
+
return `File ${jurisdiction} Annual Return`;
|
|
97253
96239
|
}
|
|
97254
96240
|
if (isFormationTask2(task)) {
|
|
97255
96241
|
return `File ${jurisdiction} Articles of Incorporation`;
|
|
@@ -97299,15 +96285,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97299
96285
|
}
|
|
97300
96286
|
}
|
|
97301
96287
|
if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
|
|
97302
|
-
if (task.deltaData?.validatedData) {
|
|
97303
|
-
this.bcCurrentDataServiceOrderId = task.deltaData.validatedData.currentDataServiceOrderId ?? "";
|
|
97304
|
-
this.bcDataExtractTaskId = task._id;
|
|
97305
|
-
return;
|
|
97306
|
-
}
|
|
97307
96288
|
const signature = this._signature();
|
|
97308
96289
|
if (!signature)
|
|
97309
96290
|
return;
|
|
97310
|
-
this.bcDataExtractTaskId = task._id;
|
|
97311
96291
|
const { request, issues } = buildBritishColumbiaDataExtractOrder(task, deltaData?.companyPassword);
|
|
97312
96292
|
if (issues.length) {
|
|
97313
96293
|
this.errors.set(issues);
|
|
@@ -97317,21 +96297,69 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97317
96297
|
try {
|
|
97318
96298
|
this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
|
|
97319
96299
|
this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
|
|
96300
|
+
this.bcDataExtractTaskId = task._id;
|
|
97320
96301
|
} catch (error) {
|
|
97321
96302
|
this.handleCatchError(error);
|
|
97322
96303
|
} finally {
|
|
97323
96304
|
this.isLoading.set(false);
|
|
97324
96305
|
}
|
|
97325
96306
|
}
|
|
97326
|
-
if (
|
|
97327
|
-
if (
|
|
97328
|
-
this.bcAnnualReportExtractTaskId = task._id;
|
|
96307
|
+
if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
|
|
96308
|
+
if (!this._signature()) {
|
|
97329
96309
|
return;
|
|
97330
96310
|
}
|
|
97331
|
-
|
|
96311
|
+
this.bcDataExtractTaskId = task._id;
|
|
96312
|
+
yield this.loadBritishColumbiaOfficeAddressExtract(task);
|
|
97332
96313
|
}
|
|
97333
96314
|
}));
|
|
97334
96315
|
}
|
|
96316
|
+
/**
|
|
96317
|
+
* Orders the registry's current office addresses as soon as the Change of Office Addresses opens,
|
|
96318
|
+
* so each office shows its registry address as "Previous". If the registry is unavailable the error
|
|
96319
|
+
* is shown, the form falls back to the Entity's own addresses, and Validate orders the extract again.
|
|
96320
|
+
*/
|
|
96321
|
+
loadBritishColumbiaOfficeAddressExtract(task) {
|
|
96322
|
+
return __async(this, null, function* () {
|
|
96323
|
+
const signature = this._signature();
|
|
96324
|
+
if (!signature) {
|
|
96325
|
+
return;
|
|
96326
|
+
}
|
|
96327
|
+
const loadId = ++this.bcCoaLoadId;
|
|
96328
|
+
const isLatest = () => loadId === this.bcCoaLoadId;
|
|
96329
|
+
const isActive = () => isLatest() && this.task()?._id === task._id;
|
|
96330
|
+
this.bcCoaExtractId = "";
|
|
96331
|
+
this.isLoading.set(true);
|
|
96332
|
+
this.bcCoaExtractReady.set(false);
|
|
96333
|
+
try {
|
|
96334
|
+
const opts = this.validateOptions() ?? {};
|
|
96335
|
+
const context2 = this.getBritishColumbiaOfficeAddressContext(task, signature);
|
|
96336
|
+
const extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
96337
|
+
const extract = yield this.bcMaintenanceService.waitForCurrentDataExtract(signature, extractId, opts);
|
|
96338
|
+
if (isActive()) {
|
|
96339
|
+
this.bcCoaExtractId = extractId;
|
|
96340
|
+
this.currentDataExtract.set(extract);
|
|
96341
|
+
}
|
|
96342
|
+
} catch (error) {
|
|
96343
|
+
if (isActive()) {
|
|
96344
|
+
this.bcCoaExtractId = "";
|
|
96345
|
+
this.currentDataExtract.set(void 0);
|
|
96346
|
+
this.handleCatchError(error);
|
|
96347
|
+
}
|
|
96348
|
+
} finally {
|
|
96349
|
+
if (isLatest()) {
|
|
96350
|
+
this.bcCoaExtractReady.set(true);
|
|
96351
|
+
this.isLoading.set(false);
|
|
96352
|
+
}
|
|
96353
|
+
}
|
|
96354
|
+
});
|
|
96355
|
+
}
|
|
96356
|
+
getBritishColumbiaOfficeAddressContext(task, signature) {
|
|
96357
|
+
return {
|
|
96358
|
+
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
96359
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode2(task, signature.env),
|
|
96360
|
+
incorporationDate: String(task.entity._compliance?.incorporation_date ?? "").slice(0, 10)
|
|
96361
|
+
};
|
|
96362
|
+
}
|
|
97335
96363
|
getCurrentData() {
|
|
97336
96364
|
return __async(this, null, function* () {
|
|
97337
96365
|
const signature = this._signature();
|
|
@@ -97612,109 +96640,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97612
96640
|
}
|
|
97613
96641
|
});
|
|
97614
96642
|
}
|
|
97615
|
-
/**
|
|
97616
|
-
* British Columbia Annual Report "Validate & Generate Draft": orders the registry's current data,
|
|
97617
|
-
* sends the filing to eCore, hands the draft PDF to the host, and saves the delta together with
|
|
97618
|
-
* the ServiceOrderId and the request sent (`validatedData`) used to detect later Entity changes.
|
|
97619
|
-
*/
|
|
97620
|
-
onBritishColumbiaAnnualReportValidate(deltaData) {
|
|
97621
|
-
return __async(this, null, function* () {
|
|
97622
|
-
const task = this.task();
|
|
97623
|
-
const signature = this._signature();
|
|
97624
|
-
try {
|
|
97625
|
-
if (!task || !signature || !isAnnualReturnTask(task)) {
|
|
97626
|
-
throw new Error("The filing is not ready yet. Please try again.");
|
|
97627
|
-
}
|
|
97628
|
-
this.isLoading.set(true);
|
|
97629
|
-
this.errors.set([]);
|
|
97630
|
-
const opts = this.validateOptions() ?? {};
|
|
97631
|
-
const context2 = buildBCAnnualReportContext(task, signature.env);
|
|
97632
|
-
let extractId = this.bcAnnualReportExtractId;
|
|
97633
|
-
let extractOfficers = this.bcAnnualReportExtractOfficers;
|
|
97634
|
-
if (!extractId || !extractOfficers) {
|
|
97635
|
-
extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
97636
|
-
const extract = yield this.bcMaintenanceService.waitForCurrentDataExtract(signature, extractId, opts);
|
|
97637
|
-
extractOfficers = toBCExtractOfficers(extract.dataExtract);
|
|
97638
|
-
this.bcAnnualReportExtractId = extractId;
|
|
97639
|
-
this.bcAnnualReportExtractOfficers = extractOfficers;
|
|
97640
|
-
}
|
|
97641
|
-
const requestBody = buildBCAnnualReportValidateRequest(task, deltaData, extractOfficers);
|
|
97642
|
-
const response = yield this.bcMaintenanceService.validate(signature, requestBody, extractId, context2, opts);
|
|
97643
|
-
if (this.hasResponseErrors(response))
|
|
97644
|
-
return;
|
|
97645
|
-
const serviceOrderId = response.ServiceOrderId ?? "";
|
|
97646
|
-
const draftPdf = response.Draft ?? "";
|
|
97647
|
-
const searchOrFilingType = getSearchOrFilingType(task);
|
|
97648
|
-
if (draftPdf && searchOrFilingType) {
|
|
97649
|
-
this.filingValidateSuccess.emit({
|
|
97650
|
-
searchOrFilingType,
|
|
97651
|
-
serviceOrderId,
|
|
97652
|
-
validatedOn: /* @__PURE__ */ new Date(),
|
|
97653
|
-
provider: getFilingProvider(task),
|
|
97654
|
-
draftPdf,
|
|
97655
|
-
documentName: this.validateOptions()?.documentName ?? "British Columbia Annual Report Draft",
|
|
97656
|
-
documentType: "pdf"
|
|
97657
|
-
});
|
|
97658
|
-
}
|
|
97659
|
-
this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
|
|
97660
|
-
serviceOrderId,
|
|
97661
|
-
// The corporation number is added by the service, not by the request builder, so it is
|
|
97662
|
-
// stored explicitly (the access code is deliberately left out) to detect entity changes. The
|
|
97663
|
-
// extract officers are the registry data the edits were matched against, so reopening rebuilds
|
|
97664
|
-
// the same request without ordering the extract again.
|
|
97665
|
-
validatedData: __spreadProps(__spreadValues({}, JSON.parse(JSON.stringify(requestBody))), {
|
|
97666
|
-
corporationNumber: context2.corporationNumber,
|
|
97667
|
-
extractOfficers
|
|
97668
|
-
})
|
|
97669
|
-
}));
|
|
97670
|
-
this.close.emit();
|
|
97671
|
-
} catch (response) {
|
|
97672
|
-
this.handleCatchError(response);
|
|
97673
|
-
} finally {
|
|
97674
|
-
this.isLoading.set(false);
|
|
97675
|
-
}
|
|
97676
|
-
});
|
|
97677
|
-
}
|
|
97678
|
-
/**
|
|
97679
|
-
* British Columbia Annual Report save – propagates delta data to the host.
|
|
97680
|
-
* The draft link (ServiceOrderId and the request it was generated from) is kept, so reopening
|
|
97681
|
-
* can tell whether the saved data still matches the draft and show "Entity changed" if not.
|
|
97682
|
-
*/
|
|
97683
|
-
onBritishColumbiaAnnualReportSave(deltaData) {
|
|
97684
|
-
const oldDeltaData = this.task()?.deltaData;
|
|
97685
|
-
const draftLink = oldDeltaData?.serviceOrderId && oldDeltaData?.validatedData ? {
|
|
97686
|
-
serviceOrderId: oldDeltaData.serviceOrderId,
|
|
97687
|
-
validatedData: oldDeltaData.validatedData
|
|
97688
|
-
} : {};
|
|
97689
|
-
if (oldDeltaData) {
|
|
97690
|
-
delete this.task()?.deltaData;
|
|
97691
|
-
}
|
|
97692
|
-
this.deltaDataChange.emit(__spreadValues(__spreadValues({}, deltaData), draftLink));
|
|
97693
|
-
}
|
|
97694
|
-
/**
|
|
97695
|
-
* British Columbia Annual Report submit/file: submits the filing staged by "Validate & Generate
|
|
97696
|
-
* Draft" using the ServiceOrderId saved with the delta. There is no certification step.
|
|
97697
|
-
*/
|
|
97698
|
-
onBritishColumbiaAnnualReportSubmit() {
|
|
97699
|
-
return __async(this, null, function* () {
|
|
97700
|
-
const signature = this._signature();
|
|
97701
|
-
const serviceOrderId = this.task()?.deltaData?.serviceOrderId;
|
|
97702
|
-
if (!signature || !serviceOrderId) {
|
|
97703
|
-
this.handleCatchError(new Error("Missing serviceOrderId. Generate a draft before filing."));
|
|
97704
|
-
return;
|
|
97705
|
-
}
|
|
97706
|
-
try {
|
|
97707
|
-
this.isLoading.set(true);
|
|
97708
|
-
this.errors.set([]);
|
|
97709
|
-
yield this.bcMaintenanceService.submitAndWait(signature, serviceOrderId, this.validateOptions() ?? {});
|
|
97710
|
-
this.close.emit();
|
|
97711
|
-
} catch (response) {
|
|
97712
|
-
this.handleCatchError(response);
|
|
97713
|
-
} finally {
|
|
97714
|
-
this.isLoading.set(false);
|
|
97715
|
-
}
|
|
97716
|
-
});
|
|
97717
|
-
}
|
|
97718
96643
|
/**
|
|
97719
96644
|
* British Columbia Change of Office Addresses "Validate & Generate Draft": sends the filing
|
|
97720
96645
|
* to eCore, hands the draft PDF to the host, and saves the delta together with the
|
|
@@ -97730,15 +96655,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
97730
96655
|
}
|
|
97731
96656
|
this.isLoading.set(true);
|
|
97732
96657
|
this.errors.set([]);
|
|
97733
|
-
const requestBody = buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData);
|
|
97734
96658
|
const opts = this.validateOptions() ?? {};
|
|
97735
|
-
const context2 =
|
|
97736
|
-
|
|
97737
|
-
|
|
97738
|
-
|
|
97739
|
-
|
|
97740
|
-
|
|
97741
|
-
|
|
96659
|
+
const context2 = this.getBritishColumbiaOfficeAddressContext(task, signature);
|
|
96660
|
+
const extractId = this.bcCoaExtractId;
|
|
96661
|
+
if (!extractId) {
|
|
96662
|
+
this.errors.set(["The current BC data extract is not ready yet. Please wait and try again."]);
|
|
96663
|
+
return;
|
|
96664
|
+
}
|
|
96665
|
+
const requestBody = buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData);
|
|
97742
96666
|
const response = yield this.bcMaintenanceService.validate(signature, requestBody, extractId, context2, opts);
|
|
97743
96667
|
if (this.hasResponseErrors(response))
|
|
97744
96668
|
return;
|
|
@@ -98034,73 +96958,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98034
96958
|
const task = this.task();
|
|
98035
96959
|
if (!task)
|
|
98036
96960
|
return;
|
|
98037
|
-
if (isUpdateMaintain(task)
|
|
96961
|
+
if (isUpdateMaintain(task)) {
|
|
98038
96962
|
this.serviceOrderId = "";
|
|
98039
96963
|
void this.getCurrentData();
|
|
98040
|
-
} else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
98041
|
-
this.bcDataExtractTaskId = "";
|
|
98042
|
-
void this.refreshBritishColumbiaCurrentDataExtract();
|
|
98043
|
-
} else if (isAnnualReturnTask(task) && isBritishColumbiaTask(task)) {
|
|
98044
|
-
void this.loadBritishColumbiaAnnualReportExtract();
|
|
98045
96964
|
}
|
|
98046
96965
|
this.activeStep.set(Step.Validate);
|
|
98047
96966
|
}
|
|
98048
|
-
refreshBritishColumbiaCurrentDataExtract() {
|
|
98049
|
-
return __async(this, null, function* () {
|
|
98050
|
-
const task = this.task();
|
|
98051
|
-
const signature = this._signature();
|
|
98052
|
-
if (!task || !signature || !isChangeOfPrincipalsTask(task))
|
|
98053
|
-
return;
|
|
98054
|
-
const { request, issues } = buildBritishColumbiaDataExtractOrder(task, task.deltaData?.companyPassword);
|
|
98055
|
-
if (issues.length) {
|
|
98056
|
-
this.errors.set(issues);
|
|
98057
|
-
return;
|
|
98058
|
-
}
|
|
98059
|
-
this.isLoading.set(true);
|
|
98060
|
-
try {
|
|
98061
|
-
this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
|
|
98062
|
-
this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
|
|
98063
|
-
this.bcDataExtractTaskId = task._id;
|
|
98064
|
-
} catch (error) {
|
|
98065
|
-
this.handleCatchError(error);
|
|
98066
|
-
} finally {
|
|
98067
|
-
this.isLoading.set(false);
|
|
98068
|
-
}
|
|
98069
|
-
});
|
|
98070
|
-
}
|
|
98071
|
-
/**
|
|
98072
|
-
* Orders the registry's current data for the BC Annual Report as soon as the task opens, as Change of
|
|
98073
|
-
* Directors does, and keeps what it holds: an incoming officer who is already an officer there is
|
|
98074
|
-
* filed as an edit, not an add. If this fails, Validate orders the extract again.
|
|
98075
|
-
*/
|
|
98076
|
-
loadBritishColumbiaAnnualReportExtract() {
|
|
98077
|
-
return __async(this, null, function* () {
|
|
98078
|
-
const task = this.task();
|
|
98079
|
-
const signature = this._signature();
|
|
98080
|
-
if (!task || !signature || !isAnnualReturnTask(task))
|
|
98081
|
-
return;
|
|
98082
|
-
this.bcAnnualReportExtractTaskId = task._id;
|
|
98083
|
-
this.bcAnnualReportExtractId = "";
|
|
98084
|
-
this.bcAnnualReportExtractOfficers = void 0;
|
|
98085
|
-
this.bcAnnualReportExtract.set(void 0);
|
|
98086
|
-
this.errors.set([]);
|
|
98087
|
-
this.isLoading.set(true);
|
|
98088
|
-
try {
|
|
98089
|
-
const opts = this.validateOptions() ?? {};
|
|
98090
|
-
const context2 = buildBCAnnualReportContext(task, signature.env);
|
|
98091
|
-
const extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
98092
|
-
const extract = yield this.bcMaintenanceService.waitForCurrentDataExtract(signature, extractId, opts);
|
|
98093
|
-
const officers = toBCExtractOfficers(extract.dataExtract);
|
|
98094
|
-
this.bcAnnualReportExtractId = extractId;
|
|
98095
|
-
this.bcAnnualReportExtractOfficers = officers;
|
|
98096
|
-
this.bcAnnualReportExtract.set(officers);
|
|
98097
|
-
} catch (error) {
|
|
98098
|
-
this.handleCatchError(error);
|
|
98099
|
-
} finally {
|
|
98100
|
-
this.isLoading.set(false);
|
|
98101
|
-
}
|
|
98102
|
-
});
|
|
98103
|
-
}
|
|
98104
96967
|
parseError(errors) {
|
|
98105
96968
|
return errors.map((item) => (item["ErrorMessage"] ?? item["Message"] ?? "").toString().trim()).filter((message) => message.length > 0);
|
|
98106
96969
|
}
|
|
@@ -98213,8 +97076,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98213
97076
|
initialDelta = isOntarioTask(task) ? this.deltaState.formationInitialDelta() : isBritishColumbiaTask(task) ? this.deltaState.bcFormationInitialDelta() : this.deltaState.federalFormationInitialDelta();
|
|
98214
97077
|
} else if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
|
|
98215
97078
|
initialDelta = this.deltaState.bcChangeOfOfficeAddressesInitialDelta();
|
|
98216
|
-
} else if (isAnnualReturnTask(task) && isBritishColumbiaTask(task)) {
|
|
98217
|
-
initialDelta = this.deltaState.bcAnnualReportInitialDelta();
|
|
98218
97079
|
} else if (isUpdateMaintain(task)) {
|
|
98219
97080
|
initialDelta = isOntarioTask(task) ? this.deltaState.initialReturnInitialDelta() : this.deltaState.federalUpdateMaintainInitialDelta();
|
|
98220
97081
|
} else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
@@ -98253,13 +97114,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98253
97114
|
corporationNumber: task.entity._profile.corp_number ?? ""
|
|
98254
97115
|
});
|
|
98255
97116
|
}
|
|
98256
|
-
if (isAnnualReturnTask(task) && isBritishColumbiaTask(task)) {
|
|
98257
|
-
const extractOfficers = deltaData?.validatedData?.extractOfficers ?? [];
|
|
98258
|
-
return __spreadProps(__spreadValues({}, buildBCAnnualReportValidateRequest(task, deltaData, extractOfficers)), {
|
|
98259
|
-
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
98260
|
-
extractOfficers
|
|
98261
|
-
});
|
|
98262
|
-
}
|
|
98263
97117
|
if (isUpdateMaintain(task) && isOntarioTask(task)) {
|
|
98264
97118
|
const serviceOrderId = deltaData?.serviceOrderId ?? this.serviceOrderId;
|
|
98265
97119
|
if (!serviceOrderId) {
|
|
@@ -98288,7 +97142,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98288
97142
|
if (rf & 2) {
|
|
98289
97143
|
\u0275\u0275styleProp("height", ctx.modalHeight());
|
|
98290
97144
|
}
|
|
98291
|
-
}, 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", "
|
|
97145
|
+
}, 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) {
|
|
98292
97146
|
if (rf & 1) {
|
|
98293
97147
|
const _r1 = \u0275\u0275getCurrentView();
|
|
98294
97148
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
@@ -98392,7 +97246,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98392
97246
|
[actionsDisabled]="isLoading()"\r
|
|
98393
97247
|
[errors]="errors()"\r
|
|
98394
97248
|
[currentDataExtract]="currentDataExtract()"\r
|
|
98395
|
-
[
|
|
97249
|
+
[extractReady]="bcCoaExtractReady()"\r
|
|
98396
97250
|
(close)="close.emit()"\r
|
|
98397
97251
|
(nextStep)="onNextStepClick()"\r
|
|
98398
97252
|
(recheckStep)="defineInitialStep()"\r
|
|
@@ -98403,9 +97257,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98403
97257
|
(coaValidate)="onBritishColumbiaChangeOfOfficeAddressesValidate($event)"\r
|
|
98404
97258
|
(saveCoaDeltaData)="onBritishColumbiaChangeOfOfficeAddressesSave($event)"\r
|
|
98405
97259
|
(coaSubmit)="onBritishColumbiaChangeOfOfficeAddressesSubmit()"\r
|
|
98406
|
-
(arValidate)="onBritishColumbiaAnnualReportValidate($event)"\r
|
|
98407
|
-
(saveArDeltaData)="onBritishColumbiaAnnualReportSave($event)"\r
|
|
98408
|
-
(arSubmit)="onBritishColumbiaAnnualReportSubmit()"\r
|
|
98409
97260
|
(formationValidate)="onBritishColumbiaFormationValidate($event)"\r
|
|
98410
97261
|
(saveFormationDeltaData)="onBritishColumbiaFormationSave($event)"\r
|
|
98411
97262
|
(formationSubmit)="onBritishColumbiaFormationSubmit()"\r
|
|
@@ -98439,7 +97290,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
98439
97290
|
}], () => [], null);
|
|
98440
97291
|
})();
|
|
98441
97292
|
(() => {
|
|
98442
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber:
|
|
97293
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 98 });
|
|
98443
97294
|
})();
|
|
98444
97295
|
}
|
|
98445
97296
|
});
|
|
@@ -103089,19 +101940,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
103089
101940
|
"File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
|
|
103090
101941
|
"Records Office Address": "Records Office Address",
|
|
103091
101942
|
"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.",
|
|
101943
|
+
"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.",
|
|
101944
|
+
"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.",
|
|
101945
|
+
"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.",
|
|
101946
|
+
"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.",
|
|
101947
|
+
"Mailing Address": "Mailing Address",
|
|
101948
|
+
"Delivery Address": "Delivery Address",
|
|
103092
101949
|
"Current Mailing Address": "Current Mailing Address",
|
|
103093
101950
|
"Current Delivery Address": "Current Delivery Address",
|
|
103094
101951
|
"New Mailing Address": "New Mailing Address",
|
|
103095
101952
|
"New Delivery Address": "New Delivery Address",
|
|
103096
101953
|
"Same as Mailing Address": "Same as Mailing Address",
|
|
103097
101954
|
"Same as Registered Office": "Same as Registered Office",
|
|
103098
|
-
"The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.": "The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable."
|
|
103099
|
-
"Company Name": "Company Name",
|
|
103100
|
-
"Name Reservation (NR) Number": "Name Reservation (NR) Number",
|
|
103101
|
-
"File British Columbia Annual Report": "File British Columbia Annual Report",
|
|
103102
|
-
"Would the company like to receive reminders to file its annual reports": "Would the company like to receive reminders to file its annual reports",
|
|
103103
|
-
"Company Email is required": "Company Email is required",
|
|
103104
|
-
"The draft is missing its Service Order ID. Close this window and generate a new draft.": "The draft is missing its Service Order ID. Close this window and generate a new draft."
|
|
101955
|
+
"The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.": "The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable."
|
|
103105
101956
|
};
|
|
103106
101957
|
}
|
|
103107
101958
|
});
|
|
@@ -103451,16 +102302,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
103451
102302
|
"Without Par Value": "Sans valeur nominale",
|
|
103452
102303
|
"File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
|
|
103453
102304
|
"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.",
|
|
102305
|
+
"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.",
|
|
102306
|
+
"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.",
|
|
102307
|
+
"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.",
|
|
102308
|
+
"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.",
|
|
102309
|
+
"Mailing Address": "Adresse postale",
|
|
102310
|
+
"Delivery Address": "Adresse de livraison",
|
|
103454
102311
|
"Current Mailing Address": "Adresse postale actuelle",
|
|
103455
102312
|
"Current Delivery Address": "Adresse de livraison actuelle",
|
|
103456
102313
|
"New Mailing Address": "Nouvelle adresse postale",
|
|
103457
102314
|
"New Delivery Address": "Nouvelle adresse de livraison",
|
|
103458
102315
|
"Same as Mailing Address": "Identique \xE0 l'adresse postale",
|
|
103459
102316
|
"Same as Registered Office": "Identique au si\xE8ge social",
|
|
103460
|
-
"The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.": "L'adresse de livraison doit \xEAtre un lieu physique en Colombie-Britannique o\xF9 des documents peuvent \xEAtre livr\xE9s pendant les heures d'ouverture l\xE9gales. Une case postale n'est pas accept\xE9e."
|
|
103461
|
-
"File British Columbia Articles of Incorporation": "D\xE9poser les statuts constitutifs de la Colombie-Britannique",
|
|
103462
|
-
"Company Name": "Nom de la soci\xE9t\xE9",
|
|
103463
|
-
"Name Reservation (NR) Number": "Num\xE9ro de r\xE9servation de nom (NR)"
|
|
102317
|
+
"The delivery address must be a physical location in British Columbia where documents can be delivered during statutory business hours. A post office box is not acceptable.": "L'adresse de livraison doit \xEAtre un lieu physique en Colombie-Britannique o\xF9 des documents peuvent \xEAtre livr\xE9s pendant les heures d'ouverture l\xE9gales. Une case postale n'est pas accept\xE9e."
|
|
103464
102318
|
};
|
|
103465
102319
|
}
|
|
103466
102320
|
});
|