@dyedurham/search-and-file-widget 2.1.14 → 2.1.16
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 +297 -270
- 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]));
|
|
@@ -86634,7 +86589,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86634
86589
|
type: FormType.Text,
|
|
86635
86590
|
formControlName: BCFormationFormControls.DeliveryAddress,
|
|
86636
86591
|
class: "span-12",
|
|
86637
|
-
|
|
86592
|
+
// A director without a Delivery address is filed with "delivery same as mailing", so the
|
|
86593
|
+
// Mailing address is shown, as in the draft.
|
|
86594
|
+
dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value || form.get(BCFormationFormControls.MailingAddress)?.value, t)
|
|
86638
86595
|
}
|
|
86639
86596
|
];
|
|
86640
86597
|
BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS = [
|
|
@@ -87813,20 +87770,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87813
87770
|
\u0275\u0275property("content", ctx_r0.errors());
|
|
87814
87771
|
}
|
|
87815
87772
|
}
|
|
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) {
|
|
87773
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template(rf, ctx) {
|
|
87826
87774
|
if (rf & 1) {
|
|
87827
87775
|
const _r2 = \u0275\u0275getCurrentView();
|
|
87828
87776
|
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 7);
|
|
87829
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87777
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87830
87778
|
\u0275\u0275restoreView(_r2);
|
|
87831
87779
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87832
87780
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
|
|
@@ -87835,17 +87783,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87835
87783
|
}
|
|
87836
87784
|
if (rf & 2) {
|
|
87837
87785
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87838
|
-
const referenceNumbers_r3 = \u0275\u0275readContextLet(
|
|
87786
|
+
const referenceNumbers_r3 = \u0275\u0275readContextLet(4);
|
|
87839
87787
|
\u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
|
|
87840
87788
|
\u0275\u0275advance();
|
|
87841
87789
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
|
|
87842
87790
|
}
|
|
87843
87791
|
}
|
|
87844
|
-
function
|
|
87792
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template(rf, ctx) {
|
|
87845
87793
|
if (rf & 1) {
|
|
87846
87794
|
const _r4 = \u0275\u0275getCurrentView();
|
|
87847
87795
|
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 7);
|
|
87848
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87796
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87849
87797
|
\u0275\u0275restoreView(_r4);
|
|
87850
87798
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87851
87799
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corpDetails", $event));
|
|
@@ -87854,129 +87802,232 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87854
87802
|
}
|
|
87855
87803
|
if (rf & 2) {
|
|
87856
87804
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87857
|
-
const corporationDetails_r5 = \u0275\u0275readContextLet(
|
|
87805
|
+
const corporationDetails_r5 = \u0275\u0275readContextLet(6);
|
|
87858
87806
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["corpDetails"] !== false)("title", ctx_r0.groups.CorporationDetails);
|
|
87859
87807
|
\u0275\u0275advance();
|
|
87860
87808
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r5)("config", ctx_r0.corporationDetailsFields());
|
|
87861
87809
|
}
|
|
87862
87810
|
}
|
|
87863
|
-
function
|
|
87811
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template(rf, ctx) {
|
|
87864
87812
|
if (rf & 1) {
|
|
87865
|
-
\u0275\
|
|
87866
|
-
\u0275\
|
|
87867
|
-
\u0275\
|
|
87813
|
+
const _r7 = \u0275\u0275getCurrentView();
|
|
87814
|
+
\u0275\u0275elementStart(0, "filing-form-group", 7);
|
|
87815
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template_filing_form_group_visiblyValidChange_0_listener() {
|
|
87816
|
+
\u0275\u0275restoreView(_r7);
|
|
87817
|
+
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87818
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87819
|
+
});
|
|
87868
87820
|
\u0275\u0275elementEnd();
|
|
87869
87821
|
}
|
|
87870
87822
|
if (rf & 2) {
|
|
87871
|
-
|
|
87823
|
+
\u0275\u0275nextContext();
|
|
87824
|
+
const registeredMailing_r8 = \u0275\u0275readContextLet(0);
|
|
87825
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87826
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredMailing_r8)("config", ctx_r0.addressFields);
|
|
87827
|
+
}
|
|
87828
|
+
}
|
|
87829
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template(rf, ctx) {
|
|
87830
|
+
if (rf & 1) {
|
|
87831
|
+
const _r9 = \u0275\u0275getCurrentView();
|
|
87832
|
+
\u0275\u0275element(0, "filing-form-group", 9);
|
|
87833
|
+
\u0275\u0275elementStart(1, "filing-form-group", 7);
|
|
87834
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template_filing_form_group_visiblyValidChange_1_listener() {
|
|
87835
|
+
\u0275\u0275restoreView(_r9);
|
|
87836
|
+
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87837
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87838
|
+
});
|
|
87839
|
+
\u0275\u0275elementEnd();
|
|
87840
|
+
}
|
|
87841
|
+
if (rf & 2) {
|
|
87842
|
+
\u0275\u0275nextContext();
|
|
87843
|
+
const registeredDelivery_r10 = \u0275\u0275readContextLet(1);
|
|
87844
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87845
|
+
const registeredOffice_r11 = \u0275\u0275readContextLet(8);
|
|
87846
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliveryNoteFields);
|
|
87872
87847
|
\u0275\u0275advance();
|
|
87873
|
-
\u0275\
|
|
87848
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredDelivery_r10)("config", ctx_r0.addressFields);
|
|
87874
87849
|
}
|
|
87875
87850
|
}
|
|
87876
|
-
function
|
|
87851
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template(rf, ctx) {
|
|
87877
87852
|
if (rf & 1) {
|
|
87878
|
-
\u0275\
|
|
87879
|
-
\u0275\
|
|
87880
|
-
\u0275\
|
|
87853
|
+
const _r6 = \u0275\u0275getCurrentView();
|
|
87854
|
+
\u0275\u0275declareLet(0)(1)(2);
|
|
87855
|
+
\u0275\u0275elementStart(3, "expandable-card", 5)(4, "div", 8);
|
|
87856
|
+
\u0275\u0275element(5, "filing-form-group", 9);
|
|
87857
|
+
\u0275\u0275elementStart(6, "h4", 10);
|
|
87858
|
+
\u0275\u0275text(7);
|
|
87859
|
+
\u0275\u0275pipe(8, "translate");
|
|
87881
87860
|
\u0275\u0275elementEnd();
|
|
87882
|
-
\u0275\
|
|
87883
|
-
\u0275\
|
|
87861
|
+
\u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_9_Template, 1, 3, "filing-form-group", 9);
|
|
87862
|
+
\u0275\u0275elementStart(10, "h4", 10);
|
|
87863
|
+
\u0275\u0275text(11);
|
|
87864
|
+
\u0275\u0275pipe(12, "translate");
|
|
87884
87865
|
\u0275\u0275elementEnd();
|
|
87885
|
-
\u0275\
|
|
87866
|
+
\u0275\u0275elementStart(13, "filing-form-group", 7);
|
|
87867
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template_filing_form_group_visiblyValidChange_13_listener() {
|
|
87868
|
+
\u0275\u0275restoreView(_r6);
|
|
87869
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87870
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87871
|
+
});
|
|
87886
87872
|
\u0275\u0275elementEnd();
|
|
87873
|
+
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_14_Template, 2, 6);
|
|
87874
|
+
\u0275\u0275elementEnd()();
|
|
87887
87875
|
}
|
|
87888
87876
|
if (rf & 2) {
|
|
87889
|
-
const
|
|
87890
|
-
\u0275\
|
|
87891
|
-
|
|
87877
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87878
|
+
const registeredOffice_r11 = \u0275\u0275readContextLet(8);
|
|
87879
|
+
const registeredMailing_r12 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewMailingAddress));
|
|
87880
|
+
\u0275\u0275advance();
|
|
87881
|
+
const registeredDelivery_r13 = \u0275\u0275storeLet(ctx_r0.getAddressGroup(registeredOffice_r11, ctx_r0.controls.NewDeliveryAddress));
|
|
87882
|
+
const registeredDeliverySame_r14 = ctx_r0.isChecked(registeredOffice_r11, ctx_r0.controls.DeliverySameAsMailing);
|
|
87883
|
+
\u0275\u0275advance(2);
|
|
87884
|
+
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
87885
|
+
\u0275\u0275advance(2);
|
|
87886
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.currentAddressesFields);
|
|
87887
|
+
\u0275\u0275advance(2);
|
|
87888
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(8, 15, "New Mailing Address"));
|
|
87889
|
+
\u0275\u0275advance(2);
|
|
87890
|
+
\u0275\u0275conditional(registeredMailing_r12 ? 9 : -1);
|
|
87892
87891
|
\u0275\u0275advance(2);
|
|
87893
|
-
\u0275\
|
|
87892
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(12, 17, "New Delivery Address"));
|
|
87894
87893
|
\u0275\u0275advance(2);
|
|
87895
|
-
\u0275\
|
|
87894
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOffice_r11)("config", ctx_r0.deliverySameAsMailingFields);
|
|
87895
|
+
\u0275\u0275advance();
|
|
87896
|
+
\u0275\u0275conditional(!registeredDeliverySame_r14 && registeredDelivery_r13 ? 14 : -1);
|
|
87896
87897
|
}
|
|
87897
87898
|
}
|
|
87898
|
-
function
|
|
87899
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template(rf, ctx) {
|
|
87899
87900
|
if (rf & 1) {
|
|
87900
|
-
\u0275\
|
|
87901
|
-
\u0275\
|
|
87902
|
-
\u0275\
|
|
87901
|
+
const _r17 = \u0275\u0275getCurrentView();
|
|
87902
|
+
\u0275\u0275elementStart(0, "filing-form-group", 7);
|
|
87903
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template_filing_form_group_visiblyValidChange_0_listener() {
|
|
87904
|
+
\u0275\u0275restoreView(_r17);
|
|
87905
|
+
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
87906
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87907
|
+
});
|
|
87908
|
+
\u0275\u0275elementEnd();
|
|
87903
87909
|
}
|
|
87904
87910
|
if (rf & 2) {
|
|
87911
|
+
\u0275\u0275nextContext(2);
|
|
87912
|
+
const recordsMailing_r18 = \u0275\u0275readContextLet(0);
|
|
87905
87913
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87906
|
-
\u0275\u0275property("
|
|
87907
|
-
\u0275\u0275advance(2);
|
|
87908
|
-
\u0275\u0275repeater(ctx_r0.registeredRows());
|
|
87914
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsMailing_r18)("config", ctx_r0.addressFields);
|
|
87909
87915
|
}
|
|
87910
87916
|
}
|
|
87911
|
-
function
|
|
87917
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template(rf, ctx) {
|
|
87912
87918
|
if (rf & 1) {
|
|
87913
|
-
\u0275\
|
|
87914
|
-
\u0275\
|
|
87915
|
-
\u0275\
|
|
87919
|
+
const _r19 = \u0275\u0275getCurrentView();
|
|
87920
|
+
\u0275\u0275elementStart(0, "filing-form-group", 7);
|
|
87921
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template_filing_form_group_visiblyValidChange_0_listener() {
|
|
87922
|
+
\u0275\u0275restoreView(_r19);
|
|
87923
|
+
const ctx_r0 = \u0275\u0275nextContext(3);
|
|
87924
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87925
|
+
});
|
|
87916
87926
|
\u0275\u0275elementEnd();
|
|
87917
87927
|
}
|
|
87918
87928
|
if (rf & 2) {
|
|
87919
|
-
|
|
87920
|
-
\u0275\
|
|
87921
|
-
|
|
87929
|
+
\u0275\u0275nextContext(2);
|
|
87930
|
+
const recordsDelivery_r20 = \u0275\u0275readContextLet(1);
|
|
87931
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87932
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsDelivery_r20)("config", ctx_r0.addressFields);
|
|
87922
87933
|
}
|
|
87923
87934
|
}
|
|
87924
|
-
function
|
|
87935
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template(rf, ctx) {
|
|
87925
87936
|
if (rf & 1) {
|
|
87926
|
-
\u0275\
|
|
87927
|
-
\u0275\
|
|
87928
|
-
\u0275\
|
|
87937
|
+
const _r16 = \u0275\u0275getCurrentView();
|
|
87938
|
+
\u0275\u0275elementStart(0, "h4", 10);
|
|
87939
|
+
\u0275\u0275text(1);
|
|
87940
|
+
\u0275\u0275pipe(2, "translate");
|
|
87929
87941
|
\u0275\u0275elementEnd();
|
|
87942
|
+
\u0275\u0275template(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_3_Template, 1, 3, "filing-form-group", 9);
|
|
87943
|
+
\u0275\u0275elementStart(4, "h4", 10);
|
|
87930
87944
|
\u0275\u0275text(5);
|
|
87931
87945
|
\u0275\u0275pipe(6, "translate");
|
|
87932
87946
|
\u0275\u0275elementEnd();
|
|
87933
|
-
\u0275\
|
|
87947
|
+
\u0275\u0275elementStart(7, "filing-form-group", 7);
|
|
87948
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
87949
|
+
\u0275\u0275restoreView(_r16);
|
|
87950
|
+
const ctx_r0 = \u0275\u0275nextContext(2);
|
|
87951
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87952
|
+
});
|
|
87934
87953
|
\u0275\u0275elementEnd();
|
|
87954
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Conditional_8_Template, 1, 3, "filing-form-group", 9);
|
|
87935
87955
|
}
|
|
87936
87956
|
if (rf & 2) {
|
|
87937
|
-
|
|
87938
|
-
\u0275\
|
|
87939
|
-
|
|
87957
|
+
\u0275\u0275nextContext();
|
|
87958
|
+
const recordsMailing_r18 = \u0275\u0275readContextLet(0);
|
|
87959
|
+
const recordsDelivery_r20 = \u0275\u0275readContextLet(1);
|
|
87960
|
+
const recordsDeliverySame_r21 = \u0275\u0275readContextLet(3);
|
|
87961
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87962
|
+
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
87963
|
+
\u0275\u0275advance();
|
|
87964
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 7, "New Mailing Address"));
|
|
87965
|
+
\u0275\u0275advance(2);
|
|
87966
|
+
\u0275\u0275conditional(recordsMailing_r18 ? 3 : -1);
|
|
87940
87967
|
\u0275\u0275advance(2);
|
|
87941
|
-
\u0275\
|
|
87968
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 9, "New Delivery Address"));
|
|
87942
87969
|
\u0275\u0275advance(2);
|
|
87943
|
-
\u0275\
|
|
87970
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.deliverySameAsMailingFields);
|
|
87971
|
+
\u0275\u0275advance();
|
|
87972
|
+
\u0275\u0275conditional(!recordsDeliverySame_r21 && recordsDelivery_r20 ? 8 : -1);
|
|
87944
87973
|
}
|
|
87945
87974
|
}
|
|
87946
|
-
function
|
|
87975
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template(rf, ctx) {
|
|
87947
87976
|
if (rf & 1) {
|
|
87948
|
-
\u0275\
|
|
87949
|
-
\u0275\
|
|
87977
|
+
const _r15 = \u0275\u0275getCurrentView();
|
|
87978
|
+
\u0275\u0275declareLet(0)(1)(2)(3);
|
|
87979
|
+
\u0275\u0275elementStart(4, "expandable-card", 5)(5, "div", 8);
|
|
87980
|
+
\u0275\u0275element(6, "filing-form-group", 9);
|
|
87981
|
+
\u0275\u0275elementStart(7, "filing-form-group", 7);
|
|
87982
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_7_listener() {
|
|
87983
|
+
\u0275\u0275restoreView(_r15);
|
|
87984
|
+
const ctx_r0 = \u0275\u0275nextContext();
|
|
87985
|
+
return \u0275\u0275resetView(ctx_r0.emitValidity());
|
|
87986
|
+
});
|
|
87987
|
+
\u0275\u0275elementEnd();
|
|
87988
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_8_Template, 9, 11);
|
|
87950
87989
|
\u0275\u0275elementEnd()();
|
|
87951
87990
|
}
|
|
87952
87991
|
if (rf & 2) {
|
|
87953
87992
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87993
|
+
const recordsOffice_r22 = \u0275\u0275readContextLet(10);
|
|
87994
|
+
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewMailingAddress));
|
|
87995
|
+
\u0275\u0275advance();
|
|
87996
|
+
\u0275\u0275storeLet(ctx_r0.getAddressGroup(recordsOffice_r22, ctx_r0.controls.NewDeliveryAddress));
|
|
87997
|
+
const recordsSameAsRegistered_r23 = ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.SameAsRegisteredOffice);
|
|
87998
|
+
\u0275\u0275advance(2);
|
|
87999
|
+
\u0275\u0275storeLet(ctx_r0.isChecked(recordsOffice_r22, ctx_r0.controls.DeliverySameAsMailing));
|
|
88000
|
+
\u0275\u0275advance();
|
|
87954
88001
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
|
|
87955
88002
|
\u0275\u0275advance(2);
|
|
87956
|
-
\u0275\
|
|
88003
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.currentAddressesFields);
|
|
88004
|
+
\u0275\u0275advance();
|
|
88005
|
+
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", recordsOffice_r22)("config", ctx_r0.sameAsRegisteredOfficeFields);
|
|
88006
|
+
\u0275\u0275advance();
|
|
88007
|
+
\u0275\u0275conditional(!recordsSameAsRegistered_r23 ? 8 : -1);
|
|
87957
88008
|
}
|
|
87958
88009
|
}
|
|
87959
|
-
function
|
|
88010
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template(rf, ctx) {
|
|
87960
88011
|
if (rf & 1) {
|
|
87961
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
88012
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p");
|
|
87962
88013
|
\u0275\u0275text(3);
|
|
87963
88014
|
\u0275\u0275pipe(4, "translate");
|
|
87964
88015
|
\u0275\u0275elementEnd();
|
|
87965
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
88016
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 12)(6, "mat-radio-button", 13);
|
|
87966
88017
|
\u0275\u0275text(7);
|
|
87967
88018
|
\u0275\u0275pipe(8, "translate");
|
|
87968
88019
|
\u0275\u0275elementEnd();
|
|
87969
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
88020
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 13);
|
|
87970
88021
|
\u0275\u0275text(10);
|
|
87971
88022
|
\u0275\u0275pipe(11, "translate");
|
|
87972
88023
|
\u0275\u0275elementEnd()()()();
|
|
87973
88024
|
}
|
|
87974
88025
|
if (rf & 2) {
|
|
87975
88026
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87976
|
-
const
|
|
88027
|
+
const annualReportReminder_r24 = \u0275\u0275readContextLet(12);
|
|
87977
88028
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
|
|
87978
88029
|
\u0275\u0275advance();
|
|
87979
|
-
\u0275\u0275property("formGroup",
|
|
88030
|
+
\u0275\u0275property("formGroup", annualReportReminder_r24);
|
|
87980
88031
|
\u0275\u0275advance(2);
|
|
87981
88032
|
\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
88033
|
\u0275\u0275advance(2);
|
|
@@ -87991,7 +88042,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87991
88042
|
\u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(11, 13, "No, I do not need to be reminded"), " ");
|
|
87992
88043
|
}
|
|
87993
88044
|
}
|
|
87994
|
-
var
|
|
88045
|
+
var BritishColumbiaChangeOfOfficeAddressesFormComponent;
|
|
87995
88046
|
var init_change_of_office_addresses_form_component = __esm({
|
|
87996
88047
|
"src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts"() {
|
|
87997
88048
|
init_core();
|
|
@@ -88004,11 +88055,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88004
88055
|
init_expandable_card_component();
|
|
88005
88056
|
init_british_columbia_form_enums();
|
|
88006
88057
|
init_british_columbia_change_of_office_addresses_form_constants();
|
|
88058
|
+
init_forms_utils();
|
|
88007
88059
|
init_BritishColumbiaConstants();
|
|
88008
88060
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
88009
88061
|
init_core();
|
|
88010
88062
|
init_forms();
|
|
88011
|
-
_forTrack05 = ($index, $item) => $item.label;
|
|
88012
88063
|
BritishColumbiaChangeOfOfficeAddressesFormComponent = class _BritishColumbiaChangeOfOfficeAddressesFormComponent {
|
|
88013
88064
|
form = input.required();
|
|
88014
88065
|
task = input();
|
|
@@ -88031,38 +88082,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88031
88082
|
deliveryNoteFields = BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS;
|
|
88032
88083
|
deliverySameAsMailingFields = BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS;
|
|
88033
88084
|
sameAsRegisteredOfficeFields = BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
|
|
88034
|
-
translate = inject(TranslateService);
|
|
88035
88085
|
sectionValidity = {};
|
|
88036
88086
|
isVisiblyValid() {
|
|
88037
88087
|
return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
|
|
88038
88088
|
}
|
|
88039
88089
|
isRegisteredOfficeValid() {
|
|
88040
|
-
|
|
88090
|
+
const office = this.getFormGroup(this.groups.RegisteredOfficeAddress);
|
|
88091
|
+
return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
|
|
88041
88092
|
}
|
|
88042
88093
|
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);
|
|
88094
|
+
const office = this.getFormGroup(this.groups.RecordsOfficeAddress);
|
|
88095
|
+
return this.isAddressValid(office, this.controls.NewMailingAddress) && this.isAddressValid(office, this.controls.NewDeliveryAddress);
|
|
88066
88096
|
}
|
|
88067
88097
|
isChecked(office, control) {
|
|
88068
88098
|
return Boolean(office?.get(control)?.value);
|
|
@@ -88080,77 +88110,28 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88080
88110
|
getAddressGroup(office, control) {
|
|
88081
88111
|
return office?.get(control) ?? null;
|
|
88082
88112
|
}
|
|
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 : "";
|
|
88113
|
+
isAddressValid(office, control) {
|
|
88114
|
+
const group2 = this.getAddressGroup(office, control);
|
|
88115
|
+
return !group2 || group2.disabled || isFormGroupVisiblyValid(group2, this.addressFields);
|
|
88135
88116
|
}
|
|
88136
88117
|
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
|
|
88137
88118
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
|
|
88138
88119
|
};
|
|
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:
|
|
88120
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesFormComponent, selectors: [["british-columbia-change-of-office-addresses-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 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
88121
|
if (rf & 1) {
|
|
88141
88122
|
\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(
|
|
88123
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
88124
|
+
\u0275\u0275elementStart(3, "div", 3);
|
|
88125
|
+
\u0275\u0275declareLet(4);
|
|
88126
|
+
\u0275\u0275template(5, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 4);
|
|
88127
|
+
\u0275\u0275declareLet(6);
|
|
88128
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_7_Template, 2, 6, "expandable-card", 5);
|
|
88129
|
+
\u0275\u0275declareLet(8);
|
|
88130
|
+
\u0275\u0275template(9, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template, 15, 19, "expandable-card", 5);
|
|
88131
|
+
\u0275\u0275declareLet(10);
|
|
88132
|
+
\u0275\u0275template(11, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template, 9, 13, "expandable-card", 5);
|
|
88133
|
+
\u0275\u0275declareLet(12);
|
|
88134
|
+
\u0275\u0275template(13, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_13_Template, 12, 15, "expandable-card", 6);
|
|
88154
88135
|
\u0275\u0275elementEnd()();
|
|
88155
88136
|
}
|
|
88156
88137
|
if (rf & 2) {
|
|
@@ -88158,26 +88139,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88158
88139
|
\u0275\u0275conditional(ctx.isNote() ? 1 : -1);
|
|
88159
88140
|
\u0275\u0275advance();
|
|
88160
88141
|
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
88161
|
-
\u0275\u0275advance();
|
|
88162
|
-
\u0275\u0275conditional(ctx.missingMessages().length ? 3 : -1);
|
|
88163
88142
|
\u0275\u0275advance(2);
|
|
88164
|
-
const
|
|
88143
|
+
const referenceNumbers_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
88165
88144
|
\u0275\u0275advance();
|
|
88166
|
-
\u0275\u0275conditional(
|
|
88145
|
+
\u0275\u0275conditional(referenceNumbers_r25 ? 5 : -1);
|
|
88167
88146
|
\u0275\u0275advance();
|
|
88168
|
-
const
|
|
88147
|
+
const corporationDetails_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
88169
88148
|
\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);
|
|
88149
|
+
\u0275\u0275conditional(corporationDetails_r26 ? 7 : -1);
|
|
88150
|
+
\u0275\u0275advance();
|
|
88151
|
+
const registeredOffice_r27 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
|
|
88177
88152
|
\u0275\u0275advance();
|
|
88178
|
-
|
|
88153
|
+
\u0275\u0275conditional(registeredOffice_r27 ? 9 : -1);
|
|
88179
88154
|
\u0275\u0275advance();
|
|
88180
|
-
\u0275\
|
|
88155
|
+
const recordsOffice_r28 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RecordsOfficeAddress));
|
|
88156
|
+
\u0275\u0275advance();
|
|
88157
|
+
\u0275\u0275conditional(recordsOffice_r28 ? 11 : -1);
|
|
88158
|
+
\u0275\u0275advance();
|
|
88159
|
+
const annualReportReminder_r29 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
88160
|
+
\u0275\u0275advance();
|
|
88161
|
+
\u0275\u0275conditional(annualReportReminder_r29 ? 13 : -1);
|
|
88181
88162
|
}
|
|
88182
88163
|
}, dependencies: [
|
|
88183
88164
|
FilingFormGroupComponent,
|
|
@@ -88191,7 +88172,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88191
88172
|
FormGroupDirective,
|
|
88192
88173
|
FormControlName,
|
|
88193
88174
|
TranslatePipe
|
|
88194
|
-
], styles: [
|
|
88175
|
+
], 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
88176
|
};
|
|
88196
88177
|
(() => {
|
|
88197
88178
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
|
|
@@ -88219,13 +88200,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88219
88200
|
[content]="errors()"\r
|
|
88220
88201
|
/>\r
|
|
88221
88202
|
}\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
88203
|
\r
|
|
88230
88204
|
<div class="change-of-office-addresses-form-content">\r
|
|
88231
88205
|
@let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
|
|
@@ -88262,24 +88236,54 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88262
88236
|
@let registeredOffice = getFormGroup(groups.RegisteredOfficeAddress);\r
|
|
88263
88237
|
\r
|
|
88264
88238
|
@if (registeredOffice) {\r
|
|
88239
|
+
@let registeredMailing = getAddressGroup(registeredOffice, controls.NewMailingAddress);\r
|
|
88240
|
+
@let registeredDelivery = getAddressGroup(registeredOffice, controls.NewDeliveryAddress);\r
|
|
88241
|
+
@let registeredDeliverySame = isChecked(registeredOffice, controls.DeliverySameAsMailing);\r
|
|
88242
|
+
\r
|
|
88265
88243
|
<expandable-card\r
|
|
88266
88244
|
[isStatusIcon]="!readonly()"\r
|
|
88267
88245
|
[isValid]="isRegisteredOfficeValid()"\r
|
|
88268
88246
|
[title]="groups.RegisteredOfficeAddress"\r
|
|
88269
88247
|
>\r
|
|
88270
88248
|
<div class="change-of-office-addresses-form-item">\r
|
|
88271
|
-
|
|
88272
|
-
|
|
88273
|
-
|
|
88274
|
-
|
|
88275
|
-
|
|
88276
|
-
|
|
88277
|
-
|
|
88278
|
-
|
|
88279
|
-
|
|
88280
|
-
|
|
88281
|
-
|
|
88282
|
-
|
|
88249
|
+
<filing-form-group\r
|
|
88250
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88251
|
+
[form]="registeredOffice"\r
|
|
88252
|
+
[config]="currentAddressesFields"\r
|
|
88253
|
+
/>\r
|
|
88254
|
+
\r
|
|
88255
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
|
|
88256
|
+
\r
|
|
88257
|
+
@if (registeredMailing) {\r
|
|
88258
|
+
<filing-form-group\r
|
|
88259
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88260
|
+
[form]="registeredMailing"\r
|
|
88261
|
+
[config]="addressFields"\r
|
|
88262
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88263
|
+
/>\r
|
|
88264
|
+
}\r
|
|
88265
|
+
\r
|
|
88266
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
88267
|
+
\r
|
|
88268
|
+
<filing-form-group\r
|
|
88269
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88270
|
+
[form]="registeredOffice"\r
|
|
88271
|
+
[config]="deliverySameAsMailingFields"\r
|
|
88272
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88273
|
+
/>\r
|
|
88274
|
+
\r
|
|
88275
|
+
@if (!registeredDeliverySame && registeredDelivery) {\r
|
|
88276
|
+
<filing-form-group\r
|
|
88277
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88278
|
+
[form]="registeredOffice"\r
|
|
88279
|
+
[config]="deliveryNoteFields"\r
|
|
88280
|
+
/>\r
|
|
88281
|
+
<filing-form-group\r
|
|
88282
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88283
|
+
[form]="registeredDelivery"\r
|
|
88284
|
+
[config]="addressFields"\r
|
|
88285
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88286
|
+
/>\r
|
|
88283
88287
|
}\r
|
|
88284
88288
|
</div>\r
|
|
88285
88289
|
</expandable-card>\r
|
|
@@ -88289,24 +88293,59 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88289
88293
|
@let recordsOffice = getFormGroup(groups.RecordsOfficeAddress);\r
|
|
88290
88294
|
\r
|
|
88291
88295
|
@if (recordsOffice) {\r
|
|
88296
|
+
@let recordsMailing = getAddressGroup(recordsOffice, controls.NewMailingAddress);\r
|
|
88297
|
+
@let recordsDelivery = getAddressGroup(recordsOffice, controls.NewDeliveryAddress);\r
|
|
88298
|
+
@let recordsSameAsRegistered = isChecked(recordsOffice, controls.SameAsRegisteredOffice);\r
|
|
88299
|
+
@let recordsDeliverySame = isChecked(recordsOffice, controls.DeliverySameAsMailing);\r
|
|
88300
|
+
\r
|
|
88292
88301
|
<expandable-card\r
|
|
88293
88302
|
[isStatusIcon]="!readonly()"\r
|
|
88294
88303
|
[isValid]="isRecordsOfficeValid()"\r
|
|
88295
88304
|
[title]="groups.RecordsOfficeAddress"\r
|
|
88296
88305
|
>\r
|
|
88297
88306
|
<div class="change-of-office-addresses-form-item">\r
|
|
88298
|
-
|
|
88299
|
-
|
|
88300
|
-
|
|
88301
|
-
|
|
88302
|
-
|
|
88303
|
-
|
|
88304
|
-
|
|
88305
|
-
|
|
88306
|
-
|
|
88307
|
-
|
|
88308
|
-
|
|
88309
|
-
|
|
88307
|
+
<filing-form-group\r
|
|
88308
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88309
|
+
[form]="recordsOffice"\r
|
|
88310
|
+
[config]="currentAddressesFields"\r
|
|
88311
|
+
/>\r
|
|
88312
|
+
\r
|
|
88313
|
+
<filing-form-group\r
|
|
88314
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88315
|
+
[form]="recordsOffice"\r
|
|
88316
|
+
[config]="sameAsRegisteredOfficeFields"\r
|
|
88317
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88318
|
+
/>\r
|
|
88319
|
+
\r
|
|
88320
|
+
@if (!recordsSameAsRegistered) {\r
|
|
88321
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Mailing Address' | translate }}</h4>\r
|
|
88322
|
+
\r
|
|
88323
|
+
@if (recordsMailing) {\r
|
|
88324
|
+
<filing-form-group\r
|
|
88325
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88326
|
+
[form]="recordsMailing"\r
|
|
88327
|
+
[config]="addressFields"\r
|
|
88328
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88329
|
+
/>\r
|
|
88330
|
+
}\r
|
|
88331
|
+
\r
|
|
88332
|
+
<h4 class="change-of-office-addresses-form-item-title">{{ 'New Delivery Address' | translate }}</h4>\r
|
|
88333
|
+
\r
|
|
88334
|
+
<filing-form-group\r
|
|
88335
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88336
|
+
[form]="recordsOffice"\r
|
|
88337
|
+
[config]="deliverySameAsMailingFields"\r
|
|
88338
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88339
|
+
/>\r
|
|
88340
|
+
\r
|
|
88341
|
+
@if (!recordsDeliverySame && recordsDelivery) {\r
|
|
88342
|
+
<filing-form-group\r
|
|
88343
|
+
[isSubmitted]="isSubmitted()"\r
|
|
88344
|
+
[form]="recordsDelivery"\r
|
|
88345
|
+
[config]="addressFields"\r
|
|
88346
|
+
(visiblyValidChange)="emitValidity()"\r
|
|
88347
|
+
/>\r
|
|
88348
|
+
}\r
|
|
88310
88349
|
}\r
|
|
88311
88350
|
</div>\r
|
|
88312
88351
|
</expandable-card>\r
|
|
@@ -88336,11 +88375,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88336
88375
|
}\r
|
|
88337
88376
|
</div>\r
|
|
88338
88377
|
</div>\r
|
|
88339
|
-
`, styles: [
|
|
88378
|
+
`, 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
88379
|
}], null, null);
|
|
88341
88380
|
})();
|
|
88342
88381
|
(() => {
|
|
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:
|
|
88382
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfOfficeAddressesFormComponent, { className: "BritishColumbiaChangeOfOfficeAddressesFormComponent", filePath: "src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.ts", lineNumber: 55 });
|
|
88344
88383
|
})();
|
|
88345
88384
|
}
|
|
88346
88385
|
});
|
|
@@ -90724,7 +90763,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90724
90763
|
\u0275\u0275pipe(7, "translate");
|
|
90725
90764
|
\u0275\u0275elementEnd();
|
|
90726
90765
|
\u0275\u0275elementStart(8, "ul", 16);
|
|
90727
|
-
\u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17,
|
|
90766
|
+
\u0275\u0275repeaterCreate(9, FederalIncorporationFormComponent_Conditional_7_For_10_Template, 2, 1, "li", 17, _forTrack05);
|
|
90728
90767
|
\u0275\u0275elementEnd()();
|
|
90729
90768
|
\u0275\u0275elementStart(11, "span", 17);
|
|
90730
90769
|
\u0275\u0275text(12);
|
|
@@ -90927,7 +90966,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90927
90966
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", contactForm_r24)("config", ctx_r0.contactControl);
|
|
90928
90967
|
}
|
|
90929
90968
|
}
|
|
90930
|
-
var _c016,
|
|
90969
|
+
var _c016, _forTrack05, FederalIncorporationFormComponent;
|
|
90931
90970
|
var init_federal_incorporation_form_component = __esm({
|
|
90932
90971
|
"src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.ts"() {
|
|
90933
90972
|
init_core();
|
|
@@ -90952,7 +90991,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
90952
90991
|
init_common();
|
|
90953
90992
|
init_core();
|
|
90954
90993
|
_c016 = ["*"];
|
|
90955
|
-
|
|
90994
|
+
_forTrack05 = ($index, $item) => $item.affiliationID;
|
|
90956
90995
|
FederalIncorporationFormComponent = class _FederalIncorporationFormComponent {
|
|
90957
90996
|
form = input.required();
|
|
90958
90997
|
isNote = input(false);
|
|
@@ -95891,7 +95930,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95891
95930
|
"src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
|
|
95892
95931
|
init_BritishColumbiaConstants();
|
|
95893
95932
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
95894
|
-
TEMP_UAT_TEST_ACCESS_CODE = "
|
|
95933
|
+
TEMP_UAT_TEST_ACCESS_CODE = "12345678";
|
|
95895
95934
|
BC_PROVINCE_CODE = "BC";
|
|
95896
95935
|
CANADA_COUNTRY_CODE = "CA";
|
|
95897
95936
|
clean = (value) => (value ?? "").trim();
|
|
@@ -101905,12 +101944,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
101905
101944
|
"File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
|
|
101906
101945
|
"Records Office Address": "Records Office Address",
|
|
101907
101946
|
"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
101947
|
"Current Mailing Address": "Current Mailing Address",
|
|
101915
101948
|
"Current Delivery Address": "Current Delivery Address",
|
|
101916
101949
|
"New Mailing Address": "New Mailing Address",
|
|
@@ -102267,12 +102300,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102267
102300
|
"Without Par Value": "Sans valeur nominale",
|
|
102268
102301
|
"File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
|
|
102269
102302
|
"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
102303
|
"Current Mailing Address": "Adresse postale actuelle",
|
|
102277
102304
|
"Current Delivery Address": "Adresse de livraison actuelle",
|
|
102278
102305
|
"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.16",
|
|
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
|
}
|