@dyedurham/search-and-file-widget 2.1.13 → 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 +293 -266
- 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,48 +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
|
-
}
|
|
85252
|
-
}
|
|
85253
|
-
return result;
|
|
85254
|
-
}
|
|
85255
85212
|
/** Keeps the saved flags and addresses, but fills an address the draft left empty from `incoming`. */
|
|
85256
85213
|
static fillEmptyAddresses(saved, incoming) {
|
|
85257
85214
|
const hasValues = (address) => EDITABLE_ADDRESS_CONTROLS.some((name) => Boolean(address?.[name]));
|
|
@@ -87811,20 +87768,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87811
87768
|
\u0275\u0275property("content", ctx_r0.errors());
|
|
87812
87769
|
}
|
|
87813
87770
|
}
|
|
87814
|
-
function
|
|
87815
|
-
if (rf & 1) {
|
|
87816
|
-
\u0275\u0275element(0, "alert", 2);
|
|
87817
|
-
}
|
|
87818
|
-
if (rf & 2) {
|
|
87819
|
-
const ctx_r0 = \u0275\u0275nextContext();
|
|
87820
|
-
\u0275\u0275property("content", ctx_r0.missingMessages());
|
|
87821
|
-
}
|
|
87822
|
-
}
|
|
87823
|
-
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template(rf, ctx) {
|
|
87771
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template(rf, ctx) {
|
|
87824
87772
|
if (rf & 1) {
|
|
87825
87773
|
const _r2 = \u0275\u0275getCurrentView();
|
|
87826
87774
|
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 7);
|
|
87827
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87775
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87828
87776
|
\u0275\u0275restoreView(_r2);
|
|
87829
87777
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87830
87778
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
|
|
@@ -87833,17 +87781,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87833
87781
|
}
|
|
87834
87782
|
if (rf & 2) {
|
|
87835
87783
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87836
|
-
const referenceNumbers_r3 = \u0275\u0275readContextLet(
|
|
87784
|
+
const referenceNumbers_r3 = \u0275\u0275readContextLet(4);
|
|
87837
87785
|
\u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
|
|
87838
87786
|
\u0275\u0275advance();
|
|
87839
87787
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
|
|
87840
87788
|
}
|
|
87841
87789
|
}
|
|
87842
|
-
function
|
|
87790
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template(rf, ctx) {
|
|
87843
87791
|
if (rf & 1) {
|
|
87844
87792
|
const _r4 = \u0275\u0275getCurrentView();
|
|
87845
87793
|
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 7);
|
|
87846
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87794
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87847
87795
|
\u0275\u0275restoreView(_r4);
|
|
87848
87796
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87849
87797
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corpDetails", $event));
|
|
@@ -87852,129 +87800,232 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87852
87800
|
}
|
|
87853
87801
|
if (rf & 2) {
|
|
87854
87802
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87855
|
-
const corporationDetails_r5 = \u0275\u0275readContextLet(
|
|
87803
|
+
const corporationDetails_r5 = \u0275\u0275readContextLet(6);
|
|
87856
87804
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["corpDetails"] !== false)("title", ctx_r0.groups.CorporationDetails);
|
|
87857
87805
|
\u0275\u0275advance();
|
|
87858
87806
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r5)("config", ctx_r0.corporationDetailsFields());
|
|
87859
87807
|
}
|
|
87860
87808
|
}
|
|
87861
|
-
function
|
|
87809
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template(rf, ctx) {
|
|
87862
87810
|
if (rf & 1) {
|
|
87863
|
-
\u0275\
|
|
87864
|
-
\u0275\
|
|
87865
|
-
\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
|
+
});
|
|
87866
87818
|
\u0275\u0275elementEnd();
|
|
87867
87819
|
}
|
|
87868
87820
|
if (rf & 2) {
|
|
87869
|
-
|
|
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);
|
|
87870
87845
|
\u0275\u0275advance();
|
|
87871
|
-
\u0275\
|
|
87846
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredDelivery_r10)("config", ctx_r0.addressFields);
|
|
87872
87847
|
}
|
|
87873
87848
|
}
|
|
87874
|
-
function
|
|
87849
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template(rf, ctx) {
|
|
87875
87850
|
if (rf & 1) {
|
|
87876
|
-
\u0275\
|
|
87877
|
-
\u0275\
|
|
87878
|
-
\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");
|
|
87879
87858
|
\u0275\u0275elementEnd();
|
|
87880
|
-
\u0275\
|
|
87881
|
-
\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");
|
|
87882
87863
|
\u0275\u0275elementEnd();
|
|
87883
|
-
\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
|
+
});
|
|
87884
87870
|
\u0275\u0275elementEnd();
|
|
87871
|
+
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template, 2, 6);
|
|
87872
|
+
\u0275\u0275elementEnd()();
|
|
87885
87873
|
}
|
|
87886
87874
|
if (rf & 2) {
|
|
87887
|
-
const
|
|
87888
|
-
\u0275\
|
|
87889
|
-
|
|
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);
|
|
87883
|
+
\u0275\u0275advance(2);
|
|
87884
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.currentAddressesFields);
|
|
87890
87885
|
\u0275\u0275advance(2);
|
|
87891
|
-
\u0275\
|
|
87886
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(8, 15, "New Mailing Address"));
|
|
87892
87887
|
\u0275\u0275advance(2);
|
|
87893
|
-
\u0275\u0275conditional(
|
|
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);
|
|
87894
87895
|
}
|
|
87895
87896
|
}
|
|
87896
|
-
function
|
|
87897
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template(rf, ctx) {
|
|
87897
87898
|
if (rf & 1) {
|
|
87898
|
-
\u0275\
|
|
87899
|
-
\u0275\
|
|
87900
|
-
\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();
|
|
87901
87907
|
}
|
|
87902
87908
|
if (rf & 2) {
|
|
87909
|
+
\u0275\u0275nextContext(2);
|
|
87910
|
+
const recordsMailing_r18 = \u0275\u0275readContextLet(0);
|
|
87903
87911
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87904
|
-
\u0275\u0275property("
|
|
87905
|
-
\u0275\u0275advance(2);
|
|
87906
|
-
\u0275\u0275repeater(ctx_r0.registeredRows());
|
|
87912
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsMailing_r18)("config", ctx_r0.addressFields);
|
|
87907
87913
|
}
|
|
87908
87914
|
}
|
|
87909
|
-
function
|
|
87915
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template(rf, ctx) {
|
|
87910
87916
|
if (rf & 1) {
|
|
87911
|
-
\u0275\
|
|
87912
|
-
\u0275\
|
|
87913
|
-
\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
|
+
});
|
|
87914
87924
|
\u0275\u0275elementEnd();
|
|
87915
87925
|
}
|
|
87916
87926
|
if (rf & 2) {
|
|
87917
|
-
|
|
87918
|
-
\u0275\
|
|
87919
|
-
|
|
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);
|
|
87920
87931
|
}
|
|
87921
87932
|
}
|
|
87922
|
-
function
|
|
87933
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template(rf, ctx) {
|
|
87923
87934
|
if (rf & 1) {
|
|
87924
|
-
\u0275\
|
|
87925
|
-
\u0275\
|
|
87926
|
-
\u0275\
|
|
87935
|
+
const _r16 = \u0275\u0275getCurrentView();
|
|
87936
|
+
\u0275\u0275elementStart(0, "h4", 10);
|
|
87937
|
+
\u0275\u0275text(1);
|
|
87938
|
+
\u0275\u0275pipe(2, "translate");
|
|
87927
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);
|
|
87928
87942
|
\u0275\u0275text(5);
|
|
87929
87943
|
\u0275\u0275pipe(6, "translate");
|
|
87930
87944
|
\u0275\u0275elementEnd();
|
|
87931
|
-
\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
|
+
});
|
|
87932
87951
|
\u0275\u0275elementEnd();
|
|
87952
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template, 1, 3, "filing-form-group", 9);
|
|
87933
87953
|
}
|
|
87934
87954
|
if (rf & 2) {
|
|
87935
|
-
|
|
87936
|
-
\u0275\
|
|
87937
|
-
|
|
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);
|
|
87938
87965
|
\u0275\u0275advance(2);
|
|
87939
|
-
\u0275\
|
|
87966
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 9, "New Delivery Address"));
|
|
87940
87967
|
\u0275\u0275advance(2);
|
|
87941
|
-
\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);
|
|
87942
87971
|
}
|
|
87943
87972
|
}
|
|
87944
|
-
function
|
|
87973
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template(rf, ctx) {
|
|
87945
87974
|
if (rf & 1) {
|
|
87946
|
-
\u0275\
|
|
87947
|
-
\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);
|
|
87948
87987
|
\u0275\u0275elementEnd()();
|
|
87949
87988
|
}
|
|
87950
87989
|
if (rf & 2) {
|
|
87951
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();
|
|
87952
87999
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
|
|
87953
88000
|
\u0275\u0275advance(2);
|
|
87954
|
-
\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);
|
|
87955
88006
|
}
|
|
87956
88007
|
}
|
|
87957
|
-
function
|
|
88008
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template(rf, ctx) {
|
|
87958
88009
|
if (rf & 1) {
|
|
87959
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
88010
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p");
|
|
87960
88011
|
\u0275\u0275text(3);
|
|
87961
88012
|
\u0275\u0275pipe(4, "translate");
|
|
87962
88013
|
\u0275\u0275elementEnd();
|
|
87963
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
88014
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 12)(6, "mat-radio-button", 13);
|
|
87964
88015
|
\u0275\u0275text(7);
|
|
87965
88016
|
\u0275\u0275pipe(8, "translate");
|
|
87966
88017
|
\u0275\u0275elementEnd();
|
|
87967
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
88018
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 13);
|
|
87968
88019
|
\u0275\u0275text(10);
|
|
87969
88020
|
\u0275\u0275pipe(11, "translate");
|
|
87970
88021
|
\u0275\u0275elementEnd()()()();
|
|
87971
88022
|
}
|
|
87972
88023
|
if (rf & 2) {
|
|
87973
88024
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87974
|
-
const
|
|
88025
|
+
const annualReportReminder_r24 = \u0275\u0275readContextLet(12);
|
|
87975
88026
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
|
|
87976
88027
|
\u0275\u0275advance();
|
|
87977
|
-
\u0275\u0275property("formGroup",
|
|
88028
|
+
\u0275\u0275property("formGroup", annualReportReminder_r24);
|
|
87978
88029
|
\u0275\u0275advance(2);
|
|
87979
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."), " ");
|
|
87980
88031
|
\u0275\u0275advance(2);
|
|
@@ -87989,7 +88040,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87989
88040
|
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(11, 13, "No, I do not need to be reminded"), " ");
|
|
87990
88041
|
}
|
|
87991
88042
|
}
|
|
87992
|
-
var
|
|
88043
|
+
var BritishColumbiaChangeOfOfficeAddressesFormComponent;
|
|
87993
88044
|
var init_change_of_office_addresses_form_component = __esm({
|
|
87994
88045
|
"src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts"() {
|
|
87995
88046
|
init_core();
|
|
@@ -88002,11 +88053,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88002
88053
|
init_expandable_card_component();
|
|
88003
88054
|
init_british_columbia_form_enums();
|
|
88004
88055
|
init_british_columbia_change_of_office_addresses_form_constants();
|
|
88056
|
+
init_forms_utils();
|
|
88005
88057
|
init_BritishColumbiaConstants();
|
|
88006
88058
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
88007
88059
|
init_core();
|
|
88008
88060
|
init_forms();
|
|
88009
|
-
_forTrack05 = ($index, $item) => $item.label;
|
|
88010
88061
|
BritishColumbiaChangeOfOfficeAddressesFormComponent = class _BritishColumbiaChangeOfOfficeAddressesFormComponent {
|
|
88011
88062
|
form = input.required();
|
|
88012
88063
|
task = input();
|
|
@@ -88029,38 +88080,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88029
88080
|
deliveryNoteFields = BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS;
|
|
88030
88081
|
deliverySameAsMailingFields = BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS;
|
|
88031
88082
|
sameAsRegisteredOfficeFields = BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
|
|
88032
|
-
translate = inject(TranslateService);
|
|
88033
88083
|
sectionValidity = {};
|
|
88034
88084
|
isVisiblyValid() {
|
|
88035
88085
|
return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
|
|
88036
88086
|
}
|
|
88037
88087
|
isRegisteredOfficeValid() {
|
|
88038
|
-
|
|
88088
|
+
const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
|
|
88089
|
+
return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
|
|
88039
88090
|
}
|
|
88040
88091
|
isRecordsOfficeValid() {
|
|
88041
|
-
|
|
88042
|
-
|
|
88043
|
-
/** One message per missing office address, shown in the banner at the top of the form. */
|
|
88044
|
-
missingMessages() {
|
|
88045
|
-
const t = (key) => this.translate.instant(key);
|
|
88046
|
-
const records = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88047
|
-
const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
|
|
88048
|
-
const [regMailing, regDelivery] = this.registeredRows();
|
|
88049
|
-
const [recMailing, recDelivery] = this.recordsRows();
|
|
88050
|
-
return [
|
|
88051
|
-
!regMailing.value && t("The Registered Office mailing address is missing."),
|
|
88052
|
-
!regDelivery.value && t("The Registered Office delivery address is missing."),
|
|
88053
|
-
// "Same as Registered Office" is already reported by the registered office messages.
|
|
88054
|
-
!recordsSameAsRegistered && !recMailing.value && t("The Records Office mailing address is missing."),
|
|
88055
|
-
!recordsSameAsRegistered && !recDelivery.value && t("The Records Office delivery address is missing.")
|
|
88056
|
-
].filter((m) => !!m);
|
|
88057
|
-
}
|
|
88058
|
-
/** The incoming Shared Address supplied no new address for a line (and none is on the register). */
|
|
88059
|
-
isRegisteredMissing() {
|
|
88060
|
-
return this.registeredRows().some((row) => !row.value);
|
|
88061
|
-
}
|
|
88062
|
-
isRecordsMissing() {
|
|
88063
|
-
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);
|
|
88064
88094
|
}
|
|
88065
88095
|
isChecked(office, control) {
|
|
88066
88096
|
return Boolean(office?.get(control)?.value);
|
|
@@ -88078,77 +88108,28 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88078
88108
|
getAddressGroup(office, control) {
|
|
88079
88109
|
return office?.get(control) ?? null;
|
|
88080
88110
|
}
|
|
88081
|
-
|
|
88082
|
-
|
|
88083
|
-
|
|
88084
|
-
return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
|
|
88085
|
-
}
|
|
88086
|
-
/** Records office lines; "Same as Registered Office" reuses the registered office's new lines. */
|
|
88087
|
-
recordsRows() {
|
|
88088
|
-
const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88089
|
-
if (this.isChecked(office, this.controls.SameAsRegisteredOffice)) {
|
|
88090
|
-
const registered = this.registeredRows();
|
|
88091
|
-
const current = this.currentOf(office);
|
|
88092
|
-
return registered.map((row, i) => __spreadProps(__spreadValues({}, row), {
|
|
88093
|
-
previous: this.changedPrevious(row.value, i === 0 ? current.mailing : current.delivery)
|
|
88094
|
-
}));
|
|
88095
|
-
}
|
|
88096
|
-
return this.buildRows(office, this.isChecked(office, this.controls.DeliverySameAsMailing));
|
|
88097
|
-
}
|
|
88098
|
-
buildRows(office, deliverySame) {
|
|
88099
|
-
const current = this.currentOf(office);
|
|
88100
|
-
const mailing = this.formatNew(this.getAddressGroup(office, this.controls.NewMailingAddress));
|
|
88101
|
-
const delivery = deliverySame ? mailing : this.formatNew(this.getAddressGroup(office, this.controls.NewDeliveryAddress));
|
|
88102
|
-
return [
|
|
88103
|
-
{
|
|
88104
|
-
label: "Mailing Address",
|
|
88105
|
-
value: mailing,
|
|
88106
|
-
previous: this.changedPrevious(mailing, current.mailing)
|
|
88107
|
-
},
|
|
88108
|
-
{
|
|
88109
|
-
label: "Delivery Address",
|
|
88110
|
-
value: delivery,
|
|
88111
|
-
previous: this.changedPrevious(delivery, current.delivery)
|
|
88112
|
-
}
|
|
88113
|
-
];
|
|
88114
|
-
}
|
|
88115
|
-
currentOf(office) {
|
|
88116
|
-
return {
|
|
88117
|
-
mailing: office?.get(this.controls.CurrentMailingAddress)?.value ?? "",
|
|
88118
|
-
delivery: office?.get(this.controls.CurrentDeliveryAddress)?.value ?? ""
|
|
88119
|
-
};
|
|
88120
|
-
}
|
|
88121
|
-
formatNew(group2) {
|
|
88122
|
-
const c = this.controls;
|
|
88123
|
-
const v = group2?.getRawValue() ?? {};
|
|
88124
|
-
if (![v[c.AddressLine1], v[c.City], v[c.PostalCode]].some((part) => part?.trim())) {
|
|
88125
|
-
return "";
|
|
88126
|
-
}
|
|
88127
|
-
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(", ");
|
|
88128
|
-
}
|
|
88129
|
-
/** The previous address, only when it exists and differs from the new one. */
|
|
88130
|
-
changedPrevious(next, previous) {
|
|
88131
|
-
const normalize = (s) => s.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
88132
|
-
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);
|
|
88133
88114
|
}
|
|
88134
88115
|
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
|
|
88135
88116
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
|
|
88136
88117
|
};
|
|
88137
|
-
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) {
|
|
88138
88119
|
if (rf & 1) {
|
|
88139
88120
|
\u0275\u0275elementStart(0, "div", 0);
|
|
88140
|
-
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2)
|
|
88141
|
-
\u0275\u0275elementStart(
|
|
88142
|
-
\u0275\u0275declareLet(
|
|
88143
|
-
\u0275\u0275template(
|
|
88144
|
-
\u0275\u0275declareLet(
|
|
88145
|
-
\u0275\u0275template(
|
|
88146
|
-
\u0275\u0275declareLet(
|
|
88147
|
-
\u0275\u0275template(
|
|
88148
|
-
\u0275\u0275declareLet(
|
|
88149
|
-
\u0275\u0275template(
|
|
88150
|
-
\u0275\u0275declareLet(
|
|
88151
|
-
\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);
|
|
88152
88133
|
\u0275\u0275elementEnd()();
|
|
88153
88134
|
}
|
|
88154
88135
|
if (rf & 2) {
|
|
@@ -88156,26 +88137,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88156
88137
|
\u0275\u0275conditional(ctx.isNote() ? 1 : -1);
|
|
88157
88138
|
\u0275\u0275advance();
|
|
88158
88139
|
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
88159
|
-
\u0275\u0275advance();
|
|
88160
|
-
\u0275\u0275conditional(ctx.missingMessages().length ? 3 : -1);
|
|
88161
88140
|
\u0275\u0275advance(2);
|
|
88162
|
-
const
|
|
88141
|
+
const referenceNumbers_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
88163
88142
|
\u0275\u0275advance();
|
|
88164
|
-
\u0275\u0275conditional(
|
|
88143
|
+
\u0275\u0275conditional(referenceNumbers_r25 ? 5 : -1);
|
|
88165
88144
|
\u0275\u0275advance();
|
|
88166
|
-
const
|
|
88145
|
+
const corporationDetails_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
88167
88146
|
\u0275\u0275advance();
|
|
88168
|
-
\u0275\u0275conditional(
|
|
88169
|
-
|
|
88170
|
-
\u0275\
|
|
88171
|
-
\u0275\u0275conditional(registeredOffice_r11 ? 10 : -1);
|
|
88172
|
-
const recordsOffice_r12 = ctx.getFormGroup(ctx.groups.RecordsOfficeAddress);
|
|
88173
|
-
\u0275\u0275advance(2);
|
|
88174
|
-
\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));
|
|
88175
88150
|
\u0275\u0275advance();
|
|
88176
|
-
|
|
88151
|
+
\u0275\u0275conditional(registeredOffice_r27 ? 9 : -1);
|
|
88177
88152
|
\u0275\u0275advance();
|
|
88178
|
-
\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);
|
|
88179
88160
|
}
|
|
88180
88161
|
}, dependencies: [
|
|
88181
88162
|
FilingFormGroupComponent,
|
|
@@ -88189,7 +88170,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88189
88170
|
FormGroupDirective,
|
|
88190
88171
|
FormControlName,
|
|
88191
88172
|
TranslatePipe
|
|
88192
|
-
], 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 });
|
|
88193
88174
|
};
|
|
88194
88175
|
(() => {
|
|
88195
88176
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
|
|
@@ -88217,13 +88198,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88217
88198
|
[content]="errors()"\r
|
|
88218
88199
|
/>\r
|
|
88219
88200
|
}\r
|
|
88220
|
-
\r
|
|
88221
|
-
@if (missingMessages().length) {\r
|
|
88222
|
-
<alert\r
|
|
88223
|
-
title="The following issues need to be resolved before proceeding:"\r
|
|
88224
|
-
[content]="missingMessages()"\r
|
|
88225
|
-
/>\r
|
|
88226
|
-
}\r
|
|
88227
88201
|
\r
|
|
88228
88202
|
<div class="change-of-office-addresses-form-content">\r
|
|
88229
88203
|
@let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
|
|
@@ -88260,24 +88234,54 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88260
88234
|
@let registeredOffice = getFormGroup(groups.RegisteredOfficeAddress);\r
|
|
88261
88235
|
\r
|
|
88262
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
|
|
88263
88241
|
<expandable-card\r
|
|
88264
88242
|
[isStatusIcon]="!readonly()"\r
|
|
88265
88243
|
[isValid]="isRegisteredOfficeValid()"\r
|
|
88266
88244
|
[title]="groups.RegisteredOfficeAddress"\r
|
|
88267
88245
|
>\r
|
|
88268
88246
|
<div class="change-of-office-addresses-form-item">\r
|
|
88269
|
-
|
|
88270
|
-
|
|
88271
|
-
|
|
88272
|
-
|
|
88273
|
-
|
|
88274
|
-
|
|
88275
|
-
|
|
88276
|
-
|
|
88277
|
-
|
|
88278
|
-
|
|
88279
|
-
|
|
88280
|
-
|
|
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
|
|
88281
88285
|
}\r
|
|
88282
88286
|
</div>\r
|
|
88283
88287
|
</expandable-card>\r
|
|
@@ -88287,24 +88291,59 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88287
88291
|
@let recordsOffice = getFormGroup(groups.RecordsOfficeAddress);\r
|
|
88288
88292
|
\r
|
|
88289
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
|
|
88290
88299
|
<expandable-card\r
|
|
88291
88300
|
[isStatusIcon]="!readonly()"\r
|
|
88292
88301
|
[isValid]="isRecordsOfficeValid()"\r
|
|
88293
88302
|
[title]="groups.RecordsOfficeAddress"\r
|
|
88294
88303
|
>\r
|
|
88295
88304
|
<div class="change-of-office-addresses-form-item">\r
|
|
88296
|
-
|
|
88297
|
-
|
|
88298
|
-
|
|
88299
|
-
|
|
88300
|
-
|
|
88301
|
-
|
|
88302
|
-
|
|
88303
|
-
|
|
88304
|
-
|
|
88305
|
-
|
|
88306
|
-
|
|
88307
|
-
|
|
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
|
|
88308
88347
|
}\r
|
|
88309
88348
|
</div>\r
|
|
88310
88349
|
</expandable-card>\r
|
|
@@ -88334,11 +88373,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88334
88373
|
}\r
|
|
88335
88374
|
</div>\r
|
|
88336
88375
|
</div>\r
|
|
88337
|
-
`, 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"] }]
|
|
88338
88377
|
}], null, null);
|
|
88339
88378
|
})();
|
|
88340
88379
|
(() => {
|
|
88341
|
-
(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 });
|
|
88342
88381
|
})();
|
|
88343
88382
|
}
|
|
88344
88383
|
});
|
|
@@ -90722,7 +90761,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90722
90761
|
\u0275\u0275pipe(7, "translate");
|
|
90723
90762
|
\u0275\u0275elementEnd();
|
|
90724
90763
|
\u0275\u0275elementStart(8, "ul", 16);
|
|
90725
|
-
\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);
|
|
90726
90765
|
\u0275\u0275elementEnd()();
|
|
90727
90766
|
\u0275\u0275elementStart(11, "span", 17);
|
|
90728
90767
|
\u0275\u0275text(12);
|
|
@@ -90925,7 +90964,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90925
90964
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", contactForm_r24)("config", ctx_r0.contactControl);
|
|
90926
90965
|
}
|
|
90927
90966
|
}
|
|
90928
|
-
var _c016,
|
|
90967
|
+
var _c016, _forTrack05, FederalIncorporationFormComponent;
|
|
90929
90968
|
var init_federal_incorporation_form_component = __esm({
|
|
90930
90969
|
"src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts"() {
|
|
90931
90970
|
init_core();
|
|
@@ -90950,7 +90989,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90950
90989
|
init_common();
|
|
90951
90990
|
init_core();
|
|
90952
90991
|
_c016 = ["*"];
|
|
90953
|
-
|
|
90992
|
+
_forTrack05 = ($index, $item) => $item.affiliationID;
|
|
90954
90993
|
FederalIncorporationFormComponent = class _FederalIncorporationFormComponent {
|
|
90955
90994
|
form = input.required();
|
|
90956
90995
|
isNote = input(false);
|
|
@@ -101903,12 +101942,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
101903
101942
|
"File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
|
|
101904
101943
|
"Records Office Address": "Records Office Address",
|
|
101905
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.",
|
|
101906
|
-
"The Registered Office mailing address is missing.": "The Registered Office mailing address is missing.",
|
|
101907
|
-
"The Registered Office delivery address is missing.": "The Registered Office delivery address is missing.",
|
|
101908
|
-
"The Records Office mailing address is missing.": "The Records Office mailing address is missing.",
|
|
101909
|
-
"The Records Office delivery address is missing.": "The Records Office delivery address is missing.",
|
|
101910
|
-
"Mailing Address": "Mailing Address",
|
|
101911
|
-
"Delivery Address": "Delivery Address",
|
|
101912
101945
|
"Current Mailing Address": "Current Mailing Address",
|
|
101913
101946
|
"Current Delivery Address": "Current Delivery Address",
|
|
101914
101947
|
"New Mailing Address": "New Mailing Address",
|
|
@@ -102265,12 +102298,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102265
102298
|
"Without Par Value": "Sans valeur nominale",
|
|
102266
102299
|
"File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
|
|
102267
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.",
|
|
102268
|
-
"The Registered Office mailing address is missing.": "L'adresse postale du si\xE8ge social est manquante.",
|
|
102269
|
-
"The Registered Office delivery address is missing.": "L'adresse de livraison du si\xE8ge social est manquante.",
|
|
102270
|
-
"The Records Office mailing address is missing.": "L'adresse postale du bureau des registres est manquante.",
|
|
102271
|
-
"The Records Office delivery address is missing.": "L'adresse de livraison du bureau des registres est manquante.",
|
|
102272
|
-
"Mailing Address": "Adresse postale",
|
|
102273
|
-
"Delivery Address": "Adresse de livraison",
|
|
102274
102301
|
"Current Mailing Address": "Adresse postale actuelle",
|
|
102275
102302
|
"Current Delivery Address": "Adresse de livraison actuelle",
|
|
102276
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
|
}
|