@dyedurham/search-and-file-widget 2.1.14 → 2.1.15
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 +294 -269
- package/package.json +10 -10
package/dnd-filing-shell.js
CHANGED
|
@@ -85137,8 +85137,7 @@ 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
|
|
85141
|
-
const seed = this.withCurrentAddresses(incomingSeed, incoming, delta, registeredOffice, recordsOffice);
|
|
85140
|
+
const seed = delta?.registeredOffice ? this.fillEmptyAddresses(delta, incoming) : this.seedFromIncomingAffiliations(task);
|
|
85142
85141
|
const config2 = {};
|
|
85143
85142
|
config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
|
|
85144
85143
|
config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
|
|
@@ -85210,50 +85209,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85210
85209
|
}
|
|
85211
85210
|
};
|
|
85212
85211
|
}
|
|
85213
|
-
/**
|
|
85214
|
-
* For an office with neither an incoming address nor a saved draft, the new address is its
|
|
85215
|
-
* current address on the register (so the filing leaves it unchanged). A current address outside
|
|
85216
|
-
* British Columbia is not used: the office is then reported as missing.
|
|
85217
|
-
*/
|
|
85218
|
-
static withCurrentAddresses(seed, incoming, delta, registeredOffice, recordsOffice) {
|
|
85219
|
-
const pickBy = BritishColumbiaFormationFormHelper.pickAddress;
|
|
85220
|
-
const current = (office, type) => {
|
|
85221
|
-
const address = pickBy(office?.addresses, type);
|
|
85222
|
-
return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
|
|
85223
|
-
};
|
|
85224
|
-
const result = __spreadValues({}, seed);
|
|
85225
|
-
if (!delta?.registeredOffice && !incoming.regMailing) {
|
|
85226
|
-
const mailing = current(registeredOffice, "Mailing");
|
|
85227
|
-
const delivery = current(registeredOffice, "Delivery");
|
|
85228
|
-
if (mailing) {
|
|
85229
|
-
const same = !delivery || this.isSameOfficeAddress(delivery, mailing);
|
|
85230
|
-
result.registeredOffice = {
|
|
85231
|
-
mailingAddress: mailing,
|
|
85232
|
-
deliverySameAsMailing: same,
|
|
85233
|
-
deliveryAddress: same ? void 0 : delivery
|
|
85234
|
-
};
|
|
85235
|
-
}
|
|
85236
|
-
}
|
|
85237
|
-
if (!delta?.recordsOffice && !incoming.recMailing) {
|
|
85238
|
-
const mailing = current(recordsOffice, "Mailing");
|
|
85239
|
-
const delivery = current(recordsOffice, "Delivery");
|
|
85240
|
-
if (mailing) {
|
|
85241
|
-
const registeredMailing = result.registeredOffice?.mailingAddress;
|
|
85242
|
-
const registeredDelivery = result.registeredOffice?.deliveryAddress ?? registeredMailing;
|
|
85243
|
-
const sameAsRegistered = this.isSameOfficeAddress(mailing, registeredMailing) && this.isSameOfficeAddress(delivery ?? mailing, registeredDelivery);
|
|
85244
|
-
const deliverySame = !delivery || this.isSameOfficeAddress(delivery, mailing);
|
|
85245
|
-
result.recordsOffice = {
|
|
85246
|
-
sameAsRegisteredOffice: sameAsRegistered,
|
|
85247
|
-
mailingAddress: sameAsRegistered ? void 0 : mailing,
|
|
85248
|
-
deliverySameAsMailing: deliverySame,
|
|
85249
|
-
deliveryAddress: deliverySame ? void 0 : delivery
|
|
85250
|
-
};
|
|
85251
|
-
} else {
|
|
85252
|
-
result.recordsOffice = { sameAsRegisteredOffice: false, deliverySameAsMailing: false };
|
|
85253
|
-
}
|
|
85254
|
-
}
|
|
85255
|
-
return result;
|
|
85256
|
-
}
|
|
85257
85212
|
/** Keeps the saved flags and addresses, but fills an address the draft left empty from `incoming`. */
|
|
85258
85213
|
static fillEmptyAddresses(saved, incoming) {
|
|
85259
85214
|
const hasValues = (address) => EDITABLE_ADDRESS_CONTROLS.some((name) => Boolean(address?.[name]));
|
|
@@ -87813,20 +87768,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87813
87768
|
\u0275\u0275property("content", ctx_r0.errors());
|
|
87814
87769
|
}
|
|
87815
87770
|
}
|
|
87816
|
-
function
|
|
87817
|
-
if (rf & 1) {
|
|
87818
|
-
\u0275\u0275element(0, "alert", 2);
|
|
87819
|
-
}
|
|
87820
|
-
if (rf & 2) {
|
|
87821
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87822
|
-
\u0275\u0275property("content", ctx_r0.missingMessages());
|
|
87823
|
-
}
|
|
87824
|
-
}
|
|
87825
|
-
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template(rf, ctx) {
|
|
87771
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template(rf, ctx) {
|
|
87826
87772
|
if (rf & 1) {
|
|
87827
87773
|
const _r2 = \u0275\u0275getCurrentView();
|
|
87828
87774
|
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 7);
|
|
87829
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87775
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87830
87776
|
\u0275\u0275restoreView(_r2);
|
|
87831
87777
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87832
87778
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
|
|
@@ -87835,17 +87781,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87835
87781
|
}
|
|
87836
87782
|
if (rf & 2) {
|
|
87837
87783
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87838
|
-
const referenceNumbers_r3 = \u0275\u0275readContextLet(
|
|
87784
|
+
const referenceNumbers_r3 = \u0275\u0275readContextLet(4);
|
|
87839
87785
|
\u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
|
|
87840
87786
|
\u0275\u0275advance();
|
|
87841
87787
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
|
|
87842
87788
|
}
|
|
87843
87789
|
}
|
|
87844
|
-
function
|
|
87790
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template(rf, ctx) {
|
|
87845
87791
|
if (rf & 1) {
|
|
87846
87792
|
const _r4 = \u0275\u0275getCurrentView();
|
|
87847
87793
|
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 7);
|
|
87848
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87794
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87849
87795
|
\u0275\u0275restoreView(_r4);
|
|
87850
87796
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87851
87797
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corpDetails", $event));
|
|
@@ -87854,129 +87800,232 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87854
87800
|
}
|
|
87855
87801
|
if (rf & 2) {
|
|
87856
87802
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87857
|
-
const corporationDetails_r5 = \u0275\u0275readContextLet(
|
|
87803
|
+
const corporationDetails_r5 = \u0275\u0275readContextLet(6);
|
|
87858
87804
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["corpDetails"] !== false)("title", ctx_r0.groups.CorporationDetails);
|
|
87859
87805
|
\u0275\u0275advance();
|
|
87860
87806
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r5)("config", ctx_r0.corporationDetailsFields());
|
|
87861
87807
|
}
|
|
87862
87808
|
}
|
|
87863
|
-
function
|
|
87809
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template(rf, ctx) {
|
|
87864
87810
|
if (rf & 1) {
|
|
87865
|
-
\u0275\
|
|
87866
|
-
\u0275\
|
|
87867
|
-
\u0275\
|
|
87811
|
+
const _r7 = \u0275\u0275getCurrentView();
|
|
87812
|
+
\u0275\u0275elementStart(0, "filing-form-group", 7);
|
|
87813
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template_filing_form_group_visiblyValidChange_0_listener() {
|
|
87814
|
+
\u0275\u0275restoreView(_r7);
|
|
87815
|
+
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87816
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87817
|
+
});
|
|
87868
87818
|
\u0275\u0275elementEnd();
|
|
87869
87819
|
}
|
|
87870
87820
|
if (rf & 2) {
|
|
87871
|
-
|
|
87821
|
+
\u0275\u0275nextContext();
|
|
87822
|
+
const registeredMailing_r8 = \u0275\u0275readContextLet(0);
|
|
87823
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87824
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredMailing_r8)("config", ctx_r0.addressFields);
|
|
87825
|
+
}
|
|
87826
|
+
}
|
|
87827
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template(rf, ctx) {
|
|
87828
|
+
if (rf & 1) {
|
|
87829
|
+
const _r9 = \u0275\u0275getCurrentView();
|
|
87830
|
+
\u0275\u0275element(0, "filing-form-group", 9);
|
|
87831
|
+
\u0275\u0275elementStart(1, "filing-form-group", 7);
|
|
87832
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template_filing_form_group_visiblyValidChange_1_listener() {
|
|
87833
|
+
\u0275\u0275restoreView(_r9);
|
|
87834
|
+
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87835
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87836
|
+
});
|
|
87837
|
+
\u0275\u0275elementEnd();
|
|
87838
|
+
}
|
|
87839
|
+
if (rf & 2) {
|
|
87840
|
+
\u0275\u0275nextContext();
|
|
87841
|
+
const registeredDelivery_r10 = \u0275\u0275readContextLet(1);
|
|
87842
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87843
|
+
const registeredOffice_r11 = \u0275\u0275readContextLet(8);
|
|
87844
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliveryNoteFields);
|
|
87872
87845
|
\u0275\u0275advance();
|
|
87873
|
-
\u0275\
|
|
87846
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredDelivery_r10)("config", ctx_r0.addressFields);
|
|
87874
87847
|
}
|
|
87875
87848
|
}
|
|
87876
|
-
function
|
|
87849
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template(rf, ctx) {
|
|
87877
87850
|
if (rf & 1) {
|
|
87878
|
-
\u0275\
|
|
87879
|
-
\u0275\
|
|
87880
|
-
\u0275\
|
|
87851
|
+
const _r6 = \u0275\u0275getCurrentView();
|
|
87852
|
+
\u0275\u0275declareLet(0)(1)(2);
|
|
87853
|
+
\u0275\u0275elementStart(3, "expandable-card", 5)(4, "div", 8);
|
|
87854
|
+
\u0275\u0275element(5, "filing-form-group", 9);
|
|
87855
|
+
\u0275\u0275elementStart(6, "h4", 10);
|
|
87856
|
+
\u0275\u0275text(7);
|
|
87857
|
+
\u0275\u0275pipe(8, "translate");
|
|
87881
87858
|
\u0275\u0275elementEnd();
|
|
87882
|
-
\u0275\
|
|
87883
|
-
\u0275\
|
|
87859
|
+
\u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template, 1, 3, "filing-form-group", 9);
|
|
87860
|
+
\u0275\u0275elementStart(10, "h4", 10);
|
|
87861
|
+
\u0275\u0275text(11);
|
|
87862
|
+
\u0275\u0275pipe(12, "translate");
|
|
87884
87863
|
\u0275\u0275elementEnd();
|
|
87885
|
-
\u0275\
|
|
87864
|
+
\u0275\u0275elementStart(13, "filing-form-group", 7);
|
|
87865
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template_filing_form_group_visiblyValidChange_13_listener() {
|
|
87866
|
+
\u0275\u0275restoreView(_r6);
|
|
87867
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87868
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87869
|
+
});
|
|
87886
87870
|
\u0275\u0275elementEnd();
|
|
87871
|
+
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template, 2, 6);
|
|
87872
|
+
\u0275\u0275elementEnd()();
|
|
87887
87873
|
}
|
|
87888
87874
|
if (rf & 2) {
|
|
87889
|
-
const
|
|
87890
|
-
\u0275\
|
|
87891
|
-
|
|
87875
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87876
|
+
const registeredOffice_r11 = \u0275\u0275readContextLet(8);
|
|
87877
|
+
const registeredMailing_r12 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewMailingAddress));
|
|
87878
|
+
\u0275\u0275advance();
|
|
87879
|
+
const registeredDelivery_r13 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewDeliveryAddress));
|
|
87880
|
+
const registeredDeliverySame_r14 = ctx_r0.isChecked(registeredOffice_r11, ctx_r0.controls.DeliverySameAsMailing);
|
|
87881
|
+
\u0275\u0275advance(2);
|
|
87882
|
+
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
87892
87883
|
\u0275\u0275advance(2);
|
|
87893
|
-
\u0275\
|
|
87884
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.currentAddressesFields);
|
|
87894
87885
|
\u0275\u0275advance(2);
|
|
87895
|
-
\u0275\
|
|
87886
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(8, 15, "New Mailing Address"));
|
|
87887
|
+
\u0275\u0275advance(2);
|
|
87888
|
+
\u0275\u0275conditional(registeredMailing_r12 ? 9 : -1);
|
|
87889
|
+
\u0275\u0275advance(2);
|
|
87890
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(12, 17, "New Delivery Address"));
|
|
87891
|
+
\u0275\u0275advance(2);
|
|
87892
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliverySameAsMailingFields);
|
|
87893
|
+
\u0275\u0275advance();
|
|
87894
|
+
\u0275\u0275conditional(!registeredDeliverySame_r14 && registeredDelivery_r13 ? 14 : -1);
|
|
87896
87895
|
}
|
|
87897
87896
|
}
|
|
87898
|
-
function
|
|
87897
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template(rf, ctx) {
|
|
87899
87898
|
if (rf & 1) {
|
|
87900
|
-
\u0275\
|
|
87901
|
-
\u0275\
|
|
87902
|
-
\u0275\
|
|
87899
|
+
const _r17 = \u0275\u0275getCurrentView();
|
|
87900
|
+
\u0275\u0275elementStart(0, "filing-form-group", 7);
|
|
87901
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template_filing_form_group_visiblyValidChange_0_listener() {
|
|
87902
|
+
\u0275\u0275restoreView(_r17);
|
|
87903
|
+
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
87904
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87905
|
+
});
|
|
87906
|
+
\u0275\u0275elementEnd();
|
|
87903
87907
|
}
|
|
87904
87908
|
if (rf & 2) {
|
|
87909
|
+
\u0275\u0275nextContext(2);
|
|
87910
|
+
const recordsMailing_r18 = \u0275\u0275readContextLet(0);
|
|
87905
87911
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87906
|
-
\u0275\u0275property("
|
|
87907
|
-
\u0275\u0275advance(2);
|
|
87908
|
-
\u0275\u0275repeater(ctx_r0.registeredRows());
|
|
87912
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsMailing_r18)("config", ctx_r0.addressFields);
|
|
87909
87913
|
}
|
|
87910
87914
|
}
|
|
87911
|
-
function
|
|
87915
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template(rf, ctx) {
|
|
87912
87916
|
if (rf & 1) {
|
|
87913
|
-
\u0275\
|
|
87914
|
-
\u0275\
|
|
87915
|
-
\u0275\
|
|
87917
|
+
const _r19 = \u0275\u0275getCurrentView();
|
|
87918
|
+
\u0275\u0275elementStart(0, "filing-form-group", 7);
|
|
87919
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template_filing_form_group_visiblyValidChange_0_listener() {
|
|
87920
|
+
\u0275\u0275restoreView(_r19);
|
|
87921
|
+
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
87922
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87923
|
+
});
|
|
87916
87924
|
\u0275\u0275elementEnd();
|
|
87917
87925
|
}
|
|
87918
87926
|
if (rf & 2) {
|
|
87919
|
-
|
|
87920
|
-
\u0275\
|
|
87921
|
-
|
|
87927
|
+
\u0275\u0275nextContext(2);
|
|
87928
|
+
const recordsDelivery_r20 = \u0275\u0275readContextLet(1);
|
|
87929
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87930
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsDelivery_r20)("config", ctx_r0.addressFields);
|
|
87922
87931
|
}
|
|
87923
87932
|
}
|
|
87924
|
-
function
|
|
87933
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template(rf, ctx) {
|
|
87925
87934
|
if (rf & 1) {
|
|
87926
|
-
\u0275\
|
|
87927
|
-
\u0275\
|
|
87928
|
-
\u0275\
|
|
87935
|
+
const _r16 = \u0275\u0275getCurrentView();
|
|
87936
|
+
\u0275\u0275elementStart(0, "h4", 10);
|
|
87937
|
+
\u0275\u0275text(1);
|
|
87938
|
+
\u0275\u0275pipe(2, "translate");
|
|
87929
87939
|
\u0275\u0275elementEnd();
|
|
87940
|
+
\u0275\u0275template(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template, 1, 3, "filing-form-group", 9);
|
|
87941
|
+
\u0275\u0275elementStart(4, "h4", 10);
|
|
87930
87942
|
\u0275\u0275text(5);
|
|
87931
87943
|
\u0275\u0275pipe(6, "translate");
|
|
87932
87944
|
\u0275\u0275elementEnd();
|
|
87933
|
-
\u0275\
|
|
87945
|
+
\u0275\u0275elementStart(7, "filing-form-group", 7);
|
|
87946
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
87947
|
+
\u0275\u0275restoreView(_r16);
|
|
87948
|
+
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87949
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87950
|
+
});
|
|
87934
87951
|
\u0275\u0275elementEnd();
|
|
87952
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template, 1, 3, "filing-form-group", 9);
|
|
87935
87953
|
}
|
|
87936
87954
|
if (rf & 2) {
|
|
87937
|
-
|
|
87938
|
-
\u0275\
|
|
87939
|
-
|
|
87955
|
+
\u0275\u0275nextContext();
|
|
87956
|
+
const recordsMailing_r18 = \u0275\u0275readContextLet(0);
|
|
87957
|
+
const recordsDelivery_r20 = \u0275\u0275readContextLet(1);
|
|
87958
|
+
const recordsDeliverySame_r21 = \u0275\u0275readContextLet(3);
|
|
87959
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87960
|
+
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
87961
|
+
\u0275\u0275advance();
|
|
87962
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 7, "New Mailing Address"));
|
|
87963
|
+
\u0275\u0275advance(2);
|
|
87964
|
+
\u0275\u0275conditional(recordsMailing_r18 ? 3 : -1);
|
|
87940
87965
|
\u0275\u0275advance(2);
|
|
87941
|
-
\u0275\
|
|
87966
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 9, "New Delivery Address"));
|
|
87942
87967
|
\u0275\u0275advance(2);
|
|
87943
|
-
\u0275\
|
|
87968
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.deliverySameAsMailingFields);
|
|
87969
|
+
\u0275\u0275advance();
|
|
87970
|
+
\u0275\u0275conditional(!recordsDeliverySame_r21 && recordsDelivery_r20 ? 8 : -1);
|
|
87944
87971
|
}
|
|
87945
87972
|
}
|
|
87946
|
-
function
|
|
87973
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template(rf, ctx) {
|
|
87947
87974
|
if (rf & 1) {
|
|
87948
|
-
\u0275\
|
|
87949
|
-
\u0275\
|
|
87975
|
+
const _r15 = \u0275\u0275getCurrentView();
|
|
87976
|
+
\u0275\u0275declareLet(0)(1)(2)(3);
|
|
87977
|
+
\u0275\u0275elementStart(4, "expandable-card", 5)(5, "div", 8);
|
|
87978
|
+
\u0275\u0275element(6, "filing-form-group", 9);
|
|
87979
|
+
\u0275\u0275elementStart(7, "filing-form-group", 7);
|
|
87980
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
87981
|
+
\u0275\u0275restoreView(_r15);
|
|
87982
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87983
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87984
|
+
});
|
|
87985
|
+
\u0275\u0275elementEnd();
|
|
87986
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template, 9, 11);
|
|
87950
87987
|
\u0275\u0275elementEnd()();
|
|
87951
87988
|
}
|
|
87952
87989
|
if (rf & 2) {
|
|
87953
87990
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87991
|
+
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
87992
|
+
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewMailingAddress));
|
|
87993
|
+
\u0275\u0275advance();
|
|
87994
|
+
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewDeliveryAddress));
|
|
87995
|
+
const recordsSameAsRegistered_r23 = ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.SameAsRegisteredOffice);
|
|
87996
|
+
\u0275\u0275advance(2);
|
|
87997
|
+
\u0275\u0275storeLet(ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.DeliverySameAsMailing));
|
|
87998
|
+
\u0275\u0275advance();
|
|
87954
87999
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
|
|
87955
88000
|
\u0275\u0275advance(2);
|
|
87956
|
-
\u0275\
|
|
88001
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.currentAddressesFields);
|
|
88002
|
+
\u0275\u0275advance();
|
|
88003
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.sameAsRegisteredOfficeFields);
|
|
88004
|
+
\u0275\u0275advance();
|
|
88005
|
+
\u0275\u0275conditional(!recordsSameAsRegistered_r23 ? 8 : -1);
|
|
87957
88006
|
}
|
|
87958
88007
|
}
|
|
87959
|
-
function
|
|
88008
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template(rf, ctx) {
|
|
87960
88009
|
if (rf & 1) {
|
|
87961
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
88010
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p");
|
|
87962
88011
|
\u0275\u0275text(3);
|
|
87963
88012
|
\u0275\u0275pipe(4, "translate");
|
|
87964
88013
|
\u0275\u0275elementEnd();
|
|
87965
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
88014
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 12)(6, "mat-radio-button", 13);
|
|
87966
88015
|
\u0275\u0275text(7);
|
|
87967
88016
|
\u0275\u0275pipe(8, "translate");
|
|
87968
88017
|
\u0275\u0275elementEnd();
|
|
87969
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
88018
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 13);
|
|
87970
88019
|
\u0275\u0275text(10);
|
|
87971
88020
|
\u0275\u0275pipe(11, "translate");
|
|
87972
88021
|
\u0275\u0275elementEnd()()()();
|
|
87973
88022
|
}
|
|
87974
88023
|
if (rf & 2) {
|
|
87975
88024
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87976
|
-
const
|
|
88025
|
+
const annualReportReminder_r24 = \u0275\u0275readContextLet(12);
|
|
87977
88026
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
|
|
87978
88027
|
\u0275\u0275advance();
|
|
87979
|
-
\u0275\u0275property("formGroup",
|
|
88028
|
+
\u0275\u0275property("formGroup", annualReportReminder_r24);
|
|
87980
88029
|
\u0275\u0275advance(2);
|
|
87981
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."), " ");
|
|
87982
88031
|
\u0275\u0275advance(2);
|
|
@@ -87991,7 +88040,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87991
88040
|
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(11, 13, "No, I do not need to be reminded"), " ");
|
|
87992
88041
|
}
|
|
87993
88042
|
}
|
|
87994
|
-
var
|
|
88043
|
+
var BritishColumbiaChangeOfOfficeAddressesFormComponent;
|
|
87995
88044
|
var init_change_of_office_addresses_form_component = __esm({
|
|
87996
88045
|
"src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts"() {
|
|
87997
88046
|
init_core();
|
|
@@ -88004,11 +88053,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88004
88053
|
init_expandable_card_component();
|
|
88005
88054
|
init_british_columbia_form_enums();
|
|
88006
88055
|
init_british_columbia_change_of_office_addresses_form_constants();
|
|
88056
|
+
init_forms_utils();
|
|
88007
88057
|
init_BritishColumbiaConstants();
|
|
88008
88058
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
88009
88059
|
init_core();
|
|
88010
88060
|
init_forms();
|
|
88011
|
-
_forTrack05 = ($index, $item) => $item.label;
|
|
88012
88061
|
BritishColumbiaChangeOfOfficeAddressesFormComponent = class _BritishColumbiaChangeOfOfficeAddressesFormComponent {
|
|
88013
88062
|
form = input.required();
|
|
88014
88063
|
task = input();
|
|
@@ -88031,38 +88080,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88031
88080
|
deliveryNoteFields = BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS;
|
|
88032
88081
|
deliverySameAsMailingFields = BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS;
|
|
88033
88082
|
sameAsRegisteredOfficeFields = BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
|
|
88034
|
-
translate = inject(TranslateService);
|
|
88035
88083
|
sectionValidity = {};
|
|
88036
88084
|
isVisiblyValid() {
|
|
88037
88085
|
return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
|
|
88038
88086
|
}
|
|
88039
88087
|
isRegisteredOfficeValid() {
|
|
88040
|
-
|
|
88088
|
+
const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
|
|
88089
|
+
return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
|
|
88041
88090
|
}
|
|
88042
88091
|
isRecordsOfficeValid() {
|
|
88043
|
-
|
|
88044
|
-
|
|
88045
|
-
/** One message per missing office address, shown in the banner at the top of the form. */
|
|
88046
|
-
missingMessages() {
|
|
88047
|
-
const t = (key) => this.translate.instant(key);
|
|
88048
|
-
const records = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88049
|
-
const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
|
|
88050
|
-
const [regMailing, regDelivery] = this.registeredRows();
|
|
88051
|
-
const [recMailing, recDelivery] = this.recordsRows();
|
|
88052
|
-
return [
|
|
88053
|
-
!regMailing.value && t("The Registered Office mailing address is missing."),
|
|
88054
|
-
!regDelivery.value && t("The Registered Office delivery address is missing."),
|
|
88055
|
-
// "Same as Registered Office" is already reported by the registered office messages.
|
|
88056
|
-
!recordsSameAsRegistered && !recMailing.value && t("The Records Office mailing address is missing."),
|
|
88057
|
-
!recordsSameAsRegistered && !recDelivery.value && t("The Records Office delivery address is missing.")
|
|
88058
|
-
].filter((m) => !!m);
|
|
88059
|
-
}
|
|
88060
|
-
/** The incoming Shared Address supplied no new address for a line (and none is on the register). */
|
|
88061
|
-
isRegisteredMissing() {
|
|
88062
|
-
return this.registeredRows().some((row) => !row.value);
|
|
88063
|
-
}
|
|
88064
|
-
isRecordsMissing() {
|
|
88065
|
-
return this.recordsRows().some((row) => !row.value);
|
|
88092
|
+
const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88093
|
+
return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
|
|
88066
88094
|
}
|
|
88067
88095
|
isChecked(office, control) {
|
|
88068
88096
|
return Boolean(office?.get(control)?.value);
|
|
@@ -88080,77 +88108,28 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88080
88108
|
getAddressGroup(office, control) {
|
|
88081
88109
|
return office?.get(control) ?? null;
|
|
88082
88110
|
}
|
|
88083
|
-
|
|
88084
|
-
|
|
88085
|
-
|
|
88086
|
-
return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
|
|
88087
|
-
}
|
|
88088
|
-
/** Records office lines; "Same as Registered Office" reuses the registered office's new lines. */
|
|
88089
|
-
recordsRows() {
|
|
88090
|
-
const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88091
|
-
if (this.isChecked(office, this.controls.SameAsRegisteredOffice)) {
|
|
88092
|
-
const registered = this.registeredRows();
|
|
88093
|
-
const current = this.currentOf(office);
|
|
88094
|
-
return registered.map((row, i) => __spreadProps(__spreadValues({}, row), {
|
|
88095
|
-
previous: this.changedPrevious(row.value, i === 0 ? current.mailing : current.delivery)
|
|
88096
|
-
}));
|
|
88097
|
-
}
|
|
88098
|
-
return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
|
|
88099
|
-
}
|
|
88100
|
-
buildRows(office, deliverySame) {
|
|
88101
|
-
const current = this.currentOf(office);
|
|
88102
|
-
const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress));
|
|
88103
|
-
const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress));
|
|
88104
|
-
return [
|
|
88105
|
-
{
|
|
88106
|
-
label: "Mailing Address",
|
|
88107
|
-
value: mailing,
|
|
88108
|
-
previous: this.changedPrevious(mailing, current.mailing)
|
|
88109
|
-
},
|
|
88110
|
-
{
|
|
88111
|
-
label: "Delivery Address",
|
|
88112
|
-
value: delivery,
|
|
88113
|
-
previous: this.changedPrevious(delivery, current.delivery)
|
|
88114
|
-
}
|
|
88115
|
-
];
|
|
88116
|
-
}
|
|
88117
|
-
currentOf(office) {
|
|
88118
|
-
return {
|
|
88119
|
-
mailing: office?.get(this.controls.CurrentMailingAddress)?.value ?? "",
|
|
88120
|
-
delivery: office?.get(this.controls.CurrentDeliveryAddress)?.value ?? ""
|
|
88121
|
-
};
|
|
88122
|
-
}
|
|
88123
|
-
formatNew(group2) {
|
|
88124
|
-
const c = this.controls;
|
|
88125
|
-
const v = group2?.getRawValue() ?? {};
|
|
88126
|
-
if (![v[c.AddressLine1], v[c.City], v[c.PostalCode]].some((part) => part?.trim())) {
|
|
88127
|
-
return "";
|
|
88128
|
-
}
|
|
88129
|
-
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(", ");
|
|
88130
|
-
}
|
|
88131
|
-
/** The previous address, only when it exists and differs from the new one. */
|
|
88132
|
-
changedPrevious(next, previous) {
|
|
88133
|
-
const normalize = (s) => s.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
88134
|
-
return previous && normalize(previous) !== normalize(next) ? previous : "";
|
|
88111
|
+
isAddressValid(office, control) {
|
|
88112
|
+
const group2 = this.getAddressGroup(office, control);
|
|
88113
|
+
return !group2 || group2.disabled || isFormGroupVisiblyValid(group2, this.addressFields);
|
|
88135
88114
|
}
|
|
88136
88115
|
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
|
|
88137
88116
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
|
|
88138
88117
|
};
|
|
88139
|
-
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:
|
|
88118
|
+
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: 14, vars: 12, 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"], [3, "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item-title"], [1, "annual-reminder", 3, "formGroup"], [3, "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfOfficeAddressesFormComponent_Template(rf, ctx) {
|
|
88140
88119
|
if (rf & 1) {
|
|
88141
88120
|
\u0275\u0275elementStart(0, "div", 0);
|
|
88142
|
-
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2)
|
|
88143
|
-
\u0275\u0275elementStart(
|
|
88144
|
-
\u0275\u0275declareLet(
|
|
88145
|
-
\u0275\u0275template(
|
|
88146
|
-
\u0275\u0275declareLet(
|
|
88147
|
-
\u0275\u0275template(
|
|
88148
|
-
\u0275\u0275declareLet(
|
|
88149
|
-
\u0275\u0275template(
|
|
88150
|
-
\u0275\u0275declareLet(
|
|
88151
|
-
\u0275\u0275template(
|
|
88152
|
-
\u0275\u0275declareLet(
|
|
88153
|
-
\u0275\u0275template(
|
|
88121
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
88122
|
+
\u0275\u0275elementStart(3, "div", 3);
|
|
88123
|
+
\u0275\u0275declareLet(4);
|
|
88124
|
+
\u0275\u0275template(5, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 4);
|
|
88125
|
+
\u0275\u0275declareLet(6);
|
|
88126
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template, 2, 6, "expandable-card", 5);
|
|
88127
|
+
\u0275\u0275declareLet(8);
|
|
88128
|
+
\u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template, 15, 19, "expandable-card", 5);
|
|
88129
|
+
\u0275\u0275declareLet(10);
|
|
88130
|
+
\u0275\u0275template(11, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template, 9, 13, "expandable-card", 5);
|
|
88131
|
+
\u0275\u0275declareLet(12);
|
|
88132
|
+
\u0275\u0275template(13, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template, 12, 15, "expandable-card", 6);
|
|
88154
88133
|
\u0275\u0275elementEnd()();
|
|
88155
88134
|
}
|
|
88156
88135
|
if (rf & 2) {
|
|
@@ -88158,26 +88137,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88158
88137
|
\u0275\u0275conditional(ctx.isNote() ? 1 : -1);
|
|
88159
88138
|
\u0275\u0275advance();
|
|
88160
88139
|
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
88161
|
-
\u0275\u0275advance();
|
|
88162
|
-
\u0275\u0275conditional(ctx.missingMessages().length ? 3 : -1);
|
|
88163
88140
|
\u0275\u0275advance(2);
|
|
88164
|
-
const
|
|
88141
|
+
const referenceNumbers_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
88165
88142
|
\u0275\u0275advance();
|
|
88166
|
-
\u0275\u0275conditional(
|
|
88143
|
+
\u0275\u0275conditional(referenceNumbers_r25 ? 5 : -1);
|
|
88167
88144
|
\u0275\u0275advance();
|
|
88168
|
-
const
|
|
88145
|
+
const corporationDetails_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
88169
88146
|
\u0275\u0275advance();
|
|
88170
|
-
\u0275\u0275conditional(
|
|
88171
|
-
|
|
88172
|
-
\u0275\
|
|
88173
|
-
\u0275\u0275conditional(registeredOffice_r11 ? 10 : -1);
|
|
88174
|
-
const recordsOffice_r12 = ctx.getFormGroup(ctx.groups.RecordsOfficeAddress);
|
|
88175
|
-
\u0275\u0275advance(2);
|
|
88176
|
-
\u0275\u0275conditional(recordsOffice_r12 ? 12 : -1);
|
|
88147
|
+
\u0275\u0275conditional(corporationDetails_r26 ? 7 : -1);
|
|
88148
|
+
\u0275\u0275advance();
|
|
88149
|
+
const registeredOffice_r27 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
|
|
88177
88150
|
\u0275\u0275advance();
|
|
88178
|
-
|
|
88151
|
+
\u0275\u0275conditional(registeredOffice_r27 ? 9 : -1);
|
|
88179
88152
|
\u0275\u0275advance();
|
|
88180
|
-
\u0275\
|
|
88153
|
+
const recordsOffice_r28 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RecordsOfficeAddress));
|
|
88154
|
+
\u0275\u0275advance();
|
|
88155
|
+
\u0275\u0275conditional(recordsOffice_r28 ? 11 : -1);
|
|
88156
|
+
\u0275\u0275advance();
|
|
88157
|
+
const annualReportReminder_r29 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
88158
|
+
\u0275\u0275advance();
|
|
88159
|
+
\u0275\u0275conditional(annualReportReminder_r29 ? 13 : -1);
|
|
88181
88160
|
}
|
|
88182
88161
|
}, dependencies: [
|
|
88183
88162
|
FilingFormGroupComponent,
|
|
@@ -88191,7 +88170,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88191
88170
|
FormGroupDirective,
|
|
88192
88171
|
FormControlName,
|
|
88193
88172
|
TranslatePipe
|
|
88194
|
-
], styles: [
|
|
88173
|
+
], 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/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */"], changeDetection: 0 });
|
|
88195
88174
|
};
|
|
88196
88175
|
(() => {
|
|
88197
88176
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
|
|
@@ -88219,13 +88198,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88219
88198
|
[content]="errors()"\r
|
|
88220
88199
|
/>\r
|
|
88221
88200
|
}\r
|
|
88222
|
-
\r
|
|
88223
|
-
@if (missingMessages().length) {\r
|
|
88224
|
-
<alert\r
|
|
88225
|
-
title="The following issues need to be resolved before proceeding:"\r
|
|
88226
|
-
[content]="missingMessages()"\r
|
|
88227
|
-
/>\r
|
|
88228
|
-
}\r
|
|
88229
88201
|
\r
|
|
88230
88202
|
<div class="change-of-office-addresses-form-content">\r
|
|
88231
88203
|
@let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
|
|
@@ -88262,24 +88234,54 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88262
88234
|
@let registeredOffice = getFormGroup(groups.RegisteredOfficeAddress);\r
|
|
88263
88235
|
\r
|
|
88264
88236
|
@if (registeredOffice) {\r
|
|
88237
|
+
@let registeredMailing = getAddressGroup(registeredOffice, controls.NewMailingAddress);\r
|
|
88238
|
+
@let registeredDelivery = getAddressGroup(registeredOffice, controls.NewDeliveryAddress);\r
|
|
88239
|
+
@let registeredDeliverySame = isChecked(registeredOffice, controls.DeliverySameAsMailing);\r
|
|
88240
|
+
\r
|
|
88265
88241
|
<expandable-card\r
|
|
88266
88242
|
[isStatusIcon]="!readonly()"\r
|
|
88267
88243
|
[isValid]="isRegisteredOfficeValid()"\r
|
|
88268
88244
|
[title]="groups.RegisteredOfficeAddress"\r
|
|
88269
88245
|
>\r
|
|
88270
88246
|
<div class="change-of-office-addresses-form-item">\r
|
|
88271
|
-
|
|
88272
|
-
|
|
88273
|
-
|
|
88274
|
-
|
|
88275
|
-
|
|
88276
|
-
|
|
88277
|
-
|
|
88278
|
-
|
|
88279
|
-
|
|
88280
|
-
|
|
88281
|
-
|
|
88282
|
-
|
|
88247
|
+
<filing-form-group\r
|
|
88248
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88249
|
+
[form]="registeredOffice"\r
|
|
88250
|
+
[config]="currentAddressesFields"\r
|
|
88251
|
+
/>\r
|
|
88252
|
+
\r
|
|
88253
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
|
|
88254
|
+
\r
|
|
88255
|
+
@if (registeredMailing) {\r
|
|
88256
|
+
<filing-form-group\r
|
|
88257
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88258
|
+
[form]="registeredMailing"\r
|
|
88259
|
+
[config]="addressFields"\r
|
|
88260
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88261
|
+
/>\r
|
|
88262
|
+
}\r
|
|
88263
|
+
\r
|
|
88264
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
88265
|
+
\r
|
|
88266
|
+
<filing-form-group\r
|
|
88267
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88268
|
+
[form]="registeredOffice"\r
|
|
88269
|
+
[config]="deliverySameAsMailingFields"\r
|
|
88270
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88271
|
+
/>\r
|
|
88272
|
+
\r
|
|
88273
|
+
@if (!registeredDeliverySame && registeredDelivery) {\r
|
|
88274
|
+
<filing-form-group\r
|
|
88275
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88276
|
+
[form]="registeredOffice"\r
|
|
88277
|
+
[config]="deliveryNoteFields"\r
|
|
88278
|
+
/>\r
|
|
88279
|
+
<filing-form-group\r
|
|
88280
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88281
|
+
[form]="registeredDelivery"\r
|
|
88282
|
+
[config]="addressFields"\r
|
|
88283
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88284
|
+
/>\r
|
|
88283
88285
|
}\r
|
|
88284
88286
|
</div>\r
|
|
88285
88287
|
</expandable-card>\r
|
|
@@ -88289,24 +88291,59 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88289
88291
|
@let recordsOffice = getFormGroup(groups.RecordsOfficeAddress);\r
|
|
88290
88292
|
\r
|
|
88291
88293
|
@if (recordsOffice) {\r
|
|
88294
|
+
@let recordsMailing = getAddressGroup(recordsOffice, controls.NewMailingAddress);\r
|
|
88295
|
+
@let recordsDelivery = getAddressGroup(recordsOffice, controls.NewDeliveryAddress);\r
|
|
88296
|
+
@let recordsSameAsRegistered = isChecked(recordsOffice, controls.SameAsRegisteredOffice);\r
|
|
88297
|
+
@let recordsDeliverySame = isChecked(recordsOffice, controls.DeliverySameAsMailing);\r
|
|
88298
|
+
\r
|
|
88292
88299
|
<expandable-card\r
|
|
88293
88300
|
[isStatusIcon]="!readonly()"\r
|
|
88294
88301
|
[isValid]="isRecordsOfficeValid()"\r
|
|
88295
88302
|
[title]="groups.RecordsOfficeAddress"\r
|
|
88296
88303
|
>\r
|
|
88297
88304
|
<div class="change-of-office-addresses-form-item">\r
|
|
88298
|
-
|
|
88299
|
-
|
|
88300
|
-
|
|
88301
|
-
|
|
88302
|
-
|
|
88303
|
-
|
|
88304
|
-
|
|
88305
|
-
|
|
88306
|
-
|
|
88307
|
-
|
|
88308
|
-
|
|
88309
|
-
|
|
88305
|
+
<filing-form-group\r
|
|
88306
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88307
|
+
[form]="recordsOffice"\r
|
|
88308
|
+
[config]="currentAddressesFields"\r
|
|
88309
|
+
/>\r
|
|
88310
|
+
\r
|
|
88311
|
+
<filing-form-group\r
|
|
88312
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88313
|
+
[form]="recordsOffice"\r
|
|
88314
|
+
[config]="sameAsRegisteredOfficeFields"\r
|
|
88315
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88316
|
+
/>\r
|
|
88317
|
+
\r
|
|
88318
|
+
@if (!recordsSameAsRegistered) {\r
|
|
88319
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
|
|
88320
|
+
\r
|
|
88321
|
+
@if (recordsMailing) {\r
|
|
88322
|
+
<filing-form-group\r
|
|
88323
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88324
|
+
[form]="recordsMailing"\r
|
|
88325
|
+
[config]="addressFields"\r
|
|
88326
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88327
|
+
/>\r
|
|
88328
|
+
}\r
|
|
88329
|
+
\r
|
|
88330
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
88331
|
+
\r
|
|
88332
|
+
<filing-form-group\r
|
|
88333
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88334
|
+
[form]="recordsOffice"\r
|
|
88335
|
+
[config]="deliverySameAsMailingFields"\r
|
|
88336
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88337
|
+
/>\r
|
|
88338
|
+
\r
|
|
88339
|
+
@if (!recordsDeliverySame && recordsDelivery) {\r
|
|
88340
|
+
<filing-form-group\r
|
|
88341
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88342
|
+
[form]="recordsDelivery"\r
|
|
88343
|
+
[config]="addressFields"\r
|
|
88344
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88345
|
+
/>\r
|
|
88346
|
+
}\r
|
|
88310
88347
|
}\r
|
|
88311
88348
|
</div>\r
|
|
88312
88349
|
</expandable-card>\r
|
|
@@ -88336,11 +88373,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88336
88373
|
}\r
|
|
88337
88374
|
</div>\r
|
|
88338
88375
|
</div>\r
|
|
88339
|
-
`, styles: [
|
|
88376
|
+
`, 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/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */\n"] }]
|
|
88340
88377
|
}], null, null);
|
|
88341
88378
|
})();
|
|
88342
88379
|
(() => {
|
|
88343
|
-
(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:
|
|
88380
|
+
(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: 55 });
|
|
88344
88381
|
})();
|
|
88345
88382
|
}
|
|
88346
88383
|
});
|
|
@@ -90724,7 +90761,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90724
90761
|
\u0275\u0275pipe(7, "translate");
|
|
90725
90762
|
\u0275\u0275elementEnd();
|
|
90726
90763
|
\u0275\u0275elementStart(8, "ul", 16);
|
|
90727
|
-
\u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17,
|
|
90764
|
+
\u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17, _forTrack05);
|
|
90728
90765
|
\u0275\u0275elementEnd()();
|
|
90729
90766
|
\u0275\u0275elementStart(11, "span", 17);
|
|
90730
90767
|
\u0275\u0275text(12);
|
|
@@ -90927,7 +90964,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90927
90964
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", contactForm_r24)("config", ctx_r0.contactControl);
|
|
90928
90965
|
}
|
|
90929
90966
|
}
|
|
90930
|
-
var _c016,
|
|
90967
|
+
var _c016, _forTrack05, FederalIncorporationFormComponent;
|
|
90931
90968
|
var init_federal_incorporation_form_component = __esm({
|
|
90932
90969
|
"src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts"() {
|
|
90933
90970
|
init_core();
|
|
@@ -90952,7 +90989,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90952
90989
|
init_common();
|
|
90953
90990
|
init_core();
|
|
90954
90991
|
_c016 = ["*"];
|
|
90955
|
-
|
|
90992
|
+
_forTrack05 = ($index, $item) => $item.affiliationID;
|
|
90956
90993
|
FederalIncorporationFormComponent = class _FederalIncorporationFormComponent {
|
|
90957
90994
|
form = input.required();
|
|
90958
90995
|
isNote = input(false);
|
|
@@ -95891,7 +95928,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95891
95928
|
"src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
|
|
95892
95929
|
init_BritishColumbiaConstants();
|
|
95893
95930
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
95894
|
-
TEMP_UAT_TEST_ACCESS_CODE = "
|
|
95931
|
+
TEMP_UAT_TEST_ACCESS_CODE = "12345678";
|
|
95895
95932
|
BC_PROVINCE_CODE = "BC";
|
|
95896
95933
|
CANADA_COUNTRY_CODE = "CA";
|
|
95897
95934
|
clean = (value) => (value ?? "").trim();
|
|
@@ -101905,12 +101942,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
101905
101942
|
"File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
|
|
101906
101943
|
"Records Office Address": "Records Office Address",
|
|
101907
101944
|
"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.",
|
|
101908
|
-
"The Registered Office mailing address is missing.": "The Registered Office mailing address is missing.",
|
|
101909
|
-
"The Registered Office delivery address is missing.": "The Registered Office delivery address is missing.",
|
|
101910
|
-
"The Records Office mailing address is missing.": "The Records Office mailing address is missing.",
|
|
101911
|
-
"The Records Office delivery address is missing.": "The Records Office delivery address is missing.",
|
|
101912
|
-
"Mailing Address": "Mailing Address",
|
|
101913
|
-
"Delivery Address": "Delivery Address",
|
|
101914
101945
|
"Current Mailing Address": "Current Mailing Address",
|
|
101915
101946
|
"Current Delivery Address": "Current Delivery Address",
|
|
101916
101947
|
"New Mailing Address": "New Mailing Address",
|
|
@@ -102267,12 +102298,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102267
102298
|
"Without Par Value": "Sans valeur nominale",
|
|
102268
102299
|
"File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
|
|
102269
102300
|
"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.",
|
|
102270
|
-
"The Registered Office mailing address is missing.": "L'adresse postale du si\xE8ge social est manquante.",
|
|
102271
|
-
"The Registered Office delivery address is missing.": "L'adresse de livraison du si\xE8ge social est manquante.",
|
|
102272
|
-
"The Records Office mailing address is missing.": "L'adresse postale du bureau des registres est manquante.",
|
|
102273
|
-
"The Records Office delivery address is missing.": "L'adresse de livraison du bureau des registres est manquante.",
|
|
102274
|
-
"Mailing Address": "Adresse postale",
|
|
102275
|
-
"Delivery Address": "Adresse de livraison",
|
|
102276
102301
|
"Current Mailing Address": "Adresse postale actuelle",
|
|
102277
102302
|
"Current Delivery Address": "Adresse de livraison actuelle",
|
|
102278
102303
|
"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.15",
|
|
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
|
}
|