@dyedurham/search-and-file-widget 2.1.12 → 2.1.14
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 +137 -80
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -85137,7 +85137,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85137
85137
|
const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
|
|
85138
85138
|
const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
|
|
85139
85139
|
const incoming = this.incomingOfficeAddresses(task);
|
|
85140
|
-
const
|
|
85140
|
+
const incomingSeed = delta?.registeredOffice ? this.fillEmptyAddresses(delta, incoming) : this.seedFromIncomingAffiliations(task);
|
|
85141
|
+
const seed = this.withCurrentAddresses(incomingSeed, incoming, delta, registeredOffice, recordsOffice);
|
|
85141
85142
|
const config2 = {};
|
|
85142
85143
|
config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
|
|
85143
85144
|
config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
|
|
@@ -85209,6 +85210,50 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85209
85210
|
}
|
|
85210
85211
|
};
|
|
85211
85212
|
}
|
|
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
|
+
}
|
|
85212
85257
|
/** Keeps the saved flags and addresses, but fills an address the draft left empty from `incoming`. */
|
|
85213
85258
|
static fillEmptyAddresses(saved, incoming) {
|
|
85214
85259
|
const hasValues = (address) => EDITABLE_ADDRESS_CONTROLS.some((name) => Boolean(address?.[name]));
|
|
@@ -87768,11 +87813,20 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87768
87813
|
\u0275\u0275property("content", ctx_r0.errors());
|
|
87769
87814
|
}
|
|
87770
87815
|
}
|
|
87771
|
-
function
|
|
87816
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_3_Template(rf, ctx) {
|
|
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) {
|
|
87772
87826
|
if (rf & 1) {
|
|
87773
87827
|
const _r2 = \u0275\u0275getCurrentView();
|
|
87774
87828
|
\u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 7);
|
|
87775
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87829
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87776
87830
|
\u0275\u0275restoreView(_r2);
|
|
87777
87831
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87778
87832
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
|
|
@@ -87781,17 +87835,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87781
87835
|
}
|
|
87782
87836
|
if (rf & 2) {
|
|
87783
87837
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87784
|
-
const referenceNumbers_r3 = \u0275\u0275readContextLet(
|
|
87838
|
+
const referenceNumbers_r3 = \u0275\u0275readContextLet(5);
|
|
87785
87839
|
\u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
|
|
87786
87840
|
\u0275\u0275advance();
|
|
87787
87841
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
|
|
87788
87842
|
}
|
|
87789
87843
|
}
|
|
87790
|
-
function
|
|
87844
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template(rf, ctx) {
|
|
87791
87845
|
if (rf & 1) {
|
|
87792
87846
|
const _r4 = \u0275\u0275getCurrentView();
|
|
87793
87847
|
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 7);
|
|
87794
|
-
\u0275\u0275listener("visiblyValidChange", function
|
|
87848
|
+
\u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template_filing_form_group_visiblyValidChange_1_listener($event) {
|
|
87795
87849
|
\u0275\u0275restoreView(_r4);
|
|
87796
87850
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87797
87851
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("corpDetails", $event));
|
|
@@ -87800,15 +87854,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87800
87854
|
}
|
|
87801
87855
|
if (rf & 2) {
|
|
87802
87856
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87803
|
-
const corporationDetails_r5 = \u0275\u0275readContextLet(
|
|
87857
|
+
const corporationDetails_r5 = \u0275\u0275readContextLet(7);
|
|
87804
87858
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["corpDetails"] !== false)("title", ctx_r0.groups.CorporationDetails);
|
|
87805
87859
|
\u0275\u0275advance();
|
|
87806
87860
|
\u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", corporationDetails_r5)("config", ctx_r0.corporationDetailsFields());
|
|
87807
87861
|
}
|
|
87808
87862
|
}
|
|
87809
|
-
function
|
|
87863
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Conditional_7_Template(rf, ctx) {
|
|
87810
87864
|
if (rf & 1) {
|
|
87811
|
-
\u0275\u0275elementStart(0, "div",
|
|
87865
|
+
\u0275\u0275elementStart(0, "div", 12);
|
|
87812
87866
|
\u0275\u0275text(1);
|
|
87813
87867
|
\u0275\u0275pipe(2, "translate");
|
|
87814
87868
|
\u0275\u0275elementEnd();
|
|
@@ -87819,16 +87873,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87819
87873
|
\u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r6.previous, " ");
|
|
87820
87874
|
}
|
|
87821
87875
|
}
|
|
87822
|
-
function
|
|
87876
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Template(rf, ctx) {
|
|
87823
87877
|
if (rf & 1) {
|
|
87824
|
-
\u0275\u0275elementStart(0, "div", 9)(1, "div",
|
|
87878
|
+
\u0275\u0275elementStart(0, "div", 9)(1, "div", 10)(2, "span", 11);
|
|
87825
87879
|
\u0275\u0275text(3);
|
|
87826
87880
|
\u0275\u0275pipe(4, "translate");
|
|
87827
87881
|
\u0275\u0275elementEnd();
|
|
87828
87882
|
\u0275\u0275text(5);
|
|
87829
87883
|
\u0275\u0275pipe(6, "translate");
|
|
87830
87884
|
\u0275\u0275elementEnd();
|
|
87831
|
-
\u0275\u0275template(7,
|
|
87885
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Conditional_7_Template, 3, 4, "div", 12);
|
|
87832
87886
|
\u0275\u0275elementEnd();
|
|
87833
87887
|
}
|
|
87834
87888
|
if (rf & 2) {
|
|
@@ -87841,16 +87895,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87841
87895
|
\u0275\u0275conditional(row_r6.previous ? 7 : -1);
|
|
87842
87896
|
}
|
|
87843
87897
|
}
|
|
87844
|
-
function
|
|
87845
|
-
if (rf & 1) {
|
|
87846
|
-
\u0275\u0275element(0, "alert", 10);
|
|
87847
|
-
}
|
|
87848
|
-
}
|
|
87849
|
-
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Template(rf, ctx) {
|
|
87898
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_Template(rf, ctx) {
|
|
87850
87899
|
if (rf & 1) {
|
|
87851
87900
|
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
|
|
87852
|
-
\u0275\u0275repeaterCreate(2,
|
|
87853
|
-
\u0275\u0275template(4, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_9_Conditional_4_Template, 1, 0, "alert", 10);
|
|
87901
|
+
\u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_For_3_Template, 8, 7, "div", 9, _forTrack05);
|
|
87854
87902
|
\u0275\u0275elementEnd()();
|
|
87855
87903
|
}
|
|
87856
87904
|
if (rf & 2) {
|
|
@@ -87858,13 +87906,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87858
87906
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRegisteredOfficeValid())("title", ctx_r0.groups.RegisteredOfficeAddress);
|
|
87859
87907
|
\u0275\u0275advance(2);
|
|
87860
87908
|
\u0275\u0275repeater(ctx_r0.registeredRows());
|
|
87861
|
-
\u0275\u0275advance(2);
|
|
87862
|
-
\u0275\u0275conditional(ctx_r0.isRegisteredMissing() ? 4 : -1);
|
|
87863
87909
|
}
|
|
87864
87910
|
}
|
|
87865
|
-
function
|
|
87911
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Conditional_7_Template(rf, ctx) {
|
|
87866
87912
|
if (rf & 1) {
|
|
87867
|
-
\u0275\u0275elementStart(0, "div",
|
|
87913
|
+
\u0275\u0275elementStart(0, "div", 12);
|
|
87868
87914
|
\u0275\u0275text(1);
|
|
87869
87915
|
\u0275\u0275pipe(2, "translate");
|
|
87870
87916
|
\u0275\u0275elementEnd();
|
|
@@ -87875,16 +87921,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87875
87921
|
\u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(2, 2, "Previous"), ": ", row_r7.previous, " ");
|
|
87876
87922
|
}
|
|
87877
87923
|
}
|
|
87878
|
-
function
|
|
87924
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Template(rf, ctx) {
|
|
87879
87925
|
if (rf & 1) {
|
|
87880
|
-
\u0275\u0275elementStart(0, "div", 9)(1, "div",
|
|
87926
|
+
\u0275\u0275elementStart(0, "div", 9)(1, "div", 10)(2, "span", 11);
|
|
87881
87927
|
\u0275\u0275text(3);
|
|
87882
87928
|
\u0275\u0275pipe(4, "translate");
|
|
87883
87929
|
\u0275\u0275elementEnd();
|
|
87884
87930
|
\u0275\u0275text(5);
|
|
87885
87931
|
\u0275\u0275pipe(6, "translate");
|
|
87886
87932
|
\u0275\u0275elementEnd();
|
|
87887
|
-
\u0275\u0275template(7,
|
|
87933
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Conditional_7_Template, 3, 4, "div", 12);
|
|
87888
87934
|
\u0275\u0275elementEnd();
|
|
87889
87935
|
}
|
|
87890
87936
|
if (rf & 2) {
|
|
@@ -87897,16 +87943,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87897
87943
|
\u0275\u0275conditional(row_r7.previous ? 7 : -1);
|
|
87898
87944
|
}
|
|
87899
87945
|
}
|
|
87900
|
-
function
|
|
87901
|
-
if (rf & 1) {
|
|
87902
|
-
\u0275\u0275element(0, "alert", 10);
|
|
87903
|
-
}
|
|
87904
|
-
}
|
|
87905
|
-
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Template(rf, ctx) {
|
|
87946
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_Template(rf, ctx) {
|
|
87906
87947
|
if (rf & 1) {
|
|
87907
87948
|
\u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8);
|
|
87908
|
-
\u0275\u0275repeaterCreate(2,
|
|
87909
|
-
\u0275\u0275template(4, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_11_Conditional_4_Template, 1, 0, "alert", 10);
|
|
87949
|
+
\u0275\u0275repeaterCreate(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_For_3_Template, 8, 7, "div", 9, _forTrack05);
|
|
87910
87950
|
\u0275\u0275elementEnd()();
|
|
87911
87951
|
}
|
|
87912
87952
|
if (rf & 2) {
|
|
@@ -87914,28 +87954,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87914
87954
|
\u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.isRecordsOfficeValid())("title", ctx_r0.groups.RecordsOfficeAddress);
|
|
87915
87955
|
\u0275\u0275advance(2);
|
|
87916
87956
|
\u0275\u0275repeater(ctx_r0.recordsRows());
|
|
87917
|
-
\u0275\u0275advance(2);
|
|
87918
|
-
\u0275\u0275conditional(ctx_r0.isRecordsMissing() ? 4 : -1);
|
|
87919
87957
|
}
|
|
87920
87958
|
}
|
|
87921
|
-
function
|
|
87959
|
+
function BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_14_Template(rf, ctx) {
|
|
87922
87960
|
if (rf & 1) {
|
|
87923
|
-
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div",
|
|
87961
|
+
\u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 13)(2, "p");
|
|
87924
87962
|
\u0275\u0275text(3);
|
|
87925
87963
|
\u0275\u0275pipe(4, "translate");
|
|
87926
87964
|
\u0275\u0275elementEnd();
|
|
87927
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
87965
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 14)(6, "mat-radio-button", 15);
|
|
87928
87966
|
\u0275\u0275text(7);
|
|
87929
87967
|
\u0275\u0275pipe(8, "translate");
|
|
87930
87968
|
\u0275\u0275elementEnd();
|
|
87931
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
87969
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 15);
|
|
87932
87970
|
\u0275\u0275text(10);
|
|
87933
87971
|
\u0275\u0275pipe(11, "translate");
|
|
87934
87972
|
\u0275\u0275elementEnd()()()();
|
|
87935
87973
|
}
|
|
87936
87974
|
if (rf & 2) {
|
|
87937
87975
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
87938
|
-
const annualReportReminder_r8 = \u0275\u0275readContextLet(
|
|
87976
|
+
const annualReportReminder_r8 = \u0275\u0275readContextLet(13);
|
|
87939
87977
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.AnnualReportReminder);
|
|
87940
87978
|
\u0275\u0275advance();
|
|
87941
87979
|
\u0275\u0275property("formGroup", annualReportReminder_r8);
|
|
@@ -87993,6 +88031,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87993
88031
|
deliveryNoteFields = BC_COA_CARD_FORM_DELIVERY_ADDRESS_NOTE_FIELDS;
|
|
87994
88032
|
deliverySameAsMailingFields = BC_COA_DELTA_CARD_FORM_DELIVERY_SAME_AS_MAILING_FIELDS;
|
|
87995
88033
|
sameAsRegisteredOfficeFields = BC_COA_DELTA_CARD_FORM_SAME_AS_REGISTERED_OFFICE_FIELDS;
|
|
88034
|
+
translate = inject(TranslateService);
|
|
87996
88035
|
sectionValidity = {};
|
|
87997
88036
|
isVisiblyValid() {
|
|
87998
88037
|
return Object.values(this.sectionValidity).every((v) => v) && this.isRegisteredOfficeValid() && this.isRecordsOfficeValid();
|
|
@@ -88003,6 +88042,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88003
88042
|
isRecordsOfficeValid() {
|
|
88004
88043
|
return !this.isRecordsMissing();
|
|
88005
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
|
+
}
|
|
88006
88060
|
/** The incoming Shared Address supplied no new address for a line (and none is on the register). */
|
|
88007
88061
|
isRegisteredMissing() {
|
|
88008
88062
|
return this.registeredRows().some((row) => !row.value);
|
|
@@ -88082,21 +88136,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88082
88136
|
static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
|
|
88083
88137
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
|
|
88084
88138
|
};
|
|
88085
|
-
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:
|
|
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: 15, vars: 11, consts: [[1, "change-of-office-addresses-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "change-of-office-addresses-form-content"], [3, "title"], [3, "isStatusIcon", "isValid", "title"], [3, "isStatusIcon", "title"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item"], [1, "change-of-office-addresses-form-address"], [1, "body-1-regular", "grey"], [1, "body-1-semibold"], [1, "change-of-office-addresses-form-previous"], [1, "annual-reminder", 3, "formGroup"], [3, "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfOfficeAddressesFormComponent_Template(rf, ctx) {
|
|
88086
88140
|
if (rf & 1) {
|
|
88087
88141
|
\u0275\u0275elementStart(0, "div", 0);
|
|
88088
|
-
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
88089
|
-
\u0275\u0275elementStart(
|
|
88090
|
-
\u0275\u0275declareLet(
|
|
88091
|
-
\u0275\u0275template(
|
|
88092
|
-
\u0275\u0275declareLet(
|
|
88093
|
-
\u0275\u0275template(
|
|
88094
|
-
\u0275\u0275declareLet(
|
|
88095
|
-
\u0275\u0275template(
|
|
88096
|
-
\u0275\u0275declareLet(
|
|
88097
|
-
\u0275\u0275template(
|
|
88098
|
-
\u0275\u0275declareLet(
|
|
88099
|
-
\u0275\u0275template(
|
|
88142
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2)(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_3_Template, 1, 1, "alert", 2);
|
|
88143
|
+
\u0275\u0275elementStart(4, "div", 3);
|
|
88144
|
+
\u0275\u0275declareLet(5);
|
|
88145
|
+
\u0275\u0275template(6, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_6_Template, 2, 4, "expandable-card", 4);
|
|
88146
|
+
\u0275\u0275declareLet(7);
|
|
88147
|
+
\u0275\u0275template(8, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_8_Template, 2, 6, "expandable-card", 5);
|
|
88148
|
+
\u0275\u0275declareLet(9);
|
|
88149
|
+
\u0275\u0275template(10, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_10_Template, 4, 3, "expandable-card", 5);
|
|
88150
|
+
\u0275\u0275declareLet(11);
|
|
88151
|
+
\u0275\u0275template(12, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_12_Template, 4, 3, "expandable-card", 5);
|
|
88152
|
+
\u0275\u0275declareLet(13);
|
|
88153
|
+
\u0275\u0275template(14, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_14_Template, 12, 15, "expandable-card", 6);
|
|
88100
88154
|
\u0275\u0275elementEnd()();
|
|
88101
88155
|
}
|
|
88102
88156
|
if (rf & 2) {
|
|
@@ -88104,24 +88158,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88104
88158
|
\u0275\u0275conditional(ctx.isNote() ? 1 : -1);
|
|
88105
88159
|
\u0275\u0275advance();
|
|
88106
88160
|
\u0275\u0275conditional(ctx.errors().length ? 2 : -1);
|
|
88161
|
+
\u0275\u0275advance();
|
|
88162
|
+
\u0275\u0275conditional(ctx.missingMessages().length ? 3 : -1);
|
|
88107
88163
|
\u0275\u0275advance(2);
|
|
88108
88164
|
const referenceNumbers_r9 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
|
|
88109
88165
|
\u0275\u0275advance();
|
|
88110
|
-
\u0275\u0275conditional(referenceNumbers_r9 ?
|
|
88166
|
+
\u0275\u0275conditional(referenceNumbers_r9 ? 6 : -1);
|
|
88111
88167
|
\u0275\u0275advance();
|
|
88112
88168
|
const corporationDetails_r10 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
|
|
88113
88169
|
\u0275\u0275advance();
|
|
88114
|
-
\u0275\u0275conditional(corporationDetails_r10 ?
|
|
88170
|
+
\u0275\u0275conditional(corporationDetails_r10 ? 8 : -1);
|
|
88115
88171
|
const registeredOffice_r11 = ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress);
|
|
88116
88172
|
\u0275\u0275advance(2);
|
|
88117
|
-
\u0275\u0275conditional(registeredOffice_r11 ?
|
|
88173
|
+
\u0275\u0275conditional(registeredOffice_r11 ? 10 : -1);
|
|
88118
88174
|
const recordsOffice_r12 = ctx.getFormGroup(ctx.groups.RecordsOfficeAddress);
|
|
88119
88175
|
\u0275\u0275advance(2);
|
|
88120
|
-
\u0275\u0275conditional(recordsOffice_r12 ?
|
|
88176
|
+
\u0275\u0275conditional(recordsOffice_r12 ? 12 : -1);
|
|
88121
88177
|
\u0275\u0275advance();
|
|
88122
88178
|
const annualReportReminder_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
|
|
88123
88179
|
\u0275\u0275advance();
|
|
88124
|
-
\u0275\u0275conditional(annualReportReminder_r13 ?
|
|
88180
|
+
\u0275\u0275conditional(annualReportReminder_r13 ? 14 : -1);
|
|
88125
88181
|
}
|
|
88126
88182
|
}, dependencies: [
|
|
88127
88183
|
FilingFormGroupComponent,
|
|
@@ -88135,7 +88191,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88135
88191
|
FormGroupDirective,
|
|
88136
88192
|
FormControlName,
|
|
88137
88193
|
TranslatePipe
|
|
88138
|
-
], styles: [
|
|
88194
|
+
], styles: ['\n\n[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 14px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] .mat-mdc-radio-button .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form[_ngcontent-%COMP%] .annual-reminder[_ngcontent-%COMP%] .mat-mdc-radio-button {\n --mdc-radio-state-layer-size: 40px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-item-title[_ngcontent-%COMP%] {\n color: var(--filing-modal-color-dark-blue);\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-address[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-form-previous[_ngcontent-%COMP%] {\n font-size: 13px !important;\n line-height: 18px;\n font-family: "Open Sans";\n font-style: italic;\n color: var(--filing-modal-color-grey-mid);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */'], changeDetection: 0 });
|
|
88139
88195
|
};
|
|
88140
88196
|
(() => {
|
|
88141
88197
|
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfOfficeAddressesFormComponent, [{
|
|
@@ -88163,6 +88219,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88163
88219
|
[content]="errors()"\r
|
|
88164
88220
|
/>\r
|
|
88165
88221
|
}\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
|
|
88166
88229
|
\r
|
|
88167
88230
|
<div class="change-of-office-addresses-form-content">\r
|
|
88168
88231
|
@let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
|
|
@@ -88212,19 +88275,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88212
88275
|
{{ row.value || ('Not specified' | translate) }}\r
|
|
88213
88276
|
</div>\r
|
|
88214
88277
|
@if (row.previous) {\r
|
|
88215
|
-
<div class="change-of-office-addresses-form-previous
|
|
88278
|
+
<div class="change-of-office-addresses-form-previous">\r
|
|
88216
88279
|
{{ 'Previous' | translate }}: {{ row.previous }}\r
|
|
88217
88280
|
</div>\r
|
|
88218
88281
|
}\r
|
|
88219
88282
|
</div>\r
|
|
88220
88283
|
}\r
|
|
88221
|
-
\r
|
|
88222
|
-
@if (isRegisteredMissing()) {\r
|
|
88223
|
-
<alert\r
|
|
88224
|
-
title="New address missing"\r
|
|
88225
|
-
content="No new address was found for this office. Add it in Athennian, then try again."\r
|
|
88226
|
-
/>\r
|
|
88227
|
-
}\r
|
|
88228
88284
|
</div>\r
|
|
88229
88285
|
</expandable-card>\r
|
|
88230
88286
|
}\r
|
|
@@ -88246,19 +88302,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88246
88302
|
{{ row.value || ('Not specified' | translate) }}\r
|
|
88247
88303
|
</div>\r
|
|
88248
88304
|
@if (row.previous) {\r
|
|
88249
|
-
<div class="change-of-office-addresses-form-previous
|
|
88305
|
+
<div class="change-of-office-addresses-form-previous">\r
|
|
88250
88306
|
{{ 'Previous' | translate }}: {{ row.previous }}\r
|
|
88251
88307
|
</div>\r
|
|
88252
88308
|
}\r
|
|
88253
88309
|
</div>\r
|
|
88254
88310
|
}\r
|
|
88255
|
-
\r
|
|
88256
|
-
@if (isRecordsMissing()) {\r
|
|
88257
|
-
<alert\r
|
|
88258
|
-
title="New address missing"\r
|
|
88259
|
-
content="No new address was found for this office. Add it in Athennian, then try again."\r
|
|
88260
|
-
/>\r
|
|
88261
|
-
}\r
|
|
88262
88311
|
</div>\r
|
|
88263
88312
|
</expandable-card>\r
|
|
88264
88313
|
}\r
|
|
@@ -88287,11 +88336,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88287
88336
|
}\r
|
|
88288
88337
|
</div>\r
|
|
88289
88338
|
</div>\r
|
|
88290
|
-
`, styles: [
|
|
88339
|
+
`, styles: ['/* src/app/components/british-columbia/change-of-office-addresses/change-of-office-addresses-form/change-of-office-addresses-form.component.scss */\n:host {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n:host .change-of-office-addresses-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-office-addresses-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow-y: auto;\n min-height: 0;\n}\n:host .change-of-office-addresses-form .annual-reminder {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n:host .change-of-office-addresses-form .annual-reminder p {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n:host .change-of-office-addresses-form .annual-reminder mat-radio-group {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 14px;\n}\n:host .change-of-office-addresses-form .annual-reminder ::ng-deep .mat-mdc-radio-button .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n:host .change-of-office-addresses-form .annual-reminder ::ng-deep .mat-mdc-radio-button {\n --mdc-radio-state-layer-size: 40px;\n}\n:host .change-of-office-addresses-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .change-of-office-addresses-form-item-title {\n color: var(--filing-modal-color-dark-blue);\n}\n:host .change-of-office-addresses-form-address {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .change-of-office-addresses-form-previous {\n font-size: 13px !important;\n line-height: 18px;\n font-family: "Open Sans";\n font-style: italic;\n color: var(--filing-modal-color-grey-mid);\n}\n/*# sourceMappingURL=change-of-office-addresses-form.component.css.map */\n'] }]
|
|
88291
88340
|
}], null, null);
|
|
88292
88341
|
})();
|
|
88293
88342
|
(() => {
|
|
88294
|
-
(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:
|
|
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: 61 });
|
|
88295
88344
|
})();
|
|
88296
88345
|
}
|
|
88297
88346
|
});
|
|
@@ -95842,7 +95891,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95842
95891
|
"src/app/helpers/mappers/british-columbia-change-of-office-addresses.mapper.ts"() {
|
|
95843
95892
|
init_BritishColumbiaConstants();
|
|
95844
95893
|
init_british_columbia_change_of_office_addresses_form_helper();
|
|
95845
|
-
TEMP_UAT_TEST_ACCESS_CODE = "
|
|
95894
|
+
TEMP_UAT_TEST_ACCESS_CODE = "xxxxxxxx";
|
|
95846
95895
|
BC_PROVINCE_CODE = "BC";
|
|
95847
95896
|
CANADA_COUNTRY_CODE = "CA";
|
|
95848
95897
|
clean = (value) => (value ?? "").trim();
|
|
@@ -101856,6 +101905,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
101856
101905
|
"File British Columbia Change of Office Addresses": "File British Columbia Change of Office Addresses",
|
|
101857
101906
|
"Records Office Address": "Records Office Address",
|
|
101858
101907
|
"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.",
|
|
101859
101912
|
"Mailing Address": "Mailing Address",
|
|
101860
101913
|
"Delivery Address": "Delivery Address",
|
|
101861
101914
|
"Current Mailing Address": "Current Mailing Address",
|
|
@@ -102214,6 +102267,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
102214
102267
|
"Without Par Value": "Sans valeur nominale",
|
|
102215
102268
|
"File British Columbia Change of Office Addresses": "D\xE9poser le changement d'adresses de bureaux de la Colombie-Britannique",
|
|
102216
102269
|
"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.",
|
|
102217
102274
|
"Mailing Address": "Adresse postale",
|
|
102218
102275
|
"Delivery Address": "Adresse de livraison",
|
|
102219
102276
|
"Current Mailing Address": "Adresse postale actuelle",
|