@dyedurham/search-and-file-widget 2.1.16 → 2.1.17
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 +381 -313
- package/package.json +10 -10
package/dnd-filing-shell.js
CHANGED
|
@@ -85129,7 +85129,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85129
85129
|
Controls2.PostalCode
|
|
85130
85130
|
];
|
|
85131
85131
|
BritishColumbiaChangeOfOfficeAddressesFormHelper = class {
|
|
85132
|
-
static generateConfig(task, _translateFn) {
|
|
85132
|
+
static generateConfig(task, _translateFn, currentDataExtract) {
|
|
85133
85133
|
const affiliations = task.entity.affiliations ?? [];
|
|
85134
85134
|
const delta = task.deltaData;
|
|
85135
85135
|
const format = BritishColumbiaFormationFormHelper.formatFullAddress;
|
|
@@ -85137,7 +85137,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85137
85137
|
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85138
85138
|
const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
85139
85139
|
const incoming = this.incomingOfficeAddresses(task);
|
|
85140
|
-
const
|
|
85140
|
+
const extract = this.officeExtract(currentDataExtract);
|
|
85141
|
+
const incomingSeed = delta?.registeredOffice ? this.fillEmptyAddresses(delta, incoming) : this.seedFromIncomingAffiliations(task);
|
|
85142
|
+
const seed = this.withCurrentAddresses(incomingSeed, incoming, delta, registeredOffice, recordsOffice, extract);
|
|
85141
85143
|
const config2 = {};
|
|
85142
85144
|
config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
|
|
85143
85145
|
config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
|
|
@@ -85150,8 +85152,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85150
85152
|
});
|
|
85151
85153
|
const regDeliverySame = seed.registeredOffice?.deliverySameAsMailing ?? true;
|
|
85152
85154
|
config2[BCChangeOfOfficeAddressesFormGroups.RegisteredOfficeAddress] = new FormGroup({
|
|
85153
|
-
[Controls2.CurrentMailingAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Mailing"))),
|
|
85154
|
-
[Controls2.CurrentDeliveryAddress]: this.readOnly(format(pick(registeredOffice?.addresses, "Delivery"))),
|
|
85155
|
+
[Controls2.CurrentMailingAddress]: this.readOnly(this.previousText(extract, "regMailing", format(pick(registeredOffice?.addresses, "Mailing")))),
|
|
85156
|
+
[Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "regDelivery", format(pick(registeredOffice?.addresses, "Delivery")))),
|
|
85155
85157
|
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.mailingAddress, true),
|
|
85156
85158
|
[Controls2.DeliverySameAsMailing]: new FormControl(regDeliverySame),
|
|
85157
85159
|
[Controls2.NewDeliveryAddress]: this.createOfficeAddressFormGroup(seed.registeredOffice?.deliveryAddress, !regDeliverySame)
|
|
@@ -85159,8 +85161,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85159
85161
|
const recSameAsRegistered = seed.recordsOffice?.sameAsRegisteredOffice ?? true;
|
|
85160
85162
|
const recDeliverySame = seed.recordsOffice?.deliverySameAsMailing ?? true;
|
|
85161
85163
|
config2[BCChangeOfOfficeAddressesFormGroups.RecordsOfficeAddress] = new FormGroup({
|
|
85162
|
-
[Controls2.CurrentMailingAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Mailing"))),
|
|
85163
|
-
[Controls2.CurrentDeliveryAddress]: this.readOnly(format(pick(recordsOffice?.addresses, "Delivery"))),
|
|
85164
|
+
[Controls2.CurrentMailingAddress]: this.readOnly(this.previousText(extract, "recMailing", format(pick(recordsOffice?.addresses, "Mailing")))),
|
|
85165
|
+
[Controls2.CurrentDeliveryAddress]: this.readOnly(this.previousText(extract, "recDelivery", format(pick(recordsOffice?.addresses, "Delivery")))),
|
|
85164
85166
|
[Controls2.SameAsRegisteredOffice]: new FormControl(recSameAsRegistered),
|
|
85165
85167
|
[Controls2.NewMailingAddress]: this.createOfficeAddressFormGroup(seed.recordsOffice?.mailingAddress, !recSameAsRegistered),
|
|
85166
85168
|
[Controls2.DeliverySameAsMailing]: new FormControl(recDeliverySame),
|
|
@@ -85209,6 +85211,98 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85209
85211
|
}
|
|
85210
85212
|
};
|
|
85211
85213
|
}
|
|
85214
|
+
/**
|
|
85215
|
+
* For an office with neither an incoming address nor a saved draft, the new address is its
|
|
85216
|
+
* current address on the register (so the filing leaves it unchanged). A current address outside
|
|
85217
|
+
* British Columbia is not used: the office is then reported as missing.
|
|
85218
|
+
*/
|
|
85219
|
+
static withCurrentAddresses(seed, incoming, delta, registeredOffice, recordsOffice, extract) {
|
|
85220
|
+
const pickBy = BritishColumbiaFormationFormHelper.pickAddress;
|
|
85221
|
+
const current = (office, type, key) => {
|
|
85222
|
+
if (extract) {
|
|
85223
|
+
const registry = extract[key];
|
|
85224
|
+
return registry && this.isBritishColumbiaExtract(registry) ? this.extractToOfficeAddressDelta(registry) : void 0;
|
|
85225
|
+
}
|
|
85226
|
+
const address = pickBy(office?.addresses, type);
|
|
85227
|
+
return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
|
|
85228
|
+
};
|
|
85229
|
+
const result = __spreadValues({}, seed);
|
|
85230
|
+
if (!delta?.registeredOffice && !incoming.regMailing) {
|
|
85231
|
+
const mailing = current(registeredOffice, "Mailing", "regMailing");
|
|
85232
|
+
const delivery = current(registeredOffice, "Delivery", "regDelivery");
|
|
85233
|
+
if (mailing) {
|
|
85234
|
+
const same = !delivery || this.isSameOfficeAddress(delivery, mailing);
|
|
85235
|
+
result.registeredOffice = {
|
|
85236
|
+
mailingAddress: mailing,
|
|
85237
|
+
deliverySameAsMailing: same,
|
|
85238
|
+
deliveryAddress: same ? void 0 : delivery
|
|
85239
|
+
};
|
|
85240
|
+
}
|
|
85241
|
+
}
|
|
85242
|
+
if (!delta?.recordsOffice && !incoming.recMailing) {
|
|
85243
|
+
const mailing = current(recordsOffice, "Mailing", "recMailing");
|
|
85244
|
+
const delivery = current(recordsOffice, "Delivery", "recDelivery");
|
|
85245
|
+
if (mailing) {
|
|
85246
|
+
const registeredMailing = result.registeredOffice?.mailingAddress;
|
|
85247
|
+
const registeredDelivery = result.registeredOffice?.deliveryAddress ?? registeredMailing;
|
|
85248
|
+
const sameAsRegistered = this.isSameOfficeAddress(mailing, registeredMailing) && this.isSameOfficeAddress(delivery ?? mailing, registeredDelivery);
|
|
85249
|
+
const deliverySame = !delivery || this.isSameOfficeAddress(delivery, mailing);
|
|
85250
|
+
result.recordsOffice = {
|
|
85251
|
+
sameAsRegisteredOffice: sameAsRegistered,
|
|
85252
|
+
mailingAddress: sameAsRegistered ? void 0 : mailing,
|
|
85253
|
+
deliverySameAsMailing: deliverySame,
|
|
85254
|
+
deliveryAddress: deliverySame ? void 0 : delivery
|
|
85255
|
+
};
|
|
85256
|
+
} else {
|
|
85257
|
+
result.recordsOffice = { sameAsRegisteredOffice: false, deliverySameAsMailing: false };
|
|
85258
|
+
}
|
|
85259
|
+
}
|
|
85260
|
+
return result;
|
|
85261
|
+
}
|
|
85262
|
+
/** The four office addresses of the registry's data extract, or undefined when there is none. */
|
|
85263
|
+
static officeExtract(extract) {
|
|
85264
|
+
const data = extract?.dataExtract;
|
|
85265
|
+
if (!data || !(data["registeredOfficeMailingAddress"] || data["registeredOfficeDeliveryAddress"] || data["recordsOfficeMailingAddress"] || data["recordsOfficeDeliveryAddress"])) {
|
|
85266
|
+
return void 0;
|
|
85267
|
+
}
|
|
85268
|
+
return {
|
|
85269
|
+
regMailing: data["registeredOfficeMailingAddress"],
|
|
85270
|
+
regDelivery: data["registeredOfficeDeliveryAddress"],
|
|
85271
|
+
recMailing: data["recordsOfficeMailingAddress"],
|
|
85272
|
+
recDelivery: data["recordsOfficeDeliveryAddress"]
|
|
85273
|
+
};
|
|
85274
|
+
}
|
|
85275
|
+
/** The "Previous" text of an office line: the registry's address, else the Entity's own. */
|
|
85276
|
+
static previousText(extract, key, fallback) {
|
|
85277
|
+
if (!extract) {
|
|
85278
|
+
return fallback;
|
|
85279
|
+
}
|
|
85280
|
+
const address = extract[key];
|
|
85281
|
+
const province = this.isBritishColumbiaExtract(address) ? BC_DEFAULT_PROVINCE_STATE : address?.provinceOrState;
|
|
85282
|
+
const country = (address?.country ?? "").toUpperCase() === "CA" ? BC_DEFAULT_COUNTRY : address?.country;
|
|
85283
|
+
return [
|
|
85284
|
+
address?.streetAddress,
|
|
85285
|
+
address?.additionalStreetAddress,
|
|
85286
|
+
address?.city,
|
|
85287
|
+
province,
|
|
85288
|
+
address?.postalOrZipCode,
|
|
85289
|
+
country
|
|
85290
|
+
].filter((part) => Boolean(part?.trim())).join(", ");
|
|
85291
|
+
}
|
|
85292
|
+
static isBritishColumbiaExtract(address) {
|
|
85293
|
+
const province = (address?.provinceOrState ?? "").trim().toLowerCase();
|
|
85294
|
+
return !!address && ["bc", "b.c.", "british columbia"].includes(province);
|
|
85295
|
+
}
|
|
85296
|
+
static extractToOfficeAddressDelta(address) {
|
|
85297
|
+
return {
|
|
85298
|
+
addressLine1: address.streetAddress ?? "",
|
|
85299
|
+
addressLine2: address.additionalStreetAddress ?? "",
|
|
85300
|
+
city: address.city ?? "",
|
|
85301
|
+
postalCode: address.postalOrZipCode ?? "",
|
|
85302
|
+
province: BC_DEFAULT_PROVINCE_STATE,
|
|
85303
|
+
country: BC_DEFAULT_COUNTRY
|
|
85304
|
+
};
|
|
85305
|
+
}
|
|
85212
85306
|
/** Keeps the saved flags and addresses, but fills an address the draft left empty from `incoming`. */
|
|
85213
85307
|
static fillEmptyAddresses(saved, incoming) {
|
|
85214
85308
|
const hasValues = (address) => EDITABLE_ADDRESS_CONTROLS.some((name) => Boolean(address?.[name]));
|
|
@@ -86589,9 +86683,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86589
86683
|
type: FormType.Text,
|
|
86590
86684
|
formControlName: BCFormationFormControls.DeliveryAddress,
|
|
86591
86685
|
class: "span-12",
|
|
86592
|
-
|
|
86593
|
-
// Mailing address is shown, as in the draft.
|
|
86594
|
-
dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value || form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
86686
|
+
dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value, t)
|
|
86595
86687
|
}
|
|
86596
86688
|
];
|
|
86597
86689
|
BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS = [
|
|
@@ -87770,11 +87862,20 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87770
87862
|
\u0275\u0275property("content", ctx_r0.errors());
|
|
87771
87863
|
}
|
|
87772
87864
|
}
|
|
87773
|
-
function
|
|
87865
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_3_Template(rf, ctx) {
|
|
87866
|
+
if (rf & 1) {
|
|
87867
|
+
\u0275\u0275element(0, "alert", 2);
|
|
87868
|
+
}
|
|
87869
|
+
if (rf & 2) {
|
|
87870
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87871
|
+
\u0275\u0275property("content", ctx_r0.missingMessages());
|
|
87872
|
+
}
|
|
87873
|
+
}
|
|
87874
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template(rf, ctx) {
|
|
87774
87875
|
if (rf & 1) {
|
|
87775
87876
|
const _r2 = \u0275\u0275getCurrentView();
|
|
87776
87877
|
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 7);
|
|
87777
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87878
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87778
87879
|
\u0275\u0275restoreView(_r2);
|
|
87779
87880
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87780
87881
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
|
|
@@ -87783,17 +87884,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87783
87884
|
}
|
|
87784
87885
|
if (rf & 2) {
|
|
87785
87886
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87786
|
-
const referenceNumbers_r3 = \u0275\u0275readContextLet(
|
|
87887
|
+
const referenceNumbers_r3 = \u0275\u0275readContextLet(5);
|
|
87787
87888
|
\u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
|
|
87788
87889
|
\u0275\u0275advance();
|
|
87789
87890
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
|
|
87790
87891
|
}
|
|
87791
87892
|
}
|
|
87792
|
-
function
|
|
87893
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template(rf, ctx) {
|
|
87793
87894
|
if (rf & 1) {
|
|
87794
87895
|
const _r4 = \u0275\u0275getCurrentView();
|
|
87795
87896
|
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 7);
|
|
87796
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87897
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87797
87898
|
\u0275\u0275restoreView(_r4);
|
|
87798
87899
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87799
87900
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corpDetails", $event));
|
|
@@ -87802,232 +87903,129 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87802
87903
|
}
|
|
87803
87904
|
if (rf & 2) {
|
|
87804
87905
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87805
|
-
const corporationDetails_r5 = \u0275\u0275readContextLet(
|
|
87906
|
+
const corporationDetails_r5 = \u0275\u0275readContextLet(7);
|
|
87806
87907
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["corpDetails"] !== false)("title", ctx_r0.groups.CorporationDetails);
|
|
87807
87908
|
\u0275\u0275advance();
|
|
87808
87909
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r5)("config", ctx_r0.corporationDetailsFields());
|
|
87809
87910
|
}
|
|
87810
87911
|
}
|
|
87811
|
-
function
|
|
87912
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Conditional_7_Template(rf, ctx) {
|
|
87812
87913
|
if (rf & 1) {
|
|
87813
|
-
|
|
87814
|
-
\u0275\
|
|
87815
|
-
\u0275\
|
|
87816
|
-
\u0275\u0275restoreView(_r7);
|
|
87817
|
-
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87818
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87819
|
-
});
|
|
87820
|
-
\u0275\u0275elementEnd();
|
|
87821
|
-
}
|
|
87822
|
-
if (rf & 2) {
|
|
87823
|
-
\u0275\u0275nextContext();
|
|
87824
|
-
const registeredMailing_r8 = \u0275\u0275readContextLet(0);
|
|
87825
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87826
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredMailing_r8)("config", ctx_r0.addressFields);
|
|
87827
|
-
}
|
|
87828
|
-
}
|
|
87829
|
-
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template(rf, ctx) {
|
|
87830
|
-
if (rf & 1) {
|
|
87831
|
-
const _r9 = \u0275\u0275getCurrentView();
|
|
87832
|
-
\u0275\u0275element(0, "filing-form-group", 9);
|
|
87833
|
-
\u0275\u0275elementStart(1, "filing-form-group", 7);
|
|
87834
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template_filing_form_group_visiblyValidChange_1_listener() {
|
|
87835
|
-
\u0275\u0275restoreView(_r9);
|
|
87836
|
-
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87837
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87838
|
-
});
|
|
87914
|
+
\u0275\u0275elementStart(0, "div", 12);
|
|
87915
|
+
\u0275\u0275text(1);
|
|
87916
|
+
\u0275\u0275pipe(2, "translate");
|
|
87839
87917
|
\u0275\u0275elementEnd();
|
|
87840
87918
|
}
|
|
87841
87919
|
if (rf & 2) {
|
|
87842
|
-
\u0275\u0275nextContext();
|
|
87843
|
-
const registeredDelivery_r10 = \u0275\u0275readContextLet(1);
|
|
87844
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87845
|
-
const registeredOffice_r11 = \u0275\u0275readContextLet(8);
|
|
87846
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliveryNoteFields);
|
|
87920
|
+
const row_r6 = \u0275\u0275nextContext().$implicit;
|
|
87847
87921
|
\u0275\u0275advance();
|
|
87848
|
-
\u0275\
|
|
87922
|
+
\u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r6.previous, " ");
|
|
87849
87923
|
}
|
|
87850
87924
|
}
|
|
87851
|
-
function
|
|
87925
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Template(rf, ctx) {
|
|
87852
87926
|
if (rf & 1) {
|
|
87853
|
-
|
|
87854
|
-
\u0275\
|
|
87855
|
-
\u0275\
|
|
87856
|
-
\u0275\u0275element(5, "filing-form-group", 9);
|
|
87857
|
-
\u0275\u0275elementStart(6, "h4", 10);
|
|
87858
|
-
\u0275\u0275text(7);
|
|
87859
|
-
\u0275\u0275pipe(8, "translate");
|
|
87927
|
+
\u0275\u0275elementStart(0, "div", 9)(1, "div", 10)(2, "span", 11);
|
|
87928
|
+
\u0275\u0275text(3);
|
|
87929
|
+
\u0275\u0275pipe(4, "translate");
|
|
87860
87930
|
\u0275\u0275elementEnd();
|
|
87861
|
-
\u0275\
|
|
87862
|
-
\u0275\
|
|
87863
|
-
\u0275\u0275text(11);
|
|
87864
|
-
\u0275\u0275pipe(12, "translate");
|
|
87931
|
+
\u0275\u0275text(5);
|
|
87932
|
+
\u0275\u0275pipe(6, "translate");
|
|
87865
87933
|
\u0275\u0275elementEnd();
|
|
87866
|
-
\u0275\
|
|
87867
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template_filing_form_group_visiblyValidChange_13_listener() {
|
|
87868
|
-
\u0275\u0275restoreView(_r6);
|
|
87869
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87870
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87871
|
-
});
|
|
87934
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Conditional_7_Template, 3, 4, "div", 12);
|
|
87872
87935
|
\u0275\u0275elementEnd();
|
|
87873
|
-
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template, 2, 6);
|
|
87874
|
-
\u0275\u0275elementEnd()();
|
|
87875
87936
|
}
|
|
87876
87937
|
if (rf & 2) {
|
|
87877
|
-
const
|
|
87878
|
-
|
|
87879
|
-
|
|
87880
|
-
\u0275\u0275advance();
|
|
87881
|
-
const registeredDelivery_r13 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewDeliveryAddress));
|
|
87882
|
-
const registeredDeliverySame_r14 = ctx_r0.isChecked(registeredOffice_r11, ctx_r0.controls.DeliverySameAsMailing);
|
|
87883
|
-
\u0275\u0275advance(2);
|
|
87884
|
-
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
87885
|
-
\u0275\u0275advance(2);
|
|
87886
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.currentAddressesFields);
|
|
87887
|
-
\u0275\u0275advance(2);
|
|
87888
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(8, 15, "New Mailing Address"));
|
|
87889
|
-
\u0275\u0275advance(2);
|
|
87890
|
-
\u0275\u0275conditional(registeredMailing_r12 ? 9 : -1);
|
|
87938
|
+
const row_r6 = ctx.$implicit;
|
|
87939
|
+
\u0275\u0275advance(3);
|
|
87940
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(4, 3, row_r6.label), ":");
|
|
87891
87941
|
\u0275\u0275advance(2);
|
|
87892
|
-
\u0275\
|
|
87942
|
+
\u0275\u0275textInterpolate1(" ", row_r6.value || \u0275\u0275pipeBind1(6, 5, "Not specified"), " ");
|
|
87893
87943
|
\u0275\u0275advance(2);
|
|
87894
|
-
\u0275\
|
|
87895
|
-
\u0275\u0275advance();
|
|
87896
|
-
\u0275\u0275conditional(!registeredDeliverySame_r14 && registeredDelivery_r13 ? 14 : -1);
|
|
87944
|
+
\u0275\u0275conditional(row_r6.previous ? 7 : -1);
|
|
87897
87945
|
}
|
|
87898
87946
|
}
|
|
87899
|
-
function
|
|
87947
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_Template(rf, ctx) {
|
|
87900
87948
|
if (rf & 1) {
|
|
87901
|
-
|
|
87902
|
-
\u0275\
|
|
87903
|
-
\u0275\
|
|
87904
|
-
\u0275\u0275restoreView(_r17);
|
|
87905
|
-
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
87906
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87907
|
-
});
|
|
87908
|
-
\u0275\u0275elementEnd();
|
|
87949
|
+
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
|
|
87950
|
+
\u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Template, 8, 7, "div", 9, _forTrack05);
|
|
87951
|
+
\u0275\u0275elementEnd()();
|
|
87909
87952
|
}
|
|
87910
87953
|
if (rf & 2) {
|
|
87911
|
-
\u0275\u0275nextContext(2);
|
|
87912
|
-
const recordsMailing_r18 = \u0275\u0275readContextLet(0);
|
|
87913
87954
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87914
|
-
\u0275\u0275property("
|
|
87955
|
+
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
87956
|
+
\u0275\u0275advance(2);
|
|
87957
|
+
\u0275\u0275repeater(ctx_r0.registeredRows());
|
|
87915
87958
|
}
|
|
87916
87959
|
}
|
|
87917
|
-
function
|
|
87960
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Conditional_7_Template(rf, ctx) {
|
|
87918
87961
|
if (rf & 1) {
|
|
87919
|
-
|
|
87920
|
-
\u0275\
|
|
87921
|
-
\u0275\
|
|
87922
|
-
\u0275\u0275restoreView(_r19);
|
|
87923
|
-
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
87924
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87925
|
-
});
|
|
87962
|
+
\u0275\u0275elementStart(0, "div", 12);
|
|
87963
|
+
\u0275\u0275text(1);
|
|
87964
|
+
\u0275\u0275pipe(2, "translate");
|
|
87926
87965
|
\u0275\u0275elementEnd();
|
|
87927
87966
|
}
|
|
87928
87967
|
if (rf & 2) {
|
|
87929
|
-
\u0275\u0275nextContext(
|
|
87930
|
-
|
|
87931
|
-
|
|
87932
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsDelivery_r20)("config", ctx_r0.addressFields);
|
|
87968
|
+
const row_r7 = \u0275\u0275nextContext().$implicit;
|
|
87969
|
+
\u0275\u0275advance();
|
|
87970
|
+
\u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r7.previous, " ");
|
|
87933
87971
|
}
|
|
87934
87972
|
}
|
|
87935
|
-
function
|
|
87973
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Template(rf, ctx) {
|
|
87936
87974
|
if (rf & 1) {
|
|
87937
|
-
|
|
87938
|
-
\u0275\
|
|
87939
|
-
\u0275\
|
|
87940
|
-
\u0275\u0275pipe(2, "translate");
|
|
87975
|
+
\u0275\u0275elementStart(0, "div", 9)(1, "div", 10)(2, "span", 11);
|
|
87976
|
+
\u0275\u0275text(3);
|
|
87977
|
+
\u0275\u0275pipe(4, "translate");
|
|
87941
87978
|
\u0275\u0275elementEnd();
|
|
87942
|
-
\u0275\u0275template(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template, 1, 3, "filing-form-group", 9);
|
|
87943
|
-
\u0275\u0275elementStart(4, "h4", 10);
|
|
87944
87979
|
\u0275\u0275text(5);
|
|
87945
87980
|
\u0275\u0275pipe(6, "translate");
|
|
87946
87981
|
\u0275\u0275elementEnd();
|
|
87947
|
-
\u0275\
|
|
87948
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
87949
|
-
\u0275\u0275restoreView(_r16);
|
|
87950
|
-
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87951
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87952
|
-
});
|
|
87982
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Conditional_7_Template, 3, 4, "div", 12);
|
|
87953
87983
|
\u0275\u0275elementEnd();
|
|
87954
|
-
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template, 1, 3, "filing-form-group", 9);
|
|
87955
87984
|
}
|
|
87956
87985
|
if (rf & 2) {
|
|
87957
|
-
|
|
87958
|
-
|
|
87959
|
-
|
|
87960
|
-
const recordsDeliverySame_r21 = \u0275\u0275readContextLet(3);
|
|
87961
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87962
|
-
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
87963
|
-
\u0275\u0275advance();
|
|
87964
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 7, "New Mailing Address"));
|
|
87965
|
-
\u0275\u0275advance(2);
|
|
87966
|
-
\u0275\u0275conditional(recordsMailing_r18 ? 3 : -1);
|
|
87986
|
+
const row_r7 = ctx.$implicit;
|
|
87987
|
+
\u0275\u0275advance(3);
|
|
87988
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(4, 3, row_r7.label), ":");
|
|
87967
87989
|
\u0275\u0275advance(2);
|
|
87968
|
-
\u0275\
|
|
87990
|
+
\u0275\u0275textInterpolate1(" ", row_r7.value || \u0275\u0275pipeBind1(6, 5, "Not specified"), " ");
|
|
87969
87991
|
\u0275\u0275advance(2);
|
|
87970
|
-
\u0275\
|
|
87971
|
-
\u0275\u0275advance();
|
|
87972
|
-
\u0275\u0275conditional(!recordsDeliverySame_r21 && recordsDelivery_r20 ? 8 : -1);
|
|
87992
|
+
\u0275\u0275conditional(row_r7.previous ? 7 : -1);
|
|
87973
87993
|
}
|
|
87974
87994
|
}
|
|
87975
|
-
function
|
|
87995
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_Template(rf, ctx) {
|
|
87976
87996
|
if (rf & 1) {
|
|
87977
|
-
|
|
87978
|
-
\u0275\
|
|
87979
|
-
\u0275\u0275elementStart(4, "expandable-card", 5)(5, "div", 8);
|
|
87980
|
-
\u0275\u0275element(6, "filing-form-group", 9);
|
|
87981
|
-
\u0275\u0275elementStart(7, "filing-form-group", 7);
|
|
87982
|
-
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
87983
|
-
\u0275\u0275restoreView(_r15);
|
|
87984
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87985
|
-
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87986
|
-
});
|
|
87987
|
-
\u0275\u0275elementEnd();
|
|
87988
|
-
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template, 9, 11);
|
|
87997
|
+
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
|
|
87998
|
+
\u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Template, 8, 7, "div", 9, _forTrack05);
|
|
87989
87999
|
\u0275\u0275elementEnd()();
|
|
87990
88000
|
}
|
|
87991
88001
|
if (rf & 2) {
|
|
87992
88002
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87993
|
-
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
87994
|
-
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewMailingAddress));
|
|
87995
|
-
\u0275\u0275advance();
|
|
87996
|
-
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewDeliveryAddress));
|
|
87997
|
-
const recordsSameAsRegistered_r23 = ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.SameAsRegisteredOffice);
|
|
87998
|
-
\u0275\u0275advance(2);
|
|
87999
|
-
\u0275\u0275storeLet(ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.DeliverySameAsMailing));
|
|
88000
|
-
\u0275\u0275advance();
|
|
88001
88003
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
|
|
88002
88004
|
\u0275\u0275advance(2);
|
|
88003
|
-
\u0275\
|
|
88004
|
-
\u0275\u0275advance();
|
|
88005
|
-
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.sameAsRegisteredOfficeFields);
|
|
88006
|
-
\u0275\u0275advance();
|
|
88007
|
-
\u0275\u0275conditional(!recordsSameAsRegistered_r23 ? 8 : -1);
|
|
88005
|
+
\u0275\u0275repeater(ctx_r0.recordsRows());
|
|
88008
88006
|
}
|
|
88009
88007
|
}
|
|
88010
|
-
function
|
|
88008
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_14_Template(rf, ctx) {
|
|
88011
88009
|
if (rf & 1) {
|
|
88012
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
88010
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "p");
|
|
88013
88011
|
\u0275\u0275text(3);
|
|
88014
88012
|
\u0275\u0275pipe(4, "translate");
|
|
88015
88013
|
\u0275\u0275elementEnd();
|
|
88016
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
88014
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 14)(6, "mat-radio-button", 15);
|
|
88017
88015
|
\u0275\u0275text(7);
|
|
88018
88016
|
\u0275\u0275pipe(8, "translate");
|
|
88019
88017
|
\u0275\u0275elementEnd();
|
|
88020
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
88018
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 15);
|
|
88021
88019
|
\u0275\u0275text(10);
|
|
88022
88020
|
\u0275\u0275pipe(11, "translate");
|
|
88023
88021
|
\u0275\u0275elementEnd()()()();
|
|
88024
88022
|
}
|
|
88025
88023
|
if (rf & 2) {
|
|
88026
88024
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
88027
|
-
const
|
|
88025
|
+
const annualReportReminder_r8 = \u0275\u0275readContextLet(13);
|
|
88028
88026
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
|
|
88029
88027
|
\u0275\u0275advance();
|
|
88030
|
-
\u0275\u0275property("formGroup",
|
|
88028
|
+
\u0275\u0275property("formGroup", annualReportReminder_r8);
|
|
88031
88029
|
\u0275\u0275advance(2);
|
|
88032
88030
|
\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."), " ");
|
|
88033
88031
|
\u0275\u0275advance(2);
|
|
@@ -88042,7 +88040,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88042
88040
|
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(11, 13, "No, I do not need to be reminded"), " ");
|
|
88043
88041
|
}
|
|
88044
88042
|
}
|
|
88045
|
-
var BritishColumbiaChangeOfOfficeAddressesFormComponent;
|
|
88043
|
+
var _forTrack05, BritishColumbiaChangeOfOfficeAddressesFormComponent;
|
|
88046
88044
|
var init_change_of_office_addresses_form_component = __esm({
|
|
88047
88045
|
"src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts"() {
|
|
88048
88046
|
init_core();
|
|
@@ -88055,11 +88053,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88055
88053
|
init_expandable_card_component();
|
|
88056
88054
|
init_british_columbia_form_enums();
|
|
88057
88055
|
init_british_columbia_change_of_office_addresses_form_constants();
|
|
88058
|
-
init_forms_utils();
|
|
88059
88056
|
init_BritishColumbiaConstants();
|
|
88060
88057
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
88061
88058
|
init_core();
|
|
88062
88059
|
init_forms();
|
|
88060
|
+
_forTrack05 = ($index, $item) => $item.label;
|
|
88063
88061
|
BritishColumbiaChangeOfOfficeAddressesFormComponent = class _BritishColumbiaChangeOfOfficeAddressesFormComponent {
|
|
88064
88062
|
form = input.required();
|
|
88065
88063
|
task = input();
|
|
@@ -88082,17 +88080,38 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88082
88080
|
deliveryNoteFields = BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS;
|
|
88083
88081
|
deliverySameAsMailingFields = BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS;
|
|
88084
88082
|
sameAsRegisteredOfficeFields = BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
|
|
88083
|
+
translate = inject(TranslateService);
|
|
88085
88084
|
sectionValidity = {};
|
|
88086
88085
|
isVisiblyValid() {
|
|
88087
88086
|
return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
|
|
88088
88087
|
}
|
|
88089
88088
|
isRegisteredOfficeValid() {
|
|
88090
|
-
|
|
88091
|
-
return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
|
|
88089
|
+
return !this.isRegisteredMissing();
|
|
88092
88090
|
}
|
|
88093
88091
|
isRecordsOfficeValid() {
|
|
88094
|
-
|
|
88095
|
-
|
|
88092
|
+
return !this.isRecordsMissing();
|
|
88093
|
+
}
|
|
88094
|
+
/** One message per missing office address, shown in the banner at the top of the form. */
|
|
88095
|
+
missingMessages() {
|
|
88096
|
+
const t = (key) => this.translate.instant(key);
|
|
88097
|
+
const records = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88098
|
+
const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
|
|
88099
|
+
const [regMailing, regDelivery] = this.registeredRows();
|
|
88100
|
+
const [recMailing, recDelivery] = this.recordsRows();
|
|
88101
|
+
return [
|
|
88102
|
+
!regMailing.value && t("The Registered Office mailing address is missing. Add it in UEM, then try again."),
|
|
88103
|
+
!regDelivery.value && t("The Registered Office delivery address is missing. Add it in UEM, then try again."),
|
|
88104
|
+
// "Same as Registered Office" is already reported by the registered office messages.
|
|
88105
|
+
!recordsSameAsRegistered && !recMailing.value && t("The Records Office mailing address is missing. Add it in UEM, then try again."),
|
|
88106
|
+
!recordsSameAsRegistered && !recDelivery.value && t("The Records Office delivery address is missing. Add it in UEM, then try again.")
|
|
88107
|
+
].filter((m) => !!m);
|
|
88108
|
+
}
|
|
88109
|
+
/** The incoming Shared Address supplied no new address for a line (and none is on the register). */
|
|
88110
|
+
isRegisteredMissing() {
|
|
88111
|
+
return this.registeredRows().some((row) => !row.value);
|
|
88112
|
+
}
|
|
88113
|
+
isRecordsMissing() {
|
|
88114
|
+
return this.recordsRows().some((row) => !row.value);
|
|
88096
88115
|
}
|
|
88097
88116
|
isChecked(office, control) {
|
|
88098
88117
|
return Boolean(office?.get(control)?.value);
|
|
@@ -88110,28 +88129,77 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88110
88129
|
getAddressGroup(office, control) {
|
|
88111
88130
|
return office?.get(control) ?? null;
|
|
88112
88131
|
}
|
|
88113
|
-
|
|
88114
|
-
|
|
88115
|
-
|
|
88132
|
+
/** Registered office lines: the new (incoming) address and, if it changed, the previous one. */
|
|
88133
|
+
registeredRows() {
|
|
88134
|
+
const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
|
|
88135
|
+
return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
|
|
88136
|
+
}
|
|
88137
|
+
/** Records office lines; "Same as Registered Office" reuses the registered office's new lines. */
|
|
88138
|
+
recordsRows() {
|
|
88139
|
+
const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88140
|
+
if (this.isChecked(office, this.controls.SameAsRegisteredOffice)) {
|
|
88141
|
+
const registered = this.registeredRows();
|
|
88142
|
+
const current = this.currentOf(office);
|
|
88143
|
+
return registered.map((row, i) => __spreadProps(__spreadValues({}, row), {
|
|
88144
|
+
previous: this.changedPrevious(row.value, i === 0 ? current.mailing : current.delivery)
|
|
88145
|
+
}));
|
|
88146
|
+
}
|
|
88147
|
+
return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
|
|
88148
|
+
}
|
|
88149
|
+
buildRows(office, deliverySame) {
|
|
88150
|
+
const current = this.currentOf(office);
|
|
88151
|
+
const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress));
|
|
88152
|
+
const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress));
|
|
88153
|
+
return [
|
|
88154
|
+
{
|
|
88155
|
+
label: "Mailing Address",
|
|
88156
|
+
value: mailing,
|
|
88157
|
+
previous: this.changedPrevious(mailing, current.mailing)
|
|
88158
|
+
},
|
|
88159
|
+
{
|
|
88160
|
+
label: "Delivery Address",
|
|
88161
|
+
value: delivery,
|
|
88162
|
+
previous: this.changedPrevious(delivery, current.delivery)
|
|
88163
|
+
}
|
|
88164
|
+
];
|
|
88165
|
+
}
|
|
88166
|
+
currentOf(office) {
|
|
88167
|
+
return {
|
|
88168
|
+
mailing: office?.get(this.controls.CurrentMailingAddress)?.value ?? "",
|
|
88169
|
+
delivery: office?.get(this.controls.CurrentDeliveryAddress)?.value ?? ""
|
|
88170
|
+
};
|
|
88171
|
+
}
|
|
88172
|
+
formatNew(group2) {
|
|
88173
|
+
const c = this.controls;
|
|
88174
|
+
const v = group2?.getRawValue() ?? {};
|
|
88175
|
+
if (![v[c.AddressLine1], v[c.City], v[c.PostalCode]].some((part) => part?.trim())) {
|
|
88176
|
+
return "";
|
|
88177
|
+
}
|
|
88178
|
+
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(", ");
|
|
88179
|
+
}
|
|
88180
|
+
/** The previous address, only when it exists and differs from the new one. */
|
|
88181
|
+
changedPrevious(next, previous) {
|
|
88182
|
+
const normalize = (s) => s.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
88183
|
+
return previous && normalize(previous) !== normalize(next) ? previous : "";
|
|
88116
88184
|
}
|
|
88117
88185
|
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
|
|
88118
88186
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
|
|
88119
88187
|
};
|
|
88120
|
-
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:
|
|
88188
|
+
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: 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) {
|
|
88121
88189
|
if (rf & 1) {
|
|
88122
88190
|
\u0275\u0275elementStart(0, "div", 0);
|
|
88123
|
-
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
88124
|
-
\u0275\u0275elementStart(
|
|
88125
|
-
\u0275\u0275declareLet(
|
|
88126
|
-
\u0275\u0275template(
|
|
88127
|
-
\u0275\u0275declareLet(
|
|
88128
|
-
\u0275\u0275template(
|
|
88129
|
-
\u0275\u0275declareLet(
|
|
88130
|
-
\u0275\u0275template(
|
|
88131
|
-
\u0275\u0275declareLet(
|
|
88132
|
-
\u0275\u0275template(
|
|
88133
|
-
\u0275\u0275declareLet(
|
|
88134
|
-
\u0275\u0275template(
|
|
88191
|
+
\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);
|
|
88192
|
+
\u0275\u0275elementStart(4, "div", 3);
|
|
88193
|
+
\u0275\u0275declareLet(5);
|
|
88194
|
+
\u0275\u0275template(6, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template, 2, 4, "expandable-card", 4);
|
|
88195
|
+
\u0275\u0275declareLet(7);
|
|
88196
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template, 2, 6, "expandable-card", 5);
|
|
88197
|
+
\u0275\u0275declareLet(9);
|
|
88198
|
+
\u0275\u0275template(10, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_Template, 4, 3, "expandable-card", 5);
|
|
88199
|
+
\u0275\u0275declareLet(11);
|
|
88200
|
+
\u0275\u0275template(12, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_Template, 4, 3, "expandable-card", 5);
|
|
88201
|
+
\u0275\u0275declareLet(13);
|
|
88202
|
+
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_14_Template, 12, 15, "expandable-card", 6);
|
|
88135
88203
|
\u0275\u0275elementEnd()();
|
|
88136
88204
|
}
|
|
88137
88205
|
if (rf & 2) {
|
|
@@ -88139,26 +88207,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88139
88207
|
\u0275\u0275conditional(ctx.isNote() ? 1 : -1);
|
|
88140
88208
|
\u0275\u0275advance();
|
|
88141
88209
|
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
88142
|
-
\u0275\u0275advance(2);
|
|
88143
|
-
const referenceNumbers_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
88144
|
-
\u0275\u0275advance();
|
|
88145
|
-
\u0275\u0275conditional(referenceNumbers_r25 ? 5 : -1);
|
|
88146
|
-
\u0275\u0275advance();
|
|
88147
|
-
const corporationDetails_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
88148
|
-
\u0275\u0275advance();
|
|
88149
|
-
\u0275\u0275conditional(corporationDetails_r26 ? 7 : -1);
|
|
88150
88210
|
\u0275\u0275advance();
|
|
88151
|
-
|
|
88211
|
+
\u0275\u0275conditional(ctx.missingMessages().length ? 3 : -1);
|
|
88212
|
+
\u0275\u0275advance(2);
|
|
88213
|
+
const referenceNumbers_r9 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
88152
88214
|
\u0275\u0275advance();
|
|
88153
|
-
\u0275\u0275conditional(
|
|
88215
|
+
\u0275\u0275conditional(referenceNumbers_r9 ? 6 : -1);
|
|
88154
88216
|
\u0275\u0275advance();
|
|
88155
|
-
const
|
|
88217
|
+
const corporationDetails_r10 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
88156
88218
|
\u0275\u0275advance();
|
|
88157
|
-
\u0275\u0275conditional(
|
|
88219
|
+
\u0275\u0275conditional(corporationDetails_r10 ? 8 : -1);
|
|
88220
|
+
const registeredOffice_r11 = ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress);
|
|
88221
|
+
\u0275\u0275advance(2);
|
|
88222
|
+
\u0275\u0275conditional(registeredOffice_r11 ? 10 : -1);
|
|
88223
|
+
const recordsOffice_r12 = ctx.getFormGroup(ctx.groups.RecordsOfficeAddress);
|
|
88224
|
+
\u0275\u0275advance(2);
|
|
88225
|
+
\u0275\u0275conditional(recordsOffice_r12 ? 12 : -1);
|
|
88158
88226
|
\u0275\u0275advance();
|
|
88159
|
-
const
|
|
88227
|
+
const annualReportReminder_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
88160
88228
|
\u0275\u0275advance();
|
|
88161
|
-
\u0275\u0275conditional(
|
|
88229
|
+
\u0275\u0275conditional(annualReportReminder_r13 ? 14 : -1);
|
|
88162
88230
|
}
|
|
88163
88231
|
}, dependencies: [
|
|
88164
88232
|
FilingFormGroupComponent,
|
|
@@ -88172,7 +88240,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88172
88240
|
FormGroupDirective,
|
|
88173
88241
|
FormControlName,
|
|
88174
88242
|
TranslatePipe
|
|
88175
|
-
], styles: [
|
|
88243
|
+
], 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 });
|
|
88176
88244
|
};
|
|
88177
88245
|
(() => {
|
|
88178
88246
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
|
|
@@ -88200,6 +88268,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88200
88268
|
[content]="errors()"\r
|
|
88201
88269
|
/>\r
|
|
88202
88270
|
}\r
|
|
88271
|
+
\r
|
|
88272
|
+
@if (missingMessages().length) {\r
|
|
88273
|
+
<alert\r
|
|
88274
|
+
title="The following issues need to be resolved before proceeding:"\r
|
|
88275
|
+
[content]="missingMessages()"\r
|
|
88276
|
+
/>\r
|
|
88277
|
+
}\r
|
|
88203
88278
|
\r
|
|
88204
88279
|
<div class="change-of-office-addresses-form-content">\r
|
|
88205
88280
|
@let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
|
|
@@ -88236,54 +88311,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88236
88311
|
@let registeredOffice = getFormGroup(groups.RegisteredOfficeAddress);\r
|
|
88237
88312
|
\r
|
|
88238
88313
|
@if (registeredOffice) {\r
|
|
88239
|
-
@let registeredMailing = getAddressGroup(registeredOffice, controls.NewMailingAddress);\r
|
|
88240
|
-
@let registeredDelivery = getAddressGroup(registeredOffice, controls.NewDeliveryAddress);\r
|
|
88241
|
-
@let registeredDeliverySame = isChecked(registeredOffice, controls.DeliverySameAsMailing);\r
|
|
88242
|
-
\r
|
|
88243
88314
|
<expandable-card\r
|
|
88244
88315
|
[isStatusIcon]="!readonly()"\r
|
|
88245
88316
|
[isValid]="isRegisteredOfficeValid()"\r
|
|
88246
88317
|
[title]="groups.RegisteredOfficeAddress"\r
|
|
88247
88318
|
>\r
|
|
88248
88319
|
<div class="change-of-office-addresses-form-item">\r
|
|
88249
|
-
|
|
88250
|
-
|
|
88251
|
-
|
|
88252
|
-
|
|
88253
|
-
|
|
88254
|
-
|
|
88255
|
-
|
|
88256
|
-
|
|
88257
|
-
|
|
88258
|
-
|
|
88259
|
-
|
|
88260
|
-
|
|
88261
|
-
[config]="addressFields"\r
|
|
88262
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88263
|
-
/>\r
|
|
88264
|
-
}\r
|
|
88265
|
-
\r
|
|
88266
|
-
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
88267
|
-
\r
|
|
88268
|
-
<filing-form-group\r
|
|
88269
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88270
|
-
[form]="registeredOffice"\r
|
|
88271
|
-
[config]="deliverySameAsMailingFields"\r
|
|
88272
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88273
|
-
/>\r
|
|
88274
|
-
\r
|
|
88275
|
-
@if (!registeredDeliverySame && registeredDelivery) {\r
|
|
88276
|
-
<filing-form-group\r
|
|
88277
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88278
|
-
[form]="registeredOffice"\r
|
|
88279
|
-
[config]="deliveryNoteFields"\r
|
|
88280
|
-
/>\r
|
|
88281
|
-
<filing-form-group\r
|
|
88282
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88283
|
-
[form]="registeredDelivery"\r
|
|
88284
|
-
[config]="addressFields"\r
|
|
88285
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88286
|
-
/>\r
|
|
88320
|
+
@for (row of registeredRows(); track row.label) {\r
|
|
88321
|
+
<div class="change-of-office-addresses-form-address">\r
|
|
88322
|
+
<div class="body-1-regular grey">\r
|
|
88323
|
+
<span class="body-1-semibold">{{ row.label | translate }}:</span>\r
|
|
88324
|
+
{{ row.value || ('Not specified' | translate) }}\r
|
|
88325
|
+
</div>\r
|
|
88326
|
+
@if (row.previous) {\r
|
|
88327
|
+
<div class="change-of-office-addresses-form-previous">\r
|
|
88328
|
+
{{ 'Previous' | translate }}: {{ row.previous }}\r
|
|
88329
|
+
</div>\r
|
|
88330
|
+
}\r
|
|
88331
|
+
</div>\r
|
|
88287
88332
|
}\r
|
|
88288
88333
|
</div>\r
|
|
88289
88334
|
</expandable-card>\r
|
|
@@ -88293,59 +88338,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88293
88338
|
@let recordsOffice = getFormGroup(groups.RecordsOfficeAddress);\r
|
|
88294
88339
|
\r
|
|
88295
88340
|
@if (recordsOffice) {\r
|
|
88296
|
-
@let recordsMailing = getAddressGroup(recordsOffice, controls.NewMailingAddress);\r
|
|
88297
|
-
@let recordsDelivery = getAddressGroup(recordsOffice, controls.NewDeliveryAddress);\r
|
|
88298
|
-
@let recordsSameAsRegistered = isChecked(recordsOffice, controls.SameAsRegisteredOffice);\r
|
|
88299
|
-
@let recordsDeliverySame = isChecked(recordsOffice, controls.DeliverySameAsMailing);\r
|
|
88300
|
-
\r
|
|
88301
88341
|
<expandable-card\r
|
|
88302
88342
|
[isStatusIcon]="!readonly()"\r
|
|
88303
88343
|
[isValid]="isRecordsOfficeValid()"\r
|
|
88304
88344
|
[title]="groups.RecordsOfficeAddress"\r
|
|
88305
88345
|
>\r
|
|
88306
88346
|
<div class="change-of-office-addresses-form-item">\r
|
|
88307
|
-
|
|
88308
|
-
|
|
88309
|
-
|
|
88310
|
-
|
|
88311
|
-
|
|
88312
|
-
|
|
88313
|
-
|
|
88314
|
-
|
|
88315
|
-
|
|
88316
|
-
|
|
88317
|
-
|
|
88318
|
-
|
|
88319
|
-
\r
|
|
88320
|
-
@if (!recordsSameAsRegistered) {\r
|
|
88321
|
-
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
|
|
88322
|
-
\r
|
|
88323
|
-
@if (recordsMailing) {\r
|
|
88324
|
-
<filing-form-group\r
|
|
88325
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88326
|
-
[form]="recordsMailing"\r
|
|
88327
|
-
[config]="addressFields"\r
|
|
88328
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88329
|
-
/>\r
|
|
88330
|
-
}\r
|
|
88331
|
-
\r
|
|
88332
|
-
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
88333
|
-
\r
|
|
88334
|
-
<filing-form-group\r
|
|
88335
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88336
|
-
[form]="recordsOffice"\r
|
|
88337
|
-
[config]="deliverySameAsMailingFields"\r
|
|
88338
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88339
|
-
/>\r
|
|
88340
|
-
\r
|
|
88341
|
-
@if (!recordsDeliverySame && recordsDelivery) {\r
|
|
88342
|
-
<filing-form-group\r
|
|
88343
|
-
[isSubmitted]="isSubmitted()"\r
|
|
88344
|
-
[form]="recordsDelivery"\r
|
|
88345
|
-
[config]="addressFields"\r
|
|
88346
|
-
(visiblyValidChange)="emitValidity()"\r
|
|
88347
|
-
/>\r
|
|
88348
|
-
}\r
|
|
88347
|
+
@for (row of recordsRows(); track row.label) {\r
|
|
88348
|
+
<div class="change-of-office-addresses-form-address">\r
|
|
88349
|
+
<div class="body-1-regular grey">\r
|
|
88350
|
+
<span class="body-1-semibold">{{ row.label | translate }}:</span>\r
|
|
88351
|
+
{{ row.value || ('Not specified' | translate) }}\r
|
|
88352
|
+
</div>\r
|
|
88353
|
+
@if (row.previous) {\r
|
|
88354
|
+
<div class="change-of-office-addresses-form-previous">\r
|
|
88355
|
+
{{ 'Previous' | translate }}: {{ row.previous }}\r
|
|
88356
|
+
</div>\r
|
|
88357
|
+
}\r
|
|
88358
|
+
</div>\r
|
|
88349
88359
|
}\r
|
|
88350
88360
|
</div>\r
|
|
88351
88361
|
</expandable-card>\r
|
|
@@ -88375,11 +88385,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88375
88385
|
}\r
|
|
88376
88386
|
</div>\r
|
|
88377
88387
|
</div>\r
|
|
88378
|
-
`, styles: [
|
|
88388
|
+
`, 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'] }]
|
|
88379
88389
|
}], null, null);
|
|
88380
88390
|
})();
|
|
88381
88391
|
(() => {
|
|
88382
|
-
(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:
|
|
88392
|
+
(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 });
|
|
88383
88393
|
})();
|
|
88384
88394
|
}
|
|
88385
88395
|
});
|
|
@@ -88854,7 +88864,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88854
88864
|
this.deltaState.setBCFormationInitialDelta(this.generateFormationDeltaData());
|
|
88855
88865
|
}
|
|
88856
88866
|
if (task && isChangeOfAddressTask(task)) {
|
|
88857
|
-
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key))));
|
|
88867
|
+
this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract())));
|
|
88858
88868
|
this.deltaState.setBCChangeOfOfficeAddressesInitialDelta(this.generateChangeOfOfficeAddressesDeltaData());
|
|
88859
88869
|
}
|
|
88860
88870
|
});
|
|
@@ -88881,7 +88891,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88881
88891
|
}
|
|
88882
88892
|
}
|
|
88883
88893
|
if (task && isChangeOfAddressTask(task) && deltaData) {
|
|
88884
|
-
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
|
|
88894
|
+
const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract()));
|
|
88885
88895
|
form.disable();
|
|
88886
88896
|
this.previewForm.set(form);
|
|
88887
88897
|
const step = untracked2(() => this.activeStep());
|
|
@@ -90763,7 +90773,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90763
90773
|
\u0275\u0275pipe(7, "translate");
|
|
90764
90774
|
\u0275\u0275elementEnd();
|
|
90765
90775
|
\u0275\u0275elementStart(8, "ul", 16);
|
|
90766
|
-
\u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17,
|
|
90776
|
+
\u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17, _forTrack06);
|
|
90767
90777
|
\u0275\u0275elementEnd()();
|
|
90768
90778
|
\u0275\u0275elementStart(11, "span", 17);
|
|
90769
90779
|
\u0275\u0275text(12);
|
|
@@ -90966,7 +90976,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90966
90976
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", contactForm_r24)("config", ctx_r0.contactControl);
|
|
90967
90977
|
}
|
|
90968
90978
|
}
|
|
90969
|
-
var _c016,
|
|
90979
|
+
var _c016, _forTrack06, FederalIncorporationFormComponent;
|
|
90970
90980
|
var init_federal_incorporation_form_component = __esm({
|
|
90971
90981
|
"src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts"() {
|
|
90972
90982
|
init_core();
|
|
@@ -90991,7 +91001,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90991
91001
|
init_common();
|
|
90992
91002
|
init_core();
|
|
90993
91003
|
_c016 = ["*"];
|
|
90994
|
-
|
|
91004
|
+
_forTrack06 = ($index, $item) => $item.affiliationID;
|
|
90995
91005
|
FederalIncorporationFormComponent = class _FederalIncorporationFormComponent {
|
|
90996
91006
|
form = input.required();
|
|
90997
91007
|
isNote = input(false);
|
|
@@ -95683,7 +95693,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95683
95693
|
return String(id);
|
|
95684
95694
|
});
|
|
95685
95695
|
}
|
|
95686
|
-
/** Polls the extract until the registry has it ready (`success`). */
|
|
95696
|
+
/** Polls the extract until the registry has it ready (`success`) and returns the extract. */
|
|
95687
95697
|
waitForCurrentDataExtract(_0, _1) {
|
|
95688
95698
|
return __async(this, arguments, function* (signature, extractId, opts = {}, poll = {}) {
|
|
95689
95699
|
const { intervalMs, timeoutMs } = __spreadValues(__spreadValues({}, DEFAULT_EXTRACT_POLL), poll);
|
|
@@ -95692,7 +95702,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95692
95702
|
const { status, ok, body, raw } = yield this.send(signature, "GET", `${DATA_EXTRACT_PATH}/${encodeURIComponent(extractId)}`, void 0, opts);
|
|
95693
95703
|
const state2 = String(body?.status ?? "").toLowerCase();
|
|
95694
95704
|
if (ok && state2 === "success") {
|
|
95695
|
-
return;
|
|
95705
|
+
return body ?? {};
|
|
95696
95706
|
}
|
|
95697
95707
|
if (!ok || state2 === "failed" || state2 === "sourceunavailable") {
|
|
95698
95708
|
throw this.failure(status, "Retrieving the current data from the registry failed", body, raw);
|
|
@@ -95930,7 +95940,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95930
95940
|
"src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
|
|
95931
95941
|
init_BritishColumbiaConstants();
|
|
95932
95942
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
95933
|
-
TEMP_UAT_TEST_ACCESS_CODE = "
|
|
95943
|
+
TEMP_UAT_TEST_ACCESS_CODE = "xxxxxxxx";
|
|
95934
95944
|
BC_PROVINCE_CODE = "BC";
|
|
95935
95945
|
CANADA_COUNTRY_CODE = "CA";
|
|
95936
95946
|
clean = (value) => (value ?? "").trim();
|
|
@@ -96242,6 +96252,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96242
96252
|
dataWasChanged = signal(false);
|
|
96243
96253
|
serviceOrderId = "";
|
|
96244
96254
|
bcCurrentDataServiceOrderId = "";
|
|
96255
|
+
/** The registry's current data ordered for the Change of Office Addresses; reused by Validate. */
|
|
96256
|
+
bcCoaExtractId = "";
|
|
96245
96257
|
currentDataExtract = signal(void 0);
|
|
96246
96258
|
bcDataExtractTaskId = "";
|
|
96247
96259
|
activeStep = signal(Step.Validate);
|
|
@@ -96336,8 +96348,49 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96336
96348
|
this.isLoading.set(false);
|
|
96337
96349
|
}
|
|
96338
96350
|
}
|
|
96351
|
+
if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
|
|
96352
|
+
if (task.deltaData?.validatedData) {
|
|
96353
|
+
this.bcDataExtractTaskId = task._id;
|
|
96354
|
+
return;
|
|
96355
|
+
}
|
|
96356
|
+
this.bcDataExtractTaskId = task._id;
|
|
96357
|
+
yield this.loadBritishColumbiaOfficeAddressExtract(task);
|
|
96358
|
+
}
|
|
96339
96359
|
}));
|
|
96340
96360
|
}
|
|
96361
|
+
/**
|
|
96362
|
+
* Orders the registry's current office addresses as soon as the Change of Office Addresses opens,
|
|
96363
|
+
* so each office shows its registry address as "Previous". If the registry is unavailable the form
|
|
96364
|
+
* falls back to the Entity's own addresses, and Validate orders the extract again.
|
|
96365
|
+
*/
|
|
96366
|
+
loadBritishColumbiaOfficeAddressExtract(task) {
|
|
96367
|
+
return __async(this, null, function* () {
|
|
96368
|
+
const signature = this._signature();
|
|
96369
|
+
if (!signature) {
|
|
96370
|
+
return;
|
|
96371
|
+
}
|
|
96372
|
+
this.isLoading.set(true);
|
|
96373
|
+
try {
|
|
96374
|
+
const opts = this.validateOptions() ?? {};
|
|
96375
|
+
const context2 = this.getBritishColumbiaOfficeAddressContext(task, signature);
|
|
96376
|
+
this.bcCoaExtractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
96377
|
+
this.currentDataExtract.set(yield this.bcMaintenanceService.waitForCurrentDataExtract(signature, this.bcCoaExtractId, opts));
|
|
96378
|
+
} catch (error) {
|
|
96379
|
+
this.bcCoaExtractId = "";
|
|
96380
|
+
this.currentDataExtract.set(void 0);
|
|
96381
|
+
console.warn("The registry's current office addresses could not be loaded.", error);
|
|
96382
|
+
} finally {
|
|
96383
|
+
this.isLoading.set(false);
|
|
96384
|
+
}
|
|
96385
|
+
});
|
|
96386
|
+
}
|
|
96387
|
+
getBritishColumbiaOfficeAddressContext(task, signature) {
|
|
96388
|
+
return {
|
|
96389
|
+
corporationNumber: task.entity._profile.corp_number ?? "",
|
|
96390
|
+
accessCodeOrPassword: getBritishColumbiaAccessCode2(task, signature.env),
|
|
96391
|
+
incorporationDate: String(task.entity._compliance?.incorporation_date ?? "").slice(0, 10)
|
|
96392
|
+
};
|
|
96393
|
+
}
|
|
96341
96394
|
getCurrentData() {
|
|
96342
96395
|
return __async(this, null, function* () {
|
|
96343
96396
|
const signature = this._signature();
|
|
@@ -96635,13 +96688,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96635
96688
|
this.errors.set([]);
|
|
96636
96689
|
const requestBody = buildBCChangeOfOfficeAddressesValidateRequest(task, deltaData);
|
|
96637
96690
|
const opts = this.validateOptions() ?? {};
|
|
96638
|
-
const context2 =
|
|
96639
|
-
|
|
96640
|
-
|
|
96641
|
-
|
|
96642
|
-
|
|
96643
|
-
|
|
96644
|
-
|
|
96691
|
+
const context2 = this.getBritishColumbiaOfficeAddressContext(task, signature);
|
|
96692
|
+
let extractId = this.bcCoaExtractId;
|
|
96693
|
+
if (!extractId) {
|
|
96694
|
+
extractId = yield this.bcMaintenanceService.orderCurrentDataExtract(signature, context2, opts);
|
|
96695
|
+
yield this.bcMaintenanceService.waitForCurrentDataExtract(signature, extractId, opts);
|
|
96696
|
+
this.bcCoaExtractId = extractId;
|
|
96697
|
+
}
|
|
96645
96698
|
const response = yield this.bcMaintenanceService.validate(signature, requestBody, extractId, context2, opts);
|
|
96646
96699
|
if (this.hasResponseErrors(response))
|
|
96647
96700
|
return;
|
|
@@ -96943,6 +96996,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
96943
96996
|
} else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
|
|
96944
96997
|
this.bcDataExtractTaskId = "";
|
|
96945
96998
|
void this.refreshBritishColumbiaCurrentDataExtract();
|
|
96999
|
+
} else if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
|
|
97000
|
+
this.bcDataExtractTaskId = task._id;
|
|
97001
|
+
void this.loadBritishColumbiaOfficeAddressExtract(task);
|
|
96946
97002
|
}
|
|
96947
97003
|
this.activeStep.set(Step.Validate);
|
|
96948
97004
|
}
|
|
@@ -101944,6 +102000,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
101944
102000
|
"File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
|
|
101945
102001
|
"Records Office Address": "Records Office Address",
|
|
101946
102002
|
"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.",
|
|
102003
|
+
"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.",
|
|
102004
|
+
"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.",
|
|
102005
|
+
"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.",
|
|
102006
|
+
"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.",
|
|
102007
|
+
"Mailing Address": "Mailing Address",
|
|
102008
|
+
"Delivery Address": "Delivery Address",
|
|
101947
102009
|
"Current Mailing Address": "Current Mailing Address",
|
|
101948
102010
|
"Current Delivery Address": "Current Delivery Address",
|
|
101949
102011
|
"New Mailing Address": "New Mailing Address",
|
|
@@ -102300,6 +102362,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102300
102362
|
"Without Par Value": "Sans valeur nominale",
|
|
102301
102363
|
"File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
|
|
102302
102364
|
"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.",
|
|
102365
|
+
"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.",
|
|
102366
|
+
"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.",
|
|
102367
|
+
"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.",
|
|
102368
|
+
"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.",
|
|
102369
|
+
"Mailing Address": "Adresse postale",
|
|
102370
|
+
"Delivery Address": "Adresse de livraison",
|
|
102303
102371
|
"Current Mailing Address": "Adresse postale actuelle",
|
|
102304
102372
|
"Current Delivery Address": "Adresse de livraison actuelle",
|
|
102305
102373
|
"New Mailing Address": "Nouvelle adresse postale",
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dyedurham/search-and-file-widget",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dnd-filing-shell.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"author": "",
|
|
10
|
-
"license": "ISC"
|
|
1
|
+
{
|
|
2
|
+
"name": "@dyedurham/search-and-file-widget",
|
|
3
|
+
"version": "2.1.17",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dnd-filing-shell.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC"
|
|
11
11
|
}
|