@dyedurham/search-and-file-widget 1.6.16 → 1.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dnd-filing-shell.js +2039 -1747
  2. package/package.json +1 -1
@@ -56029,6 +56029,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
56029
56029
  IRFormControls2["OfficerPosition"] = "OfficerPosition";
56030
56030
  IRFormControls2["OfficerPositionName"] = "OfficerPositionName";
56031
56031
  IRFormControls2["OfficerPositionSpecified"] = "OfficerPositionSpecified";
56032
+ IRFormControls2["Contact"] = "contact";
56032
56033
  IRFormControls2["CountryTelephoneCode"] = "CountryTelephoneCode";
56033
56034
  IRFormControls2["AreaCode"] = "AreaCode";
56034
56035
  IRFormControls2["TelephoneNumber"] = "TelephoneNumber";
@@ -56039,6 +56040,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
56039
56040
  IRFormControls2["Fax"] = "Fax";
56040
56041
  IRFormControls2["AffiliationAddressType"] = "affiliationAddressType";
56041
56042
  IRFormControls2["AffiliationType"] = "AffiliationType";
56043
+ IRFormControls2["CurrentName"] = "currentName";
56042
56044
  })(IRFormControls || (IRFormControls = {}));
56043
56045
  (function(FormationFormGroups2) {
56044
56046
  FormationFormGroups2["ReferenceNumbers"] = "Reference Numbers";
@@ -56056,6 +56058,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
56056
56058
  InitialReturnFillingFormGroups2["Directors"] = "Directors";
56057
56059
  InitialReturnFillingFormGroups2["Officers"] = "Officers";
56058
56060
  InitialReturnFillingFormGroups2["CertifiedBy"] = "Certified By";
56061
+ InitialReturnFillingFormGroups2["Contact"] = "Contact";
56059
56062
  })(InitialReturnFillingFormGroups || (InitialReturnFillingFormGroups = {}));
56060
56063
  }
56061
56064
  });
@@ -56957,14 +56960,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
56957
56960
  } else if (country === "US") {
56958
56961
  provinceState = USStateToCode(address.province_state) || address.province_state;
56959
56962
  }
56963
+ const isCanadianAddress = country === "CA";
56964
+ const mappedStreetName = isCanadianAddress ? deltaData?.streetName ?? StreetName : streetOnly ?? "";
56960
56965
  return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, careOf && { CareOf: careOf }), {
56961
56966
  AddressStandardLot: "Standard",
56962
- StreetNumber: streetNumber,
56963
- StreetName: deltaData?.streetName ?? StreetName,
56964
- CanadianStreetType: deltaData?.streetType ?? (StreetType2 ? mapStreetType(StreetType2) : void 0),
56965
- CanadianStreetDirectionType: deltaData?.streetDirection ?? (StreetDirection2 ? mapStreetDirection(StreetDirection2) : null)
56967
+ StreetNumber: deltaData?.streetNumber ?? streetNumber,
56968
+ StreetName: mappedStreetName,
56969
+ CanadianStreetType: isCanadianAddress ? deltaData?.streetType ?? (StreetType2 ? mapStreetType(StreetType2) : void 0) : null,
56970
+ CanadianStreetDirectionType: isCanadianAddress ? deltaData?.streetDirection ?? (StreetDirection2 ? mapStreetDirection(StreetDirection2) : null) : null
56966
56971
  }), suite && { UnitNumber: suite }), {
56967
- CanadianUnitType: deltaData?.unitType ?? null,
56972
+ CanadianUnitType: isCanadianAddress ? deltaData?.unitType ?? null : null,
56968
56973
  UnitNumber: deltaData?.unitNumber ?? null,
56969
56974
  City: address.city,
56970
56975
  ProvinceState: provinceState,
@@ -57064,8 +57069,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
57064
57069
  const legalEnding = entityDetails?.legalIdentifier ?? "";
57065
57070
  const incorporatorIds = new Set(task._ext._incorporators?.map((inc) => inc.profileID?.toString()).filter(Boolean) ?? []);
57066
57071
  const registeredOfficeAddress = findRegisteredOfficeAddress(task);
57072
+ const directorIds = new Set(task.entity.affiliations.filter((aff) => aff.kind === "PrincipalAffiliationV3" && aff.role.role_name === DirectorRole.DIRECTOR).map((aff) => aff.participant._id).filter(Boolean));
57073
+ const incorporatorsNotDirectors = (task._ext._incorporators ?? []).filter((inc) => !directorIds.has(inc.profileID?.toString() ?? ""));
57067
57074
  const directors = transformDirectors(task.entity.affiliations, incorporatorIds, deltaData);
57068
- const incorporators = transformIncorporators(task._ext._incorporators ?? [], deltaData);
57075
+ const incorporators = transformIncorporators(incorporatorsNotDirectors, deltaData);
57069
57076
  const officialBusinessEmail = registeredOfficeAddress?.communications?.find((c) => c.type === "Business Email")?.value;
57070
57077
  const naicsData = task.entity._profile?.naics;
57071
57078
  const requestedDate = task._ext._future_filing_date ? new Date(task._ext._future_filing_date).toISOString().split("T")[0] : (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
@@ -57102,6 +57109,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
57102
57109
  });
57103
57110
  return eCorePayload;
57104
57111
  }
57112
+ function getPhoneData(phone) {
57113
+ const resultNumber = phone.length === 11 ? phone.slice(1) : phone;
57114
+ return {
57115
+ countryCode: "1",
57116
+ areaCode: resultNumber.slice(0, 3),
57117
+ number: resultNumber.slice(3),
57118
+ fullNumber: phone
57119
+ };
57120
+ }
57105
57121
  var ECoreIncorporationType, ECoreDirectorNumberType, ECoreEffectiveType, ECoreDirectorResidencyType, ECoreIncorporatorType, ECoreStreetType, ECoreCanadianStreetDirectionType, ECoreCanadianUnitType;
57106
57122
  var init_transform_utils = __esm({
57107
57123
  "src/app/utils/transform.utils.ts"() {
@@ -57895,6 +57911,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
57895
57911
  }
57896
57912
  return d.length >= 10 ? d.slice(0, 10) : d;
57897
57913
  }
57914
+ if (isNaN(d.getTime())) {
57915
+ return "Not specified";
57916
+ }
57898
57917
  return d.toISOString().slice(0, 10);
57899
57918
  }
57900
57919
  function isPrincipalAffiliation2(affiliation) {
@@ -57970,7 +57989,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
57970
57989
  return task.entity._compliance.home_jurisdiction === "Ontario";
57971
57990
  }
57972
57991
  function buildValidateError(httpStatus, r) {
57973
- const msgs = (r.Errors ?? []).map((e) => e.Message || e["message"] || e.Code || JSON.stringify(e)).filter(Boolean);
57992
+ const msgs = (r.Errors ?? []).map((e) => e["ErrorMessage"] || e.Message || e["message"] || e.Code || JSON.stringify(e)).filter(Boolean);
57974
57993
  const status = r.Status ? String(r.Status) : "ValidationFailed";
57975
57994
  return new Error(msgs.length ? `eCore validation failed (HTTP ${httpStatus}, ${status}): ${msgs.join(" | ")}` : `eCore validation failed (HTTP ${httpStatus}, ${status}).`);
57976
57995
  }
@@ -58025,7 +58044,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58025
58044
  }
58026
58045
  function getCurrentAddressPreview(data) {
58027
58046
  const unitType = data.unitType;
58028
- const unitTypeValue = UNIT_TYPE_OPTIONS.find((option) => option.value === unitType)?.label;
58047
+ const unitTypeValue = UNIT_TYPE_OPTIONS.find((option) => option.value?.toString() === unitType?.toString())?.label;
58029
58048
  const unitNumber = data.unitNumber;
58030
58049
  const careOf = data.careOf;
58031
58050
  const streetType = data.streetType;
@@ -58039,7 +58058,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58039
58058
  }
58040
58059
  function getAddressPreview(data) {
58041
58060
  const unitType = data[FormationFormControls.UnitType];
58042
- const unitTypeValue = UNIT_TYPE_OPTIONS.find((option) => option.value === unitType)?.label;
58061
+ const unitTypeValue = UNIT_TYPE_OPTIONS.find((option) => option.value?.toString() === unitType?.toString())?.label;
58043
58062
  const unitNumber = data[FormationFormControls.UnitNumber];
58044
58063
  const careOf = data[FormationFormControls.CareOf];
58045
58064
  const streetType = data[FormationFormControls.StreetType];
@@ -58097,6 +58116,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58097
58116
  return "";
58098
58117
  return str.toLowerCase().replace(/(?:^|\s|[-/])\S/g, (match) => match.toUpperCase());
58099
58118
  }
58119
+ function generateAffiliationTitle(affiliation) {
58120
+ const person = affiliation.participant;
58121
+ const firstName = person._profile.firstName || "";
58122
+ const lastName = person._profile.lastName || "";
58123
+ const middleName = person._profile.middleName || "";
58124
+ return [firstName, middleName, lastName].filter(Boolean).join(" ");
58125
+ }
58100
58126
  var init_common_utils = __esm({
58101
58127
  "src/app/utils/common.utils.ts"() {
58102
58128
  init_app_constants();
@@ -59111,16 +59137,32 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
59111
59137
  init_app_enums();
59112
59138
  init_ontario_formation_form_constants();
59113
59139
  OntarioUpdateMaintainFormHelper = class _OntarioUpdateMaintainFormHelper {
59114
- static generateInitialForm(task) {
59140
+ static generateInitialForm(task, comparisonData) {
59115
59141
  const config2 = {};
59116
- const { _ext, incomingAffiliations, outgoingAffiliations, editedAffiliations = [] } = task;
59142
+ const { _ext, incomingAffiliations, outgoingAffiliations } = task;
59117
59143
  const deltaData = task.deltaData;
59118
- const addedOfficers = incomingAffiliations?.filter((aff) => isPrincipalAffiliation(aff) && aff.role.role_name === "Officer") || [];
59144
+ const addedOfficers = incomingAffiliations?.filter((aff) => {
59145
+ const key = generateAffiliationTitle(aff);
59146
+ const currentData = comparisonData?.officers.get(key);
59147
+ return !currentData && isPrincipalAffiliation(aff) && aff.role.role_name === "Officer";
59148
+ }) || [];
59119
59149
  const ceasedOfficers = outgoingAffiliations?.filter((aff) => isPrincipalAffiliation(aff) && aff.role.role_name === "Officer") || [];
59120
- const editedOfficers = editedAffiliations?.filter((aff) => isPrincipalAffiliation(aff) && aff.role.role_name === "Officer") || [];
59121
- const addedDirectors = incomingAffiliations?.filter((aff) => isPrincipalAffiliation(aff) && aff.role.role_name === "Director") || [];
59150
+ const editedOfficers = incomingAffiliations?.filter((aff) => {
59151
+ const key = generateAffiliationTitle(aff);
59152
+ const currentData = comparisonData?.officers.get(key);
59153
+ return currentData && isPrincipalAffiliation(aff) && aff.role.role_name === "Officer";
59154
+ }) || [];
59155
+ const addedDirectors = incomingAffiliations?.filter((aff) => {
59156
+ const key = generateAffiliationTitle(aff);
59157
+ const currentData = comparisonData?.directors.get(key);
59158
+ return !currentData && isPrincipalAffiliation(aff) && aff.role.role_name === "Director";
59159
+ }) || [];
59122
59160
  const ceasedDirectors = outgoingAffiliations?.filter((aff) => isPrincipalAffiliation(aff) && aff.role.role_name === "Director") || [];
59123
- const editedDirectors = editedAffiliations?.filter((aff) => isPrincipalAffiliation(aff) && aff.role.role_name === "Director") || [];
59161
+ const editedDirectors = incomingAffiliations?.filter((aff) => {
59162
+ const key = generateAffiliationTitle(aff);
59163
+ const currentData = comparisonData?.directors.get(key);
59164
+ return currentData && isPrincipalAffiliation(aff) && aff.role.role_name === "Director";
59165
+ }) || [];
59124
59166
  const address = findRegisteredOffice(task.entity.affiliations);
59125
59167
  const cert = _ext.certified;
59126
59168
  config2[InitialReturnFillingFormGroups.General] = _OntarioUpdateMaintainFormHelper.generateGeneralInfo(task);
@@ -59156,6 +59198,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
59156
59198
  if (cert) {
59157
59199
  config2[InitialReturnFillingFormGroups.CertifiedBy] = _OntarioUpdateMaintainFormHelper.generateCertification(cert, deltaData?.certifiedBy);
59158
59200
  }
59201
+ config2[InitialReturnFillingFormGroups.Contact] = new FormGroup({
59202
+ [IRFormControls.Contact]: new FormControl(deltaData?.contactUid ?? "", Validators.required)
59203
+ });
59159
59204
  return config2;
59160
59205
  }
59161
59206
  static generateGeneralInfo(task) {
@@ -59182,6 +59227,27 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
59182
59227
  [IRFormControls.AffiliationName]: new FormControl(cert.incorporator_name)
59183
59228
  }, this.generateAddressFormConfig(cert.address, _OntarioUpdateMaintainFormHelper.mapAddressDelta(deltaData?.address))));
59184
59229
  }
59230
+ static generateContact(contactAffiliation) {
59231
+ const contactProfile = contactAffiliation?.participant._profile ?? {};
59232
+ const communications = contactAffiliation?.participant.communications;
59233
+ const contactEmailAddress = communications?.find((item) => item.type.toLowerCase().includes("email"))?.value ?? "";
59234
+ const contactPhone = communications?.find((item) => item.type.toLowerCase().includes("phone"))?.value ?? "";
59235
+ const { countryCode, areaCode, number } = getPhoneData(contactPhone.replace(/\D/g, ""));
59236
+ return {
59237
+ EmailAddress: contactEmailAddress,
59238
+ PersonName: {
59239
+ FirstName: contactProfile?.firstName,
59240
+ LastName: contactProfile?.lastName,
59241
+ MiddleName: contactProfile?.middleName
59242
+ },
59243
+ PhoneNumber: {
59244
+ AreaCode: areaCode,
59245
+ CountryTelephoneCode: countryCode,
59246
+ Extension: "",
59247
+ TelephoneNumber: number
59248
+ }
59249
+ };
59250
+ }
59185
59251
  static generateAddressFormConfig(address, delta) {
59186
59252
  const config2 = {};
59187
59253
  if (address) {
@@ -59231,23 +59297,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
59231
59297
  const address = affiliation.addresses.at(0) || affiliation.parent_affiliation?.addresses?.at(0);
59232
59298
  const communications = affiliation.participant.communications;
59233
59299
  const emailAddress = affiliation.participant.communicationEmail ?? communications?.find((item) => item.type.toLowerCase().includes("email"))?.value;
59234
- const person = affiliation.participant;
59235
- const firstName = person._profile.firstName || "";
59236
- const lastName = person._profile.lastName || "";
59237
- const middleName = person._profile.middleName || "";
59238
- const name = [firstName, middleName, lastName].filter(Boolean).join(" ");
59300
+ const name = generateAffiliationTitle(affiliation);
59301
+ let correctedAffiliationType = affiliationType;
59302
+ if (deltaData) {
59303
+ if (deltaData.currentName) {
59304
+ correctedAffiliationType = IRAffiliationType.Update;
59305
+ } else {
59306
+ if (affiliationType === IRAffiliationType.Update) {
59307
+ correctedAffiliationType = IRAffiliationType.Add;
59308
+ }
59309
+ }
59310
+ }
59239
59311
  const config2 = {
59240
59312
  [IRFormControls.ID]: new FormControl(affiliation._id),
59241
59313
  [IRFormControls.AffiliationName]: new FormControl(name),
59242
59314
  [IRFormControls.Role]: new FormControl(affiliation.role.static_title),
59243
- [IRFormControls.EffectiveDate]: new FormControl(affiliation.start_date),
59315
+ [IRFormControls.EffectiveDate]: new FormControl(affiliation.start_date ? toYyyyMmDd(affiliation.start_date) : ""),
59244
59316
  [IRFormControls.CeaseDate]: new FormControl(affiliation.end_date ? toYyyyMmDd(affiliation.end_date) : ""),
59245
59317
  [IRFormControls.Email]: new FormControl(emailAddress ?? ""),
59246
- [IRFormControls.AffiliationType]: new FormControl(affiliationType)
59318
+ [IRFormControls.AffiliationType]: new FormControl(correctedAffiliationType),
59319
+ [IRFormControls.CurrentName]: new FormControl(deltaData ? deltaData.currentName : IRAffiliationType.Update === affiliationType ? name : "")
59247
59320
  };
59248
59321
  const form = new FormGroup(__spreadValues(__spreadValues({}, config2), this.generateAddressFormConfig(address, _OntarioUpdateMaintainFormHelper.mapAddressDelta(deltaData?.address))));
59249
59322
  const affiliationAddressType = form.get(IRFormControls.AffiliationAddressType)?.value;
59250
- updateFormControlsEnableState(form, addressEnabledFieldsMap[affiliationAddressType]);
59323
+ updateFormControlsEnableState(form, [...addressEnabledFieldsMap[affiliationAddressType], IRFormControls.CurrentName]);
59251
59324
  return form;
59252
59325
  }
59253
59326
  static mapAddressDelta(addr) {
@@ -60550,7 +60623,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
60550
60623
  (() => {
60551
60624
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ConfirmModalComponent, [{
60552
60625
  type: Component,
60553
- args: [{ selector: "confirm-modal", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButtonModule, TranslatePipe], template: '@let config = modalConfig();\r\n<div class="confirm-modal">\r\n <div class="confirm-modal-header">\r\n <h1 class="confirm-modal-header-title d-flex align-items-center">\r\n @if (config.icon) {\r\n <span class="material-icons-outlined icon mr-s">delete</span>\r\n }\r\n\r\n {{ config.title | translate }}\r\n </h1>\r\n </div>\r\n\r\n <div class="confirm-modal-text">{{ config.text | translate }}</div>\r\n\r\n <div class="confirm-modal-actions">\r\n <button mat-stroked-button (click)="closeModal()">\r\n <span class="body-1-semibold">{{ config.cancelButton | translate }}</span>\r\n </button>\r\n <button\r\n class="confirm-modal-actions-submit"\r\n mat-flat-button\r\n color="primary"\r\n (click)="closeModal(true)"\r\n >\r\n <span class="body-1-semibold">{{ config.confirmButton | translate}}</span>\r\n </button>\r\n </div>\r\n</div>\r\n', styles: ['/* src/app/components/confirm-modal/confirm-modal.component.scss */\n:host {\n --filing-modal-color-grey: #444444;\n --filing-modal-color-dark-blue: #485673;\n --filing-modal-color-grey-mid: #A0A0A0;\n --filing-modal-color-light-blue: #3778E4;\n --filing-modal-color-black: #444444;\n}\nmat-icon {\n font-family: "Material Icons" !important;\n font-size: 20px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n}\nh1 {\n font-size: 24px;\n line-height: 28px;\n font-weight: 700;\n font-family: "Open Sans";\n margin: 0;\n}\nh2 {\n font-size: 22px;\n line-height: 26px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh3 {\n font-size: 18px;\n font-weight: 600;\n font-family: "Open Sans";\n margin-top: 0;\n margin-bottom: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 22px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 20px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\n.body-1-regular {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-1-bold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-1-semibold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 600;\n font-family: "Open Sans";\n}\n.body-2-regular {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-2-bold {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-3-regular {\n line-height: 20px;\n font-size: 16px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-regular {\n line-height: 18px;\n font-size: 18px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-bold {\n line-height: 20px;\n font-size: 20px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n margin: 0;\n}\n.black {\n color: var(--filing-modal-color-black);\n}\n.grey {\n color: var(--filing-modal-color-grey);\n}\n.dark-blue {\n color: var(--filing-modal-color-dark-blue);\n}\n.grey-mid {\n color: var(--filing-modal-color-grey-mid);\n}\n.light-blue {\n color: var(--filing-modal-color-light-blue);\n}\n.filling {\n height: 100%;\n overflow: hidden;\n}\n* {\n box-sizing: border-box;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n}\n.filling {\n margin: 0;\n font-family: "Helvetica Neue", sans-serif;\n}\n.filing {\n --app-font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Helvetica Neue",\n Helvetica,\n Arial,\n sans-serif;\n --mat-sys-background: #faf9fd;\n --mat-sys-error: #ba1a1a;\n --mat-sys-error-container: #ffdad6;\n --mat-sys-inverse-on-surface: #f2f0f4;\n --mat-sys-inverse-primary: #abc7ff;\n --mat-sys-inverse-surface: #2f3033;\n --mat-sys-on-background: #1a1b1f;\n --mat-sys-on-error: #ffffff;\n --mat-sys-on-error-container: #93000a;\n --mat-sys-on-primary: #ffffff;\n --mat-sys-on-primary-container: #00458f;\n --mat-sys-on-primary-fixed: #001b3f;\n --mat-sys-on-primary-fixed-variant: #00458f;\n --mat-sys-on-secondary: #ffffff;\n --mat-sys-on-secondary-container: #3e4759;\n --mat-sys-on-secondary-fixed: #131c2b;\n --mat-sys-on-secondary-fixed-variant: #3e4759;\n --mat-sys-on-surface: #1a1b1f;\n --mat-sys-on-surface-variant: var(--filing-modal-color-grey);\n --mat-sys-on-tertiary: #ffffff;\n --mat-sys-on-tertiary-container: #0000ef;\n --mat-sys-on-tertiary-fixed: #00006e;\n --mat-sys-on-tertiary-fixed-variant: #0000ef;\n --mat-sys-outline: #74777f;\n --mat-sys-outline-variant: #c4c6d0;\n --mat-sys-primary: #3778e4;\n --mat-sys-primary-container: #d7e3ff;\n --mat-sys-primary-fixed: #d7e3ff;\n --mat-sys-primary-fixed-dim: #abc7ff;\n --mat-sys-scrim: #000000;\n --mat-sys-secondary: #565e71;\n --mat-sys-secondary-container: #dae2f9;\n --mat-sys-secondary-fixed: #dae2f9;\n --mat-sys-secondary-fixed-dim: #bec6dc;\n --mat-sys-shadow: #000000;\n --mat-sys-surface: #faf9fd;\n --mat-sys-surface-bright: #faf9fd;\n --mat-sys-surface-container: #efedf0;\n --mat-sys-surface-container-high: #e9e7eb;\n --mat-sys-surface-container-highest: #e3e2e6;\n --mat-sys-surface-container-low: #f4f3f6;\n --mat-sys-surface-container-lowest: #ffffff;\n --mat-sys-surface-dim: #dbd9dd;\n --mat-sys-surface-tint: #005cbb;\n --mat-sys-surface-variant: #e0e2ec;\n --mat-sys-tertiary: #343dff;\n --mat-sys-tertiary-container: #e0e0ff;\n --mat-sys-tertiary-fixed: #e0e0ff;\n --mat-sys-tertiary-fixed-dim: #bec2ff;\n --mat-sys-neutral-variant20: #2d3038;\n --mat-sys-neutral10: #1a1b1f;\n --mdc-filled-button-container-height: 35px;\n --mdc-outlined-button-container-height: 35px;\n --mdc-text-button-label-text-color: #808090;\n --mdc-filled-button-label-text-weight: 600;\n --mdc-text-button-label-text-weight: 600;\n --mdc-filled-button-container-shape: 4px;\n --mdc-outlined-button-outline-color: none;\n --mdc-outlined-button-container-shape: 6px;\n --mat-sys-level0:\n 0px 0px 0px 0px rgba(0, 0, 0, 0.2),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.14),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level1:\n 0px 2px 1px -1px rgba(0, 0, 0, 0.2),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level2:\n 0px 3px 3px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 4px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 8px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level3:\n 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 6px 10px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level4:\n 0px 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0px 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n --mat-sys-level5:\n 0px 7px 8px -4px rgba(0, 0, 0, 0.2),\n 0px 12px 17px 2px rgba(0, 0, 0, 0.14),\n 0px 5px 22px 4px rgba(0, 0, 0, 0.12);\n --mdc-outlined-button-label-text-size: 14px;\n --mdc-filled-button-label-text-size: 14px;\n --mdc-filled-text-field-label-text-size: 16px;\n --mat-sys-body-large: 400 1rem / 1.5rem var(--app-font-family);\n --mat-sys-body-large-font: var(--app-font-family);\n --mat-sys-body-large-line-height: 1.5rem;\n --mat-sys-body-large-size: 14px;\n --mat-sys-body-large-tracking: 0.031rem;\n --mat-sys-body-large-weight: 400;\n --mat-sys-body-medium: 400 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-body-medium-font: var(--app-font-family);\n --mat-sys-body-medium-line-height: 1.25rem;\n --mat-sys-body-medium-size: 0.875rem;\n --mat-sys-body-medium-tracking: 0.016rem;\n --mat-sys-body-medium-weight: 400;\n --mat-sys-body-small: 400 0.75rem / 1rem var(--app-font-family);\n --mat-sys-body-small-font: var(--app-font-family);\n --mat-sys-body-small-line-height: 1rem;\n --mat-sys-body-small-size: 0.75rem;\n --mat-sys-body-small-tracking: 0.025rem;\n --mat-sys-body-small-weight: 400;\n --mat-sys-display-large: 400 3.562rem / 4rem var(--app-font-family);\n --mat-sys-display-large-font: var(--app-font-family);\n --mat-sys-display-large-line-height: 4rem;\n --mat-sys-display-large-size: 3.562rem;\n --mat-sys-display-large-tracking: -0.016rem;\n --mat-sys-display-large-weight: 400;\n --mat-sys-display-medium: 400 2.812rem / 3.25rem var(--app-font-family);\n --mat-sys-display-medium-font: var(--app-font-family);\n --mat-sys-display-medium-line-height: 3.25rem;\n --mat-sys-display-medium-size: 2.812rem;\n --mat-sys-display-medium-tracking: 0;\n --mat-sys-display-medium-weight: 400;\n --mat-sys-display-small: 400 2.25rem / 2.75rem var(--app-font-family);\n --mat-sys-display-small-font: var(--app-font-family);\n --mat-sys-display-small-line-height: 2.75rem;\n --mat-sys-display-small-size: 2.25rem;\n --mat-sys-display-small-tracking: 0;\n --mat-sys-display-small-weight: 400;\n --mat-sys-headline-large: 400 2rem / 2.5rem var(--app-font-family);\n --mat-sys-headline-large-font: var(--app-font-family);\n --mat-sys-headline-large-line-height: 2.5rem;\n --mat-sys-headline-large-size: 2rem;\n --mat-sys-headline-large-tracking: 0;\n --mat-sys-headline-large-weight: 400;\n --mat-sys-headline-medium: 400 1.75rem / 2.25rem var(--app-font-family);\n --mat-sys-headline-medium-font: var(--app-font-family);\n --mat-sys-headline-medium-line-height: 2.25rem;\n --mat-sys-headline-medium-size: 1.75rem;\n --mat-sys-headline-medium-tracking: 0;\n --mat-sys-headline-medium-weight: 400;\n --mat-sys-headline-small: 400 1.5rem / 2rem var(--app-font-family);\n --mat-sys-headline-small-font: var(--app-font-family);\n --mat-sys-headline-small-line-height: 2rem;\n --mat-sys-headline-small-size: 1.5rem;\n --mat-sys-headline-small-tracking: 0;\n --mat-sys-headline-small-weight: 400;\n --mat-sys-label-large: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-label-large-font: var(--app-font-family);\n --mat-sys-label-large-line-height: 1.25rem;\n --mat-sys-label-large-size: 0.875rem;\n --mat-sys-label-large-tracking: 0.006rem;\n --mat-sys-label-large-weight: 500;\n --mat-sys-label-large-weight-prominent: 700;\n --mat-sys-label-medium: 500 0.75rem / 1rem var(--app-font-family);\n --mat-sys-label-medium-font: var(--app-font-family);\n --mat-sys-label-medium-line-height: 1rem;\n --mat-sys-label-medium-size: 0.75rem;\n --mat-sys-label-medium-tracking: 0.031rem;\n --mat-sys-label-medium-weight: 500;\n --mat-sys-label-medium-weight-prominent: 700;\n --mat-sys-label-small: 500 0.688rem / 1rem var(--app-font-family);\n --mat-sys-label-small-font: var(--app-font-family);\n --mat-sys-label-small-line-height: 1rem;\n --mat-sys-label-small-size: 0.688rem;\n --mat-sys-label-small-tracking: 0.031rem;\n --mat-sys-label-small-weight: 500;\n --mat-sys-title-large: 400 1.375rem / 1.75rem var(--app-font-family);\n --mat-sys-title-large-font: var(--app-font-family);\n --mat-sys-title-large-line-height: 1.75rem;\n --mat-sys-title-large-size: 1.375rem;\n --mat-sys-title-large-tracking: 0;\n --mat-sys-title-large-weight: 400;\n --mat-sys-title-medium: 500 1rem / 1.5rem var(--app-font-family);\n --mat-sys-title-medium-font: var(--app-font-family);\n --mat-sys-title-medium-line-height: 1.5rem;\n --mat-sys-title-medium-size: 1rem;\n --mat-sys-title-medium-tracking: 0.009rem;\n --mat-sys-title-medium-weight: 500;\n --mat-sys-title-small: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-title-small-font: var(--app-font-family);\n --mat-sys-title-small-line-height: 1.25rem;\n --mat-sys-title-small-size: 0.875rem;\n --mat-sys-title-small-tracking: 0.006rem;\n --mat-sys-title-small-weight: 500;\n --mat-sys-corner-extra-large: 28px;\n --mat-sys-corner-extra-large-top: 28px 28px 0 0;\n --mat-sys-corner-extra-small: 4px;\n --mat-sys-corner-extra-small-top: 4px 4px 0 0;\n --mat-sys-corner-full: 9999px;\n --mat-sys-corner-large: 16px;\n --mat-sys-corner-large-end: 0 16px 16px 0;\n --mat-sys-corner-large-start: 16px 0 0 16px;\n --mat-sys-corner-large-top: 16px 16px 0 0;\n --mat-sys-corner-medium: 12px;\n --mat-sys-corner-none: 0;\n --mat-sys-corner-small: 8px;\n --mat-sys-dragged-state-layer-opacity: 0.16;\n --mat-sys-focus-state-layer-opacity: 0.12;\n --mat-sys-hover-state-layer-opacity: 0.08;\n --mat-sys-pressed-state-layer-opacity: 0.12;\n}\n.filing .mat-primary .mat-pseudo-checkbox-checked,\n.filing .mat-primary .mat-pseudo-checkbox-indeterminate {\n background: transparent !important;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox {\n width: 24px;\n height: 24px;\n flex-basis: 24px;\n padding: 0;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__background {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n top: 0;\n left: 0;\n border: 3px solid var(--filing-modal-color-grey);\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__checkmark {\n height: 20px;\n width: 20px;\n font-size: 20px;\n top: 1px;\n left: 1px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__ripple,\n.filing .mat-mdc-checkbox[cardView] .mat-ripple {\n display: none;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-label {\n padding-left: 8px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-button__label {\n line-height: 10px;\n}\n:host {\n display: flex;\n flex-direction: column;\n gap: 12px;\n height: 100%;\n padding: 12px;\n}\n:host .confirm-modal {\n display: flex;\n flex-direction: column;\n flex: 1;\n gap: 16px;\n}\n:host .confirm-modal-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n:host .confirm-modal-header-title {\n font-size: 20px;\n color: var(--neutral-20);\n}\n:host .confirm-modal-header-icon {\n font-size: 14px;\n height: 20px;\n}\n:host .confirm-modal-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n}\n:host .confirm-modal-actions button {\n margin: 0;\n}\n:host .confirm-modal-actions-submit {\n padding-left: 30px;\n padding-right: 30px;\n background-color: #3778e4;\n color: white;\n border-radius: 4px !important;\n}\n/*# sourceMappingURL=confirm-modal.component.css.map */\n'] }]
60626
+ args: [{ selector: "confirm-modal", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButtonModule, TranslatePipe], template: '@let config = modalConfig();\n<div class="confirm-modal">\n <div class="confirm-modal-header">\n <h1 class="confirm-modal-header-title d-flex align-items-center">\n @if (config.icon) {\n <span class="material-icons-outlined icon mr-s">delete</span>\n }\n\n {{ config.title | translate }}\n </h1>\n </div>\n\n <div class="confirm-modal-text">{{ config.text | translate }}</div>\n\n <div class="confirm-modal-actions">\n <button mat-stroked-button (click)="closeModal()">\n <span class="body-1-semibold">{{ config.cancelButton | translate }}</span>\n </button>\n <button\n class="confirm-modal-actions-submit"\n mat-flat-button\n color="primary"\n (click)="closeModal(true)"\n >\n <span class="body-1-semibold">{{ config.confirmButton | translate}}</span>\n </button>\n </div>\n</div>\n', styles: ['/* src/app/components/confirm-modal/confirm-modal.component.scss */\n:host {\n --filing-modal-color-grey: #444444;\n --filing-modal-color-dark-blue: #485673;\n --filing-modal-color-grey-mid: #A0A0A0;\n --filing-modal-color-light-blue: #3778E4;\n --filing-modal-color-black: #444444;\n}\nmat-icon {\n font-family: "Material Icons" !important;\n font-size: 20px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n}\nh1 {\n font-size: 24px;\n line-height: 28px;\n font-weight: 700;\n font-family: "Open Sans";\n margin: 0;\n}\nh2 {\n font-size: 22px;\n line-height: 26px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh3 {\n font-size: 18px;\n font-weight: 600;\n font-family: "Open Sans";\n margin-top: 0;\n margin-bottom: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 22px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 20px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\n.body-1-regular {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-1-bold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-1-semibold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 600;\n font-family: "Open Sans";\n}\n.body-2-regular {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-2-bold {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-3-regular {\n line-height: 20px;\n font-size: 16px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-regular {\n line-height: 18px;\n font-size: 18px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-bold {\n line-height: 20px;\n font-size: 20px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n margin: 0;\n}\n.black {\n color: var(--filing-modal-color-black);\n}\n.grey {\n color: var(--filing-modal-color-grey);\n}\n.dark-blue {\n color: var(--filing-modal-color-dark-blue);\n}\n.grey-mid {\n color: var(--filing-modal-color-grey-mid);\n}\n.light-blue {\n color: var(--filing-modal-color-light-blue);\n}\n.filling {\n height: 100%;\n overflow: hidden;\n}\n* {\n box-sizing: border-box;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n}\n.filling {\n margin: 0;\n font-family: "Helvetica Neue", sans-serif;\n}\n.filing {\n --app-font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Helvetica Neue",\n Helvetica,\n Arial,\n sans-serif;\n --mat-sys-background: #faf9fd;\n --mat-sys-error: #ba1a1a;\n --mat-sys-error-container: #ffdad6;\n --mat-sys-inverse-on-surface: #f2f0f4;\n --mat-sys-inverse-primary: #abc7ff;\n --mat-sys-inverse-surface: #2f3033;\n --mat-sys-on-background: #1a1b1f;\n --mat-sys-on-error: #ffffff;\n --mat-sys-on-error-container: #93000a;\n --mat-sys-on-primary: #ffffff;\n --mat-sys-on-primary-container: #00458f;\n --mat-sys-on-primary-fixed: #001b3f;\n --mat-sys-on-primary-fixed-variant: #00458f;\n --mat-sys-on-secondary: #ffffff;\n --mat-sys-on-secondary-container: #3e4759;\n --mat-sys-on-secondary-fixed: #131c2b;\n --mat-sys-on-secondary-fixed-variant: #3e4759;\n --mat-sys-on-surface: #1a1b1f;\n --mat-sys-on-surface-variant: var(--filing-modal-color-grey);\n --mat-sys-on-tertiary: #ffffff;\n --mat-sys-on-tertiary-container: #0000ef;\n --mat-sys-on-tertiary-fixed: #00006e;\n --mat-sys-on-tertiary-fixed-variant: #0000ef;\n --mat-sys-outline: #74777f;\n --mat-sys-outline-variant: #c4c6d0;\n --mat-sys-primary: #3778e4;\n --mat-sys-primary-container: #d7e3ff;\n --mat-sys-primary-fixed: #d7e3ff;\n --mat-sys-primary-fixed-dim: #abc7ff;\n --mat-sys-scrim: #000000;\n --mat-sys-secondary: #565e71;\n --mat-sys-secondary-container: #dae2f9;\n --mat-sys-secondary-fixed: #dae2f9;\n --mat-sys-secondary-fixed-dim: #bec6dc;\n --mat-sys-shadow: #000000;\n --mat-sys-surface: #faf9fd;\n --mat-sys-surface-bright: #faf9fd;\n --mat-sys-surface-container: #efedf0;\n --mat-sys-surface-container-high: #e9e7eb;\n --mat-sys-surface-container-highest: #e3e2e6;\n --mat-sys-surface-container-low: #f4f3f6;\n --mat-sys-surface-container-lowest: #ffffff;\n --mat-sys-surface-dim: #dbd9dd;\n --mat-sys-surface-tint: #005cbb;\n --mat-sys-surface-variant: #e0e2ec;\n --mat-sys-tertiary: #343dff;\n --mat-sys-tertiary-container: #e0e0ff;\n --mat-sys-tertiary-fixed: #e0e0ff;\n --mat-sys-tertiary-fixed-dim: #bec2ff;\n --mat-sys-neutral-variant20: #2d3038;\n --mat-sys-neutral10: #1a1b1f;\n --mdc-filled-button-container-height: 35px;\n --mdc-outlined-button-container-height: 35px;\n --mdc-text-button-label-text-color: #808090;\n --mdc-filled-button-label-text-weight: 600;\n --mdc-text-button-label-text-weight: 600;\n --mdc-filled-button-container-shape: 4px;\n --mdc-outlined-button-outline-color: none;\n --mdc-outlined-button-container-shape: 6px;\n --mat-sys-level0:\n 0px 0px 0px 0px rgba(0, 0, 0, 0.2),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.14),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level1:\n 0px 2px 1px -1px rgba(0, 0, 0, 0.2),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level2:\n 0px 3px 3px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 4px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 8px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level3:\n 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 6px 10px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level4:\n 0px 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0px 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n --mat-sys-level5:\n 0px 7px 8px -4px rgba(0, 0, 0, 0.2),\n 0px 12px 17px 2px rgba(0, 0, 0, 0.14),\n 0px 5px 22px 4px rgba(0, 0, 0, 0.12);\n --mdc-outlined-button-label-text-size: 14px;\n --mdc-filled-button-label-text-size: 14px;\n --mdc-filled-text-field-label-text-size: 16px;\n --mat-sys-body-large: 400 1rem / 1.5rem var(--app-font-family);\n --mat-sys-body-large-font: var(--app-font-family);\n --mat-sys-body-large-line-height: 1.5rem;\n --mat-sys-body-large-size: 14px;\n --mat-sys-body-large-tracking: 0.031rem;\n --mat-sys-body-large-weight: 400;\n --mat-sys-body-medium: 400 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-body-medium-font: var(--app-font-family);\n --mat-sys-body-medium-line-height: 1.25rem;\n --mat-sys-body-medium-size: 0.875rem;\n --mat-sys-body-medium-tracking: 0.016rem;\n --mat-sys-body-medium-weight: 400;\n --mat-sys-body-small: 400 0.75rem / 1rem var(--app-font-family);\n --mat-sys-body-small-font: var(--app-font-family);\n --mat-sys-body-small-line-height: 1rem;\n --mat-sys-body-small-size: 0.75rem;\n --mat-sys-body-small-tracking: 0.025rem;\n --mat-sys-body-small-weight: 400;\n --mat-sys-display-large: 400 3.562rem / 4rem var(--app-font-family);\n --mat-sys-display-large-font: var(--app-font-family);\n --mat-sys-display-large-line-height: 4rem;\n --mat-sys-display-large-size: 3.562rem;\n --mat-sys-display-large-tracking: -0.016rem;\n --mat-sys-display-large-weight: 400;\n --mat-sys-display-medium: 400 2.812rem / 3.25rem var(--app-font-family);\n --mat-sys-display-medium-font: var(--app-font-family);\n --mat-sys-display-medium-line-height: 3.25rem;\n --mat-sys-display-medium-size: 2.812rem;\n --mat-sys-display-medium-tracking: 0;\n --mat-sys-display-medium-weight: 400;\n --mat-sys-display-small: 400 2.25rem / 2.75rem var(--app-font-family);\n --mat-sys-display-small-font: var(--app-font-family);\n --mat-sys-display-small-line-height: 2.75rem;\n --mat-sys-display-small-size: 2.25rem;\n --mat-sys-display-small-tracking: 0;\n --mat-sys-display-small-weight: 400;\n --mat-sys-headline-large: 400 2rem / 2.5rem var(--app-font-family);\n --mat-sys-headline-large-font: var(--app-font-family);\n --mat-sys-headline-large-line-height: 2.5rem;\n --mat-sys-headline-large-size: 2rem;\n --mat-sys-headline-large-tracking: 0;\n --mat-sys-headline-large-weight: 400;\n --mat-sys-headline-medium: 400 1.75rem / 2.25rem var(--app-font-family);\n --mat-sys-headline-medium-font: var(--app-font-family);\n --mat-sys-headline-medium-line-height: 2.25rem;\n --mat-sys-headline-medium-size: 1.75rem;\n --mat-sys-headline-medium-tracking: 0;\n --mat-sys-headline-medium-weight: 400;\n --mat-sys-headline-small: 400 1.5rem / 2rem var(--app-font-family);\n --mat-sys-headline-small-font: var(--app-font-family);\n --mat-sys-headline-small-line-height: 2rem;\n --mat-sys-headline-small-size: 1.5rem;\n --mat-sys-headline-small-tracking: 0;\n --mat-sys-headline-small-weight: 400;\n --mat-sys-label-large: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-label-large-font: var(--app-font-family);\n --mat-sys-label-large-line-height: 1.25rem;\n --mat-sys-label-large-size: 0.875rem;\n --mat-sys-label-large-tracking: 0.006rem;\n --mat-sys-label-large-weight: 500;\n --mat-sys-label-large-weight-prominent: 700;\n --mat-sys-label-medium: 500 0.75rem / 1rem var(--app-font-family);\n --mat-sys-label-medium-font: var(--app-font-family);\n --mat-sys-label-medium-line-height: 1rem;\n --mat-sys-label-medium-size: 0.75rem;\n --mat-sys-label-medium-tracking: 0.031rem;\n --mat-sys-label-medium-weight: 500;\n --mat-sys-label-medium-weight-prominent: 700;\n --mat-sys-label-small: 500 0.688rem / 1rem var(--app-font-family);\n --mat-sys-label-small-font: var(--app-font-family);\n --mat-sys-label-small-line-height: 1rem;\n --mat-sys-label-small-size: 0.688rem;\n --mat-sys-label-small-tracking: 0.031rem;\n --mat-sys-label-small-weight: 500;\n --mat-sys-title-large: 400 1.375rem / 1.75rem var(--app-font-family);\n --mat-sys-title-large-font: var(--app-font-family);\n --mat-sys-title-large-line-height: 1.75rem;\n --mat-sys-title-large-size: 1.375rem;\n --mat-sys-title-large-tracking: 0;\n --mat-sys-title-large-weight: 400;\n --mat-sys-title-medium: 500 1rem / 1.5rem var(--app-font-family);\n --mat-sys-title-medium-font: var(--app-font-family);\n --mat-sys-title-medium-line-height: 1.5rem;\n --mat-sys-title-medium-size: 1rem;\n --mat-sys-title-medium-tracking: 0.009rem;\n --mat-sys-title-medium-weight: 500;\n --mat-sys-title-small: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-title-small-font: var(--app-font-family);\n --mat-sys-title-small-line-height: 1.25rem;\n --mat-sys-title-small-size: 0.875rem;\n --mat-sys-title-small-tracking: 0.006rem;\n --mat-sys-title-small-weight: 500;\n --mat-sys-corner-extra-large: 28px;\n --mat-sys-corner-extra-large-top: 28px 28px 0 0;\n --mat-sys-corner-extra-small: 4px;\n --mat-sys-corner-extra-small-top: 4px 4px 0 0;\n --mat-sys-corner-full: 9999px;\n --mat-sys-corner-large: 16px;\n --mat-sys-corner-large-end: 0 16px 16px 0;\n --mat-sys-corner-large-start: 16px 0 0 16px;\n --mat-sys-corner-large-top: 16px 16px 0 0;\n --mat-sys-corner-medium: 12px;\n --mat-sys-corner-none: 0;\n --mat-sys-corner-small: 8px;\n --mat-sys-dragged-state-layer-opacity: 0.16;\n --mat-sys-focus-state-layer-opacity: 0.12;\n --mat-sys-hover-state-layer-opacity: 0.08;\n --mat-sys-pressed-state-layer-opacity: 0.12;\n}\n.filing .mat-primary .mat-pseudo-checkbox-checked,\n.filing .mat-primary .mat-pseudo-checkbox-indeterminate {\n background: transparent !important;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox {\n width: 24px;\n height: 24px;\n flex-basis: 24px;\n padding: 0;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__background {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n top: 0;\n left: 0;\n border: 3px solid var(--filing-modal-color-grey);\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__checkmark {\n height: 20px;\n width: 20px;\n font-size: 20px;\n top: 1px;\n left: 1px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__ripple,\n.filing .mat-mdc-checkbox[cardView] .mat-ripple {\n display: none;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-label {\n padding-left: 8px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-button__label {\n line-height: 10px;\n}\n:host {\n display: flex;\n flex-direction: column;\n gap: 12px;\n height: 100%;\n padding: 12px;\n}\n:host .confirm-modal {\n display: flex;\n flex-direction: column;\n flex: 1;\n gap: 16px;\n}\n:host .confirm-modal-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n:host .confirm-modal-header-title {\n font-size: 20px;\n color: var(--neutral-20);\n}\n:host .confirm-modal-header-icon {\n font-size: 14px;\n height: 20px;\n}\n:host .confirm-modal-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n}\n:host .confirm-modal-actions button {\n margin: 0;\n}\n:host .confirm-modal-actions-submit {\n padding-left: 30px;\n padding-right: 30px;\n background-color: #3778e4;\n color: white;\n border-radius: 4px !important;\n}\n/*# sourceMappingURL=confirm-modal.component.css.map */\n'] }]
60554
60627
  }], null, null);
60555
60628
  })();
60556
60629
  (() => {
@@ -62794,7 +62867,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
62794
62867
  (() => {
62795
62868
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ChipComponent, [{
62796
62869
  type: Component,
62797
- args: [{ selector: "chip", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIconModule, TranslatePipe], template: '<div class="chip {{type()}}">\r\n <span class="body-1-semibold">{{title() | translate}}</span>\r\n</div>\r\n', styles: ["/* src/app/components/chip/chip.component.scss */\n:host .chip {\n padding: 0 15px;\n height: 20px;\n display: flex;\n align-items: center;\n border-radius: 4px;\n border: 1px solid #A1B5C7;\n}\n:host .chip.warning {\n color: #CFB95A;\n}\n:host .chip.danger {\n color: #C56868;\n}\n:host .chip.success {\n color: #4CAF51;\n}\n/*# sourceMappingURL=chip.component.css.map */\n"] }]
62870
+ args: [{ selector: "chip", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIconModule, TranslatePipe], template: '<div class="chip {{type()}}">\n <span class="body-1-semibold">{{title() | translate}}</span>\n</div>\n', styles: ["/* src/app/components/chip/chip.component.scss */\n:host .chip {\n padding: 0 15px;\n height: 20px;\n display: flex;\n align-items: center;\n border-radius: 4px;\n border: 1px solid #A1B5C7;\n}\n:host .chip.warning {\n color: #CFB95A;\n}\n:host .chip.danger {\n color: #C56868;\n}\n:host .chip.success {\n color: #4CAF51;\n}\n/*# sourceMappingURL=chip.component.css.map */\n"] }]
62798
62871
  }], null, null);
62799
62872
  })();
62800
62873
  (() => {
@@ -63013,45 +63086,45 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
63013
63086
  animate("100ms cubic-bezier(0.4, 0.0, 0.2, 1)")
63014
63087
  ])
63015
63088
  ])
63016
- ], template: `<div [class.padded]="padded()" [class.border]="border()" class="expandable-card">\r
63017
- <div (click)="toggle()" class="expandable-card-header">\r
63018
- <h2 [class.list-item]="isListItem()" class="expandable-card-header-title">{{title() | translate}}\r
63019
- @if (role()) {\r
63020
- <span>({{role()}})</span>\r
63021
- }\r
63022
- </h2>\r
63023
- <div [class.list-item]="isListItem()" class="expandable-card-header-container">\r
63024
- @if (isStatusIcon()) {\r
63025
- @if (!isValid()) {\r
63026
- <mat-icon class="expandable-card-header-status-icon"> error_outline </mat-icon>\r
63027
- }\r
63028
- }\r
63029
- \r
63030
- @if(chipType()) {\r
63031
- <chip [type]="chipType()" [title]="chipText()"/>\r
63032
- }\r
63033
- \r
63034
- @if (isExpandable()) {\r
63035
- <mat-icon [class.rotated]="!isExpanded()">arrow_forward_ios</mat-icon>\r
63036
- }\r
63037
- </div>\r
63038
- </div>\r
63039
- \r
63040
- <div class="expandable-card-content"\r
63041
- [@expandCollapse]="isExpanded()">\r
63042
- <div class="expandable-card-content-item">\r
63043
- <ng-content></ng-content>\r
63044
- \r
63045
- @if (removable()) {\r
63046
- <div class="expandable-card-content-item-actions">\r
63047
- <span (click)="remove.emit()" class="body-1-regular light-blue pointer">{{'Remove' | translate}}</span>\r
63048
- </div>\r
63049
- }\r
63050
- \r
63051
- \r
63052
- </div>\r
63053
- </div>\r
63054
- </div>\r
63089
+ ], template: `<div [class.padded]="padded()" [class.border]="border()" class="expandable-card">
63090
+ <div (click)="toggle()" class="expandable-card-header">
63091
+ <h2 [class.list-item]="isListItem()" class="expandable-card-header-title">{{title() | translate}}
63092
+ @if (role()) {
63093
+ <span>({{role()}})</span>
63094
+ }
63095
+ </h2>
63096
+ <div [class.list-item]="isListItem()" class="expandable-card-header-container">
63097
+ @if (isStatusIcon()) {
63098
+ @if (!isValid()) {
63099
+ <mat-icon class="expandable-card-header-status-icon"> error_outline </mat-icon>
63100
+ }
63101
+ }
63102
+
63103
+ @if(chipType()) {
63104
+ <chip [type]="chipType()" [title]="chipText()"/>
63105
+ }
63106
+
63107
+ @if (isExpandable()) {
63108
+ <mat-icon [class.rotated]="!isExpanded()">arrow_forward_ios</mat-icon>
63109
+ }
63110
+ </div>
63111
+ </div>
63112
+
63113
+ <div class="expandable-card-content"
63114
+ [@expandCollapse]="isExpanded()">
63115
+ <div class="expandable-card-content-item">
63116
+ <ng-content></ng-content>
63117
+
63118
+ @if (removable()) {
63119
+ <div class="expandable-card-content-item-actions">
63120
+ <span (click)="remove.emit()" class="body-1-regular light-blue pointer">{{'Remove' | translate}}</span>
63121
+ </div>
63122
+ }
63123
+
63124
+
63125
+ </div>
63126
+ </div>
63127
+ </div>
63055
63128
  `, styles: ["/* src/app/components/expandable-card/expandable-card.component.scss */\n:host .expandable-card {\n border-radius: 8px;\n height: 100%;\n}\n:host .expandable-card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n:host .expandable-card-header-status-icon {\n font-weight: 400;\n color: #F1D01E;\n font-size: 22px;\n height: 22px;\n width: 22px;\n}\n:host .expandable-card-header-status-icon.added {\n color: #44aa00;\n}\n:host .expandable-card-header-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n:host .expandable-card-header-title {\n color: #666666;\n font-weight: 700;\n font-size: 14px;\n}\n:host .expandable-card-header-title.list-item {\n color: var(--filing-modal-color-dark-blue);\n font-weight: 600;\n}\n:host .expandable-card-header-container {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n:host .expandable-card-header-container.list-item mat-icon {\n font-size: 16px;\n}\n:host .expandable-card-header mat-icon:not(.expandable-card-header-status-icon) {\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 100ms cubic-bezier(0.4, 0, 0.2, 1);\n transform: rotate(-90deg);\n}\n:host .expandable-card-header mat-icon:not(.expandable-card-header-status-icon).rotated {\n transform: rotate(90deg);\n}\n:host .expandable-card-content {\n height: 100%;\n}\n:host .expandable-card-content-item {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n:host .expandable-card-content-item-actions {\n display: flex;\n justify-content: flex-end;\n width: 100%;\n}\n:host .expandable-card.border {\n box-shadow:\n 0 1px 2px rgba(0, 0, 0, 0.08),\n 0 2px 4px rgba(0, 0, 0, 0.12),\n 0 0 0 1px rgba(0, 0, 0, 0.04);\n margin: 1px;\n}\n:host .expandable-card.padded {\n padding: 16px;\n}\n/*# sourceMappingURL=expandable-card.component.css.map */\n"] }]
63056
63129
  }], () => [], null);
63057
63130
  })();
@@ -74316,7 +74389,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
74316
74389
  MatFormFieldModule,
74317
74390
  MatInputModule,
74318
74391
  MatAutocompleteModule
74319
- ], template: '<mat-form-field appearance="outline">\r\n <input\r\n matInput\r\n [formControl]="control()"\r\n [placeholder]="placeholder()"\r\n [required]="required()"\r\n [matAutocomplete]="auto"\r\n />\r\n\r\n <mat-autocomplete #auto="matAutocomplete">\r\n @for (option of filteredOptions(); track option) {\r\n <mat-option [value]="option.value">\r\n {{ option.label }}\r\n </mat-option>\r\n }\r\n </mat-autocomplete>\r\n</mat-form-field>\r\n' }]
74392
+ ], template: '<mat-form-field appearance="outline">\n <input\n matInput\n [formControl]="control()"\n [placeholder]="placeholder()"\n [required]="required()"\n [matAutocomplete]="auto"\n />\n\n <mat-autocomplete #auto="matAutocomplete">\n @for (option of filteredOptions(); track option) {\n <mat-option [value]="option.value">\n {{ option.label }}\n </mat-option>\n }\n </mat-autocomplete>\n</mat-form-field>\n' }]
74320
74393
  }], null, null);
74321
74394
  })();
74322
74395
  (() => {
@@ -78459,7 +78532,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
78459
78532
  }
78460
78533
  ], imports: [
78461
78534
  MatCheckbox
78462
- ], template: '<div class="checkbox-list">\r\n <div class="body-1-regular grey">{{ title() }}</div>\r\n\r\n @for (item of items(); track item.value) {\r\n <label class="checkbox-list-item">\r\n <mat-checkbox\r\n [checked]="isChecked(item.value)"\r\n [disabled]="disabled"\r\n (change)="toggle(item.value)"\r\n >\r\n <span class="body-1-regular grey">{{ item.label }}</span>\r\n </mat-checkbox>\r\n </label>\r\n }\r\n</div>\r\n', styles: ["/* src/app/components/checkbox-list/checkbox-list.component.scss */\n:host .checkbox-list {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding-bottom: 16px;\n}\n:host .checkbox-list-item {\n padding-left: 16px;\n}\n/*# sourceMappingURL=checkbox-list.component.css.map */\n"] }]
78535
+ ], template: '<div class="checkbox-list">\n <div class="body-1-regular grey">{{ title() }}</div>\n\n @for (item of items(); track item.value) {\n <label class="checkbox-list-item">\n <mat-checkbox\n [checked]="isChecked(item.value)"\n [disabled]="disabled"\n (change)="toggle(item.value)"\n >\n <span class="body-1-regular grey">{{ item.label }}</span>\n </mat-checkbox>\n </label>\n }\n</div>\n', styles: ["/* src/app/components/checkbox-list/checkbox-list.component.scss */\n:host .checkbox-list {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding-bottom: 16px;\n}\n:host .checkbox-list-item {\n padding-left: 16px;\n}\n/*# sourceMappingURL=checkbox-list.component.css.map */\n"] }]
78463
78536
  }], null, null);
78464
78537
  })();
78465
78538
  (() => {
@@ -78518,7 +78591,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
78518
78591
  \u0275\u0275restoreView(_r6);
78519
78592
  \u0275\u0275nextContext();
78520
78593
  const control_r7 = \u0275\u0275readContextLet(4);
78521
- return \u0275\u0275resetView(control_r7 == null ? null : control_r7.reset());
78594
+ const field_r3 = \u0275\u0275nextContext(2).$implicit;
78595
+ \u0275\u0275nextContext();
78596
+ const form_r4 = \u0275\u0275readContextLet(1);
78597
+ control_r7 == null ? null : control_r7.reset();
78598
+ return \u0275\u0275resetView(field_r3.onChange && field_r3.onChange(form_r4));
78522
78599
  });
78523
78600
  \u0275\u0275elementStart(2, "mat-icon");
78524
78601
  \u0275\u0275text(3, "close");
@@ -79167,234 +79244,234 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
79167
79244
  { provide: DateAdapter, useClass: MomentDateAdapter },
79168
79245
  { provide: MAT_DATE_FORMATS, useValue: MY_DATE_FORMATS },
79169
79246
  { provide: MAT_DATE_LOCALE, useValue: "en-GB" }
79170
- ], template: `@let fields = this.config();\r
79171
- @let form = this.form();\r
79172
- \r
79173
- <section>\r
79174
- <div [class.submitted]="isSubmitted()" class="filling-form-fields" [formGroup]="form">\r
79175
- @for (field of fields; track field.formControlName + $index; let last = $last) {\r
79176
- @if (!field.isVisible || field.isVisible(form)) {\r
79177
- @let previousValue = validationConfig()?.[field.formControlName];\r
79178
- \r
79179
- @switch (field.type) {\r
79180
- @case (types.Select) {\r
79181
- <div class="filling-form-fields-item {{field.class ?? 'span-6'}}">\r
79182
- @let label = field.dynamicLabel ? field.dynamicLabel(form, translateFn) : field.label;\r
79183
- @if (label) {\r
79184
- <span class="filling-form-fields-item-label body-1-regular">\r
79185
- {{ (label | translate) + (field.required ? " *" : "") }}\r
79186
- </span>\r
79187
- }\r
79188
- <mat-form-field appearance="outline">\r
79189
- @let control = form.get(field.formControlName);\r
79190
- \r
79191
- <input\r
79192
- matInput\r
79193
- [formControlName]="field.formControlName"\r
79194
- [matAutocomplete]="autocompleteRef"\r
79195
- (change)="field.onChange && field.onChange(form)"\r
79196
- />\r
79197
- \r
79198
- <mat-autocomplete\r
79199
- #autocompleteRef="matAutocomplete"\r
79200
- [displayWith]="getDisplayFn(field)"\r
79201
- (optionSelected)="field.onChange && field.onChange(form)"\r
79202
- >\r
79203
- @for (option of getFilteredOptions(field); track option.value) {\r
79204
- <mat-option\r
79205
- class="filing-form-group-select-option"\r
79206
- [value]="option.value"\r
79207
- >\r
79208
- {{ option.label | translate }}\r
79209
- </mat-option>\r
79210
- }\r
79211
- @if (getFilteredOptions(field).length === 0) {\r
79212
- <mat-option disabled>{{ 'No options found' | translate }}</mat-option>\r
79213
- }\r
79214
- </mat-autocomplete>\r
79215
- \r
79216
- @if (control?.value && !control?.disabled) {\r
79217
- <div matSuffix class="suffix-container">\r
79218
- <button mat-icon-button (click)="control?.reset()">\r
79219
- <mat-icon>close</mat-icon>\r
79220
- </button>\r
79221
- \r
79222
- <mat-icon class="arrow-icon">arrow_drop_down</mat-icon>\r
79223
- </div>\r
79224
- } @else {\r
79225
- <mat-icon matSuffix>arrow_drop_down</mat-icon>\r
79226
- }\r
79227
- \r
79228
- <mat-error>{{ (field.label | translate) + ' ' + ('is required' | translate) }}</mat-error>\r
79229
- </mat-form-field>\r
79230
- </div>\r
79231
- }\r
79232
- \r
79233
- @case (types.Checkbox) {\r
79234
- <div [class.last]="last" class="filling-form-fields-checkbox {{field.class ?? 'span-6'}}">\r
79235
- <mat-checkbox\r
79236
- (change)="field.onChange && field.onChange(form)"\r
79237
- [formControlName]="field.formControlName"\r
79238
- >\r
79239
- @let label = field.dynamicLabel ? field.dynamicLabel(form, translateFn) : field.label;\r
79240
- <div>\r
79241
- <span class="body-1-regular black" [class.warning]="!!previousValue">{{\r
79242
- label | translate\r
79243
- }}</span>\r
79244
- @if (previousValue != null) {\r
79245
- <mat-icon\r
79246
- [class.warning]="true"\r
79247
- class="filling-form-fields-item-icon"\r
79248
- matSuffix\r
79249
- >warning_amber</mat-icon\r
79250
- >\r
79251
- }\r
79252
- </div>\r
79253
- </mat-checkbox>\r
79254
- \r
79255
- @if (previousValue != null) {\r
79256
- <mat-hint\r
79257
- [class.warning]="true"\r
79258
- class="filling-form-fields-item-hint"\r
79259
- >{{ 'Previously saved value' | translate }}: {{ previousValue ? ('checked' | translate) : ('unchecked' | translate) }}</mat-hint\r
79260
- >\r
79261
- }\r
79262
- </div>\r
79263
- }\r
79264
- \r
79265
- @case (types.Empty) {\r
79266
- <div class="filling-form-fields-empty {{field.class ?? 'span-6'}}"></div>\r
79267
- }\r
79268
- @case (types.Autocomplete) {\r
79269
- <div class="filling-form-fields-item {{field.class ?? 'span-6'}}">\r
79270
- @if (field.label) {\r
79271
- <span class="filling-form-fields-item-label body-1-regular">\r
79272
- {{ (field.label | translate) + (field.required ? " *" : "") }}\r
79273
- </span>\r
79274
- }\r
79275
- <autocomplete-field\r
79276
- [options]="field.options ?? []"\r
79277
- [control]="getFormControl(field.formControlName)"\r
79278
- [required]="field.required ?? false"\r
79279
- />\r
79280
- </div>\r
79281
- }\r
79282
- \r
79283
- @case (types.Date) {\r
79284
- <div\r
79285
- class="filling-form-fields-item {{field.class ?? 'span-6'}}"\r
79286
- [class.warning]="!!previousValue"\r
79287
- >\r
79288
- @if (field.label) {\r
79289
- <span\r
79290
- class="filling-form-fields-item-label body-1-regular"\r
79291
- [class.warning]="!!previousValue"\r
79292
- >\r
79293
- {{ (field.label | translate) + (field.required ? " *" : "") }}\r
79294
- </span>\r
79295
- }\r
79296
- \r
79297
- <mat-form-field appearance="outline">\r
79298
- <input\r
79299
- matInput\r
79300
- [matDatepicker]="picker"\r
79301
- [formControlName]="field.formControlName"\r
79302
- (dateChange)="field.onChange && field.onChange(form)"\r
79303
- />\r
79304
- <mat-datepicker-toggle matSuffix [for]="picker">\r
79305
- <mat-icon matDatepickerToggleIcon>calendar_today</mat-icon>\r
79306
- </mat-datepicker-toggle>\r
79307
- <mat-datepicker #picker></mat-datepicker>\r
79308
- \r
79309
- @if (previousValue != null) {\r
79310
- <mat-hint\r
79311
- [class.warning]="true"\r
79312
- class="filling-form-fields-item-hint"\r
79313
- >\r
79314
- {{ 'Previously saved value' | translate }}: {{ previousValue }}\r
79315
- </mat-hint>\r
79316
- }\r
79317
- \r
79318
- <mat-error>{{ (field.label | translate) + ' ' + ('is required' | translate) }}</mat-error>\r
79319
- </mat-form-field>\r
79320
- </div>\r
79321
- }\r
79322
- \r
79323
- @case (types.Input) {\r
79324
- <div\r
79325
- [class.warning]="!!previousValue"\r
79326
- class="filling-form-fields-item {{field.class ?? 'span-6'}}"\r
79327
- >\r
79328
- @if (field.label) {\r
79329
- <span\r
79330
- [class.warning]="!!previousValue"\r
79331
- class="filling-form-fields-item-label body-1-regular"\r
79332
- >\r
79333
- {{ (field.label | translate) + (field.required ? " *" : "") }}\r
79334
- </span>\r
79335
- \r
79336
- <mat-form-field appearance="outline">\r
79337
- <input\r
79338
- matInput\r
79339
- [readonly]="field.readonly"\r
79340
- [formControlName]="field.formControlName"\r
79341
- (input)="field.onChange && field.onChange(form)"\r
79342
- />\r
79343
- \r
79344
- @if (previousValue != null) {\r
79345
- <mat-hint\r
79346
- [class.warning]="true"\r
79347
- class="filling-form-fields-item-hint"\r
79348
- >{{ 'Previously saved value' | translate }}: {{ previousValue }}</mat-hint\r
79349
- >\r
79350
- }\r
79351
- \r
79352
- @if (previousValue != null) {\r
79353
- <mat-icon\r
79354
- [class.warning]="true"\r
79355
- class="filling-form-fields-item-icon"\r
79356
- matSuffix\r
79357
- >warning_amber</mat-icon\r
79358
- >\r
79359
- }\r
79360
- \r
79361
- <mat-error>{{ (field.label | translate) + ' ' + ('is required' | translate) }}</mat-error>\r
79362
- </mat-form-field>\r
79363
- }\r
79364
- </div>\r
79365
- }\r
79366
- @case (types.TextArea) {\r
79367
- <div class="filling-form-fields-item text-area {{field.class ?? 'span-6'}}">\r
79368
- @if (field.label) {\r
79369
- <span class="filling-form-fields-item-label body-1-regular">\r
79370
- {{ (field.label | translate) + (field.required ? " *" : "") }}\r
79371
- </span>\r
79372
- \r
79373
- <mat-form-field appearance="outline">\r
79374
- <textarea\r
79375
- matInput\r
79376
- [readonly]="field.readonly"\r
79377
- [formControlName]="field.formControlName"\r
79378
- (change)="field.onChange && field.onChange(form)"\r
79379
- ></textarea>\r
79380
- </mat-form-field>\r
79381
- }\r
79382
- </div>\r
79383
- }\r
79384
- @case (types.CheckboxList) {\r
79385
- <checkbox-list class="{{field.class}}" [formControlName]="field.formControlName" [items]="field.options ?? []"/>\r
79386
- }\r
79387
- @case (types.Text) {\r
79388
- @let label = field.dynamicLabel ? field.dynamicLabel(form, translateFn, prevData()) : field.label;\r
79389
- @if (label) {\r
79390
- <p [class.last]="last" class="filling-form-fields-item-text body-1-regular grey" [class]="field.class" [innerHTML]="label" ></p>\r
79391
- }\r
79392
- }\r
79393
- }\r
79394
- }\r
79395
- }\r
79396
- </div>\r
79397
- </section>\r
79247
+ ], template: `@let fields = this.config();
79248
+ @let form = this.form();
79249
+
79250
+ <section>
79251
+ <div [class.submitted]="isSubmitted()" class="filling-form-fields" [formGroup]="form">
79252
+ @for (field of fields; track field.formControlName + $index; let last = $last) {
79253
+ @if (!field.isVisible || field.isVisible(form)) {
79254
+ @let previousValue = validationConfig()?.[field.formControlName];
79255
+
79256
+ @switch (field.type) {
79257
+ @case (types.Select) {
79258
+ <div class="filling-form-fields-item {{field.class ?? 'span-6'}}">
79259
+ @let label = field.dynamicLabel ? field.dynamicLabel(form, translateFn) : field.label;
79260
+ @if (label) {
79261
+ <span class="filling-form-fields-item-label body-1-regular">
79262
+ {{ (label | translate) + (field.required ? " *" : "") }}
79263
+ </span>
79264
+ }
79265
+ <mat-form-field appearance="outline">
79266
+ @let control = form.get(field.formControlName);
79267
+
79268
+ <input
79269
+ matInput
79270
+ [formControlName]="field.formControlName"
79271
+ [matAutocomplete]="autocompleteRef"
79272
+ (change)="field.onChange && field.onChange(form)"
79273
+ />
79274
+
79275
+ <mat-autocomplete
79276
+ #autocompleteRef="matAutocomplete"
79277
+ [displayWith]="getDisplayFn(field)"
79278
+ (optionSelected)="field.onChange && field.onChange(form)"
79279
+ >
79280
+ @for (option of getFilteredOptions(field); track option.value) {
79281
+ <mat-option
79282
+ class="filing-form-group-select-option"
79283
+ [value]="option.value"
79284
+ >
79285
+ {{ option.label | translate }}
79286
+ </mat-option>
79287
+ }
79288
+ @if (getFilteredOptions(field).length === 0) {
79289
+ <mat-option disabled>{{ 'No options found' | translate }}</mat-option>
79290
+ }
79291
+ </mat-autocomplete>
79292
+
79293
+ @if (control?.value && !control?.disabled) {
79294
+ <div matSuffix class="suffix-container">
79295
+ <button mat-icon-button (click)="control?.reset(); field.onChange && field.onChange(form)">
79296
+ <mat-icon>close</mat-icon>
79297
+ </button>
79298
+
79299
+ <mat-icon class="arrow-icon">arrow_drop_down</mat-icon>
79300
+ </div>
79301
+ } @else {
79302
+ <mat-icon matSuffix>arrow_drop_down</mat-icon>
79303
+ }
79304
+
79305
+ <mat-error>{{ (field.label | translate) + ' ' + ('is required' | translate) }}</mat-error>
79306
+ </mat-form-field>
79307
+ </div>
79308
+ }
79309
+
79310
+ @case (types.Checkbox) {
79311
+ <div [class.last]="last" class="filling-form-fields-checkbox {{field.class ?? 'span-6'}}">
79312
+ <mat-checkbox
79313
+ (change)="field.onChange && field.onChange(form)"
79314
+ [formControlName]="field.formControlName"
79315
+ >
79316
+ @let label = field.dynamicLabel ? field.dynamicLabel(form, translateFn) : field.label;
79317
+ <div>
79318
+ <span class="body-1-regular black" [class.warning]="!!previousValue">{{
79319
+ label | translate
79320
+ }}</span>
79321
+ @if (previousValue != null) {
79322
+ <mat-icon
79323
+ [class.warning]="true"
79324
+ class="filling-form-fields-item-icon"
79325
+ matSuffix
79326
+ >warning_amber</mat-icon
79327
+ >
79328
+ }
79329
+ </div>
79330
+ </mat-checkbox>
79331
+
79332
+ @if (previousValue != null) {
79333
+ <mat-hint
79334
+ [class.warning]="true"
79335
+ class="filling-form-fields-item-hint"
79336
+ >{{ 'Previously saved value' | translate }}: {{ previousValue ? ('checked' | translate) : ('unchecked' | translate) }}</mat-hint
79337
+ >
79338
+ }
79339
+ </div>
79340
+ }
79341
+
79342
+ @case (types.Empty) {
79343
+ <div class="filling-form-fields-empty {{field.class ?? 'span-6'}}"></div>
79344
+ }
79345
+ @case (types.Autocomplete) {
79346
+ <div class="filling-form-fields-item {{field.class ?? 'span-6'}}">
79347
+ @if (field.label) {
79348
+ <span class="filling-form-fields-item-label body-1-regular">
79349
+ {{ (field.label | translate) + (field.required ? " *" : "") }}
79350
+ </span>
79351
+ }
79352
+ <autocomplete-field
79353
+ [options]="field.options ?? []"
79354
+ [control]="getFormControl(field.formControlName)"
79355
+ [required]="field.required ?? false"
79356
+ />
79357
+ </div>
79358
+ }
79359
+
79360
+ @case (types.Date) {
79361
+ <div
79362
+ class="filling-form-fields-item {{field.class ?? 'span-6'}}"
79363
+ [class.warning]="!!previousValue"
79364
+ >
79365
+ @if (field.label) {
79366
+ <span
79367
+ class="filling-form-fields-item-label body-1-regular"
79368
+ [class.warning]="!!previousValue"
79369
+ >
79370
+ {{ (field.label | translate) + (field.required ? " *" : "") }}
79371
+ </span>
79372
+ }
79373
+
79374
+ <mat-form-field appearance="outline">
79375
+ <input
79376
+ matInput
79377
+ [matDatepicker]="picker"
79378
+ [formControlName]="field.formControlName"
79379
+ (dateChange)="field.onChange && field.onChange(form)"
79380
+ />
79381
+ <mat-datepicker-toggle matSuffix [for]="picker">
79382
+ <mat-icon matDatepickerToggleIcon>calendar_today</mat-icon>
79383
+ </mat-datepicker-toggle>
79384
+ <mat-datepicker #picker></mat-datepicker>
79385
+
79386
+ @if (previousValue != null) {
79387
+ <mat-hint
79388
+ [class.warning]="true"
79389
+ class="filling-form-fields-item-hint"
79390
+ >
79391
+ {{ 'Previously saved value' | translate }}: {{ previousValue }}
79392
+ </mat-hint>
79393
+ }
79394
+
79395
+ <mat-error>{{ (field.label | translate) + ' ' + ('is required' | translate) }}</mat-error>
79396
+ </mat-form-field>
79397
+ </div>
79398
+ }
79399
+
79400
+ @case (types.Input) {
79401
+ <div
79402
+ [class.warning]="!!previousValue"
79403
+ class="filling-form-fields-item {{field.class ?? 'span-6'}}"
79404
+ >
79405
+ @if (field.label) {
79406
+ <span
79407
+ [class.warning]="!!previousValue"
79408
+ class="filling-form-fields-item-label body-1-regular"
79409
+ >
79410
+ {{ (field.label | translate) + (field.required ? " *" : "") }}
79411
+ </span>
79412
+
79413
+ <mat-form-field appearance="outline">
79414
+ <input
79415
+ matInput
79416
+ [readonly]="field.readonly"
79417
+ [formControlName]="field.formControlName"
79418
+ (input)="field.onChange && field.onChange(form)"
79419
+ />
79420
+
79421
+ @if (previousValue != null) {
79422
+ <mat-hint
79423
+ [class.warning]="true"
79424
+ class="filling-form-fields-item-hint"
79425
+ >{{ 'Previously saved value' | translate }}: {{ previousValue }}</mat-hint
79426
+ >
79427
+ }
79428
+
79429
+ @if (previousValue != null) {
79430
+ <mat-icon
79431
+ [class.warning]="true"
79432
+ class="filling-form-fields-item-icon"
79433
+ matSuffix
79434
+ >warning_amber</mat-icon
79435
+ >
79436
+ }
79437
+
79438
+ <mat-error>{{ (field.label | translate) + ' ' + ('is required' | translate) }}</mat-error>
79439
+ </mat-form-field>
79440
+ }
79441
+ </div>
79442
+ }
79443
+ @case (types.TextArea) {
79444
+ <div class="filling-form-fields-item text-area {{field.class ?? 'span-6'}}">
79445
+ @if (field.label) {
79446
+ <span class="filling-form-fields-item-label body-1-regular">
79447
+ {{ (field.label | translate) + (field.required ? " *" : "") }}
79448
+ </span>
79449
+
79450
+ <mat-form-field appearance="outline">
79451
+ <textarea
79452
+ matInput
79453
+ [readonly]="field.readonly"
79454
+ [formControlName]="field.formControlName"
79455
+ (change)="field.onChange && field.onChange(form)"
79456
+ ></textarea>
79457
+ </mat-form-field>
79458
+ }
79459
+ </div>
79460
+ }
79461
+ @case (types.CheckboxList) {
79462
+ <checkbox-list class="{{field.class}}" [formControlName]="field.formControlName" [items]="field.options ?? []"/>
79463
+ }
79464
+ @case (types.Text) {
79465
+ @let label = field.dynamicLabel ? field.dynamicLabel(form, translateFn, prevData()) : field.label;
79466
+ @if (label) {
79467
+ <p [class.last]="last" class="filling-form-fields-item-text body-1-regular grey" [class]="field.class" [innerHTML]="label" ></p>
79468
+ }
79469
+ }
79470
+ }
79471
+ }
79472
+ }
79473
+ </div>
79474
+ </section>
79398
79475
  `, styles: ['/* src/app/components/form/filing-form-group/filing-form-group.component.scss */\n:host {\n overflow: hidden;\n}\n:host .filling-form-fields {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n column-gap: 16px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select {\n display: flex;\n}\n:host .filling-form-fields ::ng-deep .mdc-checkbox__background {\n border: 3px solid #6a6c6f;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-arrow-wrapper {\n display: none;\n}\n:host .filling-form-fields ::ng-deep .suffix-container {\n display: flex;\n align-items: center;\n padding-right: 12px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-icon-suffix {\n display: flex;\n align-items: center;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-icon-suffix .mat-icon {\n display: flex;\n align-items: center;\n}\n:host .filling-form-fields ::ng-deep .arrow-icon {\n pointer-events: none;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-form-field-infix {\n display: flex !important;\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value-text {\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value {\n font-size: 14px !important;\n}\n:host .filling-form-fields ::ng-deep .mdc-label {\n font-size: 14px !important;\n}\n:host .filling-form-fields-checkbox {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 2rem;\n}\n:host .filling-form-fields-checkbox:not(.last) {\n padding-bottom: 16px;\n}\n:host .filling-form-fields-checkbox-text {\n display: flex;\n align-items: center;\n gap: 8px;\n line-height: 20px;\n color: var(--filing-modal-color-grey);\n}\n:host .filling-form-fields-empty {\n width: 100%;\n height: 80px;\n}\n:host .filling-form-fields-item {\n --mat-sys-primary: #6b6f76;\n --mat-sys-primary-container: #e4e5e8;\n --mat-sys-surface-tint: #6b6f76;\n --mat-sys-outline: #c7c9cf;\n --mat-sys-outline-variant: #dfe1e6;\n --mdc-icon-button-state-layer-size: 36px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .filling-form-fields-item.text-area ::ng-deep .mat-mdc-text-field-wrapper {\n padding: 0 !important;\n}\n:host .filling-form-fields-item.text-area ::ng-deep .mat-mdc-input-element {\n padding: 0 12px;\n min-height: 230px !important;\n max-height: 230px !important;\n}\n:host .filling-form-fields-item-text {\n font-size: 14px !important;\n}\n:host .filling-form-fields-item-text:not(.last) {\n padding-bottom: 16px;\n}\n:host .filling-form-fields-item-hint {\n display: flex;\n align-items: center;\n font-size: 12px;\n}\n:host .filling-form-fields-item.warning {\n --mdc-outlined-text-field-outline-color: #845400;\n --mdc-outlined-text-field-outline-width: 2px;\n --mat-sys-on-surface: #845400;\n color: #845400;\n padding-bottom: 16px;\n}\n:host .filling-form-fields-item-label {\n color: var(--filing-modal-color-grey);\n}\n:host .filling-form-fields-item-label.warning {\n color: #845400;\n}\n:host .filling-form-fields-item-hint.warning {\n color: #845400;\n}\n:host .filling-form-fields-item-icon {\n font-size: 22px;\n line-height: 22px;\n height: 22px;\n width: 22px;\n}\n:host .filling-form-fields-item-icon.warning {\n color: #845400;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid {\n padding: 0 0 12px;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mdc-notched-outline__leading {\n border-color: #ff3e3e !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mdc-notched-outline__trailing {\n border-color: #E22222 !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-datepicker-toggle-default-icon {\n color: #E22222 !important;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-form-field-error-wrapper {\n padding: 0;\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-form-field-error {\n color: #E22222 !important;\n font-size: 12px;\n font-family: "Open Sans";\n}\n:host .filling-form-fields.submitted ::ng-deep .mat-form-field-invalid .mat-mdc-select-arrow {\n color: #E22222 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-icon {\n color: #4a4a4a !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mdc-notched-outline__leading {\n border-color: #d6d6d6 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mdc-notched-outline__trailing {\n border-color: #d6d6d6 !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-datepicker-toggle-default-icon {\n color: #4a4a4a !important;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-mdc-form-field-error {\n display: none;\n}\n:host .filling-form-fields:not(.submitted) ::ng-deep .mat-mdc-select-arrow {\n color: #d6d6d6 !important;\n}\n:host .filling-form-fields ::ng-deep {\n --mat-form-field-container-vertical-padding: 6px;\n --mat-form-field-container-height: 36px;\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value {\n line-height: 18px;\n}\n:host .filling-form-fields ::ng-deep input,\n:host .filling-form-fields ::ng-deep textarea {\n font-family: "Open Sans";\n}\n:host .filling-form-fields ::ng-deep .mat-mdc-select-value-text {\n font-family: "Open Sans";\n}\n:host .filling-form-fields ::ng-deep .mdc-text-field--disabled {\n background-color: #F5F5F5 !important;\n}\n:host .filling-form-fields ::ng-deep .mdc-notched-outline__leading {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n}\n:host .filling-form-fields ::ng-deep .mdc-notched-outline__trailing {\n border-width: 1px !important;\n border-color: #d6d6d6 !important;\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n}\n:host .filling-form-fields ::ng-deep .mdc-icon-button .mat-icon {\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n}\n:host .span-1 {\n grid-column: span 1;\n}\n:host .span-2 {\n grid-column: span 2;\n}\n:host .span-3 {\n grid-column: span 3;\n}\n:host .span-4 {\n grid-column: span 4;\n}\n:host .span-5 {\n grid-column: span 5;\n}\n:host .span-6 {\n grid-column: span 6;\n}\n:host .span-8 {\n grid-column: span 8;\n}\n:host .span-12 {\n grid-column: span 12;\n}\n:host .column-1 {\n grid-column: 1/span 2;\n}\n:host .column-2 {\n grid-column: 1/span 4;\n}\n:host .column-3 {\n grid-column: 1/span 6;\n}\n:host ::ng-deep input {\n font-size: 14px !important;\n color: var(--filing-modal-color-grey) !important;\n}\n.filing-form-group-select-option {\n background: white !important;\n}\n.filing-form-group-select-option ::ng-deep .mat-pseudo-checkbox-checked {\n background: transparent !important;\n}\n.filing-form-group-select-option ::ng-deep .mdc-list-item__primary-text {\n font-family: "Open Sans";\n font-size: 14px !important;\n}\n/*# sourceMappingURL=filing-form-group.component.css.map */\n'] }]
79399
79476
  }], () => [], null);
79400
79477
  })();
@@ -79654,70 +79731,70 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
79654
79731
  FilingFormGroupComponent,
79655
79732
  TranslatePipe,
79656
79733
  MatButton
79657
- ], template: `<div class="terms-and-conditions">\r
79658
- <div class="terms-and-conditions-content">\r
79659
- <expandable-card class="terms-and-conditions-card" title="Terms and Conditions">\r
79660
- \r
79661
- <div class="terms-and-conditions-card-content">\r
79662
- <div class="terms-and-conditions-text-wrapper">\r
79663
- <div class="terms-and-conditions-text">\r
79664
- <span class="body-1-regular">{{ 'TERMS.intro' | translate }}</span>\r
79665
- <span class="body-1-regular">{{ 'TERMS.agreement_mandatory' | translate }}</span>\r
79666
- <span class="body-1-regular">{{ 'TERMS.clause_i' | translate }}</span>\r
79667
- <span class="body-1-regular">{{ 'TERMS.clause_ii' | translate }}</span>\r
79668
- <span class="body-1-regular">{{ 'TERMS.authority' | translate }}</span>\r
79669
- <span class="body-1-regular">{{ 'TERMS.bound' | translate }}</span>\r
79670
- <span class="body-1-regular">{{ 'TERMS.section_1' | translate }}</span>\r
79671
- <span class="body-1-regular">{{ 'TERMS.section_2' | translate }}</span>\r
79672
- <span class="body-1-regular">{{ 'TERMS.section_3' | translate }}</span>\r
79673
- <span class="body-1-regular">{{ 'TERMS.section_4' | translate }}</span>\r
79674
- <span class="body-1-regular">{{ 'TERMS.section_5' | translate }}</span>\r
79675
- <span class="body-1-regular">{{ 'TERMS.section_6' | translate }}</span>\r
79676
- <span class="body-1-regular">{{ 'TERMS.section_7' | translate }}</span>\r
79677
- <span class="body-1-regular">{{ 'TERMS.section_8' | translate }}</span>\r
79678
- <span class="body-1-regular">{{ 'TERMS.section_9' | translate }}</span>\r
79679
- <span class="body-1-regular">{{ 'TERMS.section_10' | translate }}</span>\r
79680
- <span class="body-1-regular">{{ 'TERMS.section_11' | translate }}</span>\r
79681
- <span class="body-1-regular">{{ 'TERMS.section_12' | translate }}</span>\r
79682
- <span class="body-1-regular">{{ 'TERMS.section_13' | translate }}</span>\r
79683
- <span class="body-1-regular">{{ 'TERMS.section_14' | translate }}</span>\r
79684
- <span class="body-1-regular">{{ 'TERMS.section_15' | translate }}</span>\r
79685
- <span class="body-1-regular">{{ 'TERMS.section_16' | translate }}</span>\r
79686
- <span class="body-1-regular">{{ 'TERMS.section_17' | translate }}</span>\r
79687
- </div>\r
79688
- </div>\r
79689
- \r
79690
- <mat-checkbox [formControl]="getFormControl(termsAndConditionsControls.AcceptTerms)">\r
79691
- <div class="body-1-regular black">\r
79692
- <span>{{ 'I agree to the Terms and Conditions and confirm that all required person(s) and/or entities agree to them' | translate }}</span>\r
79693
- </div>\r
79694
- </mat-checkbox>\r
79695
- </div>\r
79696
- \r
79697
- </expandable-card>\r
79698
- \r
79699
- <expandable-card title="Signatory">\r
79700
- <filing-form-group [isSubmitted]="true" [form]="form" [config]="termsAndConditionsFields"/>\r
79701
- </expandable-card>\r
79702
- </div>\r
79703
- \r
79704
- <div class="terms-and-conditions-form-actions">\r
79705
- <button mat-stroked-button mat-button (click)="close.emit()">\r
79706
- <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
79707
- </button>\r
79708
- \r
79709
- <button mat-stroked-button mat-button (click)="prev.emit()"><span class="body-1-semibold">{{ 'Back' | translate }}</span></button>\r
79710
- \r
79711
- <button\r
79712
- mat-flat-button\r
79713
- type="submit"\r
79714
- (click)="onConfirm()"\r
79715
- [disabled]="form.invalid"\r
79716
- >\r
79717
- <span class="body-1-semibold">{{ 'Proceed' | translate }}</span>\r
79718
- </button>\r
79719
- </div>\r
79720
- </div>\r
79734
+ ], template: `<div class="terms-and-conditions">
79735
+ <div class="terms-and-conditions-content">
79736
+ <expandable-card class="terms-and-conditions-card" title="Terms and Conditions">
79737
+
79738
+ <div class="terms-and-conditions-card-content">
79739
+ <div class="terms-and-conditions-text-wrapper">
79740
+ <div class="terms-and-conditions-text">
79741
+ <span class="body-1-regular">{{ 'TERMS.intro' | translate }}</span>
79742
+ <span class="body-1-regular">{{ 'TERMS.agreement_mandatory' | translate }}</span>
79743
+ <span class="body-1-regular">{{ 'TERMS.clause_i' | translate }}</span>
79744
+ <span class="body-1-regular">{{ 'TERMS.clause_ii' | translate }}</span>
79745
+ <span class="body-1-regular">{{ 'TERMS.authority' | translate }}</span>
79746
+ <span class="body-1-regular">{{ 'TERMS.bound' | translate }}</span>
79747
+ <span class="body-1-regular">{{ 'TERMS.section_1' | translate }}</span>
79748
+ <span class="body-1-regular">{{ 'TERMS.section_2' | translate }}</span>
79749
+ <span class="body-1-regular">{{ 'TERMS.section_3' | translate }}</span>
79750
+ <span class="body-1-regular">{{ 'TERMS.section_4' | translate }}</span>
79751
+ <span class="body-1-regular">{{ 'TERMS.section_5' | translate }}</span>
79752
+ <span class="body-1-regular">{{ 'TERMS.section_6' | translate }}</span>
79753
+ <span class="body-1-regular">{{ 'TERMS.section_7' | translate }}</span>
79754
+ <span class="body-1-regular">{{ 'TERMS.section_8' | translate }}</span>
79755
+ <span class="body-1-regular">{{ 'TERMS.section_9' | translate }}</span>
79756
+ <span class="body-1-regular">{{ 'TERMS.section_10' | translate }}</span>
79757
+ <span class="body-1-regular">{{ 'TERMS.section_11' | translate }}</span>
79758
+ <span class="body-1-regular">{{ 'TERMS.section_12' | translate }}</span>
79759
+ <span class="body-1-regular">{{ 'TERMS.section_13' | translate }}</span>
79760
+ <span class="body-1-regular">{{ 'TERMS.section_14' | translate }}</span>
79761
+ <span class="body-1-regular">{{ 'TERMS.section_15' | translate }}</span>
79762
+ <span class="body-1-regular">{{ 'TERMS.section_16' | translate }}</span>
79763
+ <span class="body-1-regular">{{ 'TERMS.section_17' | translate }}</span>
79764
+ </div>
79765
+ </div>
79766
+
79767
+ <mat-checkbox [formControl]="getFormControl(termsAndConditionsControls.AcceptTerms)">
79768
+ <div class="body-1-regular black">
79769
+ <span>{{ 'I agree to the Terms and Conditions and confirm that all required person(s) and/or entities agree to them' | translate }}</span>
79770
+ </div>
79771
+ </mat-checkbox>
79772
+ </div>
79773
+
79774
+ </expandable-card>
79775
+
79776
+ <expandable-card title="Signatory">
79777
+ <filing-form-group [isSubmitted]="true" [form]="form" [config]="termsAndConditionsFields"/>
79778
+ </expandable-card>
79779
+ </div>
79780
+
79781
+ <div class="terms-and-conditions-form-actions">
79782
+ <button mat-stroked-button mat-button (click)="close.emit()">
79783
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>
79784
+ </button>
79785
+
79786
+ <button mat-stroked-button mat-button (click)="prev.emit()"><span class="body-1-semibold">{{ 'Back' | translate }}</span></button>
79787
+
79788
+ <button
79789
+ mat-flat-button
79790
+ type="submit"
79791
+ (click)="onConfirm()"
79792
+ [disabled]="form.invalid"
79793
+ >
79794
+ <span class="body-1-semibold">{{ 'Proceed' | translate }}</span>
79795
+ </button>
79796
+ </div>
79797
+ </div>
79721
79798
  `, styles: ["/* src/app/components/terms-and-conditions/terms-and-conditions.component.scss */\n:host .terms-and-conditions {\n --mdc-outlined-text-field-outline-color: #e8e8e8;\n --mat-form-field-filled-with-label-container-padding-top: 12px;\n --mat-form-field-filled-with-label-container-padding-bottom: 2px;\n --mat-form-field-container-height: 36px;\n --mdc-filled-text-field-container-color: transparent;\n height: 100%;\n color: #8c8e90;\n}\n:host .terms-and-conditions ::ng-deep .mdc-label {\n font-size: 14px !important;\n}\n:host .terms-and-conditions-card-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: calc(100% - 25px);\n}\n:host .terms-and-conditions-text-wrapper {\n border: 1px solid #A1B5C7;\n border-radius: 8px;\n overflow: hidden;\n}\n:host .terms-and-conditions-text {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n overflow: auto;\n max-height: 420px;\n padding: 8px;\n color: var(--filing-modal-color-grey);\n}\n:host .terms-and-conditions-form {\n height: 100%;\n padding-top: 16px;\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n:host .terms-and-conditions-form-title {\n color: black;\n margin: 0;\n}\n:host .terms-and-conditions-form-input {\n width: 100%;\n}\n:host .terms-and-conditions-form-input::ng-deep .mdc-text-field,\n:host .terms-and-conditions-form-input::ng-deep .mat-mdc-form-field-error-wrapper {\n padding: 0;\n}\n:host .terms-and-conditions-form-container {\n display: flex;\n gap: 16px;\n}\n:host .terms-and-conditions-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .terms-and-conditions-form-actions button {\n margin: 0;\n}\n:host .terms-and-conditions-content {\n height: calc(100% - 67px);\n overflow: auto;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n/*# sourceMappingURL=terms-and-conditions.component.css.map */\n"] }]
79722
79799
  }], null, null);
79723
79800
  })();
@@ -79997,83 +80074,83 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
79997
80074
  animate("100ms cubic-bezier(0.4, 0.0, 0.2, 1)")
79998
80075
  ])
79999
80076
  ])
80000
- ], template: `<div class="expandable-card">\r
80001
- <div\r
80002
- [class.expanded]="isExpanded()"\r
80003
- (click)="toggle()"\r
80004
- class="expandable-card-header"\r
80005
- >\r
80006
- <h2 class="expandable-card-header-title">{{ title() | translate }}</h2>\r
80007
- \r
80008
- <div class="expandable-card-header-container">\r
80009
- @if (isStatusIcon()) {\r
80010
- @if (!isValid()) {\r
80011
- <mat-icon class="expandable-card-header-status-icon">\r
80012
- error_outline\r
80013
- </mat-icon>\r
80014
- }\r
80015
- }\r
80016
- \r
80017
- <mat-icon [class.rotated]="!isExpanded()">arrow_forward_ios</mat-icon>\r
80018
- </div>\r
80019
- </div>\r
80020
- \r
80021
- <div class="expandable-card-content" [@expandCollapse]="isExpanded()">\r
80022
- <ng-content select="[slot='header-content']"></ng-content>\r
80023
- <div class="expandable-card-actions">\r
80024
- <div>\r
80025
- <ng-content select="[slot='subtitle']"></ng-content>\r
80026
- </div>\r
80027
- \r
80028
- @if (controlsCount() !== 0) {\r
80029
- <div class="expandable-card-actions-items">\r
80030
- <h3 class="expandable-card-actions-item" (click)="expandAll()">\r
80031
- {{ "Expand all" | translate }}\r
80032
- </h3>\r
80033
- <h3 class="expandable-card-actions-separator">|</h3>\r
80034
- <h3 class="expandable-card-actions-item" (click)="collapseAll()">\r
80035
- {{ "Collapse all" | translate }}\r
80036
- </h3>\r
80037
- </div>\r
80038
- }\r
80039
- </div>\r
80040
- \r
80041
- @for (formGroup of formArray().controls; let i = $index; track formGroup) {\r
80042
- <div class="expandable-card-separator">\r
80043
- <div class="expandable-card-separator-line"></div>\r
80044
- </div>\r
80045
- \r
80046
- <expandable-card\r
80047
- [isListItem]="true"\r
80048
- [title]="getFormGroup(i).get(labelKey())?.value"\r
80049
- [role]="getFormGroup(i).get(roleKey())?.value"\r
80050
- [isStatusIcon]="isStatusIcon()"\r
80051
- [isValid]="getFormGroupValid(i)"\r
80052
- [isOpen]="isItemExpanded(i)"\r
80053
- [border]="false"\r
80054
- [padded]="false"\r
80055
- [chipType]="\r
80056
- affiliationTypeToChipType(\r
80057
- formGroup.get(controls.AffiliationType)?.value\r
80058
- )\r
80059
- "\r
80060
- [removable]="removable()"\r
80061
- (toggled)="toggleItem(i)"\r
80062
- (remove)="remove.emit(i)"\r
80063
- >\r
80064
- @let form = getFormGroup(i);\r
80065
- @let configValue =\r
80066
- fields() ?? config()?.[form.get(configKey())?.value] ?? [];\r
80067
- <filing-form-group\r
80068
- [prevData]="prevData()"\r
80069
- [isSubmitted]="isSubmitted()"\r
80070
- [form]="form"\r
80071
- [config]="configValue"\r
80072
- />\r
80073
- </expandable-card>\r
80074
- }\r
80075
- </div>\r
80076
- </div>\r
80077
+ ], template: `<div class="expandable-card">
80078
+ <div
80079
+ [class.expanded]="isExpanded()"
80080
+ (click)="toggle()"
80081
+ class="expandable-card-header"
80082
+ >
80083
+ <h2 class="expandable-card-header-title">{{ title() | translate }}</h2>
80084
+
80085
+ <div class="expandable-card-header-container">
80086
+ @if (isStatusIcon()) {
80087
+ @if (!isValid()) {
80088
+ <mat-icon class="expandable-card-header-status-icon">
80089
+ error_outline
80090
+ </mat-icon>
80091
+ }
80092
+ }
80093
+
80094
+ <mat-icon [class.rotated]="!isExpanded()">arrow_forward_ios</mat-icon>
80095
+ </div>
80096
+ </div>
80097
+
80098
+ <div class="expandable-card-content" [@expandCollapse]="isExpanded()">
80099
+ <ng-content select="[slot='header-content']"></ng-content>
80100
+ <div class="expandable-card-actions">
80101
+ <div>
80102
+ <ng-content select="[slot='subtitle']"></ng-content>
80103
+ </div>
80104
+
80105
+ @if (controlsCount() !== 0) {
80106
+ <div class="expandable-card-actions-items">
80107
+ <h3 class="expandable-card-actions-item" (click)="expandAll()">
80108
+ {{ "Expand all" | translate }}
80109
+ </h3>
80110
+ <h3 class="expandable-card-actions-separator">|</h3>
80111
+ <h3 class="expandable-card-actions-item" (click)="collapseAll()">
80112
+ {{ "Collapse all" | translate }}
80113
+ </h3>
80114
+ </div>
80115
+ }
80116
+ </div>
80117
+
80118
+ @for (formGroup of formArray().controls; let i = $index; track formGroup) {
80119
+ <div class="expandable-card-separator">
80120
+ <div class="expandable-card-separator-line"></div>
80121
+ </div>
80122
+
80123
+ <expandable-card
80124
+ [isListItem]="true"
80125
+ [title]="getFormGroup(i).get(labelKey())?.value"
80126
+ [role]="getFormGroup(i).get(roleKey())?.value"
80127
+ [isStatusIcon]="isStatusIcon()"
80128
+ [isValid]="getFormGroupValid(i)"
80129
+ [isOpen]="isItemExpanded(i)"
80130
+ [border]="false"
80131
+ [padded]="false"
80132
+ [chipType]="
80133
+ affiliationTypeToChipType(
80134
+ formGroup.get(controls.AffiliationType)?.value
80135
+ )
80136
+ "
80137
+ [removable]="removable()"
80138
+ (toggled)="toggleItem(i)"
80139
+ (remove)="remove.emit(i)"
80140
+ >
80141
+ @let form = getFormGroup(i);
80142
+ @let configValue =
80143
+ fields() ?? config()?.[form.get(configKey())?.value] ?? [];
80144
+ <filing-form-group
80145
+ [prevData]="prevData()"
80146
+ [isSubmitted]="isSubmitted()"
80147
+ [form]="form"
80148
+ [config]="configValue"
80149
+ />
80150
+ </expandable-card>
80151
+ }
80152
+ </div>
80153
+ </div>
80077
80154
  `, styles: ["/* src/app/components/expandable-list-card/expandable-list-card.component.scss */\n:host .expandable-card {\n padding: 16px 0;\n box-shadow:\n 0 1px 2px rgba(0, 0, 0, 0.08),\n 0 2px 4px rgba(0, 0, 0, 0.12),\n 0 0 0 1px rgba(0, 0, 0, 0.04);\n border-radius: 8px;\n margin: 1px;\n}\n:host .expandable-card-header {\n padding: 0 16px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: padding-bottom ease-in-out 250ms;\n}\n:host .expandable-card-header.expanded {\n padding-bottom: 16px;\n}\n:host .expandable-card-header-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n:host .expandable-card-header-title {\n color: #666666;\n font-weight: 700;\n font-size: 14px;\n}\n:host .expandable-card-header-container {\n display: flex;\n align-items: center;\n gap: 16px;\n}\n:host .expandable-card-header-status-icon {\n font-weight: 400;\n color: #F1D01E;\n font-size: 22px;\n height: 22px;\n width: 22px;\n}\n:host .expandable-card-header-status-icon.added {\n color: #44aa00;\n}\n:host .expandable-card-header mat-icon:not(.expandable-card-header-status-icon) {\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 100ms cubic-bezier(0.4, 0, 0.2, 1);\n transform: rotate(-90deg);\n}\n:host .expandable-card-header mat-icon:not(.expandable-card-header-status-icon).rotated {\n transform: rotate(90deg);\n}\n:host .expandable-card-actions {\n padding: 0 16px 0 16px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n:host .expandable-card-actions-items {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 14px;\n}\n:host .expandable-card-actions-separator {\n padding: 0 2px;\n color: var(--filing-modal-color-grey);\n font-size: 14px;\n}\n:host .expandable-card-actions-item {\n color: var(--filing-modal-color-light-blue);\n cursor: pointer;\n font-size: 14px;\n}\n:host .expandable-card-actions-item:hover {\n text-decoration: underline;\n}\n:host .expandable-card expandable-card {\n display: block;\n padding: 0 16px;\n}\n:host .expandable-card-separator {\n width: 100%;\n padding: 18px 16px;\n}\n:host .expandable-card-separator-line {\n background-color: var(--filing-modal-color-grey-mid);\n height: 1px;\n width: 100%;\n}\n/*# sourceMappingURL=expandable-list-card.component.css.map */\n"] }]
80078
80155
  }], () => [], null);
80079
80156
  })();
@@ -80192,7 +80269,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80192
80269
  (() => {
80193
80270
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(AlertComponent, [{
80194
80271
  type: Component,
80195
- args: [{ selector: "alert", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIconModule, TranslatePipe], template: '<div class="alert {{type()}}">\r\n @switch (type()) {\r\n @case (alertType.Warning) {\r\n <mat-icon class="alert-icon">warning</mat-icon>\r\n\r\n }\r\n @case (alertType.Info) {\r\n <mat-icon class="alert-icon">info_outlined</mat-icon>\r\n }\r\n }\r\n <div class="alert-text">\r\n <span class="alert-text-title">{{title() | translate}}</span>\r\n\r\n @if (isArray()) {\r\n <ul class="alert-options">\r\n @for(option of content(); track option) {\r\n <li>{{option}}</li>\r\n }\r\n </ul>\r\n }@else {\r\n <span>{{$any(content()) | translate}}</span>\r\n }\r\n </div>\r\n\r\n</div>\r\n', styles: ["/* src/app/components/alert/alert.component.scss */\n:host .alert {\n display: flex;\n align-items: center;\n padding: 12px 10px;\n border-radius: 12px;\n gap: 8px;\n border: 1px solid var(--filing-modal-color-grey);\n}\n:host .alert.warning {\n border: 1px solid #F1D01E;\n}\n:host .alert.warning .alert-icon {\n color: #F1D01E;\n font-size: 20px;\n}\n:host .alert-text {\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: var(--filing-modal-color-grey);\n font-size: 14px;\n}\n:host .alert-text-title {\n font-weight: 600;\n}\n:host .alert-options {\n margin: 0;\n padding: 0 24px;\n}\n/*# sourceMappingURL=alert.component.css.map */\n"] }]
80272
+ args: [{ selector: "alert", changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIconModule, TranslatePipe], template: '<div class="alert {{type()}}">\n @switch (type()) {\n @case (alertType.Warning) {\n <mat-icon class="alert-icon">warning</mat-icon>\n\n }\n @case (alertType.Info) {\n <mat-icon class="alert-icon">info_outlined</mat-icon>\n }\n }\n <div class="alert-text">\n <span class="alert-text-title">{{title() | translate}}</span>\n\n @if (isArray()) {\n <ul class="alert-options">\n @for(option of content(); track option) {\n <li>{{option}}</li>\n }\n </ul>\n }@else {\n <span>{{$any(content()) | translate}}</span>\n }\n </div>\n\n</div>\n', styles: ["/* src/app/components/alert/alert.component.scss */\n:host .alert {\n display: flex;\n align-items: center;\n padding: 12px 10px;\n border-radius: 12px;\n gap: 8px;\n border: 1px solid var(--filing-modal-color-grey);\n}\n:host .alert.warning {\n border: 1px solid #F1D01E;\n}\n:host .alert.warning .alert-icon {\n color: #F1D01E;\n font-size: 20px;\n}\n:host .alert-text {\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: var(--filing-modal-color-grey);\n font-size: 14px;\n}\n:host .alert-text-title {\n font-weight: 600;\n}\n:host .alert-options {\n margin: 0;\n padding: 0 24px;\n}\n/*# sourceMappingURL=alert.component.css.map */\n"] }]
80196
80273
  }], null, null);
80197
80274
  })();
80198
80275
  (() => {
@@ -80570,183 +80647,183 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80570
80647
  ExpandableListCardComponent,
80571
80648
  AlertComponent,
80572
80649
  TranslatePipe
80573
- ], template: `<div class="incorporation-form">\r
80574
- @if (isNote()) {\r
80575
- <alert\r
80576
- [type]="alertType.Info"\r
80577
- title="Entity changed"\r
80578
- content="A new draft needs to be generated as the Entity was changed since the last draft was produced."\r
80579
- />\r
80580
- }\r
80581
- \r
80582
- @if (errors().length) {\r
80583
- <alert\r
80584
- title="The following issues need to be resolved before proceeding:"\r
80585
- [content]="errors()"\r
80586
- />\r
80587
- }\r
80588
- \r
80589
- <div class="incorporation-form-content">\r
80590
- @let referenceNumbers = getFormGroup(groups.ReferenceNumbers);\r
80591
- \r
80592
- @if (referenceNumbers) {\r
80593
- <expandable-card [title]="groups.ReferenceNumbers">\r
80594
- <div class="incorporation-form-item">\r
80595
- <filing-form-group\r
80596
- [isSubmitted]="isSubmitted()"\r
80597
- [form]="referenceNumbers"\r
80598
- [config]="referenceNumbersFields"\r
80599
- (visiblyValidChange)="onSectionValidChange('refNumbers', $event)"\r
80600
- />\r
80601
- </div>\r
80602
- </expandable-card>\r
80603
- }\r
80604
- \r
80605
- @let corporationDetails = getFormGroup(groups.CorporationDetails);\r
80606
- \r
80607
- @if (corporationDetails) {\r
80608
- <expandable-card\r
80609
- [isValid]="sectionValidity['corpDetails']"\r
80610
- [isStatusIcon]="statusIcon()"\r
80611
- [title]="groups.CorporationDetails"\r
80612
- >\r
80613
- <div class="incorporation-form-item">\r
80614
- <filing-form-group\r
80615
- [isSubmitted]="isSubmitted()"\r
80616
- [form]="corporationDetails"\r
80617
- [config]="corporationDetailsCardFields"\r
80618
- (visiblyValidChange)="onSectionValidChange('corpDetails', $event)"\r
80619
- />\r
80620
- </div>\r
80621
- </expandable-card>\r
80622
- }\r
80623
- \r
80624
- @if (isLegalOpinion) {\r
80625
- @let legalOpinion = getFormGroup(groups.LegalOpinion);\r
80626
- \r
80627
- @if (legalOpinion) {\r
80628
- <expandable-card\r
80629
- [isValid]="\r
80630
- sectionValidity['legalOpinionLawyer'] &&\r
80631
- sectionValidity['legalOpinionAddress']\r
80632
- "\r
80633
- [isStatusIcon]="statusIcon()"\r
80634
- [title]="groups.LegalOpinion"\r
80635
- >\r
80636
- <filing-form-group\r
80637
- [isSubmitted]="isSubmitted()"\r
80638
- [form]="legalOpinion"\r
80639
- [config]="legalOpinionLawyerFields()"\r
80640
- (visiblyValidChange)="\r
80641
- onSectionValidChange('legalOpinionLawyer', $event)\r
80642
- "\r
80643
- />\r
80644
- \r
80645
- @if (legalOpinion.get(controls.LawyerSigningOpinion)?.value) {\r
80646
- <filing-form-group\r
80647
- [isSubmitted]="isSubmitted()"\r
80648
- [form]="legalOpinion"\r
80649
- [config]="legalOpinionConfirmAddressFieldsMap[legalOpinion.get(controls.AffiliationAddressType)?.value]"\r
80650
- (visiblyValidChange)="\r
80651
- onSectionValidChange('legalOpinionAddress', $event)\r
80652
- "\r
80653
- />\r
80654
- }\r
80655
- \r
80656
- </expandable-card>\r
80657
- }\r
80658
- }\r
80659
- \r
80660
- @let registeredOfficeForm = getFormGroup(groups.RegisteredOfficeAddress);\r
80661
- \r
80662
- @if (registeredOfficeForm) {\r
80663
- <expandable-card\r
80664
- [isValid]="sectionValidity['registeredOffice']"\r
80665
- [isStatusIcon]="statusIcon()"\r
80666
- [title]="groups.RegisteredOfficeAddress"\r
80667
- >\r
80668
- <filing-form-group\r
80669
- [isSubmitted]="isSubmitted()"\r
80670
- [form]="registeredOfficeForm"\r
80671
- [config]="\r
80672
- affiliationCardFieldsMap[\r
80673
- registeredOfficeForm.get(\r
80674
- formationFormControls.AffiliationAddressType\r
80675
- )?.value\r
80676
- ]\r
80677
- "\r
80678
- (visiblyValidChange)="\r
80679
- onSectionValidChange('registeredOffice', $event)\r
80680
- "\r
80681
- />\r
80682
- </expandable-card>\r
80683
- }\r
80684
- \r
80685
- @let incorporatorsArray = getFormArray(groups.Incorporators);\r
80686
- @let directorsArray = getFormArray(groups.Directors);\r
80687
- \r
80688
- @let isOpenDirectors =\r
80689
- (directorsArray?.length ?? 0) <= initiallyOpenCardsCount;\r
80690
- @if (directorsArray && directorsArray.length) {\r
80691
- <expandable-list-card\r
80692
- [isValid]="sectionValidity['directors']"\r
80693
- [areItemsOpen]="isOpenDirectors"\r
80694
- [isStatusIcon]="statusIcon()"\r
80695
- [config]="directorsCardFieldsMap"\r
80696
- [configKey]="controls.AffiliationAddressType"\r
80697
- [formArray]="directorsArray"\r
80698
- [title]="groups.Directors"\r
80699
- (visiblyValidChange)="onSectionValidChange('directors', $event)"\r
80700
- >\r
80701
- <p\r
80702
- slot="subtitle"\r
80703
- class="body-1-regular black"\r
80704
- [innerHTML]="directorsSubtitle()"\r
80705
- ></p>\r
80706
- </expandable-list-card>\r
80707
- } @else {\r
80708
- <expandable-card [title]="groups.Directors">\r
80709
- <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
80710
- </expandable-card>\r
80711
- }\r
80712
- \r
80713
- @let sharesAndProvisions = getFormGroup(groups.SharesAndProvisions);\r
80714
- \r
80715
- @if (sharesAndProvisions) {\r
80716
- <expandable-card\r
80717
- [isStatusIcon]="false"\r
80718
- [title]="groups.SharesAndProvisions"\r
80719
- >\r
80720
- <filing-form-group\r
80721
- [isSubmitted]="isSubmitted()"\r
80722
- [form]="sharesAndProvisions"\r
80723
- [config]="sharesAndProvincesFields"\r
80724
- />\r
80725
- </expandable-card>\r
80726
- }\r
80727
- \r
80728
- @let isOpenIncorporators =\r
80729
- (incorporatorsArray?.length ?? 0) <= initiallyOpenCardsCount;\r
80730
- \r
80731
- @if (incorporatorsArray && incorporatorsArray.length) {\r
80732
- <expandable-list-card\r
80733
- [isValid]="sectionValidity['incorporators']"\r
80734
- [areItemsOpen]="isOpenIncorporators"\r
80735
- [isStatusIcon]="statusIcon()"\r
80736
- [config]="incorporatorsCardFieldsMap"\r
80737
- [configKey]="controls.AffiliationAddressType"\r
80738
- [formArray]="incorporatorsArray"\r
80739
- [isSubmitted]="isSubmitted()"\r
80740
- [title]="groups.Incorporators"\r
80741
- (visiblyValidChange)="onSectionValidChange('incorporators', $event)"\r
80742
- />\r
80743
- } @else {\r
80744
- <expandable-card [title]="groups.Incorporators">\r
80745
- <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
80746
- </expandable-card>\r
80747
- }\r
80748
- </div>\r
80749
- </div>\r
80650
+ ], template: `<div class="incorporation-form">
80651
+ @if (isNote()) {
80652
+ <alert
80653
+ [type]="alertType.Info"
80654
+ title="Entity changed"
80655
+ content="A new draft needs to be generated as the Entity was changed since the last draft was produced."
80656
+ />
80657
+ }
80658
+
80659
+ @if (errors().length) {
80660
+ <alert
80661
+ title="The following issues need to be resolved before proceeding:"
80662
+ [content]="errors()"
80663
+ />
80664
+ }
80665
+
80666
+ <div class="incorporation-form-content">
80667
+ @let referenceNumbers = getFormGroup(groups.ReferenceNumbers);
80668
+
80669
+ @if (referenceNumbers) {
80670
+ <expandable-card [title]="groups.ReferenceNumbers">
80671
+ <div class="incorporation-form-item">
80672
+ <filing-form-group
80673
+ [isSubmitted]="isSubmitted()"
80674
+ [form]="referenceNumbers"
80675
+ [config]="referenceNumbersFields"
80676
+ (visiblyValidChange)="onSectionValidChange('refNumbers', $event)"
80677
+ />
80678
+ </div>
80679
+ </expandable-card>
80680
+ }
80681
+
80682
+ @let corporationDetails = getFormGroup(groups.CorporationDetails);
80683
+
80684
+ @if (corporationDetails) {
80685
+ <expandable-card
80686
+ [isValid]="sectionValidity['corpDetails']"
80687
+ [isStatusIcon]="statusIcon()"
80688
+ [title]="groups.CorporationDetails"
80689
+ >
80690
+ <div class="incorporation-form-item">
80691
+ <filing-form-group
80692
+ [isSubmitted]="isSubmitted()"
80693
+ [form]="corporationDetails"
80694
+ [config]="corporationDetailsCardFields"
80695
+ (visiblyValidChange)="onSectionValidChange('corpDetails', $event)"
80696
+ />
80697
+ </div>
80698
+ </expandable-card>
80699
+ }
80700
+
80701
+ @if (isLegalOpinion) {
80702
+ @let legalOpinion = getFormGroup(groups.LegalOpinion);
80703
+
80704
+ @if (legalOpinion) {
80705
+ <expandable-card
80706
+ [isValid]="
80707
+ sectionValidity['legalOpinionLawyer'] &&
80708
+ sectionValidity['legalOpinionAddress']
80709
+ "
80710
+ [isStatusIcon]="statusIcon()"
80711
+ [title]="groups.LegalOpinion"
80712
+ >
80713
+ <filing-form-group
80714
+ [isSubmitted]="isSubmitted()"
80715
+ [form]="legalOpinion"
80716
+ [config]="legalOpinionLawyerFields()"
80717
+ (visiblyValidChange)="
80718
+ onSectionValidChange('legalOpinionLawyer', $event)
80719
+ "
80720
+ />
80721
+
80722
+ @if (legalOpinion.get(controls.LawyerSigningOpinion)?.value) {
80723
+ <filing-form-group
80724
+ [isSubmitted]="isSubmitted()"
80725
+ [form]="legalOpinion"
80726
+ [config]="legalOpinionConfirmAddressFieldsMap[legalOpinion.get(controls.AffiliationAddressType)?.value]"
80727
+ (visiblyValidChange)="
80728
+ onSectionValidChange('legalOpinionAddress', $event)
80729
+ "
80730
+ />
80731
+ }
80732
+
80733
+ </expandable-card>
80734
+ }
80735
+ }
80736
+
80737
+ @let registeredOfficeForm = getFormGroup(groups.RegisteredOfficeAddress);
80738
+
80739
+ @if (registeredOfficeForm) {
80740
+ <expandable-card
80741
+ [isValid]="sectionValidity['registeredOffice']"
80742
+ [isStatusIcon]="statusIcon()"
80743
+ [title]="groups.RegisteredOfficeAddress"
80744
+ >
80745
+ <filing-form-group
80746
+ [isSubmitted]="isSubmitted()"
80747
+ [form]="registeredOfficeForm"
80748
+ [config]="
80749
+ affiliationCardFieldsMap[
80750
+ registeredOfficeForm.get(
80751
+ formationFormControls.AffiliationAddressType
80752
+ )?.value
80753
+ ]
80754
+ "
80755
+ (visiblyValidChange)="
80756
+ onSectionValidChange('registeredOffice', $event)
80757
+ "
80758
+ />
80759
+ </expandable-card>
80760
+ }
80761
+
80762
+ @let incorporatorsArray = getFormArray(groups.Incorporators);
80763
+ @let directorsArray = getFormArray(groups.Directors);
80764
+
80765
+ @let isOpenDirectors =
80766
+ (directorsArray?.length ?? 0) <= initiallyOpenCardsCount;
80767
+ @if (directorsArray && directorsArray.length) {
80768
+ <expandable-list-card
80769
+ [isValid]="sectionValidity['directors']"
80770
+ [areItemsOpen]="isOpenDirectors"
80771
+ [isStatusIcon]="statusIcon()"
80772
+ [config]="directorsCardFieldsMap"
80773
+ [configKey]="controls.AffiliationAddressType"
80774
+ [formArray]="directorsArray"
80775
+ [title]="groups.Directors"
80776
+ (visiblyValidChange)="onSectionValidChange('directors', $event)"
80777
+ >
80778
+ <p
80779
+ slot="subtitle"
80780
+ class="body-1-regular black"
80781
+ [innerHTML]="directorsSubtitle()"
80782
+ ></p>
80783
+ </expandable-list-card>
80784
+ } @else {
80785
+ <expandable-card [title]="groups.Directors">
80786
+ <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>
80787
+ </expandable-card>
80788
+ }
80789
+
80790
+ @let sharesAndProvisions = getFormGroup(groups.SharesAndProvisions);
80791
+
80792
+ @if (sharesAndProvisions) {
80793
+ <expandable-card
80794
+ [isStatusIcon]="false"
80795
+ [title]="groups.SharesAndProvisions"
80796
+ >
80797
+ <filing-form-group
80798
+ [isSubmitted]="isSubmitted()"
80799
+ [form]="sharesAndProvisions"
80800
+ [config]="sharesAndProvincesFields"
80801
+ />
80802
+ </expandable-card>
80803
+ }
80804
+
80805
+ @let isOpenIncorporators =
80806
+ (incorporatorsArray?.length ?? 0) <= initiallyOpenCardsCount;
80807
+
80808
+ @if (incorporatorsArray && incorporatorsArray.length) {
80809
+ <expandable-list-card
80810
+ [isValid]="sectionValidity['incorporators']"
80811
+ [areItemsOpen]="isOpenIncorporators"
80812
+ [isStatusIcon]="statusIcon()"
80813
+ [config]="incorporatorsCardFieldsMap"
80814
+ [configKey]="controls.AffiliationAddressType"
80815
+ [formArray]="incorporatorsArray"
80816
+ [isSubmitted]="isSubmitted()"
80817
+ [title]="groups.Incorporators"
80818
+ (visiblyValidChange)="onSectionValidChange('incorporators', $event)"
80819
+ />
80820
+ } @else {
80821
+ <expandable-card [title]="groups.Incorporators">
80822
+ <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>
80823
+ </expandable-card>
80824
+ }
80825
+ </div>
80826
+ </div>
80750
80827
  `, styles: ["/* src/app/components/ontario/incorporation/ontario-incorporation-form/ontario-incorporation-form.component.scss */\n:host {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n:host .incorporation-form {\n display: flex;\n height: 100%;\n flex-direction: column;\n gap: 16px;\n}\n:host .incorporation-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow: auto;\n min-height: 0;\n}\n:host .incorporation-form-content-subtitle {\n color: var(--filing-modal-color-grey);\n padding-bottom: 8px;\n}\n:host .incorporation-form-subtitle {\n color: #666666;\n}\n:host .incorporation-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .incorporation-form-item-title {\n color: var(--filing-modal-color-dark-blue);\n}\n/*# sourceMappingURL=ontario-incorporation-form.component.css.map */\n"] }]
80751
80828
  }], () => [], null);
80752
80829
  })();
@@ -80852,36 +80929,36 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80852
80929
  (() => {
80853
80930
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(OntarioIncorporationDeltaFormComponent, [{
80854
80931
  type: Component,
80855
- args: [{ standalone: true, selector: "ontario-incorporation-delta-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, TranslatePipe, OntarioIncorporationFormComponent], template: `<div class="incorporation-delta-form">\r
80856
- <ontario-incorporation-form\r
80857
- class="incorporation-delta-form-content"\r
80858
- [form]="form()"\r
80859
- [task]="task()"\r
80860
- [errors]="combinedErrors()"\r
80861
- [isNote]="isNote()"\r
80862
- [isSubmitted]="submitted()"\r
80863
- [statusIcon]="true"\r
80864
- (visiblyValidChange)="onVisiblyValidChange($event)"\r
80865
- />\r
80866
- \r
80867
- <div class="incorporation-delta-form-actions">\r
80868
- <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
80869
- <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
80870
- </button>\r
80871
- <button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>\r
80872
- <span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>\r
80873
- </button>\r
80874
- <button\r
80875
- class="submit"\r
80876
- color="primary"\r
80877
- mat-flat-button\r
80878
- [disabled]="actionsDisabled()"\r
80879
- (click)="onValidate()"\r
80880
- >\r
80881
- <span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>\r
80882
- </button>\r
80883
- </div>\r
80884
- </div>\r
80932
+ args: [{ standalone: true, selector: "ontario-incorporation-delta-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, TranslatePipe, OntarioIncorporationFormComponent], template: `<div class="incorporation-delta-form">
80933
+ <ontario-incorporation-form
80934
+ class="incorporation-delta-form-content"
80935
+ [form]="form()"
80936
+ [task]="task()"
80937
+ [errors]="combinedErrors()"
80938
+ [isNote]="isNote()"
80939
+ [isSubmitted]="submitted()"
80940
+ [statusIcon]="true"
80941
+ (visiblyValidChange)="onVisiblyValidChange($event)"
80942
+ />
80943
+
80944
+ <div class="incorporation-delta-form-actions">
80945
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">
80946
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>
80947
+ </button>
80948
+ <button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>
80949
+ <span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>
80950
+ </button>
80951
+ <button
80952
+ class="submit"
80953
+ color="primary"
80954
+ mat-flat-button
80955
+ [disabled]="actionsDisabled()"
80956
+ (click)="onValidate()"
80957
+ >
80958
+ <span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>
80959
+ </button>
80960
+ </div>
80961
+ </div>
80885
80962
  `, styles: ["/* src/app/components/ontario/incorporation/steps/delta/ontario-incorporation-delta-form.component.scss */\n:host .incorporation-delta-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .incorporation-delta-form-content {\n flex: 1;\n min-height: 0;\n}\n:host .incorporation-delta-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .incorporation-delta-form-actions button {\n margin: 0;\n}\n:host .incorporation-delta-form-actions .submit {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=ontario-incorporation-delta-form.component.css.map */\n"] }]
80886
80963
  }], null, null);
80887
80964
  })();
@@ -80958,29 +81035,29 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80958
81035
  MatButton,
80959
81036
  TranslatePipe,
80960
81037
  OntarioIncorporationFormComponent
80961
- ], template: `<div class="incorporation-preview-form">\r
80962
- <ontario-incorporation-form\r
80963
- class="incorporation-preview-form-content"\r
80964
- [form]="form()"\r
80965
- [task]="task()"\r
80966
- [statusIcon]="false"\r
80967
- />\r
80968
- \r
80969
- <div class="incorporation-preview-form-actions">\r
80970
- <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
80971
- <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
80972
- </button>\r
80973
- <button\r
80974
- class="submit"\r
80975
- color="primary"\r
80976
- mat-flat-button\r
80977
- [disabled]="actionsDisabled()"\r
80978
- (click)="next.emit()"\r
80979
- >\r
80980
- <span class="body-1-semibold">{{ 'File' | translate }}</span>\r
80981
- </button>\r
80982
- </div>\r
80983
- </div>\r
81038
+ ], template: `<div class="incorporation-preview-form">
81039
+ <ontario-incorporation-form
81040
+ class="incorporation-preview-form-content"
81041
+ [form]="form()"
81042
+ [task]="task()"
81043
+ [statusIcon]="false"
81044
+ />
81045
+
81046
+ <div class="incorporation-preview-form-actions">
81047
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">
81048
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>
81049
+ </button>
81050
+ <button
81051
+ class="submit"
81052
+ color="primary"
81053
+ mat-flat-button
81054
+ [disabled]="actionsDisabled()"
81055
+ (click)="next.emit()"
81056
+ >
81057
+ <span class="body-1-semibold">{{ 'File' | translate }}</span>
81058
+ </button>
81059
+ </div>
81060
+ </div>
80984
81061
  `, styles: ["/* src/app/components/ontario/incorporation/steps/preview/ontario-incorporation-preview-form.component.scss */\n:host .incorporation-preview-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .incorporation-preview-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .incorporation-preview-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .incorporation-preview-form-errors {\n padding: 0 16px;\n}\n:host .incorporation-preview-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .incorporation-preview-form-actions button {\n margin: 0;\n}\n/*# sourceMappingURL=ontario-incorporation-preview-form.component.css.map */\n"] }]
80985
81062
  }], null, null);
80986
81063
  })();
@@ -80991,7 +81068,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80991
81068
  });
80992
81069
 
80993
81070
  // src/app/constants/initial-return-form.constants.ts
80994
- var personFullAddressFormField, fullAddressFormField, certifiedByAddressFormField, checkboxFormField, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, ONTARIO_INITIAL_RETURN_FORM_GENERAL_FIELDS, ONTARIO_INITIAL_RETURN_CARD_FORM_ADDRESS_FIELDS_MAP, generatePersonFields, ONTARIO_INITIAL_RETURN_FORM_DIRECTORS_FIELDS_MAP, ONTARIO_INITIAL_RETURN_FORM_OFFICER_FIELDS_MAP, generateCertifiedByFields, ONTARIO_INITIAL_RETURN_FORM_CERTIFIED_BY_FIELDS_MAP;
81071
+ var personFullAddressFormField, fullAddressFormField, currentNameSelect, certifiedByAddressFormField, checkboxFormField, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, ONTARIO_INITIAL_RETURN_FORM_GENERAL_FIELDS, ONTARIO_INITIAL_RETURN_CARD_FORM_ADDRESS_FIELDS_MAP, generatePersonFields, generateOntarioInitialReturnFormDirectorsFieldsMap, generateOntarioInitialReturnFormOfficerFieldsMap, generateCertifiedByFields, ONTARIO_INITIAL_RETURN_FORM_CERTIFIED_BY_FIELDS_MAP, generateOntarioInitialReturnFormContactControl;
80995
81072
  var init_initial_return_form_constants = __esm({
80996
81073
  "src/app/constants/initial-return-form.constants.ts"() {
80997
81074
  init_form_enums();
@@ -81010,7 +81087,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81010
81087
  if (!prevValueMap) {
81011
81088
  return baseResult;
81012
81089
  }
81013
- const key = formValue[IRFormControls.AffiliationName];
81090
+ const key = formValue[IRFormControls.CurrentName];
81014
81091
  const prevValue = prevValueMap.get(key);
81015
81092
  if (!prevValue) {
81016
81093
  return baseResult;
@@ -81046,6 +81123,20 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81046
81123
  },
81047
81124
  class: "span-12"
81048
81125
  };
81126
+ currentNameSelect = (label, options) => ({
81127
+ type: FormType.Select,
81128
+ label,
81129
+ formControlName: IRFormControls.CurrentName,
81130
+ options,
81131
+ isVisible: (form) => {
81132
+ return form.get(IRFormControls.AffiliationType)?.value !== IRAffiliationType.Ceased && (options.length > 0 || form.get(IRFormControls.CurrentName)?.value);
81133
+ },
81134
+ onChange: (form) => {
81135
+ const currentName = form.get(IRFormControls.CurrentName)?.value;
81136
+ form.get(IRFormControls.AffiliationType)?.setValue(currentName ? IRAffiliationType.Update : IRAffiliationType.Add);
81137
+ },
81138
+ class: "span-12"
81139
+ });
81049
81140
  certifiedByAddressFormField = {
81050
81141
  type: FormType.Text,
81051
81142
  label: "",
@@ -81210,7 +81301,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81210
81301
  const prevValueData = prevValue;
81211
81302
  const result = `<span class="body-1-semibold">${t("Primary Activity")}:</span> ${primaryActivity}`;
81212
81303
  if (prevValueData?.primaryActivity) {
81213
- if (prevValueData.primaryActivity !== primaryActivity) {
81304
+ if (prevValueData.primaryActivity?.toLowerCase() !== primaryActivity?.toLowerCase()) {
81214
81305
  return result + `<span class="grey-mid"><br/><span class="body-1-semibold">${t("Previous Activity")}:</span> ${prevValueData.primaryActivity}</span>`;
81215
81306
  }
81216
81307
  }
@@ -81294,7 +81385,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81294
81385
  if (!prevValueMap || !isUpdate) {
81295
81386
  return baseEmail ? baseResult : "";
81296
81387
  }
81297
- const key = formValue[IRFormControls.AffiliationName];
81388
+ const key = formValue[IRFormControls.CurrentName];
81298
81389
  const prevValue = prevValueMap.get(key);
81299
81390
  if (!prevValue) {
81300
81391
  return baseEmail ? baseResult : "";
@@ -81307,18 +81398,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81307
81398
  }
81308
81399
  }
81309
81400
  ];
81310
- ONTARIO_INITIAL_RETURN_FORM_DIRECTORS_FIELDS_MAP = {
81311
- [AffiliationAddressType.CanadianNoSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, checkboxFormField, personFullAddressFormField]),
81312
- [AffiliationAddressType.CanadianSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, checkboxFormField, personFullAddressFormField]),
81313
- [AffiliationAddressType.InternationalNoSuite]: generatePersonFields([checkboxFormField, personFullAddressFormField]),
81314
- [AffiliationAddressType.InternationalSuite]: generatePersonFields([checkboxFormField, personFullAddressFormField])
81315
- };
81316
- ONTARIO_INITIAL_RETURN_FORM_OFFICER_FIELDS_MAP = {
81317
- [AffiliationAddressType.CanadianNoSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, personFullAddressFormField]),
81318
- [AffiliationAddressType.CanadianSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, personFullAddressFormField]),
81319
- [AffiliationAddressType.InternationalNoSuite]: generatePersonFields([personFullAddressFormField]),
81320
- [AffiliationAddressType.InternationalSuite]: generatePersonFields([personFullAddressFormField])
81321
- };
81401
+ generateOntarioInitialReturnFormDirectorsFieldsMap = (currentNameOptions) => ({
81402
+ [AffiliationAddressType.CanadianNoSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, checkboxFormField, personFullAddressFormField, currentNameSelect("Existing Director", currentNameOptions)]),
81403
+ [AffiliationAddressType.CanadianSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, checkboxFormField, personFullAddressFormField, currentNameSelect("Existing Director", currentNameOptions)]),
81404
+ [AffiliationAddressType.InternationalNoSuite]: generatePersonFields([checkboxFormField, personFullAddressFormField, currentNameSelect("Existing Director", currentNameOptions)]),
81405
+ [AffiliationAddressType.InternationalSuite]: generatePersonFields([checkboxFormField, personFullAddressFormField, currentNameSelect("Existing Director", currentNameOptions)])
81406
+ });
81407
+ generateOntarioInitialReturnFormOfficerFieldsMap = (currentNameOptions) => ({
81408
+ [AffiliationAddressType.CanadianNoSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, personFullAddressFormField, currentNameSelect("Existing Officer", currentNameOptions)]),
81409
+ [AffiliationAddressType.CanadianSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, personFullAddressFormField, currentNameSelect("Existing Officer", currentNameOptions)]),
81410
+ [AffiliationAddressType.InternationalNoSuite]: generatePersonFields([personFullAddressFormField, currentNameSelect("Existing Officer", currentNameOptions)]),
81411
+ [AffiliationAddressType.InternationalSuite]: generatePersonFields([personFullAddressFormField, currentNameSelect("Existing Officer", currentNameOptions)])
81412
+ });
81322
81413
  generateCertifiedByFields = (fields) => [
81323
81414
  {
81324
81415
  type: FormType.Text,
@@ -81334,6 +81425,36 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81334
81425
  [AffiliationAddressType.InternationalNoSuite]: generateCertifiedByFields([certifiedByAddressFormField]),
81335
81426
  [AffiliationAddressType.InternationalSuite]: generateCertifiedByFields([certifiedByAddressFormField])
81336
81427
  };
81428
+ generateOntarioInitialReturnFormContactControl = (contacts) => {
81429
+ const contactsOptions = contacts.map((contact) => ({
81430
+ label: contact.participant._profile.name ?? "",
81431
+ value: contact._id
81432
+ }));
81433
+ return [
81434
+ {
81435
+ type: FormType.Select,
81436
+ label: "Contact",
81437
+ formControlName: IRFormControls.Contact,
81438
+ required: true,
81439
+ options: contactsOptions,
81440
+ class: "span-12"
81441
+ },
81442
+ {
81443
+ type: FormType.Text,
81444
+ dynamicLabel: (form, t) => {
81445
+ const id = form.get(IRFormControls.Contact)?.value;
81446
+ const contact = contacts.find((item) => item._id === id);
81447
+ const email = contact?.participant?.communications?.find((c) => c.type.toLowerCase().includes("email"))?.value;
81448
+ const phone = contact?.participant?.communications?.find((c) => c.type.toLowerCase().includes("phone"))?.value;
81449
+ return `<span class="body-1-semibold">${t("Contact Details")}:</span> ${getContactDetailsPreview(email, phone, t)}`;
81450
+ },
81451
+ formControlName: "",
81452
+ required: false,
81453
+ isVisible: (form) => form.get(IRFormControls.Contact)?.value,
81454
+ class: "span-12"
81455
+ }
81456
+ ];
81457
+ };
81337
81458
  }
81338
81459
  });
81339
81460
 
@@ -81368,12 +81489,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81368
81489
  \u0275\u0275elementEnd()();
81369
81490
  }
81370
81491
  if (rf & 2) {
81371
- let tmp_9_0;
81492
+ let tmp_10_0;
81372
81493
  const ctx_r0 = \u0275\u0275nextContext();
81373
81494
  const generalInfoForm_r3 = \u0275\u0275readContextLet(4);
81374
81495
  \u0275\u0275property("title", ctx_r0.groups.General)("isStatusIcon", !ctx_r0.readonly());
81375
81496
  \u0275\u0275advance();
81376
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("prevData", (tmp_9_0 = ctx_r0.prevData()) == null ? null : tmp_9_0.corporationInfo)("form", generalInfoForm_r3)("config", ctx_r0.generalCardFields)("label", ctx_r0.groups.General);
81497
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("prevData", (tmp_10_0 = ctx_r0.prevData()) == null ? null : tmp_10_0.corporationInfo)("form", generalInfoForm_r3)("config", ctx_r0.generalCardFields)("label", ctx_r0.groups.General);
81377
81498
  }
81378
81499
  }
81379
81500
  function OntarioUpdateMaintainFormComponent_Conditional_7_Template(rf, ctx) {
@@ -81388,13 +81509,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81388
81509
  \u0275\u0275elementEnd()();
81389
81510
  }
81390
81511
  if (rf & 2) {
81391
- let tmp_9_0;
81392
- let tmp_12_0;
81512
+ let tmp_10_0;
81513
+ let tmp_13_0;
81393
81514
  const ctx_r0 = \u0275\u0275nextContext();
81394
81515
  const registeredOfficeAddress_r5 = \u0275\u0275readContextLet(6);
81395
81516
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["registeredOffice"])("title", ctx_r0.groups.RegisteredOfficeAddress);
81396
81517
  \u0275\u0275advance();
81397
- \u0275\u0275property("prevData", (tmp_9_0 = ctx_r0.prevData()) == null ? null : tmp_9_0.corporationInfo)("isSubmitted", ctx_r0.isSubmitted())("form", registeredOfficeAddress_r5)("config", ctx_r0.addressFieldsMap[(tmp_12_0 = registeredOfficeAddress_r5.get(ctx_r0.controls.AffiliationAddressType)) == null ? null : tmp_12_0.value]);
81518
+ \u0275\u0275property("prevData", (tmp_10_0 = ctx_r0.prevData()) == null ? null : tmp_10_0.corporationInfo)("isSubmitted", ctx_r0.isSubmitted())("form", registeredOfficeAddress_r5)("config", ctx_r0.addressFieldsMap[(tmp_13_0 = registeredOfficeAddress_r5.get(ctx_r0.controls.AffiliationAddressType)) == null ? null : tmp_13_0.value]);
81398
81519
  }
81399
81520
  }
81400
81521
  function OntarioUpdateMaintainFormComponent_Conditional_9_Template(rf, ctx) {
@@ -81410,13 +81531,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81410
81531
  \u0275\u0275elementEnd();
81411
81532
  }
81412
81533
  if (rf & 2) {
81413
- let tmp_6_0;
81414
81534
  let tmp_7_0;
81535
+ let tmp_8_0;
81415
81536
  const ctx_r0 = \u0275\u0275nextContext();
81416
81537
  const directorsArray_r7 = \u0275\u0275readContextLet(8);
81417
- const isOpen_r8 = ((tmp_6_0 = directorsArray_r7 == null ? null : directorsArray_r7.length) !== null && tmp_6_0 !== void 0 ? tmp_6_0 : 0) <= ctx_r0.initiallyOpenCardsCount;
81538
+ const isOpen_r8 = ((tmp_7_0 = directorsArray_r7 == null ? null : directorsArray_r7.length) !== null && tmp_7_0 !== void 0 ? tmp_7_0 : 0) <= ctx_r0.initiallyOpenCardsCount;
81418
81539
  \u0275\u0275advance();
81419
- \u0275\u0275property("prevData", (tmp_7_0 = ctx_r0.prevData()) == null ? null : tmp_7_0.directors)("isSubmitted", ctx_r0.isSubmitted())("isValid", ctx_r0.sectionValidity["directors"])("areItemsOpen", isOpen_r8)("isStatusIcon", !ctx_r0.readonly())("config", ctx_r0.directorsFieldsMap)("configKey", ctx_r0.controls.AffiliationAddressType)("formArray", directorsArray_r7)("title", ctx_r0.groups.Directors);
81540
+ \u0275\u0275property("prevData", (tmp_8_0 = ctx_r0.prevData()) == null ? null : tmp_8_0.directors)("isSubmitted", ctx_r0.isSubmitted())("isValid", ctx_r0.sectionValidity["directors"])("areItemsOpen", isOpen_r8)("isStatusIcon", !ctx_r0.readonly())("config", ctx_r0.directorsFieldsMap)("configKey", ctx_r0.controls.AffiliationAddressType)("formArray", directorsArray_r7)("title", ctx_r0.groups.Directors);
81420
81541
  }
81421
81542
  }
81422
81543
  function OntarioUpdateMaintainFormComponent_Conditional_10_Template(rf, ctx) {
@@ -81446,13 +81567,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81446
81567
  \u0275\u0275elementEnd();
81447
81568
  }
81448
81569
  if (rf & 2) {
81449
- let tmp_6_0;
81450
81570
  let tmp_7_0;
81571
+ let tmp_8_0;
81451
81572
  const ctx_r0 = \u0275\u0275nextContext();
81452
81573
  const officersArray_r10 = \u0275\u0275readContextLet(11);
81453
- const isOpen_r11 = ((tmp_6_0 = officersArray_r10 == null ? null : officersArray_r10.length) !== null && tmp_6_0 !== void 0 ? tmp_6_0 : 0) <= ctx_r0.initiallyOpenCardsCount;
81574
+ const isOpen_r11 = ((tmp_7_0 = officersArray_r10 == null ? null : officersArray_r10.length) !== null && tmp_7_0 !== void 0 ? tmp_7_0 : 0) <= ctx_r0.initiallyOpenCardsCount;
81454
81575
  \u0275\u0275advance();
81455
- \u0275\u0275property("prevData", (tmp_7_0 = ctx_r0.prevData()) == null ? null : tmp_7_0.officers)("isSubmitted", ctx_r0.isSubmitted())("areItemsOpen", isOpen_r11)("isStatusIcon", !ctx_r0.readonly())("config", ctx_r0.officersFieldsMap)("configKey", ctx_r0.controls.AffiliationAddressType)("formArray", officersArray_r10)("title", ctx_r0.groups.Officers)("isValid", ctx_r0.sectionValidity["officers"]);
81576
+ \u0275\u0275property("prevData", (tmp_8_0 = ctx_r0.prevData()) == null ? null : tmp_8_0.officers)("isSubmitted", ctx_r0.isSubmitted())("areItemsOpen", isOpen_r11)("isStatusIcon", !ctx_r0.readonly())("config", ctx_r0.officersFieldsMap)("configKey", ctx_r0.controls.AffiliationAddressType)("formArray", officersArray_r10)("title", ctx_r0.groups.Officers)("isValid", ctx_r0.sectionValidity["officers"]);
81456
81577
  }
81457
81578
  }
81458
81579
  function OntarioUpdateMaintainFormComponent_Conditional_13_Template(rf, ctx) {
@@ -81481,11 +81602,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81481
81602
  \u0275\u0275elementEnd();
81482
81603
  }
81483
81604
  if (rf & 2) {
81484
- let tmp_6_0;
81485
- let tmp_9_0;
81605
+ let tmp_7_0;
81606
+ let tmp_10_0;
81486
81607
  const ctx_r0 = \u0275\u0275nextContext();
81487
81608
  const certifiedBy_r13 = \u0275\u0275readContextLet(14);
81488
- \u0275\u0275property("prevData", (tmp_6_0 = ctx_r0.prevData()) == null ? null : tmp_6_0.corporationInfo)("isSubmitted", ctx_r0.isSubmitted())("form", certifiedBy_r13)("config", ctx_r0.certifiedByFieldsMap[(tmp_9_0 = certifiedBy_r13.get(ctx_r0.controls.AffiliationAddressType)) == null ? null : tmp_9_0.value]);
81609
+ \u0275\u0275property("prevData", (tmp_7_0 = ctx_r0.prevData()) == null ? null : tmp_7_0.corporationInfo)("isSubmitted", ctx_r0.isSubmitted())("form", certifiedBy_r13)("config", ctx_r0.certifiedByFieldsMap[(tmp_10_0 = certifiedBy_r13.get(ctx_r0.controls.AffiliationAddressType)) == null ? null : tmp_10_0.value]);
81489
81610
  }
81490
81611
  }
81491
81612
  function OntarioUpdateMaintainFormComponent_Conditional_17_Template(rf, ctx) {
@@ -81500,6 +81621,20 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81500
81621
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "Not specified"));
81501
81622
  }
81502
81623
  }
81624
+ function OntarioUpdateMaintainFormComponent_Conditional_19_Template(rf, ctx) {
81625
+ if (rf & 1) {
81626
+ \u0275\u0275elementStart(0, "expandable-card", 5);
81627
+ \u0275\u0275element(1, "filing-form-group", 15);
81628
+ \u0275\u0275elementEnd();
81629
+ }
81630
+ if (rf & 2) {
81631
+ const ctx_r0 = \u0275\u0275nextContext();
81632
+ const contact_r14 = \u0275\u0275readContextLet(18);
81633
+ \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", !contact_r14.invalid)("title", ctx_r0.groups.Contact);
81634
+ \u0275\u0275advance();
81635
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", contact_r14)("config", ctx_r0.contactsFields);
81636
+ }
81637
+ }
81503
81638
  var OntarioUpdateMaintainFormComponent;
81504
81639
  var init_update_maintain_form_component = __esm({
81505
81640
  "src/app/components/ontario/update-maintain/update-maintain-form/update-maintain-form.component.ts"() {
@@ -81525,13 +81660,32 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81525
81660
  groups = InitialReturnFillingFormGroups;
81526
81661
  generalCardFields = ONTARIO_INITIAL_RETURN_FORM_GENERAL_FIELDS;
81527
81662
  addressFieldsMap = ONTARIO_INITIAL_RETURN_CARD_FORM_ADDRESS_FIELDS_MAP;
81528
- directorsFieldsMap = ONTARIO_INITIAL_RETURN_FORM_DIRECTORS_FIELDS_MAP;
81529
- officersFieldsMap = ONTARIO_INITIAL_RETURN_FORM_OFFICER_FIELDS_MAP;
81663
+ directorsFieldsMap = {};
81664
+ officersFieldsMap = {};
81530
81665
  certifiedByFieldsMap = ONTARIO_INITIAL_RETURN_FORM_CERTIFIED_BY_FIELDS_MAP;
81666
+ contactsFields = [];
81531
81667
  alertType = AlertType;
81532
81668
  controls = InitialReturnFormControls;
81533
81669
  sectionValidity = {};
81534
81670
  initiallyOpenCardsCount = 3;
81671
+ constructor() {
81672
+ effect(() => {
81673
+ const prevData = this.prevData();
81674
+ const directorsKeys = Array.from(prevData?.directors?.keys() ?? []);
81675
+ const directorsOptions = directorsKeys.map((key) => ({ label: key, value: key }));
81676
+ const officersKeys = Array.from(prevData?.officers?.keys() ?? []);
81677
+ const officersOptions = officersKeys.map((key) => ({ label: key, value: key }));
81678
+ this.directorsFieldsMap = generateOntarioInitialReturnFormDirectorsFieldsMap(directorsOptions);
81679
+ this.officersFieldsMap = generateOntarioInitialReturnFormOfficerFieldsMap(officersOptions);
81680
+ });
81681
+ effect(() => {
81682
+ const task = this.task();
81683
+ if (task) {
81684
+ const contacts = task.entity.affiliations.filter((a) => a.role.role_name === "Contact");
81685
+ this.contactsFields = generateOntarioInitialReturnFormContactControl(contacts);
81686
+ }
81687
+ });
81688
+ }
81535
81689
  isVisiblyValid() {
81536
81690
  return Object.values(this.sectionValidity).every((v) => v);
81537
81691
  }
@@ -81548,7 +81702,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81548
81702
  static \u0275fac = function OntarioUpdateMaintainFormComponent_Factory(__ngFactoryType__) {
81549
81703
  return new (__ngFactoryType__ || _OntarioUpdateMaintainFormComponent)();
81550
81704
  };
81551
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _OntarioUpdateMaintainFormComponent, selectors: [["ontario-update-maintain-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"], prevData: [1, "prevData"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 18, vars: 15, consts: [[1, "ontario-update-maintain-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, "ontario-update-maintain-form-content"], [3, "title", "isStatusIcon"], [3, "isStatusIcon", "isValid", "title"], [3, "prevData", "isSubmitted", "isValid", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title"], [3, "title"], [3, "prevData", "isSubmitted", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title", "isValid"], [3, "prevData", "isSubmitted", "form", "config"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "prevData", "form", "config", "label"], [3, "visiblyValidChange", "prevData", "isSubmitted", "form", "config"], [3, "visiblyValidChange", "prevData", "isSubmitted", "isValid", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title"], [3, "visiblyValidChange", "prevData", "isSubmitted", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title", "isValid"]], template: function OntarioUpdateMaintainFormComponent_Template(rf, ctx) {
81705
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _OntarioUpdateMaintainFormComponent, selectors: [["ontario-update-maintain-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"], prevData: [1, "prevData"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 20, vars: 17, consts: [[1, "ontario-update-maintain-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, "ontario-update-maintain-form-content"], [3, "title", "isStatusIcon"], [3, "isStatusIcon", "isValid", "title"], [3, "prevData", "isSubmitted", "isValid", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title"], [3, "title"], [3, "prevData", "isSubmitted", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title", "isValid"], [3, "prevData", "isSubmitted", "form", "config"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "prevData", "form", "config", "label"], [3, "visiblyValidChange", "prevData", "isSubmitted", "form", "config"], [3, "visiblyValidChange", "prevData", "isSubmitted", "isValid", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title"], [3, "visiblyValidChange", "prevData", "isSubmitted", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title", "isValid"], [3, "isSubmitted", "form", "config"]], template: function OntarioUpdateMaintainFormComponent_Template(rf, ctx) {
81552
81706
  if (rf & 1) {
81553
81707
  \u0275\u0275elementStart(0, "div", 0);
81554
81708
  \u0275\u0275template(1, OntarioUpdateMaintainFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, OntarioUpdateMaintainFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
@@ -81564,7 +81718,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81564
81718
  \u0275\u0275declareLet(14);
81565
81719
  \u0275\u0275elementStart(15, "expandable-card", 5);
81566
81720
  \u0275\u0275template(16, OntarioUpdateMaintainFormComponent_Conditional_16_Template, 1, 4, "filing-form-group", 9)(17, OntarioUpdateMaintainFormComponent_Conditional_17_Template, 3, 3, "h2", 10);
81567
- \u0275\u0275elementEnd()()();
81721
+ \u0275\u0275elementEnd();
81722
+ \u0275\u0275declareLet(18);
81723
+ \u0275\u0275template(19, OntarioUpdateMaintainFormComponent_Conditional_19_Template, 2, 6, "expandable-card", 5);
81724
+ \u0275\u0275elementEnd()();
81568
81725
  }
81569
81726
  if (rf & 2) {
81570
81727
  \u0275\u0275advance();
@@ -81572,27 +81729,31 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81572
81729
  \u0275\u0275advance();
81573
81730
  \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
81574
81731
  \u0275\u0275advance(2);
81575
- const generalInfoForm_r14 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.General));
81732
+ const generalInfoForm_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.General));
81576
81733
  \u0275\u0275advance();
81577
- \u0275\u0275conditional(generalInfoForm_r14 ? 5 : -1);
81734
+ \u0275\u0275conditional(generalInfoForm_r15 ? 5 : -1);
81578
81735
  \u0275\u0275advance();
81579
- const registeredOfficeAddress_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
81736
+ const registeredOfficeAddress_r16 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
81580
81737
  \u0275\u0275advance();
81581
- \u0275\u0275conditional(registeredOfficeAddress_r15 ? 7 : -1);
81738
+ \u0275\u0275conditional(registeredOfficeAddress_r16 ? 7 : -1);
81582
81739
  \u0275\u0275advance();
81583
- const directorsArray_r16 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
81740
+ const directorsArray_r17 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
81584
81741
  \u0275\u0275advance();
81585
- \u0275\u0275conditional(directorsArray_r16 && directorsArray_r16.length ? 9 : 10);
81742
+ \u0275\u0275conditional(directorsArray_r17 && directorsArray_r17.length ? 9 : 10);
81586
81743
  \u0275\u0275advance(2);
81587
- const officersArray_r17 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Officers));
81744
+ const officersArray_r18 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Officers));
81588
81745
  \u0275\u0275advance();
81589
- \u0275\u0275conditional(officersArray_r17 && officersArray_r17.length ? 12 : 13);
81746
+ \u0275\u0275conditional(officersArray_r18 && officersArray_r18.length ? 12 : 13);
81590
81747
  \u0275\u0275advance(2);
81591
- const certifiedBy_r18 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CertifiedBy));
81748
+ const certifiedBy_r19 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CertifiedBy));
81592
81749
  \u0275\u0275advance();
81593
- \u0275\u0275property("isStatusIcon", !ctx.readonly())("isValid", certifiedBy_r18 ? ctx.sectionValidity["certifiedBy"] : true)("title", ctx.groups.CertifiedBy);
81750
+ \u0275\u0275property("isStatusIcon", !ctx.readonly())("isValid", certifiedBy_r19 ? ctx.sectionValidity["certifiedBy"] : true)("title", ctx.groups.CertifiedBy);
81594
81751
  \u0275\u0275advance();
81595
- \u0275\u0275conditional(certifiedBy_r18 ? 16 : 17);
81752
+ \u0275\u0275conditional(certifiedBy_r19 ? 16 : 17);
81753
+ \u0275\u0275advance(2);
81754
+ const contact_r20 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.Contact));
81755
+ \u0275\u0275advance();
81756
+ \u0275\u0275conditional(contact_r20 ? 19 : -1);
81596
81757
  }
81597
81758
  }, dependencies: [
81598
81759
  FilingFormGroupComponent,
@@ -81611,143 +81772,158 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81611
81772
  ExpandableCardComponent,
81612
81773
  ExpandableListCardComponent,
81613
81774
  TranslatePipe
81614
- ], template: `<div class="ontario-update-maintain-form">\r
81615
- @if (isNote()) {\r
81616
- <alert\r
81617
- [type]="alertType.Info"\r
81618
- title="Entity changed"\r
81619
- content="A new draft needs to be generated as the Entity was changed since the last draft was produced."\r
81620
- />\r
81621
- }\r
81622
- \r
81623
- @if (errors().length) {\r
81624
- <alert\r
81625
- title="The following issues need to be resolved before proceeding:"\r
81626
- [content]="errors()"\r
81627
- />\r
81628
- }\r
81629
- \r
81630
- <div class="ontario-update-maintain-form-content">\r
81631
- <!-- ===== GENERAL INFO ===== -->\r
81632
- @let generalInfoForm = getFormGroup(groups.General);\r
81633
- @if (generalInfoForm) {\r
81634
- <expandable-card\r
81635
- [title]="groups.General"\r
81636
- [isStatusIcon]="!readonly()"\r
81637
- >\r
81638
- <filing-form-group\r
81639
- [isSubmitted]="isSubmitted()"\r
81640
- [prevData]="prevData()?.corporationInfo"\r
81641
- [form]="generalInfoForm"\r
81642
- [config]="generalCardFields"\r
81643
- [label]="groups.General"\r
81644
- (visiblyValidChange)="onSectionValidChange('generalInfo', $event)"\r
81645
- />\r
81646
- </expandable-card>\r
81647
- }\r
81648
- \r
81649
- <!-- =====REGISTERED OFFICE ADDRESS===== -->\r
81650
- @let registeredOfficeAddress = getFormGroup(groups.RegisteredOfficeAddress);\r
81651
- @if (registeredOfficeAddress) {\r
81652
- <expandable-card\r
81653
- [isStatusIcon]="!readonly()"\r
81654
- [isValid]="sectionValidity['registeredOffice']"\r
81655
- [title]="groups.RegisteredOfficeAddress"\r
81656
- >\r
81657
- <filing-form-group\r
81658
- [prevData]="prevData()?.corporationInfo"\r
81659
- [isSubmitted]="isSubmitted()"\r
81660
- [form]="registeredOfficeAddress"\r
81661
- [config]="\r
81662
- addressFieldsMap[\r
81663
- registeredOfficeAddress.get(controls.AffiliationAddressType)\r
81664
- ?.value\r
81665
- ]\r
81666
- "\r
81667
- (visiblyValidChange)="\r
81668
- onSectionValidChange('registeredOffice', $event)\r
81669
- "\r
81670
- />\r
81671
- </expandable-card>\r
81672
- }\r
81673
- \r
81674
- @let directorsArray = getFormArray(groups.Directors);\r
81675
- @if (directorsArray && directorsArray.length) {\r
81676
- @let isOpen =\r
81677
- (directorsArray?.length ?? 0) <= initiallyOpenCardsCount;\r
81678
- <expandable-list-card\r
81679
- [prevData]="prevData()?.directors"\r
81680
- [isSubmitted]="isSubmitted()"\r
81681
- [isValid]="sectionValidity['directors']"\r
81682
- [areItemsOpen]="isOpen"\r
81683
- [isStatusIcon]="!readonly()"\r
81684
- [config]="directorsFieldsMap"\r
81685
- [configKey]="controls.AffiliationAddressType"\r
81686
- [formArray]="directorsArray"\r
81687
- [title]="groups.Directors"\r
81688
- (visiblyValidChange)="onSectionValidChange('directors', $event)"\r
81689
- />\r
81690
- } @else {\r
81691
- <expandable-card [title]="groups.Directors">\r
81692
- <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
81693
- </expandable-card>\r
81694
- }\r
81695
- \r
81696
- @let officersArray = getFormArray(groups.Officers);\r
81697
- \r
81698
- \r
81699
- @if (officersArray && officersArray.length) {\r
81700
- @let isOpen =\r
81701
- (officersArray?.length ?? 0) <= initiallyOpenCardsCount;\r
81702
- \r
81703
- <expandable-list-card\r
81704
- [prevData]="prevData()?.officers"\r
81705
- [isSubmitted]="isSubmitted()"\r
81706
- [areItemsOpen]="isOpen"\r
81707
- [isStatusIcon]="!readonly()"\r
81708
- [config]="officersFieldsMap"\r
81709
- [configKey]="controls.AffiliationAddressType"\r
81710
- [formArray]="officersArray"\r
81711
- [title]="groups.Officers"\r
81712
- [isValid]="sectionValidity['officers']"\r
81713
- (visiblyValidChange)="onSectionValidChange('officers', $event)"\r
81714
- />\r
81715
- } @else {\r
81716
- <expandable-card [title]="groups.Officers">\r
81717
- <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
81718
- </expandable-card>\r
81719
- }\r
81720
- \r
81721
- @let certifiedBy = getFormGroup(groups.CertifiedBy);\r
81722
- <expandable-card\r
81723
- [isStatusIcon]="!readonly()"\r
81724
- [isValid]="certifiedBy ? sectionValidity['certifiedBy'] : true"\r
81725
- [title]="groups.CertifiedBy"\r
81726
- >\r
81727
- @if (certifiedBy) {\r
81728
- <filing-form-group\r
81729
- [prevData]="prevData()?.corporationInfo"\r
81730
- [isSubmitted]="isSubmitted()"\r
81731
- [form]="certifiedBy"\r
81732
- [config]="\r
81733
- certifiedByFieldsMap[\r
81734
- certifiedBy.get(controls.AffiliationAddressType)?.value\r
81735
- ]\r
81736
- "\r
81737
- (visiblyValidChange)="onSectionValidChange('certifiedBy', $event)"\r
81738
- />\r
81739
- } @else {\r
81740
- <h2 class="body-1-regular">{{ 'Not specified' | translate }}</h2>\r
81741
- }\r
81742
- \r
81743
- </expandable-card>\r
81744
- </div>\r
81745
- </div>\r
81775
+ ], template: `<div class="ontario-update-maintain-form">
81776
+ @if (isNote()) {
81777
+ <alert
81778
+ [type]="alertType.Info"
81779
+ title="Entity changed"
81780
+ content="A new draft needs to be generated as the Entity was changed since the last draft was produced."
81781
+ />
81782
+ }
81783
+
81784
+ @if (errors().length) {
81785
+ <alert
81786
+ title="The following issues need to be resolved before proceeding:"
81787
+ [content]="errors()"
81788
+ />
81789
+ }
81790
+
81791
+ <div class="ontario-update-maintain-form-content">
81792
+ <!-- ===== GENERAL INFO ===== -->
81793
+ @let generalInfoForm = getFormGroup(groups.General);
81794
+ @if (generalInfoForm) {
81795
+ <expandable-card
81796
+ [title]="groups.General"
81797
+ [isStatusIcon]="!readonly()"
81798
+ >
81799
+ <filing-form-group
81800
+ [isSubmitted]="isSubmitted()"
81801
+ [prevData]="prevData()?.corporationInfo"
81802
+ [form]="generalInfoForm"
81803
+ [config]="generalCardFields"
81804
+ [label]="groups.General"
81805
+ (visiblyValidChange)="onSectionValidChange('generalInfo', $event)"
81806
+ />
81807
+ </expandable-card>
81808
+ }
81809
+
81810
+ <!-- =====REGISTERED OFFICE ADDRESS===== -->
81811
+ @let registeredOfficeAddress = getFormGroup(groups.RegisteredOfficeAddress);
81812
+ @if (registeredOfficeAddress) {
81813
+ <expandable-card
81814
+ [isStatusIcon]="!readonly()"
81815
+ [isValid]="sectionValidity['registeredOffice']"
81816
+ [title]="groups.RegisteredOfficeAddress"
81817
+ >
81818
+ <filing-form-group
81819
+ [prevData]="prevData()?.corporationInfo"
81820
+ [isSubmitted]="isSubmitted()"
81821
+ [form]="registeredOfficeAddress"
81822
+ [config]="
81823
+ addressFieldsMap[
81824
+ registeredOfficeAddress.get(controls.AffiliationAddressType)
81825
+ ?.value
81826
+ ]
81827
+ "
81828
+ (visiblyValidChange)="
81829
+ onSectionValidChange('registeredOffice', $event)
81830
+ "
81831
+ />
81832
+ </expandable-card>
81833
+ }
81834
+
81835
+ @let directorsArray = getFormArray(groups.Directors);
81836
+ @if (directorsArray && directorsArray.length) {
81837
+ @let isOpen =
81838
+ (directorsArray?.length ?? 0) <= initiallyOpenCardsCount;
81839
+ <expandable-list-card
81840
+ [prevData]="prevData()?.directors"
81841
+ [isSubmitted]="isSubmitted()"
81842
+ [isValid]="sectionValidity['directors']"
81843
+ [areItemsOpen]="isOpen"
81844
+ [isStatusIcon]="!readonly()"
81845
+ [config]="directorsFieldsMap"
81846
+ [configKey]="controls.AffiliationAddressType"
81847
+ [formArray]="directorsArray"
81848
+ [title]="groups.Directors"
81849
+ (visiblyValidChange)="onSectionValidChange('directors', $event)"
81850
+ />
81851
+ } @else {
81852
+ <expandable-card [title]="groups.Directors">
81853
+ <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>
81854
+ </expandable-card>
81855
+ }
81856
+
81857
+ @let officersArray = getFormArray(groups.Officers);
81858
+
81859
+
81860
+ @if (officersArray && officersArray.length) {
81861
+ @let isOpen =
81862
+ (officersArray?.length ?? 0) <= initiallyOpenCardsCount;
81863
+
81864
+ <expandable-list-card
81865
+ [prevData]="prevData()?.officers"
81866
+ [isSubmitted]="isSubmitted()"
81867
+ [areItemsOpen]="isOpen"
81868
+ [isStatusIcon]="!readonly()"
81869
+ [config]="officersFieldsMap"
81870
+ [configKey]="controls.AffiliationAddressType"
81871
+ [formArray]="officersArray"
81872
+ [title]="groups.Officers"
81873
+ [isValid]="sectionValidity['officers']"
81874
+ (visiblyValidChange)="onSectionValidChange('officers', $event)"
81875
+ />
81876
+ } @else {
81877
+ <expandable-card [title]="groups.Officers">
81878
+ <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>
81879
+ </expandable-card>
81880
+ }
81881
+
81882
+ @let certifiedBy = getFormGroup(groups.CertifiedBy);
81883
+ <expandable-card
81884
+ [isStatusIcon]="!readonly()"
81885
+ [isValid]="certifiedBy ? sectionValidity['certifiedBy'] : true"
81886
+ [title]="groups.CertifiedBy"
81887
+ >
81888
+ @if (certifiedBy) {
81889
+ <filing-form-group
81890
+ [prevData]="prevData()?.corporationInfo"
81891
+ [isSubmitted]="isSubmitted()"
81892
+ [form]="certifiedBy"
81893
+ [config]="
81894
+ certifiedByFieldsMap[
81895
+ certifiedBy.get(controls.AffiliationAddressType)?.value
81896
+ ]
81897
+ "
81898
+ (visiblyValidChange)="onSectionValidChange('certifiedBy', $event)"
81899
+ />
81900
+ } @else {
81901
+ <h2 class="body-1-regular">{{ 'Not specified' | translate }}</h2>
81902
+ }
81903
+
81904
+ </expandable-card>
81905
+
81906
+ @let contact = getFormGroup(groups.Contact);
81907
+ @if (contact) {
81908
+ <expandable-card
81909
+ [isStatusIcon]="!readonly()"
81910
+ [isValid]="!contact.invalid"
81911
+ [title]="groups.Contact"
81912
+ >
81913
+ <filing-form-group
81914
+ [isSubmitted]="isSubmitted()"
81915
+ [form]="contact"
81916
+ [config]="contactsFields"
81917
+ />
81918
+ </expandable-card>
81919
+ }
81920
+ </div>
81921
+ </div>
81746
81922
  `, styles: ["/* src/app/components/ontario/update-maintain/update-maintain-form/update-maintain-form.component.scss */\n:host .ontario-update-maintain-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n overflow-y: auto;\n}\n:host .ontario-update-maintain-form-content {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n:host .ontario-update-maintain-form-section {\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n:host .ontario-update-maintain-form-section-title {\n font-size: 14px;\n font-weight: 600;\n color: var(--filing-modal-color-dark-blue, #1a2e5a);\n margin: 0;\n padding-bottom: 8px;\n border-bottom: 1px solid var(--color-border, #e0e0e0);\n}\n:host .ontario-update-maintain-form-principal {\n padding: 12px 0;\n border-bottom: 1px solid var(--color-border, #e0e0e0);\n}\n:host .ontario-update-maintain-form-principal:last-child {\n border-bottom: none;\n}\n/*# sourceMappingURL=update-maintain-form.component.css.map */\n"] }]
81747
- }], null, null);
81923
+ }], () => [], null);
81748
81924
  })();
81749
81925
  (() => {
81750
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(OntarioUpdateMaintainFormComponent, { className: "OntarioUpdateMaintainFormComponent", filePath: "src/app/components/ontario/update-maintain/update-maintain-form/update-maintain-form.component.ts", lineNumber: 41 });
81926
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(OntarioUpdateMaintainFormComponent, { className: "OntarioUpdateMaintainFormComponent", filePath: "src/app/components/ontario/update-maintain/update-maintain-form/update-maintain-form.component.ts", lineNumber: 43 });
81751
81927
  })();
81752
81928
  }
81753
81929
  });
@@ -81857,38 +82033,38 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81857
82033
  MatButton,
81858
82034
  TranslatePipe,
81859
82035
  OntarioUpdateMaintainFormComponent
81860
- ], template: `<div class="ontario-update-maintain-delta-form">\r
81861
- <ontario-update-maintain-form\r
81862
- class="ontario-update-maintain-delta-form-content"\r
81863
- [form]="form()"\r
81864
- [task]="task()"\r
81865
- [errors]="combinedErrors()"\r
81866
- [isNote]="isNote()"\r
81867
- [isSubmitted]="submitted()"\r
81868
- [readonly]="false"\r
81869
- [prevData]="prevData()"\r
81870
- (visiblyValidChange)="onVisiblyValidChange($event)"\r
81871
- />\r
81872
- \r
81873
- <div class="ontario-update-maintain-delta-form-actions">\r
81874
- <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
81875
- <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
81876
- </button>\r
81877
- <button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>\r
81878
- <span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>\r
81879
- </button>\r
81880
- <button\r
81881
- class="submit"\r
81882
- color="primary"\r
81883
- mat-flat-button\r
81884
- [disabled]="actionsDisabled()"\r
81885
- (click)="onValidate()"\r
81886
- >\r
81887
- <span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>\r
81888
- </button>\r
81889
- </div>\r
81890
- </div>\r
81891
- \r
82036
+ ], template: `<div class="ontario-update-maintain-delta-form">
82037
+ <ontario-update-maintain-form
82038
+ class="ontario-update-maintain-delta-form-content"
82039
+ [form]="form()"
82040
+ [task]="task()"
82041
+ [errors]="combinedErrors()"
82042
+ [isNote]="isNote()"
82043
+ [isSubmitted]="submitted()"
82044
+ [readonly]="false"
82045
+ [prevData]="prevData()"
82046
+ (visiblyValidChange)="onVisiblyValidChange($event)"
82047
+ />
82048
+
82049
+ <div class="ontario-update-maintain-delta-form-actions">
82050
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">
82051
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>
82052
+ </button>
82053
+ <button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>
82054
+ <span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>
82055
+ </button>
82056
+ <button
82057
+ class="submit"
82058
+ color="primary"
82059
+ mat-flat-button
82060
+ [disabled]="actionsDisabled()"
82061
+ (click)="onValidate()"
82062
+ >
82063
+ <span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>
82064
+ </button>
82065
+ </div>
82066
+ </div>
82067
+
81892
82068
  `, styles: ["/* src/app/components/ontario/update-maintain/steps/delta/update-maintain-delta-form.component.scss */\n:host .ontario-update-maintain-delta-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .ontario-update-maintain-delta-form-content {\n flex: 1;\n min-height: 0;\n}\n:host .ontario-update-maintain-delta-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .ontario-update-maintain-delta-form-actions button {\n margin: 0;\n}\n:host .ontario-update-maintain-delta-form-actions .submit {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=update-maintain-delta-form.component.css.map */\n"] }]
81893
82069
  }], null, null);
81894
82070
  })();
@@ -81963,32 +82139,32 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81963
82139
  MatButton,
81964
82140
  OntarioUpdateMaintainFormComponent,
81965
82141
  TranslatePipe
81966
- ], template: `<div class="ontario-update-maintain-preview-form">\r
81967
- <ontario-update-maintain-form\r
81968
- class="ontario-update-maintain-preview-form-content"\r
81969
- [form]="form()"\r
81970
- [task]="task()"\r
81971
- [errors]="errors()"\r
81972
- [isSubmitted]="false"\r
81973
- [readonly]="false"\r
81974
- />\r
81975
- \r
81976
- <div class="ontario-update-maintain-preview-form-actions">\r
81977
- <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
81978
- <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
81979
- </button>\r
81980
- <button\r
81981
- class="submit"\r
81982
- color="primary"\r
81983
- mat-flat-button\r
81984
- [disabled]="actionsDisabled()"\r
81985
- (click)="file.emit()"\r
81986
- >\r
81987
- <span class="body-1-semibold">{{ 'File' | translate }}</span>\r
81988
- </button>\r
81989
- </div>\r
81990
- </div>\r
81991
- \r
82142
+ ], template: `<div class="ontario-update-maintain-preview-form">
82143
+ <ontario-update-maintain-form
82144
+ class="ontario-update-maintain-preview-form-content"
82145
+ [form]="form()"
82146
+ [task]="task()"
82147
+ [errors]="errors()"
82148
+ [isSubmitted]="false"
82149
+ [readonly]="false"
82150
+ />
82151
+
82152
+ <div class="ontario-update-maintain-preview-form-actions">
82153
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">
82154
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>
82155
+ </button>
82156
+ <button
82157
+ class="submit"
82158
+ color="primary"
82159
+ mat-flat-button
82160
+ [disabled]="actionsDisabled()"
82161
+ (click)="file.emit()"
82162
+ >
82163
+ <span class="body-1-semibold">{{ 'File' | translate }}</span>
82164
+ </button>
82165
+ </div>
82166
+ </div>
82167
+
81992
82168
  `, styles: ["/* src/app/components/ontario/update-maintain/steps/preview/update-maintain-preview-form.component.scss */\n:host .ontario-update-maintain-preview-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .ontario-update-maintain-preview-form-content {\n flex: 1;\n min-height: 0;\n}\n:host .ontario-update-maintain-preview-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .ontario-update-maintain-preview-form-actions button {\n margin: 0;\n}\n:host .ontario-update-maintain-preview-form-actions .submit {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=update-maintain-preview-form.component.css.map */\n"] }]
81993
82169
  }], null, null);
81994
82170
  })();
@@ -82209,7 +82385,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
82209
82385
  this.formationInitialDeltaValue.set(this.generateFormationDeltaData());
82210
82386
  }
82211
82387
  if (task && isUpdateMaintain(task)) {
82212
- const fieldsConfig = OntarioUpdateMaintainFormHelper.generateInitialForm(task);
82388
+ const fieldsConfig = OntarioUpdateMaintainFormHelper.generateInitialForm(task, this.prevData());
82213
82389
  this.deltaForm.set(new FormGroup(fieldsConfig));
82214
82390
  this.initialReturnInitialDeltaValue.set(this.generateInitialReturnDeltaData());
82215
82391
  }
@@ -82226,13 +82402,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
82226
82402
  }
82227
82403
  }
82228
82404
  if (task && isUpdateMaintain(task) && deltaData) {
82229
- const fieldsConfig = OntarioUpdateMaintainFormHelper.generateInitialForm(task);
82405
+ const fieldsConfig = OntarioUpdateMaintainFormHelper.generateInitialForm(task, this.prevData());
82230
82406
  const form = new FormGroup(fieldsConfig);
82231
82407
  form.disable();
82232
82408
  this.previewForm.set(form);
82233
- if (untracked2(() => this.activeStep()) === Step.Validate) {
82234
- this.nextStep.emit();
82235
- }
82236
82409
  }
82237
82410
  });
82238
82411
  }
@@ -82263,42 +82436,90 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
82263
82436
  onIrSubmit(termsAndConditions) {
82264
82437
  this.irSubmit.emit();
82265
82438
  }
82439
+ isInternationalAddress(src, addressTypeControl, countryCodeControl) {
82440
+ const addressType = src?.[addressTypeControl];
82441
+ if (addressType === AffiliationAddressType.InternationalNoSuite || addressType === AffiliationAddressType.InternationalSuite) {
82442
+ return true;
82443
+ }
82444
+ const countryCode = (src?.[countryCodeControl] ?? "").toString().toUpperCase();
82445
+ return Boolean(countryCode) && !["CA", "US"].includes(countryCode);
82446
+ }
82447
+ mapAddressDelta(src, controls) {
82448
+ if (this.isInternationalAddress(src, controls.addressType, controls.countryCode)) {
82449
+ return {
82450
+ unitType: null,
82451
+ unitNumber: null,
82452
+ streetNumber: null,
82453
+ streetName: null,
82454
+ streetType: null,
82455
+ streetDirection: null
82456
+ };
82457
+ }
82458
+ return {
82459
+ unitType: src?.[controls.unitType] ?? null,
82460
+ unitNumber: src?.[controls.unitNumber] ?? null,
82461
+ streetNumber: src?.[controls.streetNumber] ?? null,
82462
+ streetName: src?.[controls.streetName] ?? null,
82463
+ streetType: src?.[controls.streetType] ?? null,
82464
+ streetDirection: src?.[controls.streetDirection] ?? null
82465
+ };
82466
+ }
82467
+ mapIRAddressDelta(src) {
82468
+ return this.mapAddressDelta(src, {
82469
+ unitType: IRFormControls.UnitType,
82470
+ unitNumber: IRFormControls.UnitNumber,
82471
+ streetNumber: IRFormControls.StreetNumber,
82472
+ streetName: IRFormControls.StreetName,
82473
+ streetType: IRFormControls.StreetType,
82474
+ streetDirection: IRFormControls.StreetDirection,
82475
+ addressType: IRFormControls.AffiliationAddressType,
82476
+ countryCode: IRFormControls.CountryCode
82477
+ });
82478
+ }
82479
+ mapFormationAddressDelta(src) {
82480
+ return this.mapAddressDelta(src, {
82481
+ unitType: FormationFormControls.UnitType,
82482
+ unitNumber: FormationFormControls.UnitNumber,
82483
+ streetNumber: FormationFormControls.StreetNumber,
82484
+ streetName: FormationFormControls.StreetName,
82485
+ streetType: FormationFormControls.StreetType,
82486
+ streetDirection: FormationFormControls.StreetDirection,
82487
+ addressType: FormationFormControls.AffiliationAddressType,
82488
+ countryCode: FormationFormControls.CountryCode
82489
+ });
82490
+ }
82266
82491
  generateInitialReturnDeltaData() {
82267
82492
  const formData = this.deltaForm().getRawValue();
82268
82493
  const generalInfo = formData[InitialReturnFillingFormGroups.General];
82269
82494
  const registeredOffice = formData[InitialReturnFillingFormGroups.RegisteredOfficeAddress];
82270
82495
  const certifiedBy = formData[InitialReturnFillingFormGroups.CertifiedBy];
82271
- const mapAddress3 = (src) => ({
82272
- unitType: src?.[IRFormControls.UnitType] ?? null,
82273
- unitNumber: src?.[IRFormControls.UnitNumber] ?? null,
82274
- streetNumber: src?.[IRFormControls.StreetNumber] ?? null,
82275
- streetName: src?.[IRFormControls.StreetName] ?? null,
82276
- streetType: src?.[IRFormControls.StreetType] ?? null,
82277
- streetDirection: src?.[IRFormControls.StreetDirection] ?? null
82278
- });
82496
+ const contact = formData[InitialReturnFillingFormGroups.Contact];
82279
82497
  const mapPersons = (items) => (items ?? []).reduce((acc, item) => {
82280
82498
  const id = item[IRFormControls.ID];
82281
82499
  if (id) {
82282
82500
  acc[id] = {
82283
- address: mapAddress3(item),
82501
+ address: this.mapIRAddressDelta(item),
82502
+ currentName: item[IRFormControls.CurrentName] ?? "",
82284
82503
  residentCanadian: item[IRFormControls.IsCanadianResident] ?? false
82285
82504
  };
82286
82505
  }
82287
82506
  return acc;
82288
82507
  }, {});
82289
- return __spreadValues({
82508
+ return __spreadProps(__spreadValues({
82290
82509
  referenceNumbers: {
82291
82510
  referenceNumber: generalInfo?.[IRFormControls.ClientMatterNumber] ?? null,
82292
82511
  docketNumber: generalInfo?.[IRFormControls.Docket] ?? null
82293
82512
  },
82294
- registeredOfficeAddress: mapAddress3(registeredOffice),
82513
+ registeredOfficeAddress: this.mapIRAddressDelta(registeredOffice),
82295
82514
  directors: mapPersons(formData[InitialReturnFillingFormGroups.Directors]),
82296
82515
  officers: mapPersons(formData[InitialReturnFillingFormGroups.Officers])
82297
82516
  }, certifiedBy ? {
82298
82517
  certifiedBy: {
82299
- address: mapAddress3(certifiedBy)
82518
+ address: this.mapIRAddressDelta(certifiedBy)
82300
82519
  }
82301
- } : {});
82520
+ } : {}), {
82521
+ contactUid: contact?.[IRFormControls.Contact] ?? null
82522
+ });
82302
82523
  }
82303
82524
  generateFormationDeltaData(termsAndConditions) {
82304
82525
  const formData = this.deltaForm().getRawValue();
@@ -82322,26 +82543,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
82322
82543
  nuansReportFrenchReferenceNumber: corpDetails?.[FormationFormControls.NuansReportReferenceFr] ?? null,
82323
82544
  nuansReportFrenchReferenceDate: corpDetails?.[FormationFormControls.NuansReportDateFr] ?? null
82324
82545
  },
82325
- registeredOfficeAddress: {
82326
- unitType: registeredOffice?.[FormationFormControls.UnitType] ?? null,
82327
- unitNumber: registeredOffice?.[FormationFormControls.UnitNumber] ?? null,
82328
- streetNumber: registeredOffice?.[FormationFormControls.StreetNumber] ?? null,
82329
- streetName: registeredOffice?.[FormationFormControls.StreetName] ?? null,
82330
- streetType: registeredOffice?.[FormationFormControls.StreetType] ?? null,
82331
- streetDirection: registeredOffice?.[FormationFormControls.StreetDirection] ?? null
82332
- },
82546
+ registeredOfficeAddress: this.mapFormationAddressDelta(registeredOffice),
82333
82547
  directors: (formData[FormationFormGroups.Directors] ?? []).reduce((acc, d) => {
82334
82548
  const id = d[FormationFormControls.Id];
82335
82549
  if (id) {
82336
82550
  acc[id] = {
82337
- address: {
82338
- unitType: d[FormationFormControls.UnitType] ?? null,
82339
- unitNumber: d[FormationFormControls.UnitNumber] ?? null,
82340
- streetNumber: d[FormationFormControls.StreetNumber] ?? null,
82341
- streetName: d[FormationFormControls.StreetName] ?? null,
82342
- streetType: d[FormationFormControls.StreetType] ?? null,
82343
- streetDirection: d[FormationFormControls.StreetDirection] ?? null
82344
- },
82551
+ address: this.mapFormationAddressDelta(d),
82345
82552
  residentCanadian: d[FormationFormControls.IsResident] ?? false
82346
82553
  };
82347
82554
  }
@@ -82351,14 +82558,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
82351
82558
  const id = inc[FormationFormControls.Id];
82352
82559
  if (id) {
82353
82560
  acc[id] = {
82354
- address: {
82355
- unitType: inc[FormationFormControls.UnitType] ?? null,
82356
- unitNumber: inc[FormationFormControls.UnitNumber] ?? null,
82357
- streetNumber: inc[FormationFormControls.StreetNumber] ?? null,
82358
- streetName: inc[FormationFormControls.StreetName] ?? null,
82359
- streetType: inc[FormationFormControls.StreetType] ?? null,
82360
- streetDirection: inc[FormationFormControls.StreetDirection] ?? null
82361
- },
82561
+ address: this.mapFormationAddressDelta(inc),
82362
82562
  residentCanadian: inc[FormationFormControls.IsResident] ?? false
82363
82563
  };
82364
82564
  }
@@ -82369,14 +82569,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
82369
82569
  data.legalOpinion = {
82370
82570
  wasLegalOpinionObtained: corpDetails?.[FormationFormControls.wasLegalOpinionObtained] ?? false,
82371
82571
  lawyerSigning: legalOpinionData?.[FormationFormControls.LawyerSigningOpinion] ?? null,
82372
- address: {
82373
- unitType: legalOpinionData?.[FormationFormControls.UnitType] ?? null,
82374
- unitNumber: legalOpinionData?.[FormationFormControls.UnitNumber] ?? null,
82375
- streetNumber: legalOpinionData?.[FormationFormControls.StreetNumber] ?? null,
82376
- streetName: legalOpinionData?.[FormationFormControls.StreetName] ?? null,
82377
- streetType: legalOpinionData?.[FormationFormControls.StreetType] ?? null,
82378
- streetDirection: legalOpinionData?.[FormationFormControls.StreetDirection] ?? null
82379
- }
82572
+ address: this.mapFormationAddressDelta(legalOpinionData)
82380
82573
  };
82381
82574
  }
82382
82575
  if (termsAndConditions) {
@@ -82441,7 +82634,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
82441
82634
  OntarioIncorporationDeltaFormComponent,
82442
82635
  OntarioIncorporationPreviewFormComponent,
82443
82636
  TermsAndConditionsComponent
82444
- ], template: '@let taskData = this.task();\r\n\r\n@if (isFormationTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <ontario-incorporation-delta-form\r\n [task]="taskData"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [form]="deltaForm()"\r\n (validate)="onFormationValidate()"\r\n (close)="onClose()"\r\n (save)="onFormationSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <ontario-incorporation-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n (next)="nextStep.emit()"\r\n (close)="close.emit()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.TermsAndConditions) {\r\n <terms-and-conditions\r\n (prev)="prevStep.emit()"\r\n (close)="close.emit()"\r\n (confirm)="onFormationSubmit($event)"\r\n />\r\n }\r\n}\r\n\r\n@if (isInitialReturnTask(task())) {\r\n @if (activeStep() === steps.Validate) {\r\n <ontario-update-maintain-delta-form\r\n [task]="$any(task())"\r\n [form]="deltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [prevData]="prevData()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onInitialReturnValidate()"\r\n (close)="onClose()"\r\n (save)="onInitialReturnSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <ontario-update-maintain-preview-form\r\n [task]="$any(task())"\r\n [form]="previewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="nextStep.emit()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.TermsAndConditions) {\r\n <terms-and-conditions\r\n (prev)="prevStep.emit()"\r\n (close)="close.emit()"\r\n (confirm)="onIrSubmit($event)"\r\n />\r\n }\r\n}\r\n', styles: ["/* src/app/components/ontario/ontario.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=ontario.component.css.map */\n"] }]
82637
+ ], template: '@let taskData = this.task();\n\n@if (isFormationTask(taskData)) {\n @if (activeStep() === steps.Validate) {\n <ontario-incorporation-delta-form\n [task]="taskData"\n [errors]="errors()"\n [isNote]="isNote()"\n [actionsDisabled]="actionsDisabled()"\n [form]="deltaForm()"\n (validate)="onFormationValidate()"\n (close)="onClose()"\n (save)="onFormationSave()"\n />\n }\n\n @if (activeStep() === steps.FilingPreview) {\n <ontario-incorporation-preview-form\n [task]="taskData"\n [form]="previewForm()"\n [actionsDisabled]="actionsDisabled()"\n (next)="nextStep.emit()"\n (close)="close.emit()"\n />\n }\n\n @if (activeStep() === steps.TermsAndConditions) {\n <terms-and-conditions\n (prev)="prevStep.emit()"\n (close)="close.emit()"\n (confirm)="onFormationSubmit($event)"\n />\n }\n}\n\n@if (isInitialReturnTask(task())) {\n @if (activeStep() === steps.Validate) {\n <ontario-update-maintain-delta-form\n [task]="$any(task())"\n [form]="deltaForm()"\n [actionsDisabled]="actionsDisabled()"\n [prevData]="prevData()"\n [errors]="errors()"\n [isNote]="isNote()"\n (validate)="onInitialReturnValidate()"\n (close)="onClose()"\n (save)="onInitialReturnSave()"\n />\n }\n\n @if (activeStep() === steps.FilingPreview) {\n <ontario-update-maintain-preview-form\n [task]="$any(task())"\n [form]="previewForm()"\n [actionsDisabled]="actionsDisabled()"\n [errors]="errors()"\n (close)="close.emit()"\n (file)="nextStep.emit()"\n />\n }\n\n @if (activeStep() === steps.TermsAndConditions) {\n <terms-and-conditions\n (prev)="prevStep.emit()"\n (close)="close.emit()"\n (confirm)="onIrSubmit($event)"\n />\n }\n}\n', styles: ["/* src/app/components/ontario/ontario.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=ontario.component.css.map */\n"] }]
82445
82638
  }], () => [], null);
82446
82639
  })();
82447
82640
  (() => {
@@ -83546,39 +83739,39 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
83546
83739
  (() => {
83547
83740
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(SelectModalComponent, [{
83548
83741
  type: Component,
83549
- args: [{ standalone: true, selector: "add-documents-modal", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButtonModule, MatDialogModule, MatIconModule, TranslatePipe, MatCheckbox], template: `<div class="add-documents-modal">\r
83550
- <div class="add-documents-modal-header">\r
83551
- <h2 class="grey">{{ dialogData.title | translate }}</h2>\r
83552
- </div>\r
83553
- \r
83554
- <div class="add-documents-modal-list">\r
83555
- @for (doc of dialogData.items; track doc) {\r
83556
- <div (click)="toggleDocument(doc)" class="add-documents-modal-list-item">\r
83557
- <mat-checkbox [checked]="isSelected(doc)"/>\r
83558
- <span class="body-1-regular">{{ doc }}</span>\r
83559
- </div>\r
83560
- }\r
83561
- </div>\r
83562
- \r
83563
- <div class="add-documents-modal-actions">\r
83564
- <button\r
83565
- mat-stroked-button mat-button\r
83566
- (click)="closeModal()"\r
83567
- >\r
83568
- <span class="body-1-semibold">{{ 'Cancel' | translate }}</span>\r
83569
- </button>\r
83570
- \r
83571
- <button\r
83572
- class="submit"\r
83573
- mat-flat-button\r
83574
- [disabled]="!hasSelection()"\r
83575
- (click)="addSelectedDocuments()"\r
83576
- >\r
83577
- <span class="body-1-semibold">{{ dialogData.submitButton | translate }}</span>\r
83578
- </button>\r
83579
- </div>\r
83580
- \r
83581
- </div>\r
83742
+ args: [{ standalone: true, selector: "add-documents-modal", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButtonModule, MatDialogModule, MatIconModule, TranslatePipe, MatCheckbox], template: `<div class="add-documents-modal">
83743
+ <div class="add-documents-modal-header">
83744
+ <h2 class="grey">{{ dialogData.title | translate }}</h2>
83745
+ </div>
83746
+
83747
+ <div class="add-documents-modal-list">
83748
+ @for (doc of dialogData.items; track doc) {
83749
+ <div (click)="toggleDocument(doc)" class="add-documents-modal-list-item">
83750
+ <mat-checkbox [checked]="isSelected(doc)"/>
83751
+ <span class="body-1-regular">{{ doc }}</span>
83752
+ </div>
83753
+ }
83754
+ </div>
83755
+
83756
+ <div class="add-documents-modal-actions">
83757
+ <button
83758
+ mat-stroked-button mat-button
83759
+ (click)="closeModal()"
83760
+ >
83761
+ <span class="body-1-semibold">{{ 'Cancel' | translate }}</span>
83762
+ </button>
83763
+
83764
+ <button
83765
+ class="submit"
83766
+ mat-flat-button
83767
+ [disabled]="!hasSelection()"
83768
+ (click)="addSelectedDocuments()"
83769
+ >
83770
+ <span class="body-1-semibold">{{ dialogData.submitButton | translate }}</span>
83771
+ </button>
83772
+ </div>
83773
+
83774
+ </div>
83582
83775
  `, styles: ['/* src/app/components/federal/components/select-modal/select-modal.component.scss */\n.filling {\n height: 100%;\n overflow: hidden;\n}\n* {\n box-sizing: border-box;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n}\n.filling {\n margin: 0;\n font-family: "Helvetica Neue", sans-serif;\n}\n.filing {\n --app-font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Helvetica Neue",\n Helvetica,\n Arial,\n sans-serif;\n --mat-sys-background: #faf9fd;\n --mat-sys-error: #ba1a1a;\n --mat-sys-error-container: #ffdad6;\n --mat-sys-inverse-on-surface: #f2f0f4;\n --mat-sys-inverse-primary: #abc7ff;\n --mat-sys-inverse-surface: #2f3033;\n --mat-sys-on-background: #1a1b1f;\n --mat-sys-on-error: #ffffff;\n --mat-sys-on-error-container: #93000a;\n --mat-sys-on-primary: #ffffff;\n --mat-sys-on-primary-container: #00458f;\n --mat-sys-on-primary-fixed: #001b3f;\n --mat-sys-on-primary-fixed-variant: #00458f;\n --mat-sys-on-secondary: #ffffff;\n --mat-sys-on-secondary-container: #3e4759;\n --mat-sys-on-secondary-fixed: #131c2b;\n --mat-sys-on-secondary-fixed-variant: #3e4759;\n --mat-sys-on-surface: #1a1b1f;\n --mat-sys-on-surface-variant: var(--filing-modal-color-grey);\n --mat-sys-on-tertiary: #ffffff;\n --mat-sys-on-tertiary-container: #0000ef;\n --mat-sys-on-tertiary-fixed: #00006e;\n --mat-sys-on-tertiary-fixed-variant: #0000ef;\n --mat-sys-outline: #74777f;\n --mat-sys-outline-variant: #c4c6d0;\n --mat-sys-primary: #3778e4;\n --mat-sys-primary-container: #d7e3ff;\n --mat-sys-primary-fixed: #d7e3ff;\n --mat-sys-primary-fixed-dim: #abc7ff;\n --mat-sys-scrim: #000000;\n --mat-sys-secondary: #565e71;\n --mat-sys-secondary-container: #dae2f9;\n --mat-sys-secondary-fixed: #dae2f9;\n --mat-sys-secondary-fixed-dim: #bec6dc;\n --mat-sys-shadow: #000000;\n --mat-sys-surface: #faf9fd;\n --mat-sys-surface-bright: #faf9fd;\n --mat-sys-surface-container: #efedf0;\n --mat-sys-surface-container-high: #e9e7eb;\n --mat-sys-surface-container-highest: #e3e2e6;\n --mat-sys-surface-container-low: #f4f3f6;\n --mat-sys-surface-container-lowest: #ffffff;\n --mat-sys-surface-dim: #dbd9dd;\n --mat-sys-surface-tint: #005cbb;\n --mat-sys-surface-variant: #e0e2ec;\n --mat-sys-tertiary: #343dff;\n --mat-sys-tertiary-container: #e0e0ff;\n --mat-sys-tertiary-fixed: #e0e0ff;\n --mat-sys-tertiary-fixed-dim: #bec2ff;\n --mat-sys-neutral-variant20: #2d3038;\n --mat-sys-neutral10: #1a1b1f;\n --mdc-filled-button-container-height: 35px;\n --mdc-outlined-button-container-height: 35px;\n --mdc-text-button-label-text-color: #808090;\n --mdc-filled-button-label-text-weight: 600;\n --mdc-text-button-label-text-weight: 600;\n --mdc-filled-button-container-shape: 4px;\n --mdc-outlined-button-outline-color: none;\n --mdc-outlined-button-container-shape: 6px;\n --mat-sys-level0:\n 0px 0px 0px 0px rgba(0, 0, 0, 0.2),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.14),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level1:\n 0px 2px 1px -1px rgba(0, 0, 0, 0.2),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level2:\n 0px 3px 3px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 4px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 8px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level3:\n 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 6px 10px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level4:\n 0px 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0px 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n --mat-sys-level5:\n 0px 7px 8px -4px rgba(0, 0, 0, 0.2),\n 0px 12px 17px 2px rgba(0, 0, 0, 0.14),\n 0px 5px 22px 4px rgba(0, 0, 0, 0.12);\n --mdc-outlined-button-label-text-size: 14px;\n --mdc-filled-button-label-text-size: 14px;\n --mdc-filled-text-field-label-text-size: 16px;\n --mat-sys-body-large: 400 1rem / 1.5rem var(--app-font-family);\n --mat-sys-body-large-font: var(--app-font-family);\n --mat-sys-body-large-line-height: 1.5rem;\n --mat-sys-body-large-size: 14px;\n --mat-sys-body-large-tracking: 0.031rem;\n --mat-sys-body-large-weight: 400;\n --mat-sys-body-medium: 400 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-body-medium-font: var(--app-font-family);\n --mat-sys-body-medium-line-height: 1.25rem;\n --mat-sys-body-medium-size: 0.875rem;\n --mat-sys-body-medium-tracking: 0.016rem;\n --mat-sys-body-medium-weight: 400;\n --mat-sys-body-small: 400 0.75rem / 1rem var(--app-font-family);\n --mat-sys-body-small-font: var(--app-font-family);\n --mat-sys-body-small-line-height: 1rem;\n --mat-sys-body-small-size: 0.75rem;\n --mat-sys-body-small-tracking: 0.025rem;\n --mat-sys-body-small-weight: 400;\n --mat-sys-display-large: 400 3.562rem / 4rem var(--app-font-family);\n --mat-sys-display-large-font: var(--app-font-family);\n --mat-sys-display-large-line-height: 4rem;\n --mat-sys-display-large-size: 3.562rem;\n --mat-sys-display-large-tracking: -0.016rem;\n --mat-sys-display-large-weight: 400;\n --mat-sys-display-medium: 400 2.812rem / 3.25rem var(--app-font-family);\n --mat-sys-display-medium-font: var(--app-font-family);\n --mat-sys-display-medium-line-height: 3.25rem;\n --mat-sys-display-medium-size: 2.812rem;\n --mat-sys-display-medium-tracking: 0;\n --mat-sys-display-medium-weight: 400;\n --mat-sys-display-small: 400 2.25rem / 2.75rem var(--app-font-family);\n --mat-sys-display-small-font: var(--app-font-family);\n --mat-sys-display-small-line-height: 2.75rem;\n --mat-sys-display-small-size: 2.25rem;\n --mat-sys-display-small-tracking: 0;\n --mat-sys-display-small-weight: 400;\n --mat-sys-headline-large: 400 2rem / 2.5rem var(--app-font-family);\n --mat-sys-headline-large-font: var(--app-font-family);\n --mat-sys-headline-large-line-height: 2.5rem;\n --mat-sys-headline-large-size: 2rem;\n --mat-sys-headline-large-tracking: 0;\n --mat-sys-headline-large-weight: 400;\n --mat-sys-headline-medium: 400 1.75rem / 2.25rem var(--app-font-family);\n --mat-sys-headline-medium-font: var(--app-font-family);\n --mat-sys-headline-medium-line-height: 2.25rem;\n --mat-sys-headline-medium-size: 1.75rem;\n --mat-sys-headline-medium-tracking: 0;\n --mat-sys-headline-medium-weight: 400;\n --mat-sys-headline-small: 400 1.5rem / 2rem var(--app-font-family);\n --mat-sys-headline-small-font: var(--app-font-family);\n --mat-sys-headline-small-line-height: 2rem;\n --mat-sys-headline-small-size: 1.5rem;\n --mat-sys-headline-small-tracking: 0;\n --mat-sys-headline-small-weight: 400;\n --mat-sys-label-large: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-label-large-font: var(--app-font-family);\n --mat-sys-label-large-line-height: 1.25rem;\n --mat-sys-label-large-size: 0.875rem;\n --mat-sys-label-large-tracking: 0.006rem;\n --mat-sys-label-large-weight: 500;\n --mat-sys-label-large-weight-prominent: 700;\n --mat-sys-label-medium: 500 0.75rem / 1rem var(--app-font-family);\n --mat-sys-label-medium-font: var(--app-font-family);\n --mat-sys-label-medium-line-height: 1rem;\n --mat-sys-label-medium-size: 0.75rem;\n --mat-sys-label-medium-tracking: 0.031rem;\n --mat-sys-label-medium-weight: 500;\n --mat-sys-label-medium-weight-prominent: 700;\n --mat-sys-label-small: 500 0.688rem / 1rem var(--app-font-family);\n --mat-sys-label-small-font: var(--app-font-family);\n --mat-sys-label-small-line-height: 1rem;\n --mat-sys-label-small-size: 0.688rem;\n --mat-sys-label-small-tracking: 0.031rem;\n --mat-sys-label-small-weight: 500;\n --mat-sys-title-large: 400 1.375rem / 1.75rem var(--app-font-family);\n --mat-sys-title-large-font: var(--app-font-family);\n --mat-sys-title-large-line-height: 1.75rem;\n --mat-sys-title-large-size: 1.375rem;\n --mat-sys-title-large-tracking: 0;\n --mat-sys-title-large-weight: 400;\n --mat-sys-title-medium: 500 1rem / 1.5rem var(--app-font-family);\n --mat-sys-title-medium-font: var(--app-font-family);\n --mat-sys-title-medium-line-height: 1.5rem;\n --mat-sys-title-medium-size: 1rem;\n --mat-sys-title-medium-tracking: 0.009rem;\n --mat-sys-title-medium-weight: 500;\n --mat-sys-title-small: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-title-small-font: var(--app-font-family);\n --mat-sys-title-small-line-height: 1.25rem;\n --mat-sys-title-small-size: 0.875rem;\n --mat-sys-title-small-tracking: 0.006rem;\n --mat-sys-title-small-weight: 500;\n --mat-sys-corner-extra-large: 28px;\n --mat-sys-corner-extra-large-top: 28px 28px 0 0;\n --mat-sys-corner-extra-small: 4px;\n --mat-sys-corner-extra-small-top: 4px 4px 0 0;\n --mat-sys-corner-full: 9999px;\n --mat-sys-corner-large: 16px;\n --mat-sys-corner-large-end: 0 16px 16px 0;\n --mat-sys-corner-large-start: 16px 0 0 16px;\n --mat-sys-corner-large-top: 16px 16px 0 0;\n --mat-sys-corner-medium: 12px;\n --mat-sys-corner-none: 0;\n --mat-sys-corner-small: 8px;\n --mat-sys-dragged-state-layer-opacity: 0.16;\n --mat-sys-focus-state-layer-opacity: 0.12;\n --mat-sys-hover-state-layer-opacity: 0.08;\n --mat-sys-pressed-state-layer-opacity: 0.12;\n}\n.filing .mat-primary .mat-pseudo-checkbox-checked,\n.filing .mat-primary .mat-pseudo-checkbox-indeterminate {\n background: transparent !important;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox {\n width: 24px;\n height: 24px;\n flex-basis: 24px;\n padding: 0;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__background {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n top: 0;\n left: 0;\n border: 3px solid var(--filing-modal-color-grey);\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__checkmark {\n height: 20px;\n width: 20px;\n font-size: 20px;\n top: 1px;\n left: 1px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__ripple,\n.filing .mat-mdc-checkbox[cardView] .mat-ripple {\n display: none;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-label {\n padding-left: 8px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-button__label {\n line-height: 10px;\n}\n:host {\n --filing-modal-color-grey: #444444;\n --filing-modal-color-dark-blue: #485673;\n --filing-modal-color-grey-mid: #A0A0A0;\n --filing-modal-color-light-blue: #3778E4;\n --filing-modal-color-black: #444444;\n}\nmat-icon {\n font-family: "Material Icons" !important;\n font-size: 20px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n}\nh1 {\n font-size: 24px;\n line-height: 28px;\n font-weight: 700;\n font-family: "Open Sans";\n margin: 0;\n}\nh2 {\n font-size: 22px;\n line-height: 26px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh3 {\n font-size: 18px;\n font-weight: 600;\n font-family: "Open Sans";\n margin-top: 0;\n margin-bottom: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 22px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 20px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\n.body-1-regular {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-1-bold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-1-semibold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 600;\n font-family: "Open Sans";\n}\n.body-2-regular {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-2-bold {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-3-regular {\n line-height: 20px;\n font-size: 16px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-regular {\n line-height: 18px;\n font-size: 18px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-bold {\n line-height: 20px;\n font-size: 20px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n margin: 0;\n}\n.black {\n color: var(--filing-modal-color-black);\n}\n.grey {\n color: var(--filing-modal-color-grey);\n}\n.dark-blue {\n color: var(--filing-modal-color-dark-blue);\n}\n.grey-mid {\n color: var(--filing-modal-color-grey-mid);\n}\n.light-blue {\n color: var(--filing-modal-color-light-blue);\n}\n:host ::ng-deep {\n --app-font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Helvetica Neue",\n Helvetica,\n Arial,\n sans-serif;\n --mat-sys-background: #faf9fd;\n --mat-sys-error: #ba1a1a;\n --mat-sys-error-container: #ffdad6;\n --mat-sys-inverse-on-surface: #f2f0f4;\n --mat-sys-inverse-primary: #abc7ff;\n --mat-sys-inverse-surface: #2f3033;\n --mat-sys-on-background: #1a1b1f;\n --mat-sys-on-error: #ffffff;\n --mat-sys-on-error-container: #93000a;\n --mat-sys-on-primary: #ffffff;\n --mat-sys-on-primary-container: #00458f;\n --mat-sys-on-primary-fixed: #001b3f;\n --mat-sys-on-primary-fixed-variant: #00458f;\n --mat-sys-on-secondary: #ffffff;\n --mat-sys-on-secondary-container: #3e4759;\n --mat-sys-on-secondary-fixed: #131c2b;\n --mat-sys-on-secondary-fixed-variant: #3e4759;\n --mat-sys-on-surface: #1a1b1f;\n --mat-sys-on-surface-variant: var(--filing-modal-color-grey);\n --mat-sys-on-tertiary: #ffffff;\n --mat-sys-on-tertiary-container: #0000ef;\n --mat-sys-on-tertiary-fixed: #00006e;\n --mat-sys-on-tertiary-fixed-variant: #0000ef;\n --mat-sys-outline: #74777f;\n --mat-sys-outline-variant: #c4c6d0;\n --mat-sys-primary: #3778e4;\n --mat-sys-primary-container: #d7e3ff;\n --mat-sys-primary-fixed: #d7e3ff;\n --mat-sys-primary-fixed-dim: #abc7ff;\n --mat-sys-scrim: #000000;\n --mat-sys-secondary: #565e71;\n --mat-sys-secondary-container: #dae2f9;\n --mat-sys-secondary-fixed: #dae2f9;\n --mat-sys-secondary-fixed-dim: #bec6dc;\n --mat-sys-shadow: #000000;\n --mat-sys-surface: #faf9fd;\n --mat-sys-surface-bright: #faf9fd;\n --mat-sys-surface-container: #efedf0;\n --mat-sys-surface-container-high: #e9e7eb;\n --mat-sys-surface-container-highest: #e3e2e6;\n --mat-sys-surface-container-low: #f4f3f6;\n --mat-sys-surface-container-lowest: #ffffff;\n --mat-sys-surface-dim: #dbd9dd;\n --mat-sys-surface-tint: #005cbb;\n --mat-sys-surface-variant: #e0e2ec;\n --mat-sys-tertiary: #343dff;\n --mat-sys-tertiary-container: #e0e0ff;\n --mat-sys-tertiary-fixed: #e0e0ff;\n --mat-sys-tertiary-fixed-dim: #bec2ff;\n --mat-sys-neutral-variant20: #2d3038;\n --mat-sys-neutral10: #1a1b1f;\n --mdc-filled-button-container-height: 35px;\n --mdc-outlined-button-container-height: 35px;\n --mdc-text-button-label-text-color: #808090;\n --mdc-filled-button-label-text-weight: 600;\n --mdc-text-button-label-text-weight: 600;\n --mdc-filled-button-container-shape: 4px;\n --mdc-outlined-button-outline-color: none;\n --mdc-outlined-button-container-shape: 6px;\n --mat-sys-level0:\n 0px 0px 0px 0px rgba(0, 0, 0, 0.2),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.14),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level1:\n 0px 2px 1px -1px rgba(0, 0, 0, 0.2),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level2:\n 0px 3px 3px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 4px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 8px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level3:\n 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 6px 10px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level4:\n 0px 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0px 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n --mat-sys-level5:\n 0px 7px 8px -4px rgba(0, 0, 0, 0.2),\n 0px 12px 17px 2px rgba(0, 0, 0, 0.14),\n 0px 5px 22px 4px rgba(0, 0, 0, 0.12);\n --mdc-outlined-button-label-text-size: 14px;\n --mdc-filled-button-label-text-size: 14px;\n --mdc-filled-text-field-label-text-size: 16px;\n --mat-sys-body-large: 400 1rem / 1.5rem var(--app-font-family);\n --mat-sys-body-large-font: var(--app-font-family);\n --mat-sys-body-large-line-height: 1.5rem;\n --mat-sys-body-large-size: 14px;\n --mat-sys-body-large-tracking: 0.031rem;\n --mat-sys-body-large-weight: 400;\n --mat-sys-body-medium: 400 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-body-medium-font: var(--app-font-family);\n --mat-sys-body-medium-line-height: 1.25rem;\n --mat-sys-body-medium-size: 0.875rem;\n --mat-sys-body-medium-tracking: 0.016rem;\n --mat-sys-body-medium-weight: 400;\n --mat-sys-body-small: 400 0.75rem / 1rem var(--app-font-family);\n --mat-sys-body-small-font: var(--app-font-family);\n --mat-sys-body-small-line-height: 1rem;\n --mat-sys-body-small-size: 0.75rem;\n --mat-sys-body-small-tracking: 0.025rem;\n --mat-sys-body-small-weight: 400;\n --mat-sys-display-large: 400 3.562rem / 4rem var(--app-font-family);\n --mat-sys-display-large-font: var(--app-font-family);\n --mat-sys-display-large-line-height: 4rem;\n --mat-sys-display-large-size: 3.562rem;\n --mat-sys-display-large-tracking: -0.016rem;\n --mat-sys-display-large-weight: 400;\n --mat-sys-display-medium: 400 2.812rem / 3.25rem var(--app-font-family);\n --mat-sys-display-medium-font: var(--app-font-family);\n --mat-sys-display-medium-line-height: 3.25rem;\n --mat-sys-display-medium-size: 2.812rem;\n --mat-sys-display-medium-tracking: 0;\n --mat-sys-display-medium-weight: 400;\n --mat-sys-display-small: 400 2.25rem / 2.75rem var(--app-font-family);\n --mat-sys-display-small-font: var(--app-font-family);\n --mat-sys-display-small-line-height: 2.75rem;\n --mat-sys-display-small-size: 2.25rem;\n --mat-sys-display-small-tracking: 0;\n --mat-sys-display-small-weight: 400;\n --mat-sys-headline-large: 400 2rem / 2.5rem var(--app-font-family);\n --mat-sys-headline-large-font: var(--app-font-family);\n --mat-sys-headline-large-line-height: 2.5rem;\n --mat-sys-headline-large-size: 2rem;\n --mat-sys-headline-large-tracking: 0;\n --mat-sys-headline-large-weight: 400;\n --mat-sys-headline-medium: 400 1.75rem / 2.25rem var(--app-font-family);\n --mat-sys-headline-medium-font: var(--app-font-family);\n --mat-sys-headline-medium-line-height: 2.25rem;\n --mat-sys-headline-medium-size: 1.75rem;\n --mat-sys-headline-medium-tracking: 0;\n --mat-sys-headline-medium-weight: 400;\n --mat-sys-headline-small: 400 1.5rem / 2rem var(--app-font-family);\n --mat-sys-headline-small-font: var(--app-font-family);\n --mat-sys-headline-small-line-height: 2rem;\n --mat-sys-headline-small-size: 1.5rem;\n --mat-sys-headline-small-tracking: 0;\n --mat-sys-headline-small-weight: 400;\n --mat-sys-label-large: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-label-large-font: var(--app-font-family);\n --mat-sys-label-large-line-height: 1.25rem;\n --mat-sys-label-large-size: 0.875rem;\n --mat-sys-label-large-tracking: 0.006rem;\n --mat-sys-label-large-weight: 500;\n --mat-sys-label-large-weight-prominent: 700;\n --mat-sys-label-medium: 500 0.75rem / 1rem var(--app-font-family);\n --mat-sys-label-medium-font: var(--app-font-family);\n --mat-sys-label-medium-line-height: 1rem;\n --mat-sys-label-medium-size: 0.75rem;\n --mat-sys-label-medium-tracking: 0.031rem;\n --mat-sys-label-medium-weight: 500;\n --mat-sys-label-medium-weight-prominent: 700;\n --mat-sys-label-small: 500 0.688rem / 1rem var(--app-font-family);\n --mat-sys-label-small-font: var(--app-font-family);\n --mat-sys-label-small-line-height: 1rem;\n --mat-sys-label-small-size: 0.688rem;\n --mat-sys-label-small-tracking: 0.031rem;\n --mat-sys-label-small-weight: 500;\n --mat-sys-title-large: 400 1.375rem / 1.75rem var(--app-font-family);\n --mat-sys-title-large-font: var(--app-font-family);\n --mat-sys-title-large-line-height: 1.75rem;\n --mat-sys-title-large-size: 1.375rem;\n --mat-sys-title-large-tracking: 0;\n --mat-sys-title-large-weight: 400;\n --mat-sys-title-medium: 500 1rem / 1.5rem var(--app-font-family);\n --mat-sys-title-medium-font: var(--app-font-family);\n --mat-sys-title-medium-line-height: 1.5rem;\n --mat-sys-title-medium-size: 1rem;\n --mat-sys-title-medium-tracking: 0.009rem;\n --mat-sys-title-medium-weight: 500;\n --mat-sys-title-small: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-title-small-font: var(--app-font-family);\n --mat-sys-title-small-line-height: 1.25rem;\n --mat-sys-title-small-size: 0.875rem;\n --mat-sys-title-small-tracking: 0.006rem;\n --mat-sys-title-small-weight: 500;\n --mat-sys-corner-extra-large: 28px;\n --mat-sys-corner-extra-large-top: 28px 28px 0 0;\n --mat-sys-corner-extra-small: 4px;\n --mat-sys-corner-extra-small-top: 4px 4px 0 0;\n --mat-sys-corner-full: 9999px;\n --mat-sys-corner-large: 16px;\n --mat-sys-corner-large-end: 0 16px 16px 0;\n --mat-sys-corner-large-start: 16px 0 0 16px;\n --mat-sys-corner-large-top: 16px 16px 0 0;\n --mat-sys-corner-medium: 12px;\n --mat-sys-corner-none: 0;\n --mat-sys-corner-small: 8px;\n --mat-sys-dragged-state-layer-opacity: 0.16;\n --mat-sys-focus-state-layer-opacity: 0.12;\n --mat-sys-hover-state-layer-opacity: 0.08;\n --mat-sys-pressed-state-layer-opacity: 0.12;\n}\n:host ::ng-deep .mat-primary .mat-pseudo-checkbox-checked,\n:host ::ng-deep .mat-primary .mat-pseudo-checkbox-indeterminate {\n background: transparent !important;\n}\n:host ::ng-deep .mat-mdc-checkbox[cardView] .mdc-checkbox {\n width: 24px;\n height: 24px;\n flex-basis: 24px;\n padding: 0;\n}\n:host ::ng-deep .mat-mdc-checkbox[cardView] .mdc-checkbox__background {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n top: 0;\n left: 0;\n border: 3px solid var(--filing-modal-color-grey);\n}\n:host ::ng-deep .mat-mdc-checkbox[cardView] .mdc-checkbox__checkmark {\n height: 20px;\n width: 20px;\n font-size: 20px;\n top: 1px;\n left: 1px;\n}\n:host ::ng-deep .mat-mdc-checkbox[cardView] .mdc-checkbox__ripple,\n:host ::ng-deep .mat-mdc-checkbox[cardView] .mat-ripple {\n display: none;\n}\n:host ::ng-deep .mat-mdc-checkbox[cardView] .mdc-label {\n padding-left: 8px;\n}\n:host ::ng-deep .mat-mdc-checkbox[cardView] .mdc-button__label {\n line-height: 10px;\n}\n:host .add-documents-modal {\n padding: 24px 0;\n border: 2px solid #ededed;\n border-radius: 16px;\n width: 100%;\n background: white;\n}\n:host .add-documents-modal-header {\n padding: 0 24px;\n}\n:host .add-documents-modal-list {\n display: flex;\n flex-direction: column;\n max-height: 300px;\n overflow: auto;\n padding: 24px;\n}\n:host .add-documents-modal-list-item {\n display: flex;\n align-items: center;\n font-size: 18px;\n cursor: pointer;\n width: 100%;\n -webkit-user-select: none;\n user-select: none;\n}\n:host .add-documents-modal-actions {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n padding-right: 16px;\n}\n::ng-deep .mat-mdc-dialog-surface {\n background: transparent !important;\n padding: 2px;\n min-width: 660px;\n}\n/*# sourceMappingURL=select-modal.component.css.map */\n'] }]
83583
83776
  }], null, null);
83584
83777
  })();
@@ -83723,34 +83916,34 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
83723
83916
  MatButton,
83724
83917
  TranslatePipe,
83725
83918
  MatIcon
83726
- ], template: `<div class="documents">\r
83727
- <span class="body-1-regular">{{ 'Supporting documents relevant to the proposed name, including consent letters' | translate }}</span>\r
83728
- \r
83729
- @let selectedDocuments = this.selectedDocuments();\r
83730
- @if (selectedDocuments.length) {\r
83731
- <div class="documents-list">\r
83732
- @for(document of selectedDocuments; track document) {\r
83733
- <div class="documents-list-item body-1-regular">\r
83734
- <mat-icon class="documents-list-item-document">description_outline</mat-icon>\r
83735
- <span class="body-1-regular">{{document}}</span>\r
83736
- \r
83737
- @if (!readonly()) {\r
83738
- <div class="documents-list-icon-wrapper" (click)="removeDocument.emit(document)">\r
83739
- <mat-icon class="documents-list-item-close">close</mat-icon>\r
83740
- </div>\r
83741
- }\r
83742
- \r
83743
- </div>\r
83744
- }\r
83745
- </div>\r
83746
- }\r
83747
- \r
83748
- @if (!readonly()) {\r
83749
- <button mat-stroked-button class="outlined" (click)="onAddDocuments()">\r
83750
- <span class="body-1-semibold">{{ 'Add Supporting Documents' | translate }}</span>\r
83751
- </button>\r
83752
- }\r
83753
- </div>\r
83919
+ ], template: `<div class="documents">
83920
+ <span class="body-1-regular">{{ 'Supporting documents relevant to the proposed name, including consent letters' | translate }}</span>
83921
+
83922
+ @let selectedDocuments = this.selectedDocuments();
83923
+ @if (selectedDocuments.length) {
83924
+ <div class="documents-list">
83925
+ @for(document of selectedDocuments; track document) {
83926
+ <div class="documents-list-item body-1-regular">
83927
+ <mat-icon class="documents-list-item-document">description_outline</mat-icon>
83928
+ <span class="body-1-regular">{{document}}</span>
83929
+
83930
+ @if (!readonly()) {
83931
+ <div class="documents-list-icon-wrapper" (click)="removeDocument.emit(document)">
83932
+ <mat-icon class="documents-list-item-close">close</mat-icon>
83933
+ </div>
83934
+ }
83935
+
83936
+ </div>
83937
+ }
83938
+ </div>
83939
+ }
83940
+
83941
+ @if (!readonly()) {
83942
+ <button mat-stroked-button class="outlined" (click)="onAddDocuments()">
83943
+ <span class="body-1-semibold">{{ 'Add Supporting Documents' | translate }}</span>
83944
+ </button>
83945
+ }
83946
+ </div>
83754
83947
  `, styles: ["/* src/app/components/federal/components/documents/documents.component.scss */\n:host .documents {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 16px;\n}\n:host .documents-list {\n display: flex;\n flex-direction: column;\n gap: 4px;\n padding-left: 16px;\n}\n:host .documents-list-item {\n display: flex;\n align-items: center;\n gap: 8px;\n color: var(--filing-modal-color-grey);\n}\n:host .documents-list-item mat-icon {\n color: var(--filing-modal-color-grey);\n display: flex;\n align-items: center;\n}\n:host .documents-list-item-document {\n font-size: 24px;\n}\n:host .documents-list-item-close {\n font-size: 18px;\n height: 18px;\n width: 18px;\n line-height: 18px;\n}\n:host .documents-list-icon-wrapper {\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 32px;\n}\n/*# sourceMappingURL=documents.component.css.map */\n"] }]
83755
83948
  }], null, null);
83756
83949
  })();
@@ -84576,246 +84769,246 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84576
84769
  TranslatePipe,
84577
84770
  ReactiveFormsModule,
84578
84771
  DatePipe
84579
- ], template: `<div class="incorporation-form">\r
84580
- @if (isNote()) {\r
84581
- <alert\r
84582
- [type]="alertType.Info"\r
84583
- title="Entity changed"\r
84584
- content="A new draft needs to be generated as the Entity was changed since the last draft was produced."\r
84585
- />\r
84586
- }\r
84587
- \r
84588
- @if (errors().length) {\r
84589
- <alert\r
84590
- title="The following issues need to be resolved before proceeding:"\r
84591
- [content]="errors()"\r
84592
- />\r
84593
- }\r
84594
- \r
84595
- <div class="incorporation-form-content">\r
84596
- @let corporateName = getFormGroup(groups.CorporateName);\r
84597
- \r
84598
- @if (corporateName) {\r
84599
- <expandable-card\r
84600
- [isValid]="sectionValidity['corporateName']"\r
84601
- [isStatusIcon]="isStatusIcon()"\r
84602
- [title]="groups.CorporateName"\r
84603
- >\r
84604
- <div class="incorporation-form-item">\r
84605
- <filing-form-group\r
84606
- [isSubmitted]="isSubmitted()"\r
84607
- [form]="corporateName"\r
84608
- [config]="incorporationFields"\r
84609
- (visiblyValidChange)="onSectionValidChange('corporateName', $event)"\r
84610
- />\r
84611
- \r
84612
- @if (isNonPreapprovedNameType() || selectedDocuments().length) {\r
84613
- <documents\r
84614
- [documents]="documents()"\r
84615
- [readonly]="isReadonly()"\r
84616
- [selectedDocuments]="selectedDocuments()"\r
84617
- (addDocuments)="addDocuments.emit($event)"\r
84618
- (removeDocument)="removeDocument.emit($event)"\r
84619
- />\r
84620
- }\r
84621
- </div>\r
84622
- </expandable-card>\r
84623
- }\r
84624
- \r
84625
- @let articlesOfIncorporation = getFormGroup(groups.ArticlesOfIncorporation);\r
84626
- \r
84627
- @if (articlesOfIncorporation) {\r
84628
- <expandable-card\r
84629
- [isValid]="sectionValidity['articles']"\r
84630
- [isStatusIcon]="isStatusIcon()"\r
84631
- [title]="groups.ArticlesOfIncorporation"\r
84632
- >\r
84633
- <div class="incorporation-form-item">\r
84634
- <span\r
84635
- class="body-1-regular black"\r
84636
- [innerHTML]="directorsSubtitle()"\r
84637
- ></span>\r
84638
- \r
84639
- <filing-form-group\r
84640
- [isSubmitted]="isSubmitted()"\r
84641
- [form]="articlesOfIncorporation"\r
84642
- [config]="articlesOfIncorporationFields"\r
84643
- (visiblyValidChange)="onSectionValidChange('articles', $event)"\r
84644
- />\r
84645
- <div>\r
84646
- <span class="body-1-semibold dark-blue">{{ 'Incorporators' | translate }}</span>\r
84647
- \r
84648
- <ul class="incorporators-list">\r
84649
- @for (\r
84650
- incorporator of task()?._ext?._incorporators;\r
84651
- track incorporator.affiliationID\r
84652
- ) {\r
84653
- <li class="body-1-regular grey">\r
84654
- {{ getIncorporatorName(incorporator) }}\r
84655
- </li>\r
84656
- }\r
84657
- </ul>\r
84658
- </div>\r
84659
- \r
84660
- <span class="body-1-regular grey"\r
84661
- >{{ 'Effective Date' | translate }}:\r
84662
- {{\r
84663
- task()?._ext?._future_filing_date\r
84664
- ? (task()!._ext!._future_filing_date | date: "yyyy-MM-dd")\r
84665
- : (today | date: "yyyy-MM-dd")\r
84666
- }}</span\r
84667
- >\r
84668
- </div>\r
84669
- </expandable-card>\r
84670
- }\r
84671
- \r
84672
- @let registeredOfficeAddress = getFormGroup(groups.RegisteredOfficeAddress);\r
84673
- \r
84674
- @if (registeredOfficeAddress) {\r
84675
- <expandable-card\r
84676
- [isValid]="sectionValidity['registeredOffice']"\r
84677
- [isStatusIcon]="isStatusIcon()"\r
84678
- [title]="groups.RegisteredOfficeAddress"\r
84679
- >\r
84680
- <div class="incorporation-form-item">\r
84681
- <filing-form-group\r
84682
- [isSubmitted]="isSubmitted()"\r
84683
- [form]="registeredOfficeAddress"\r
84684
- [config]="registeredOfficeAddressFields"\r
84685
- (visiblyValidChange)="\r
84686
- onSectionValidChange('registeredOffice', $event)\r
84687
- "\r
84688
- />\r
84689
- </div>\r
84690
- </expandable-card>\r
84691
- }\r
84692
- \r
84693
- @let directorsArray = getFormArray(groups.Directors);\r
84694
- \r
84695
- @if (directorsArray && directorsArray.length) {\r
84696
- @let directorsFormArray = getFormArray(groups.Directors);\r
84697
- <expandable-list-card\r
84698
- [isValid]="sectionValidity['directors']"\r
84699
- [isSubmitted]="isSubmitted()"\r
84700
- [areItemsOpen]="directorsArray.length <= initiallyOpenCardsCount"\r
84701
- [fields]="directorsFields"\r
84702
- [formArray]="directorsFormArray"\r
84703
- [title]="groups.Directors"\r
84704
- (visiblyValidChange)="onSectionValidChange('directors', $event)"\r
84705
- />\r
84706
- } @else {\r
84707
- <expandable-card [title]="groups.Directors">\r
84708
- <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
84709
- </expandable-card>\r
84710
- }\r
84711
- \r
84712
- @let significantControl = getFormGroup(groups.SignificantControl);\r
84713
- @if (significantControl) {\r
84714
- @let individualsWithSignificantControlArray =\r
84715
- getFormArray(groups.IndividualsWithSignificantControl);\r
84716
- \r
84717
- @if (individualsWithSignificantControlArray) {\r
84718
- <expandable-list-card\r
84719
- [areItemsOpen]="\r
84720
- individualsWithSignificantControlArray.length <=\r
84721
- initiallyOpenCardsCount\r
84722
- "\r
84723
- [isValid]="\r
84724
- sectionValidity['isc'] &&\r
84725
- sectionValidity['significantControl']\r
84726
- "\r
84727
- (remove)="onRemoveIndividualWithSignificantForm($event)"\r
84728
- [removable]="!isReadonly()"\r
84729
- [isSubmitted]="isSubmitted()"\r
84730
- [isStatusIcon]="isStatusIcon()"\r
84731
- [fields]="individualsWithSignificantControlFields"\r
84732
- [formArray]="individualsWithSignificantControlArray"\r
84733
- [title]="groups.IndividualsWithSignificantControl"\r
84734
- (visiblyValidChange)="onSectionValidChange('isc', $event)"\r
84735
- >\r
84736
- @if (\r
84737
- !isReadonly() && isAddIndividualWithSignificantControlAvailable()\r
84738
- ) {\r
84739
- <button\r
84740
- [disabled]="isAddIndividualWithSignificantControlDisabled()"\r
84741
- slot="subtitle"\r
84742
- mat-stroked-button\r
84743
- mat-button\r
84744
- (click)="addIndividualWithSignificantControl()"\r
84745
- >\r
84746
- <span class="body-1-semibold">{{\r
84747
- "Add Individuals With Significant Control" | translate\r
84748
- }}</span>\r
84749
- </button>\r
84750
- }\r
84751
- \r
84752
- <div class="significant-control" slot="header-content">\r
84753
- <filing-form-group\r
84754
- [isSubmitted]="isSubmitted()"\r
84755
- [form]="significantControl"\r
84756
- [config]="significantControlFields"\r
84757
- (visiblyValidChange)="\r
84758
- onSectionValidChange('significantControl', $event)\r
84759
- "\r
84760
- />\r
84761
- </div>\r
84762
- </expandable-list-card>\r
84763
- }\r
84764
- }\r
84765
- \r
84766
- @let inviteDirectorToBeFullAccessManager =\r
84767
- getFormGroup(groups.InviteDirectorToBeFullAccessManager);\r
84768
- @if (inviteDirectorToBeFullAccessManager) {\r
84769
- <expandable-card\r
84770
- [isValid]="sectionValidity['inviteDirector']"\r
84771
- [title]="groups.InviteDirectorToBeFullAccessManager"\r
84772
- >\r
84773
- <filing-form-group\r
84774
- [isSubmitted]="isSubmitted()"\r
84775
- [form]="inviteDirectorToBeFullAccessManager"\r
84776
- [config]="federalFormationFormInviteDirectorsToBeManagersControl"\r
84777
- (visiblyValidChange)="onSectionValidChange('inviteDirector', $event)"\r
84778
- />\r
84779
- </expandable-card>\r
84780
- }\r
84781
- \r
84782
- @let extraProvincialLicensesArray =\r
84783
- getFormArray(groups.ExtraProvincialRegistrations);\r
84784
- @let extraProvincialLicensesControlsLength =\r
84785
- extraProvincialLicensesArray?.length;\r
84786
- \r
84787
- @if (extraProvincialLicensesControlsLength) {\r
84788
- <expandable-list-card\r
84789
- [areItemsOpen]="extraProvincialLicensesControlsLength === 1"\r
84790
- [isValid]="sectionValidity['epl']"\r
84791
- [isSubmitted]="isSubmitted()"\r
84792
- [isStatusIcon]="isStatusIcon()"\r
84793
- [fields]="extraProvincialLicensesFields"\r
84794
- [formArray]="extraProvincialLicensesArray"\r
84795
- [title]="groups.ExtraProvincialRegistrations"\r
84796
- (visiblyValidChange)="onSectionValidChange('epl', $event)"\r
84797
- />\r
84798
- }\r
84799
- \r
84800
- @let contactForm = getFormGroup(groups.Contact);\r
84801
- @if (contactForm) {\r
84802
- <expandable-card\r
84803
- [isStatusIcon]="isStatusIcon()"\r
84804
- [isValid]="sectionValidity['contact']"\r
84805
- [title]="groups.Contact"\r
84806
- >\r
84807
- <filing-form-group\r
84808
- [isSubmitted]="isSubmitted()"\r
84809
- [form]="contactForm"\r
84810
- [config]="contactControl"\r
84811
- (visiblyValidChange)="onSectionValidChange('contact', $event)"\r
84812
- />\r
84813
- </expandable-card>\r
84814
- }\r
84815
- \r
84816
- <ng-content></ng-content>\r
84817
- </div>\r
84818
- </div>\r
84772
+ ], template: `<div class="incorporation-form">
84773
+ @if (isNote()) {
84774
+ <alert
84775
+ [type]="alertType.Info"
84776
+ title="Entity changed"
84777
+ content="A new draft needs to be generated as the Entity was changed since the last draft was produced."
84778
+ />
84779
+ }
84780
+
84781
+ @if (errors().length) {
84782
+ <alert
84783
+ title="The following issues need to be resolved before proceeding:"
84784
+ [content]="errors()"
84785
+ />
84786
+ }
84787
+
84788
+ <div class="incorporation-form-content">
84789
+ @let corporateName = getFormGroup(groups.CorporateName);
84790
+
84791
+ @if (corporateName) {
84792
+ <expandable-card
84793
+ [isValid]="sectionValidity['corporateName']"
84794
+ [isStatusIcon]="isStatusIcon()"
84795
+ [title]="groups.CorporateName"
84796
+ >
84797
+ <div class="incorporation-form-item">
84798
+ <filing-form-group
84799
+ [isSubmitted]="isSubmitted()"
84800
+ [form]="corporateName"
84801
+ [config]="incorporationFields"
84802
+ (visiblyValidChange)="onSectionValidChange('corporateName', $event)"
84803
+ />
84804
+
84805
+ @if (isNonPreapprovedNameType() || selectedDocuments().length) {
84806
+ <documents
84807
+ [documents]="documents()"
84808
+ [readonly]="isReadonly()"
84809
+ [selectedDocuments]="selectedDocuments()"
84810
+ (addDocuments)="addDocuments.emit($event)"
84811
+ (removeDocument)="removeDocument.emit($event)"
84812
+ />
84813
+ }
84814
+ </div>
84815
+ </expandable-card>
84816
+ }
84817
+
84818
+ @let articlesOfIncorporation = getFormGroup(groups.ArticlesOfIncorporation);
84819
+
84820
+ @if (articlesOfIncorporation) {
84821
+ <expandable-card
84822
+ [isValid]="sectionValidity['articles']"
84823
+ [isStatusIcon]="isStatusIcon()"
84824
+ [title]="groups.ArticlesOfIncorporation"
84825
+ >
84826
+ <div class="incorporation-form-item">
84827
+ <span
84828
+ class="body-1-regular black"
84829
+ [innerHTML]="directorsSubtitle()"
84830
+ ></span>
84831
+
84832
+ <filing-form-group
84833
+ [isSubmitted]="isSubmitted()"
84834
+ [form]="articlesOfIncorporation"
84835
+ [config]="articlesOfIncorporationFields"
84836
+ (visiblyValidChange)="onSectionValidChange('articles', $event)"
84837
+ />
84838
+ <div>
84839
+ <span class="body-1-semibold dark-blue">{{ 'Incorporators' | translate }}</span>
84840
+
84841
+ <ul class="incorporators-list">
84842
+ @for (
84843
+ incorporator of task()?._ext?._incorporators;
84844
+ track incorporator.affiliationID
84845
+ ) {
84846
+ <li class="body-1-regular grey">
84847
+ {{ getIncorporatorName(incorporator) }}
84848
+ </li>
84849
+ }
84850
+ </ul>
84851
+ </div>
84852
+
84853
+ <span class="body-1-regular grey"
84854
+ >{{ 'Effective Date' | translate }}:
84855
+ {{
84856
+ task()?._ext?._future_filing_date
84857
+ ? (task()!._ext!._future_filing_date | date: "yyyy-MM-dd")
84858
+ : (today | date: "yyyy-MM-dd")
84859
+ }}</span
84860
+ >
84861
+ </div>
84862
+ </expandable-card>
84863
+ }
84864
+
84865
+ @let registeredOfficeAddress = getFormGroup(groups.RegisteredOfficeAddress);
84866
+
84867
+ @if (registeredOfficeAddress) {
84868
+ <expandable-card
84869
+ [isValid]="sectionValidity['registeredOffice']"
84870
+ [isStatusIcon]="isStatusIcon()"
84871
+ [title]="groups.RegisteredOfficeAddress"
84872
+ >
84873
+ <div class="incorporation-form-item">
84874
+ <filing-form-group
84875
+ [isSubmitted]="isSubmitted()"
84876
+ [form]="registeredOfficeAddress"
84877
+ [config]="registeredOfficeAddressFields"
84878
+ (visiblyValidChange)="
84879
+ onSectionValidChange('registeredOffice', $event)
84880
+ "
84881
+ />
84882
+ </div>
84883
+ </expandable-card>
84884
+ }
84885
+
84886
+ @let directorsArray = getFormArray(groups.Directors);
84887
+
84888
+ @if (directorsArray && directorsArray.length) {
84889
+ @let directorsFormArray = getFormArray(groups.Directors);
84890
+ <expandable-list-card
84891
+ [isValid]="sectionValidity['directors']"
84892
+ [isSubmitted]="isSubmitted()"
84893
+ [areItemsOpen]="directorsArray.length <= initiallyOpenCardsCount"
84894
+ [fields]="directorsFields"
84895
+ [formArray]="directorsFormArray"
84896
+ [title]="groups.Directors"
84897
+ (visiblyValidChange)="onSectionValidChange('directors', $event)"
84898
+ />
84899
+ } @else {
84900
+ <expandable-card [title]="groups.Directors">
84901
+ <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>
84902
+ </expandable-card>
84903
+ }
84904
+
84905
+ @let significantControl = getFormGroup(groups.SignificantControl);
84906
+ @if (significantControl) {
84907
+ @let individualsWithSignificantControlArray =
84908
+ getFormArray(groups.IndividualsWithSignificantControl);
84909
+
84910
+ @if (individualsWithSignificantControlArray) {
84911
+ <expandable-list-card
84912
+ [areItemsOpen]="
84913
+ individualsWithSignificantControlArray.length <=
84914
+ initiallyOpenCardsCount
84915
+ "
84916
+ [isValid]="
84917
+ sectionValidity['isc'] &&
84918
+ sectionValidity['significantControl']
84919
+ "
84920
+ (remove)="onRemoveIndividualWithSignificantForm($event)"
84921
+ [removable]="!isReadonly()"
84922
+ [isSubmitted]="isSubmitted()"
84923
+ [isStatusIcon]="isStatusIcon()"
84924
+ [fields]="individualsWithSignificantControlFields"
84925
+ [formArray]="individualsWithSignificantControlArray"
84926
+ [title]="groups.IndividualsWithSignificantControl"
84927
+ (visiblyValidChange)="onSectionValidChange('isc', $event)"
84928
+ >
84929
+ @if (
84930
+ !isReadonly() && isAddIndividualWithSignificantControlAvailable()
84931
+ ) {
84932
+ <button
84933
+ [disabled]="isAddIndividualWithSignificantControlDisabled()"
84934
+ slot="subtitle"
84935
+ mat-stroked-button
84936
+ mat-button
84937
+ (click)="addIndividualWithSignificantControl()"
84938
+ >
84939
+ <span class="body-1-semibold">{{
84940
+ "Add Individuals With Significant Control" | translate
84941
+ }}</span>
84942
+ </button>
84943
+ }
84944
+
84945
+ <div class="significant-control" slot="header-content">
84946
+ <filing-form-group
84947
+ [isSubmitted]="isSubmitted()"
84948
+ [form]="significantControl"
84949
+ [config]="significantControlFields"
84950
+ (visiblyValidChange)="
84951
+ onSectionValidChange('significantControl', $event)
84952
+ "
84953
+ />
84954
+ </div>
84955
+ </expandable-list-card>
84956
+ }
84957
+ }
84958
+
84959
+ @let inviteDirectorToBeFullAccessManager =
84960
+ getFormGroup(groups.InviteDirectorToBeFullAccessManager);
84961
+ @if (inviteDirectorToBeFullAccessManager) {
84962
+ <expandable-card
84963
+ [isValid]="sectionValidity['inviteDirector']"
84964
+ [title]="groups.InviteDirectorToBeFullAccessManager"
84965
+ >
84966
+ <filing-form-group
84967
+ [isSubmitted]="isSubmitted()"
84968
+ [form]="inviteDirectorToBeFullAccessManager"
84969
+ [config]="federalFormationFormInviteDirectorsToBeManagersControl"
84970
+ (visiblyValidChange)="onSectionValidChange('inviteDirector', $event)"
84971
+ />
84972
+ </expandable-card>
84973
+ }
84974
+
84975
+ @let extraProvincialLicensesArray =
84976
+ getFormArray(groups.ExtraProvincialRegistrations);
84977
+ @let extraProvincialLicensesControlsLength =
84978
+ extraProvincialLicensesArray?.length;
84979
+
84980
+ @if (extraProvincialLicensesControlsLength) {
84981
+ <expandable-list-card
84982
+ [areItemsOpen]="extraProvincialLicensesControlsLength === 1"
84983
+ [isValid]="sectionValidity['epl']"
84984
+ [isSubmitted]="isSubmitted()"
84985
+ [isStatusIcon]="isStatusIcon()"
84986
+ [fields]="extraProvincialLicensesFields"
84987
+ [formArray]="extraProvincialLicensesArray"
84988
+ [title]="groups.ExtraProvincialRegistrations"
84989
+ (visiblyValidChange)="onSectionValidChange('epl', $event)"
84990
+ />
84991
+ }
84992
+
84993
+ @let contactForm = getFormGroup(groups.Contact);
84994
+ @if (contactForm) {
84995
+ <expandable-card
84996
+ [isStatusIcon]="isStatusIcon()"
84997
+ [isValid]="sectionValidity['contact']"
84998
+ [title]="groups.Contact"
84999
+ >
85000
+ <filing-form-group
85001
+ [isSubmitted]="isSubmitted()"
85002
+ [form]="contactForm"
85003
+ [config]="contactControl"
85004
+ (visiblyValidChange)="onSectionValidChange('contact', $event)"
85005
+ />
85006
+ </expandable-card>
85007
+ }
85008
+
85009
+ <ng-content></ng-content>
85010
+ </div>
85011
+ </div>
84819
85012
  `, styles: ["/* src/app/components/federal/incorporation/federal-incorporation-form/federal-incorporation-form.component.scss */\n:host {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n}\n:host .incorporation-form {\n display: flex;\n height: 100%;\n flex-direction: column;\n gap: 16px;\n}\n:host .incorporation-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n flex: 1;\n overflow: auto;\n min-height: 0;\n}\n:host .incorporation-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .incorporation-form .significant-control {\n padding: 0 16px;\n}\n:host .incorporators-list {\n margin: 8px;\n padding-inline-start: 25px;\n}\n/*# sourceMappingURL=federal-incorporation-form.component.css.map */\n"] }]
84820
85013
  }], () => [], null);
84821
85014
  })();
@@ -84937,39 +85130,39 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84937
85130
  MatButton,
84938
85131
  TranslatePipe,
84939
85132
  FederalIncorporationFormComponent
84940
- ], template: `<div class="incorporation-delta-form">\r
84941
- <federal-incorporation-form\r
84942
- class="incorporation-delta-form-content"\r
84943
- [form]="form()"\r
84944
- [task]="task()"\r
84945
- [errors]="combinedErrors()"\r
84946
- [isNote]="isNote()"\r
84947
- [isSubmitted]="submitted()"\r
84948
- [documents]="documents()"\r
84949
- [selectedDocuments]="selectedDocuments()"\r
84950
- (addDocuments)="addDocuments.emit($event)"\r
84951
- (removeDocument)="removeDocument.emit($event)"\r
84952
- (visiblyValidChange)="onVisiblyValidChange($event)"\r
84953
- />\r
84954
- \r
84955
- <div class="incorporation-delta-form-actions">\r
84956
- <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
84957
- <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
84958
- </button>\r
84959
- <button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>\r
84960
- <span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>\r
84961
- </button>\r
84962
- <button\r
84963
- class="submit"\r
84964
- color="primary"\r
84965
- mat-flat-button\r
84966
- [disabled]="actionsDisabled()"\r
84967
- (click)="onValidate()"\r
84968
- >\r
84969
- <span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>\r
84970
- </button>\r
84971
- </div>\r
84972
- </div>\r
85133
+ ], template: `<div class="incorporation-delta-form">
85134
+ <federal-incorporation-form
85135
+ class="incorporation-delta-form-content"
85136
+ [form]="form()"
85137
+ [task]="task()"
85138
+ [errors]="combinedErrors()"
85139
+ [isNote]="isNote()"
85140
+ [isSubmitted]="submitted()"
85141
+ [documents]="documents()"
85142
+ [selectedDocuments]="selectedDocuments()"
85143
+ (addDocuments)="addDocuments.emit($event)"
85144
+ (removeDocument)="removeDocument.emit($event)"
85145
+ (visiblyValidChange)="onVisiblyValidChange($event)"
85146
+ />
85147
+
85148
+ <div class="incorporation-delta-form-actions">
85149
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">
85150
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>
85151
+ </button>
85152
+ <button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>
85153
+ <span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>
85154
+ </button>
85155
+ <button
85156
+ class="submit"
85157
+ color="primary"
85158
+ mat-flat-button
85159
+ [disabled]="actionsDisabled()"
85160
+ (click)="onValidate()"
85161
+ >
85162
+ <span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>
85163
+ </button>
85164
+ </div>
85165
+ </div>
84973
85166
  `, styles: ["/* src/app/components/federal/incorporation/steps/delta/federal-incorporation-delta-form.component.scss */\n:host .incorporation-delta-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .incorporation-delta-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n overflow: auto;\n}\n:host .incorporation-delta-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .incorporation-delta-form-errors {\n padding: 0 16px;\n}\n:host .incorporation-delta-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .incorporation-delta-form-actions button {\n margin: 0;\n}\n:host .incorporation-delta-form-actions .submit {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=federal-incorporation-delta-form.component.css.map */\n"] }]
84974
85167
  }], null, null);
84975
85168
  })();
@@ -85088,39 +85281,39 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85088
85281
  FederalIncorporationFormComponent,
85089
85282
  ExpandableCardComponent,
85090
85283
  FilingFormGroupComponent
85091
- ], template: `<div class="incorporation-delta-form">\r
85092
- <federal-incorporation-form\r
85093
- class="incorporation-delta-form-content"\r
85094
- [form]="form()"\r
85095
- [task]="task()"\r
85096
- [errors]="errors()"\r
85097
- [selectedDocuments]="selectedDocuments()"\r
85098
- [isStatusIcon]="false"\r
85099
- [isReadonly]="true"\r
85100
- >\r
85101
- @let signatoryInformation = getFormGroup(groups.Signatory);\r
85102
- \r
85103
- <expandable-card [isExpandable]="false">\r
85104
- <filing-form-group [isSubmitted]="true" [form]="signatoryInformation" [config]="signatoryFields"/>\r
85105
- </expandable-card>\r
85106
- \r
85107
- </federal-incorporation-form>\r
85108
- \r
85109
- <div class="incorporation-delta-form-actions">\r
85110
- <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
85111
- <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
85112
- </button>\r
85113
- <button\r
85114
- class="submit"\r
85115
- color="primary"\r
85116
- mat-flat-button\r
85117
- [disabled]="actionsDisabled() || !getFormGroup(groups.Signatory).get(controls.Signatory)?.value"\r
85118
- (click)="file.emit()"\r
85119
- >\r
85120
- <span class="body-1-semibold">{{ 'File' | translate }}</span>\r
85121
- </button>\r
85122
- </div>\r
85123
- </div>\r
85284
+ ], template: `<div class="incorporation-delta-form">
85285
+ <federal-incorporation-form
85286
+ class="incorporation-delta-form-content"
85287
+ [form]="form()"
85288
+ [task]="task()"
85289
+ [errors]="errors()"
85290
+ [selectedDocuments]="selectedDocuments()"
85291
+ [isStatusIcon]="false"
85292
+ [isReadonly]="true"
85293
+ >
85294
+ @let signatoryInformation = getFormGroup(groups.Signatory);
85295
+
85296
+ <expandable-card [isExpandable]="false">
85297
+ <filing-form-group [isSubmitted]="true" [form]="signatoryInformation" [config]="signatoryFields"/>
85298
+ </expandable-card>
85299
+
85300
+ </federal-incorporation-form>
85301
+
85302
+ <div class="incorporation-delta-form-actions">
85303
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">
85304
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>
85305
+ </button>
85306
+ <button
85307
+ class="submit"
85308
+ color="primary"
85309
+ mat-flat-button
85310
+ [disabled]="actionsDisabled() || !getFormGroup(groups.Signatory).get(controls.Signatory)?.value"
85311
+ (click)="file.emit()"
85312
+ >
85313
+ <span class="body-1-semibold">{{ 'File' | translate }}</span>
85314
+ </button>
85315
+ </div>
85316
+ </div>
85124
85317
  `, styles: ["/* src/app/components/federal/incorporation/steps/preview/federal-incorporation-preview-form.component.scss */\n:host .incorporation-delta-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .incorporation-delta-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n overflow: auto;\n}\n:host .incorporation-delta-form-item {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .incorporation-delta-form-errors {\n padding: 0 16px;\n}\n:host .incorporation-delta-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .incorporation-delta-form-actions button {\n margin: 0;\n}\n/*# sourceMappingURL=federal-incorporation-preview-form.component.css.map */\n"] }]
85125
85318
  }], () => [], null);
85126
85319
  })();
@@ -85752,139 +85945,139 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85752
85945
  ReactiveFormsModule,
85753
85946
  MatButton,
85754
85947
  TranslatePipe
85755
- ], template: `<div class="federal-update-maintain-form">\r
85756
- @if (isNote()) {\r
85757
- <alert\r
85758
- [type]="alertType.Info"\r
85759
- title="Entity changed"\r
85760
- content="A new draft needs to be generated as the Entity was changed since the last draft was produced."\r
85761
- />\r
85762
- }\r
85763
- \r
85764
- @if (errors().length) {\r
85765
- <alert\r
85766
- title="The following issues need to be resolved before proceeding:"\r
85767
- [content]="errors()"\r
85768
- />\r
85769
- }\r
85770
- \r
85771
- <div class="federal-update-maintain-form-content">\r
85772
- @let corporationDetails = getFormGroup(groups.CorporationDetails);\r
85773
- @if (corporationDetails) {\r
85774
- <expandable-card\r
85775
- [isValid]="sectionValidity['corporationDetails']"\r
85776
- [title]="groups.CorporationDetails"\r
85777
- >\r
85778
- <filing-form-group\r
85779
- [isSubmitted]="isSubmitted()"\r
85780
- [form]="corporationDetails"\r
85781
- [config]="corporationDetailsFields"\r
85782
- (visiblyValidChange)="\r
85783
- onSectionValidChange('corporationDetails', $event)\r
85784
- "\r
85785
- />\r
85786
- </expandable-card>\r
85787
- }\r
85788
- \r
85789
- @let directorsArray = getFormArray(groups.Directors);\r
85790
- @if (directorsArray && directorsArray.length) {\r
85791
- <expandable-list-card\r
85792
- [isValid]="sectionValidity['directors']"\r
85793
- [isSubmitted]="isSubmitted()"\r
85794
- [fields]="directorsFields"\r
85795
- [formArray]="directorsArray"\r
85796
- [labelKey]="controls.AffiliationName"\r
85797
- [title]="groups.Directors"\r
85798
- (visiblyValidChange)="onSectionValidChange('directors', $event)"\r
85799
- />\r
85800
- } @else {\r
85801
- <expandable-card [title]="groups.Directors">\r
85802
- <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>\r
85803
- </expandable-card>\r
85804
- }\r
85805
- \r
85806
- @let annualReturn = getFormGroup(groups.AnnualReturn);\r
85807
- @if (annualReturn) {\r
85808
- <expandable-card\r
85809
- [isValid]="sectionValidity['annualReturn']"\r
85810
- [title]="groups.AnnualReturn"\r
85811
- >\r
85812
- <filing-form-group\r
85813
- [isSubmitted]="isSubmitted()"\r
85814
- [form]="annualReturn"\r
85815
- [config]="annualReturnFields"\r
85816
- (visiblyValidChange)="onSectionValidChange('annualReturn', $event)"\r
85817
- />\r
85818
- </expandable-card>\r
85819
- }\r
85820
- \r
85821
- @let significantControl = getFormGroup(groups.SignificantControl);\r
85822
- @if (significantControl) {\r
85823
- @let individualsArray =\r
85824
- getFormArray(groups.IndividualsWithSignificantControl);\r
85825
- @if (individualsArray) {\r
85826
- <expandable-list-card\r
85827
- [areItemsOpen]="isIndividualsWithSignificantControlOpen()"\r
85828
- [isValid]="\r
85829
- sectionValidity['isc'] && sectionValidity['significantControl']\r
85830
- "\r
85831
- [isSubmitted]="isSubmitted()"\r
85832
- [isStatusIcon]="true"\r
85833
- [removable]="!readonly()"\r
85834
- [fields]="individualsWithSignificantControlFields()"\r
85835
- [formArray]="individualsArray"\r
85836
- [labelKey]="controls.AffiliationName"\r
85837
- [title]="groups.IndividualsWithSignificantControl"\r
85838
- (remove)="onRemoveIndividualWithSignificantForm($event)"\r
85839
- (visiblyValidChange)="onSectionValidChange('isc', $event)"\r
85840
- >\r
85841
- @if (\r
85842
- !readonly() && isAddIndividualWithSignificantControlAvailable()\r
85843
- ) {\r
85844
- <button\r
85845
- [disabled]="isAddIndividualWithSignificantControlDisabled()"\r
85846
- slot="subtitle"\r
85847
- mat-stroked-button\r
85848
- mat-button\r
85849
- (click)="addIndividualWithSignificantControl()"\r
85850
- >\r
85851
- <span class="body-1-semibold">{{\r
85852
- "Add Individuals With Significant Control" | translate\r
85853
- }}</span>\r
85854
- </button>\r
85855
- }\r
85856
- \r
85857
- <div class="card-header-content" slot="header-content">\r
85858
- <filing-form-group\r
85859
- [isSubmitted]="isSubmitted()"\r
85860
- [form]="significantControl"\r
85861
- [config]="significantControlFields"\r
85862
- (visiblyValidChange)="\r
85863
- onSectionValidChange('significantControl', $event)\r
85864
- "\r
85865
- />\r
85866
- </div>\r
85867
- </expandable-list-card>\r
85868
- }\r
85869
- }\r
85870
- \r
85871
- @let contact = getFormGroup(groups.Contact);\r
85872
- @if (contact) {\r
85873
- <expandable-card\r
85874
- [isStatusIcon]="!readonly()"\r
85875
- [isValid]="sectionValidity['contact']"\r
85876
- [title]="groups.Contact"\r
85877
- >\r
85878
- <filing-form-group\r
85879
- [isSubmitted]="isSubmitted()"\r
85880
- [form]="contact"\r
85881
- [config]="contactControl()"\r
85882
- (visiblyValidChange)="onSectionValidChange('contact', $event)"\r
85883
- />\r
85884
- </expandable-card>\r
85885
- }\r
85886
- </div>\r
85887
- </div>\r
85948
+ ], template: `<div class="federal-update-maintain-form">
85949
+ @if (isNote()) {
85950
+ <alert
85951
+ [type]="alertType.Info"
85952
+ title="Entity changed"
85953
+ content="A new draft needs to be generated as the Entity was changed since the last draft was produced."
85954
+ />
85955
+ }
85956
+
85957
+ @if (errors().length) {
85958
+ <alert
85959
+ title="The following issues need to be resolved before proceeding:"
85960
+ [content]="errors()"
85961
+ />
85962
+ }
85963
+
85964
+ <div class="federal-update-maintain-form-content">
85965
+ @let corporationDetails = getFormGroup(groups.CorporationDetails);
85966
+ @if (corporationDetails) {
85967
+ <expandable-card
85968
+ [isValid]="sectionValidity['corporationDetails']"
85969
+ [title]="groups.CorporationDetails"
85970
+ >
85971
+ <filing-form-group
85972
+ [isSubmitted]="isSubmitted()"
85973
+ [form]="corporationDetails"
85974
+ [config]="corporationDetailsFields"
85975
+ (visiblyValidChange)="
85976
+ onSectionValidChange('corporationDetails', $event)
85977
+ "
85978
+ />
85979
+ </expandable-card>
85980
+ }
85981
+
85982
+ @let directorsArray = getFormArray(groups.Directors);
85983
+ @if (directorsArray && directorsArray.length) {
85984
+ <expandable-list-card
85985
+ [isValid]="sectionValidity['directors']"
85986
+ [isSubmitted]="isSubmitted()"
85987
+ [fields]="directorsFields"
85988
+ [formArray]="directorsArray"
85989
+ [labelKey]="controls.AffiliationName"
85990
+ [title]="groups.Directors"
85991
+ (visiblyValidChange)="onSectionValidChange('directors', $event)"
85992
+ />
85993
+ } @else {
85994
+ <expandable-card [title]="groups.Directors">
85995
+ <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>
85996
+ </expandable-card>
85997
+ }
85998
+
85999
+ @let annualReturn = getFormGroup(groups.AnnualReturn);
86000
+ @if (annualReturn) {
86001
+ <expandable-card
86002
+ [isValid]="sectionValidity['annualReturn']"
86003
+ [title]="groups.AnnualReturn"
86004
+ >
86005
+ <filing-form-group
86006
+ [isSubmitted]="isSubmitted()"
86007
+ [form]="annualReturn"
86008
+ [config]="annualReturnFields"
86009
+ (visiblyValidChange)="onSectionValidChange('annualReturn', $event)"
86010
+ />
86011
+ </expandable-card>
86012
+ }
86013
+
86014
+ @let significantControl = getFormGroup(groups.SignificantControl);
86015
+ @if (significantControl) {
86016
+ @let individualsArray =
86017
+ getFormArray(groups.IndividualsWithSignificantControl);
86018
+ @if (individualsArray) {
86019
+ <expandable-list-card
86020
+ [areItemsOpen]="isIndividualsWithSignificantControlOpen()"
86021
+ [isValid]="
86022
+ sectionValidity['isc'] && sectionValidity['significantControl']
86023
+ "
86024
+ [isSubmitted]="isSubmitted()"
86025
+ [isStatusIcon]="true"
86026
+ [removable]="!readonly()"
86027
+ [fields]="individualsWithSignificantControlFields()"
86028
+ [formArray]="individualsArray"
86029
+ [labelKey]="controls.AffiliationName"
86030
+ [title]="groups.IndividualsWithSignificantControl"
86031
+ (remove)="onRemoveIndividualWithSignificantForm($event)"
86032
+ (visiblyValidChange)="onSectionValidChange('isc', $event)"
86033
+ >
86034
+ @if (
86035
+ !readonly() && isAddIndividualWithSignificantControlAvailable()
86036
+ ) {
86037
+ <button
86038
+ [disabled]="isAddIndividualWithSignificantControlDisabled()"
86039
+ slot="subtitle"
86040
+ mat-stroked-button
86041
+ mat-button
86042
+ (click)="addIndividualWithSignificantControl()"
86043
+ >
86044
+ <span class="body-1-semibold">{{
86045
+ "Add Individuals With Significant Control" | translate
86046
+ }}</span>
86047
+ </button>
86048
+ }
86049
+
86050
+ <div class="card-header-content" slot="header-content">
86051
+ <filing-form-group
86052
+ [isSubmitted]="isSubmitted()"
86053
+ [form]="significantControl"
86054
+ [config]="significantControlFields"
86055
+ (visiblyValidChange)="
86056
+ onSectionValidChange('significantControl', $event)
86057
+ "
86058
+ />
86059
+ </div>
86060
+ </expandable-list-card>
86061
+ }
86062
+ }
86063
+
86064
+ @let contact = getFormGroup(groups.Contact);
86065
+ @if (contact) {
86066
+ <expandable-card
86067
+ [isStatusIcon]="!readonly()"
86068
+ [isValid]="sectionValidity['contact']"
86069
+ [title]="groups.Contact"
86070
+ >
86071
+ <filing-form-group
86072
+ [isSubmitted]="isSubmitted()"
86073
+ [form]="contact"
86074
+ [config]="contactControl()"
86075
+ (visiblyValidChange)="onSectionValidChange('contact', $event)"
86076
+ />
86077
+ </expandable-card>
86078
+ }
86079
+ </div>
86080
+ </div>
85888
86081
  `, styles: ["/* src/app/components/federal/update-maintain/update-maintain-form/update-maintain-form.component.scss */\n:host .federal-update-maintain-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n overflow-y: auto;\n}\n:host .federal-update-maintain-form-content {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n:host .card-header-content {\n padding: 0 16px;\n}\n/*# sourceMappingURL=update-maintain-form.component.css.map */\n"] }]
85889
86082
  }], () => [], null);
85890
86083
  })();
@@ -85998,37 +86191,37 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85998
86191
  MatButton,
85999
86192
  TranslatePipe,
86000
86193
  FederalUpdateMaintainFormComponent
86001
- ], template: `<div class="federal-update-maintain-delta-form">\r
86002
- <federal-update-maintain-form\r
86003
- class="federal-update-maintain-delta-form-content"\r
86004
- [form]="form()"\r
86005
- [task]="task()"\r
86006
- [errors]="combinedErrors()"\r
86007
- [isNote]="isNote()"\r
86008
- [isSubmitted]="submitted()"\r
86009
- [readonly]="false"\r
86010
- (visiblyValidChange)="onVisiblyValidChange($event)"\r
86011
- />\r
86012
- \r
86013
- <div class="federal-update-maintain-delta-form-actions">\r
86014
- <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
86015
- <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
86016
- </button>\r
86017
- <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="save.emit()">\r
86018
- <span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>\r
86019
- </button>\r
86020
- <button\r
86021
- class="submit"\r
86022
- color="primary"\r
86023
- mat-flat-button\r
86024
- [disabled]="actionsDisabled()"\r
86025
- (click)="onValidate()"\r
86026
- >\r
86027
- <span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>\r
86028
- </button>\r
86029
- </div>\r
86030
- </div>\r
86031
- \r
86194
+ ], template: `<div class="federal-update-maintain-delta-form">
86195
+ <federal-update-maintain-form
86196
+ class="federal-update-maintain-delta-form-content"
86197
+ [form]="form()"
86198
+ [task]="task()"
86199
+ [errors]="combinedErrors()"
86200
+ [isNote]="isNote()"
86201
+ [isSubmitted]="submitted()"
86202
+ [readonly]="false"
86203
+ (visiblyValidChange)="onVisiblyValidChange($event)"
86204
+ />
86205
+
86206
+ <div class="federal-update-maintain-delta-form-actions">
86207
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">
86208
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>
86209
+ </button>
86210
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="save.emit()">
86211
+ <span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>
86212
+ </button>
86213
+ <button
86214
+ class="submit"
86215
+ color="primary"
86216
+ mat-flat-button
86217
+ [disabled]="actionsDisabled()"
86218
+ (click)="onValidate()"
86219
+ >
86220
+ <span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>
86221
+ </button>
86222
+ </div>
86223
+ </div>
86224
+
86032
86225
  `, styles: ["/* src/app/components/federal/update-maintain/steps/delta/update-maintain-delta-form.component.scss */\n:host .federal-update-maintain-delta-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .federal-update-maintain-delta-form-content {\n flex: 1;\n min-height: 0;\n}\n:host .federal-update-maintain-delta-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .federal-update-maintain-delta-form-actions button {\n margin: 0;\n}\n:host .federal-update-maintain-delta-form-actions .submit {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=update-maintain-delta-form.component.css.map */\n"] }]
86033
86226
  }], null, null);
86034
86227
  })();
@@ -86103,32 +86296,32 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86103
86296
  MatButton,
86104
86297
  TranslatePipe,
86105
86298
  FederalUpdateMaintainFormComponent
86106
- ], template: `<div class="federal-update-maintain-preview-form">\r
86107
- <federal-update-maintain-form\r
86108
- class="federal-update-maintain-preview-form-content"\r
86109
- [form]="form()"\r
86110
- [task]="task()"\r
86111
- [errors]="errors()"\r
86112
- [isSubmitted]="false"\r
86113
- [readonly]="true"\r
86114
- />\r
86115
- \r
86116
- <div class="federal-update-maintain-preview-form-actions">\r
86117
- <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
86118
- <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
86119
- </button>\r
86120
- <button\r
86121
- class="submit"\r
86122
- color="primary"\r
86123
- mat-flat-button\r
86124
- [disabled]="actionsDisabled()"\r
86125
- (click)="file.emit()"\r
86126
- >\r
86127
- <span class="body-1-semibold">{{ 'File' | translate }}</span>\r
86128
- </button>\r
86129
- </div>\r
86130
- </div>\r
86131
- \r
86299
+ ], template: `<div class="federal-update-maintain-preview-form">
86300
+ <federal-update-maintain-form
86301
+ class="federal-update-maintain-preview-form-content"
86302
+ [form]="form()"
86303
+ [task]="task()"
86304
+ [errors]="errors()"
86305
+ [isSubmitted]="false"
86306
+ [readonly]="true"
86307
+ />
86308
+
86309
+ <div class="federal-update-maintain-preview-form-actions">
86310
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">
86311
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>
86312
+ </button>
86313
+ <button
86314
+ class="submit"
86315
+ color="primary"
86316
+ mat-flat-button
86317
+ [disabled]="actionsDisabled()"
86318
+ (click)="file.emit()"
86319
+ >
86320
+ <span class="body-1-semibold">{{ 'File' | translate }}</span>
86321
+ </button>
86322
+ </div>
86323
+ </div>
86324
+
86132
86325
  `, styles: ["/* src/app/components/federal/update-maintain/steps/preview/update-maintain-preview-form.component.scss */\n:host .federal-update-maintain-preview-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .federal-update-maintain-preview-form-content {\n flex: 1;\n min-height: 0;\n}\n:host .federal-update-maintain-preview-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .federal-update-maintain-preview-form-actions button {\n margin: 0;\n}\n:host .federal-update-maintain-preview-form-actions .submit {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=update-maintain-preview-form.component.css.map */\n"] }]
86133
86326
  }], null, null);
86134
86327
  })();
@@ -86549,7 +86742,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86549
86742
  FederalIncorporationPreviewFormComponent,
86550
86743
  FederalUpdateMaintainDeltaFormComponent,
86551
86744
  FederalUpdateMaintainPreviewFormComponent
86552
- ], template: '@let currentTask = task();\r\n\r\n@if (currentTask) {\r\n @if (isFormationTask(currentTask)) {\r\n @if (activeStep() === steps.Validate) {\r\n <federal-incorporation-delta-form\r\n [documents]="documents"\r\n [selectedDocuments]="selectedDocuments()"\r\n (addDocuments)="onAddDocuments($event)"\r\n (removeDocument)="onRemoveDocument($event)"\r\n (close)="onClose()"\r\n (validate)="onValidate()"\r\n (save)="onSave()"\r\n [task]="currentTask"\r\n [errors]="errors()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [isNote]="isNote()"\r\n [form]="deltaForm()"\r\n />\r\n\r\n } @else if (activeStep() === steps.FilingPreview) {\r\n <federal-incorporation-preview-form (close)="close.emit()" (file)="onFile()" [task]="currentTask"\r\n [errors]="errors()"\r\n [actionsDisabled]="actionsDisabled()" [form]="previewForm()"\r\n [selectedDocuments]="selectedDocuments()"/>\r\n }\r\n }\r\n\r\n @if (isUpdateMaintainTask(currentTask)) {\r\n @if (activeStep() === steps.Validate) {\r\n <federal-update-maintain-delta-form\r\n [task]="$any(currentTask)"\r\n [form]="umDeltaForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n (validate)="onUmValidate()"\r\n (close)="onClose()"\r\n (save)="onUmSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <federal-update-maintain-preview-form\r\n [task]="$any(currentTask)"\r\n [form]="umPreviewForm()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [errors]="errors()"\r\n (close)="close.emit()"\r\n (file)="onUmSubmit()"\r\n />\r\n }\r\n }\r\n}\r\n\r\n\r\n\r\n\r\n\r\n', styles: ["/* src/app/components/federal/federal.component.scss */\n:host .federal {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n/*# sourceMappingURL=federal.component.css.map */\n"] }]
86745
+ ], template: '@let currentTask = task();\n\n@if (currentTask) {\n @if (isFormationTask(currentTask)) {\n @if (activeStep() === steps.Validate) {\n <federal-incorporation-delta-form\n [documents]="documents"\n [selectedDocuments]="selectedDocuments()"\n (addDocuments)="onAddDocuments($event)"\n (removeDocument)="onRemoveDocument($event)"\n (close)="onClose()"\n (validate)="onValidate()"\n (save)="onSave()"\n [task]="currentTask"\n [errors]="errors()"\n [actionsDisabled]="actionsDisabled()"\n [isNote]="isNote()"\n [form]="deltaForm()"\n />\n\n } @else if (activeStep() === steps.FilingPreview) {\n <federal-incorporation-preview-form (close)="close.emit()" (file)="onFile()" [task]="currentTask"\n [errors]="errors()"\n [actionsDisabled]="actionsDisabled()" [form]="previewForm()"\n [selectedDocuments]="selectedDocuments()"/>\n }\n }\n\n @if (isUpdateMaintainTask(currentTask)) {\n @if (activeStep() === steps.Validate) {\n <federal-update-maintain-delta-form\n [task]="$any(currentTask)"\n [form]="umDeltaForm()"\n [actionsDisabled]="actionsDisabled()"\n [errors]="errors()"\n [isNote]="isNote()"\n (validate)="onUmValidate()"\n (close)="onClose()"\n (save)="onUmSave()"\n />\n }\n\n @if (activeStep() === steps.FilingPreview) {\n <federal-update-maintain-preview-form\n [task]="$any(currentTask)"\n [form]="umPreviewForm()"\n [actionsDisabled]="actionsDisabled()"\n [errors]="errors()"\n (close)="close.emit()"\n (file)="onUmSubmit()"\n />\n }\n }\n}\n\n\n\n\n\n', styles: ["/* src/app/components/federal/federal.component.scss */\n:host .federal {\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n/*# sourceMappingURL=federal.component.css.map */\n"] }]
86553
86746
  }], () => [], null);
86554
86747
  })();
86555
86748
  (() => {
@@ -86831,14 +87024,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86831
87024
  throw new Error(`submitInitialReturnValidationToECore: task is not InitialReturn (${signature.task?._taskType})`);
86832
87025
  }
86833
87026
  const fetchFn = opts?.fetchImpl ?? fetch;
87027
+ const entityKey = signature.task.entity._profile.registry_id;
86834
87028
  const CorporationInformation = {
86835
87029
  FilingFormType: _OntarioUpdateMaintainService.getFilingFormType(signature.task),
86836
87030
  Jurisdiction: "ON",
86837
- CorporationInformation: {
87031
+ CorporationInformation: __spreadValues({
86838
87032
  CorporationNumber: signature.task.entity._profile.corp_number,
86839
87033
  CorporationName: signature.task.entity._profile.name,
86840
87034
  IncorporationDate: signature.task.entity._compliance.incorporation_date
86841
- }
87035
+ }, entityKey ? { EntityKey: entityKey } : {})
86842
87036
  };
86843
87037
  const url = signature.proxyApiUrl;
86844
87038
  const resp = yield fetchFn(url, {
@@ -86854,15 +87048,25 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86854
87048
  }, opts?.headers ?? {}),
86855
87049
  body: JSON.stringify(CorporationInformation)
86856
87050
  });
86857
- const data = yield resp.json();
86858
- return data["ServiceOrderId"];
87051
+ const raw = yield resp.text();
87052
+ const parsed = tryParseJson(raw);
87053
+ if (!parsed.ok) {
87054
+ throw new Error(`eCore returned ${resp.status} ${resp.statusText}: ${raw || "(empty body)"}`);
87055
+ }
87056
+ const data = parsed.value;
87057
+ if (!resp.ok || data?.Errors?.length) {
87058
+ const err = buildValidateError(resp.status, data);
87059
+ err.validateResult = data;
87060
+ throw err;
87061
+ }
87062
+ return data.ServiceOrderId ?? "";
86859
87063
  });
86860
87064
  }
86861
87065
  submitData(signature, id, opts) {
86862
87066
  return __async(this, null, function* () {
86863
87067
  const fetchFn = opts?.fetchImpl ?? fetch;
86864
87068
  const url = signature.proxyApiUrl;
86865
- yield fetchFn(url, {
87069
+ const resp = yield fetchFn(url, {
86866
87070
  method: "POST",
86867
87071
  headers: __spreadValues({
86868
87072
  "Content-Type": "application/json",
@@ -86874,6 +87078,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86874
87078
  Cookie: "AWSALB=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53; AWSALBCORS=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53"
86875
87079
  }, opts?.headers ?? {})
86876
87080
  });
87081
+ const raw = yield resp.text();
87082
+ const parsed = tryParseJson(raw);
87083
+ const errors = parsed.ok ? parsed.value?.Errors : void 0;
87084
+ if (!resp.ok || errors?.length) {
87085
+ const result = parsed.ok ? parsed.value : { Errors: errors ?? [] };
87086
+ const err = buildValidateError(resp.status, result);
87087
+ err.validateResult = result;
87088
+ throw err;
87089
+ }
86877
87090
  });
86878
87091
  }
86879
87092
  getCurrentData(signature, id, opts) {
@@ -86999,6 +87212,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86999
87212
  });
87000
87213
 
87001
87214
  // src/app/helpers/initial-return-payload.helper.ts
87215
+ function parseUnitTypeToEnumNumeric(raw) {
87216
+ if (raw === null || raw === void 0 || raw === "")
87217
+ return void 0;
87218
+ const numeric = Number(raw);
87219
+ if (!isNaN(numeric))
87220
+ return numeric;
87221
+ const upper = raw.toString().toUpperCase();
87222
+ const match = Object.entries(ECoreCanadianUnitType).find(([name]) => name.toUpperCase() === upper);
87223
+ if (!match)
87224
+ return void 0;
87225
+ const value = Number(match[1]);
87226
+ return isNaN(value) ? void 0 : value;
87227
+ }
87002
87228
  function irPersonPayloadToDeltaData(payload) {
87003
87229
  if (!payload) {
87004
87230
  return null;
@@ -87014,15 +87240,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87014
87240
  };
87015
87241
  }
87016
87242
  function extractAddressDeltaDataFromInitialReturnAdditionalDetails(details) {
87017
- const toNum = (v) => {
87018
- if (v === null || v === void 0 || v === "")
87019
- return void 0;
87020
- const n = Number(v);
87021
- return isNaN(n) ? void 0 : n;
87022
- };
87023
87243
  const region = details.RegionName ?? details.Region ?? details.Prov ?? "";
87024
87244
  const country = details.CountryCode ?? "";
87025
87245
  const province = country === "CA" ? CANCodeToProvince(region) : country === "US" ? USCodeToState(region) : region;
87246
+ const unitType = parseUnitTypeToEnumNumeric(details.UnitType);
87026
87247
  return __spreadValues(__spreadValues(__spreadValues(__spreadValues({
87027
87248
  streetNumber: details.StreetNumber ?? "",
87028
87249
  streetName: details.StreetName ?? "",
@@ -87031,18 +87252,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87031
87252
  postalCode: details.PostCode ?? void 0,
87032
87253
  country,
87033
87254
  careOf: details.CareOf ?? void 0
87034
- }, details.StreetType != null && { streetType: details.StreetType }), details.StreetDirection != null && { streetDirection: details.StreetDirection }), toNum(details.UnitType) !== void 0 && { unitType: toNum(details.UnitType) }), details.UnitNumber != null && { unitNumber: details.UnitNumber });
87255
+ }, details.StreetType != null && { streetType: details.StreetType }), details.StreetDirection != null && { streetDirection: details.StreetDirection }), unitType !== void 0 && { unitType }), details.UnitNumber != null && { unitNumber: details.UnitNumber });
87035
87256
  }
87036
87257
  function extractAddressDeltaDataFromInitialReturnAddressContainer(postalAddress) {
87037
87258
  const { AddressLocale, AddressCA, AddressUS, AddressINTL } = postalAddress;
87038
- const toNum = (v) => {
87039
- if (v === null || v === void 0 || v === "")
87040
- return void 0;
87041
- const n = Number(v);
87042
- return isNaN(n) ? void 0 : n;
87043
- };
87044
87259
  if (AddressLocale === "CA" && AddressCA) {
87045
87260
  const region = AddressCA.RegionName ?? AddressCA.Region ?? "";
87261
+ const unitType = parseUnitTypeToEnumNumeric(AddressCA.UnitType);
87262
+ const unitNumber = AddressCA.Address3 ?? AddressCA.Suite ?? null;
87046
87263
  return __spreadValues(__spreadValues(__spreadValues(__spreadValues({
87047
87264
  streetNumber: postalAddress.StreetNumber ?? AddressCA.Address1 ?? "",
87048
87265
  streetName: postalAddress.StreetName ?? AddressCA.Address2 ?? "",
@@ -87051,7 +87268,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87051
87268
  postalCode: postalAddress.PostCode ?? AddressCA.PostCode ?? void 0,
87052
87269
  country: postalAddress.CountryCode ?? AddressCA.CountryCode,
87053
87270
  careOf: postalAddress.CareOf ?? AddressCA.CareOf ?? void 0
87054
- }, AddressCA.StreetType !== void 0 && { streetType: AddressCA.StreetType ?? "" }), AddressCA.StreetDirection !== void 0 && { streetDirection: AddressCA.StreetDirection ?? "" }), toNum(AddressCA.UnitType) !== void 0 && { unitType: toNum(AddressCA.UnitType) }), AddressCA.Suite != null && { unitNumber: AddressCA.Suite });
87271
+ }, AddressCA.StreetType !== void 0 && { streetType: AddressCA.StreetType ?? "" }), AddressCA.StreetDirection !== void 0 && { streetDirection: AddressCA.StreetDirection ?? "" }), unitType !== void 0 && { unitType }), unitNumber != null && unitNumber !== "" && { unitNumber });
87055
87272
  }
87056
87273
  if (AddressLocale === "US" && AddressUS) {
87057
87274
  const region = AddressUS.RegionName ?? AddressUS.Region ?? "";
@@ -87065,6 +87282,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87065
87282
  };
87066
87283
  }
87067
87284
  if (AddressLocale === "INTL" && AddressINTL) {
87285
+ const unitNumber = AddressINTL.Suite ?? AddressINTL.Address3 ?? null;
87068
87286
  return __spreadValues({
87069
87287
  streetNumber: postalAddress.StreetNumber ?? AddressINTL.Address1 ?? "",
87070
87288
  streetName: postalAddress.StreetName ?? AddressINTL.Address2 ?? "",
@@ -87072,7 +87290,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87072
87290
  province: postalAddress.RegionName ?? AddressINTL.RegionName ?? AddressINTL.Region,
87073
87291
  postalCode: postalAddress.PostCode ?? AddressINTL.PostCode ?? void 0,
87074
87292
  country: postalAddress.CountryCode ?? AddressINTL.CountryCode
87075
- }, AddressINTL.Suite != null && { unitNumber: AddressINTL.Suite });
87293
+ }, unitNumber != null && unitNumber !== "" && { unitNumber });
87076
87294
  }
87077
87295
  return {
87078
87296
  streetNumber: postalAddress.StreetNumber ?? "",
@@ -87086,14 +87304,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87086
87304
  }
87087
87305
  function extractAddressDeltaData(postalAddress) {
87088
87306
  const { AddressLocale, AddressCA, AddressUS, AddressINTL } = postalAddress;
87089
- const toNum = (v) => {
87090
- if (v === null || v === void 0 || v === "")
87091
- return void 0;
87092
- const n = Number(v);
87093
- return isNaN(n) ? void 0 : n;
87094
- };
87095
87307
  if (AddressLocale === "CA" && AddressCA) {
87096
87308
  const region = AddressCA.RegionName ?? AddressCA.Region ?? "";
87309
+ const unitType = parseUnitTypeToEnumNumeric(AddressCA.UnitType);
87310
+ const unitNumber = AddressCA.Suite ?? AddressCA.Address3 ?? null;
87097
87311
  return __spreadValues(__spreadValues(__spreadValues(__spreadValues({
87098
87312
  streetNumber: AddressCA.Address1,
87099
87313
  streetName: AddressCA.Address2,
@@ -87102,7 +87316,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87102
87316
  postalCode: AddressCA.PostCode ?? void 0,
87103
87317
  country: AddressCA.CountryCode,
87104
87318
  careOf: AddressCA.CareOf ?? void 0
87105
- }, AddressCA.StreetType !== void 0 && { streetType: AddressCA.StreetType ?? "" }), AddressCA.StreetDirection !== void 0 && { streetDirection: AddressCA.StreetDirection ?? "" }), toNum(AddressCA.UnitType) !== void 0 && { unitType: toNum(AddressCA.UnitType) }), AddressCA.Suite != null && { unitNumber: AddressCA.Suite });
87319
+ }, AddressCA.StreetType !== void 0 && { streetType: AddressCA.StreetType ?? "" }), AddressCA.StreetDirection !== void 0 && { streetDirection: AddressCA.StreetDirection ?? "" }), unitType !== void 0 && { unitType }), unitNumber != null && unitNumber !== "" && { unitNumber });
87106
87320
  }
87107
87321
  if (AddressLocale === "US" && AddressUS) {
87108
87322
  const region = AddressUS.RegionName ?? AddressUS.Region ?? "";
@@ -87116,6 +87330,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87116
87330
  };
87117
87331
  }
87118
87332
  if (AddressLocale === "INTL" && AddressINTL) {
87333
+ const unitNumber = AddressINTL.Suite ?? AddressINTL.Address3 ?? null;
87119
87334
  return __spreadValues({
87120
87335
  streetNumber: AddressINTL.Address1,
87121
87336
  streetName: AddressINTL.Address2,
@@ -87123,7 +87338,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87123
87338
  province: AddressINTL.RegionName ?? AddressINTL.Region,
87124
87339
  postalCode: AddressINTL.PostCode ?? void 0,
87125
87340
  country: AddressINTL.CountryCode
87126
- }, AddressINTL.Suite != null && { unitNumber: AddressINTL.Suite });
87341
+ }, unitNumber != null && unitNumber !== "" && { unitNumber });
87127
87342
  }
87128
87343
  return { streetNumber: "", streetName: "" };
87129
87344
  }
@@ -87177,6 +87392,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87177
87392
  var init_initial_return_payload_helper = __esm({
87178
87393
  "src/app/helpers/initial-return-payload.helper.ts"() {
87179
87394
  init_address_utils();
87395
+ init_transform_utils();
87180
87396
  }
87181
87397
  });
87182
87398
 
@@ -87545,7 +87761,27 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87545
87761
  return ECoreFilingFormType.InitialReturn;
87546
87762
  }
87547
87763
  }
87548
- function buildOntarioUpdateMaintainValidationRequest(task, deltaData, serviceOrderId) {
87764
+ function buildOntarioUpdateMaintainValidationRequest(task, deltaData, serviceOrderId, corporationInfo) {
87765
+ const initialAdministrators = corporationInfo?.CurrentData.InitialAdministrators;
87766
+ const normalizePersonTitle = (name) => (name ?? "").trim().replace(/\s+/g, " ").toLowerCase();
87767
+ const getCurrentDataAdministrator = (aff, isOfficer) => {
87768
+ const affiliationTitle = normalizePersonTitle(generateAffiliationTitle(aff));
87769
+ if (!affiliationTitle || !initialAdministrators?.length) {
87770
+ return null;
87771
+ }
87772
+ const matchedOfficer = initialAdministrators.find((admin) => {
87773
+ if (!admin || Boolean(admin.IsDirector) === isOfficer) {
87774
+ return false;
87775
+ }
87776
+ const adminTitle = normalizePersonTitle([
87777
+ admin.PersonName?.FirstName,
87778
+ admin.PersonName?.MiddleName,
87779
+ admin.PersonName?.LastName
87780
+ ].filter(Boolean).join(" "));
87781
+ return adminTitle === affiliationTitle;
87782
+ });
87783
+ return matchedOfficer ?? null;
87784
+ };
87549
87785
  const getEmail = (aff) => aff.participant?.communications?.find((c) => c.type.toLowerCase().includes("email"))?.value ?? "";
87550
87786
  const buildPostalAddress = (entityAddress, deltaAddr) => {
87551
87787
  const country = normalizeCountryCode(entityAddress?.country ?? "");
@@ -87553,11 +87789,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87553
87789
  const Region = country === "CA" ? CANProvinceToCode(province) : country === "US" ? USStateToCode(province) : province;
87554
87790
  const streetOnly = getAddressComponent(entityAddress, "Street Only");
87555
87791
  const { StreetName, StreetType: StreetType2, StreetDirection: StreetDirection2 } = parseStreetAddress(streetOnly);
87792
+ const isCanadianAddress = country === "CA";
87556
87793
  const streetNumber = deltaAddr?.streetNumber ?? getAddressComponent(entityAddress, "Street Number Only") ?? "";
87557
- const streetName = deltaAddr?.streetName ?? StreetName ?? "";
87558
- const streetType = deltaAddr?.streetType ?? StreetType2 ?? null;
87559
- const streetDir = deltaAddr?.streetDirection ?? (StreetDirection2 ? StreetDirection2 : null);
87560
- const unitType = deltaAddr?.unitType ?? null;
87794
+ const streetName = isCanadianAddress ? deltaAddr?.streetName ?? StreetName ?? "" : streetOnly ?? "";
87795
+ const streetType = isCanadianAddress ? deltaAddr?.streetType ?? StreetType2 ?? null : null;
87796
+ const streetDir = isCanadianAddress ? deltaAddr?.streetDirection ?? (StreetDirection2 ? StreetDirection2 : null) : null;
87797
+ const unitType = isCanadianAddress ? deltaAddr?.unitType ?? null : null;
87561
87798
  const unitNumber = deltaAddr?.unitNumber ?? getAddressComponent(entityAddress, "Suite/Apartment") ?? null;
87562
87799
  const careOf = getAddressComponent(entityAddress, "Attention") || entityAddress?.attention || "";
87563
87800
  const AddressLocale = country === "CA" ? "CA" : country === "US" ? "US" : "INTL";
@@ -87576,7 +87813,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87576
87813
  RegionName: Region,
87577
87814
  CareOf: careOf,
87578
87815
  StreetNumberSuffix: "",
87579
- StreetType: streetType.toString(),
87816
+ StreetType: streetType?.toString(),
87580
87817
  StreetDirection: streetDir,
87581
87818
  UnitType: mapUnitTypeToEcore(unitType)
87582
87819
  } : null,
@@ -87611,92 +87848,106 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87611
87848
  const middleName = profile.middleName ?? "";
87612
87849
  const lastName = profile.lastName ?? "";
87613
87850
  const email = getEmail(aff);
87614
- const electedDate = toYyyyMmDd(new Date(aff.start_date)) ?? "";
87851
+ const electedDate = toYyyyMmDd(aff.start_date) ?? "";
87615
87852
  const ceaseDate = toYyyyMmDd(aff.end_date) ?? "";
87616
87853
  const residentCanadian = String(deltaEntry?.residentCanadian ?? false);
87617
87854
  const entityAddr = aff.addresses?.at(0) || aff.parent_affiliation?.addresses?.at(0);
87618
87855
  const PostalAddress = buildPostalAddress(entityAddr, deltaEntry?.address);
87619
87856
  const PersonName = { FirstName: firstName, MiddleName: middleName, LastName: lastName };
87620
- const position = isOfficer ? OFFICER_TITLE_TO_ECORE_POSITION_CODE[aff.role?.static_title ?? ""] ?? "" : "Director";
87621
- const positionName = ECORE_POSITION_CODE_TO_POSITION_NAME[position] ?? "Director";
87857
+ const position = isOfficer ? OFFICER_TITLE_TO_ECORE_POSITION_CODE[toTitleCase(aff.role?.static_title ?? "")] ?? "" : "Director";
87858
+ const matchingAdmin = getCurrentDataAdministrator(aff, isOfficer);
87859
+ const isCeaseAction = currentState === IRCurrentState.Ceased;
87860
+ const isDirectorFromRole = aff.role?.role_name === "Director";
87861
+ const mappedCurrentStateName = currentState === IRCurrentState.Added ? "Added" : currentState === IRCurrentState.Ceased ? "Ceased" : "Edited";
87862
+ const mappedId = matchingAdmin?.Id ?? "";
87863
+ const mappedRoleId = matchingAdmin?.RoleId ?? "";
87864
+ const personNameRoleId = isOfficer ? matchingAdmin?.RoleId ?? null : null;
87865
+ const mappedCeaseDate = currentState === IRCurrentState.Ceased ? ceaseDate : "";
87866
+ const mappedElectedDate = currentState === IRCurrentState.Added ? electedDate : "";
87867
+ const positionName = ECORE_POSITION_CODE_TO_POSITION_NAME[position?.toUpperCase()];
87622
87868
  if (!isOfficer) {
87623
87869
  switch (currentState) {
87624
87870
  case IRCurrentState.Added:
87625
87871
  return {
87626
- Id: 5,
87627
- CeaseDate: "",
87872
+ Id: mappedId,
87873
+ RoleId: mappedRoleId,
87874
+ CeaseDate: mappedCeaseDate,
87628
87875
  CeasedAppointedRoles: [
87629
87876
  {
87630
- Id: aff._id,
87631
- Position: position,
87632
- PositionFullName: positionName,
87877
+ State: "",
87878
+ StateName: "",
87879
+ Position: "Director",
87880
+ PositionFullName: "Director",
87881
+ CeasedDate: "",
87633
87882
  AppointedDate: electedDate
87634
87883
  }
87635
87884
  ],
87636
- ElectedDate: electedDate,
87885
+ ElectedDate: mappedElectedDate,
87637
87886
  EmailAddress: email,
87638
- IsDirector: true,
87639
- PersonName: __spreadProps(__spreadValues({}, PersonName), { Position: null }),
87887
+ IsDirector: isDirectorFromRole,
87888
+ PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: null }),
87640
87889
  OfficerPosition: "",
87641
87890
  OfficerPositionName: "",
87642
87891
  OfficerPositionSpecified: false,
87643
87892
  PostalAddress,
87644
87893
  ResidentCanadian: residentCanadian,
87645
87894
  IsInvalid: false,
87646
- CurrentState: currentState
87895
+ CurrentState: currentState,
87896
+ CurrentStateName: mappedCurrentStateName
87647
87897
  };
87648
87898
  case IRCurrentState.Ceased:
87649
87899
  return {
87650
- OfficerPosition: 0,
87900
+ OfficerPosition: "",
87651
87901
  OfficerPositionSpecified: false,
87652
87902
  OfficerId: null,
87903
+ CeaseDate: mappedCeaseDate,
87904
+ ElectedDate: mappedElectedDate,
87653
87905
  CeasedAppointedRoles: [
87654
87906
  {
87655
- State: IRCurrentState.Added,
87656
- StateName: "Changed",
87657
- Position: null,
87907
+ State: matchingAdmin && isCeaseAction ? IRCurrentState.Ceased : "",
87908
+ StateName: matchingAdmin && isCeaseAction ? "Ceased" : "",
87909
+ Position: "Director",
87658
87910
  PositionFullName: "Director",
87659
- CeasedDate: ceaseDate,
87660
- AppointedDate: electedDate,
87661
- AppointedDateSpecified: true,
87662
- EditAppointedDate: false
87911
+ CeasedDate: matchingAdmin && isCeaseAction ? ceaseDate : "",
87912
+ AppointedDate: ""
87663
87913
  }
87664
87914
  ],
87665
87915
  CurrentState: currentState,
87666
- CurrentStateName: "Unchanged",
87667
- OfficerPositionName: "Director",
87668
- Id: aff._id,
87669
- RoleId: aff.role?.role_name ?? "",
87670
- IsDirector: true,
87916
+ CurrentStateName: mappedCurrentStateName,
87917
+ OfficerPositionName: "",
87918
+ Id: mappedId,
87919
+ RoleId: mappedRoleId,
87920
+ IsDirector: isDirectorFromRole,
87671
87921
  ResidentCanadian: residentCanadian,
87672
- PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: aff.role?.role_name ?? "", Position: null })
87922
+ PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: null }),
87923
+ PostalAddress,
87924
+ EmailAddress: email
87673
87925
  };
87674
87926
  case IRCurrentState.Changed:
87675
87927
  return {
87676
- OfficerPosition: 0,
87928
+ OfficerPosition: "",
87929
+ OfficerPositionSpecified: false,
87677
87930
  OfficerId: null,
87678
87931
  CeasedAppointedRoles: [
87679
87932
  {
87680
- State: 1,
87681
- StateName: "Unchanged",
87682
- Position: null,
87933
+ State: matchingAdmin && isCeaseAction ? IRCurrentState.Ceased : "",
87934
+ StateName: matchingAdmin && isCeaseAction ? "Ceased" : "",
87935
+ Position: "Director",
87683
87936
  PositionFullName: "Director",
87684
- CeasedDate: ceaseDate,
87685
- AppointedDate: electedDate,
87686
- AppointedDateSpecified: true,
87687
- EditAppointedDate: false
87937
+ CeasedDate: matchingAdmin && isCeaseAction ? ceaseDate : "",
87938
+ AppointedDate: ""
87688
87939
  }
87689
87940
  ],
87690
- CurrentState: 1,
87691
- CurrentStateName: "Unchanged",
87692
- OfficerPositionName: "Director",
87693
- Id: aff._id,
87694
- RoleId: aff.role?.role_name ?? "",
87695
- IsDirector: true,
87941
+ CurrentState: currentState,
87942
+ CurrentStateName: mappedCurrentStateName,
87943
+ OfficerPositionName: "",
87944
+ Id: mappedId,
87945
+ RoleId: mappedRoleId,
87946
+ IsDirector: isDirectorFromRole,
87696
87947
  ResidentCanadian: residentCanadian,
87697
- PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: aff.role?.role_name ?? "", Position: null }),
87698
- CeaseDate: "",
87699
- ElectedDate: "",
87948
+ PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: null }),
87949
+ CeaseDate: mappedCeaseDate,
87950
+ ElectedDate: mappedElectedDate,
87700
87951
  CeasedDateSpecified: false,
87701
87952
  PostalAddress,
87702
87953
  EmailAddress: email,
@@ -87708,80 +87959,87 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87708
87959
  switch (currentState) {
87709
87960
  case IRCurrentState.Added:
87710
87961
  return {
87711
- Id: aff._id,
87712
- CeaseDate: "",
87962
+ Id: mappedId,
87963
+ RoleId: mappedRoleId,
87964
+ OfficerId: matchingAdmin?.Id ?? "",
87965
+ CeaseDate: mappedCeaseDate,
87713
87966
  CeasedAppointedRoles: [
87714
87967
  {
87715
- Id: aff._id,
87968
+ State: "",
87969
+ StateName: "",
87716
87970
  Position: position,
87717
87971
  PositionFullName: positionName,
87972
+ CeasedDate: "",
87718
87973
  AppointedDate: electedDate
87719
87974
  }
87720
87975
  ],
87721
- ElectedDate: electedDate,
87976
+ ElectedDate: mappedElectedDate,
87722
87977
  EmailAddress: email,
87723
- IsDirector: false,
87724
- PersonName,
87978
+ IsDirector: isDirectorFromRole,
87979
+ PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId }),
87725
87980
  OfficerPosition: position,
87981
+ Position: position,
87982
+ PositionName: positionName,
87726
87983
  OfficerPositionName: positionName,
87727
87984
  OfficerPositionSpecified: true,
87728
87985
  PostalAddress,
87729
87986
  ResidentCanadian: residentCanadian,
87730
87987
  IsInvalid: false,
87731
- CurrentState: 5
87988
+ CurrentState: currentState,
87989
+ CurrentStateName: mappedCurrentStateName
87732
87990
  };
87733
87991
  case IRCurrentState.Ceased:
87734
87992
  return {
87735
87993
  OfficerPosition: 0,
87736
87994
  OfficerPositionSpecified: true,
87737
- OfficerId: null,
87995
+ OfficerId: matchingAdmin?.Id ?? "",
87996
+ CeaseDate: mappedCeaseDate,
87997
+ ElectedDate: mappedElectedDate,
87738
87998
  CeasedAppointedRoles: [
87739
87999
  {
87740
- State: 2,
87741
- StateName: "Changed",
88000
+ State: matchingAdmin && isCeaseAction ? IRCurrentState.Ceased : "",
88001
+ StateName: matchingAdmin && isCeaseAction ? "Ceased" : "",
87742
88002
  Position: position,
87743
88003
  PositionFullName: positionName,
87744
- CeasedDate: ceaseDate,
87745
- AppointedDate: electedDate,
87746
- AppointedDateSpecified: true,
87747
- EditAppointedDate: false
88004
+ CeasedDate: matchingAdmin && isCeaseAction ? ceaseDate : "",
88005
+ AppointedDate: ""
87748
88006
  }
87749
88007
  ],
87750
88008
  CurrentState: IRCurrentState.Ceased,
87751
- CurrentStateName: "Unchanged",
88009
+ CurrentStateName: mappedCurrentStateName,
87752
88010
  OfficerPositionName: positionName,
87753
- Id: aff._id,
87754
- RoleId: aff.role?.role_name ?? "",
87755
- IsDirector: false,
88011
+ Id: mappedId,
88012
+ RoleId: mappedRoleId,
88013
+ IsDirector: isDirectorFromRole,
87756
88014
  ResidentCanadian: residentCanadian,
87757
- PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: aff.role?.role_name ?? "", Position: null })
88015
+ PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: null }),
88016
+ PostalAddress,
88017
+ EmailAddress: email
87758
88018
  };
87759
88019
  case IRCurrentState.Changed:
87760
88020
  return {
87761
88021
  OfficerPosition: 0,
87762
- OfficerId: null,
88022
+ OfficerId: matchingAdmin?.Id ?? "",
87763
88023
  CeasedAppointedRoles: [
87764
88024
  {
87765
- State: 1,
87766
- StateName: "Unchanged",
88025
+ State: matchingAdmin && isCeaseAction ? IRCurrentState.Ceased : "",
88026
+ StateName: matchingAdmin && isCeaseAction ? "Ceased" : "",
87767
88027
  Position: position,
87768
88028
  PositionFullName: positionName,
87769
- CeasedDate: ceaseDate,
87770
- AppointedDate: electedDate,
87771
- AppointedDateSpecified: true,
87772
- EditAppointedDate: false
88029
+ CeasedDate: matchingAdmin && isCeaseAction ? ceaseDate : "",
88030
+ AppointedDate: ""
87773
88031
  }
87774
88032
  ],
87775
- CurrentState: 1,
87776
- CurrentStateName: "Unchanged",
88033
+ CurrentState: currentState,
88034
+ CurrentStateName: mappedCurrentStateName,
87777
88035
  OfficerPositionName: positionName,
87778
- Id: aff._id,
87779
- RoleId: aff.role?.role_name ?? "",
87780
- IsDirector: false,
88036
+ Id: mappedId,
88037
+ RoleId: mappedRoleId,
88038
+ IsDirector: isDirectorFromRole,
87781
88039
  ResidentCanadian: residentCanadian,
87782
- PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: aff.role?.role_name ?? "", Position: position }),
87783
- CeaseDate: ceaseDate,
87784
- ElectedDate: electedDate,
88040
+ PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: position }),
88041
+ CeaseDate: mappedCeaseDate,
88042
+ ElectedDate: mappedElectedDate,
87785
88043
  CeasedDateSpecified: false,
87786
88044
  PostalAddress,
87787
88045
  EmailAddress: email,
@@ -87792,18 +88050,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87792
88050
  }
87793
88051
  return null;
87794
88052
  };
87795
- const { incomingAffiliations = [], outgoingAffiliations = [], editedAffiliations = [] } = task;
88053
+ const { incomingAffiliations = [], outgoingAffiliations = [] } = task;
87796
88054
  const isDirectorAff = (aff) => isPrincipalAffiliation2(aff) && aff.role.role_name === "Director";
87797
88055
  const isOfficerAff = (aff) => isPrincipalAffiliation2(aff) && aff.role.role_name === "Officer";
88056
+ const hasCurrentName = (deltaEntry) => {
88057
+ const currentName = deltaEntry?.currentName;
88058
+ return typeof currentName === "string" && currentName.trim().length > 0;
88059
+ };
88060
+ const incomingDirectors = incomingAffiliations.filter(isDirectorAff);
88061
+ const outgoingDirectors = outgoingAffiliations.filter(isDirectorAff);
88062
+ const addedDirectors = incomingDirectors.filter((a) => !hasCurrentName(deltaData.directors?.[a._id]));
88063
+ const editedDirectors = incomingDirectors.filter((a) => hasCurrentName(deltaData.directors?.[a._id]));
88064
+ const incomingOfficers = incomingAffiliations.filter(isOfficerAff);
88065
+ const outgoingOfficers = outgoingAffiliations.filter(isOfficerAff);
88066
+ const addedOfficers = incomingOfficers.filter((a) => !hasCurrentName(deltaData.officers?.[a._id]));
88067
+ const editedOfficers = incomingOfficers.filter((a) => hasCurrentName(deltaData.officers?.[a._id]));
87798
88068
  const ChangeDirectors = {
87799
- AddedDirectors: incomingAffiliations.filter(isDirectorAff).map((a) => buildPersonPayload(a, IRCurrentState.Added, deltaData.directors[a._id])),
87800
- CeasedDirectors: outgoingAffiliations.filter(isDirectorAff).map((a) => buildPersonPayload(a, IRCurrentState.Ceased, deltaData.directors[a._id])),
87801
- EditedDirectors: editedAffiliations.filter(isDirectorAff).map((a) => buildPersonPayload(a, IRCurrentState.Changed, deltaData.directors[a._id]))
88069
+ AddedDirectors: addedDirectors.map((a) => buildPersonPayload(a, IRCurrentState.Added, deltaData.directors?.[a._id])),
88070
+ CeasedDirectors: outgoingDirectors.map((a) => buildPersonPayload(a, IRCurrentState.Ceased, deltaData.directors?.[a._id])),
88071
+ EditedDirectors: editedDirectors.map((a) => buildPersonPayload(a, IRCurrentState.Changed, deltaData.directors?.[a._id]))
87802
88072
  };
87803
88073
  const ChangeOfficers = {
87804
- AddedOfficers: incomingAffiliations.filter(isOfficerAff).map((a) => buildPersonPayload(a, IRCurrentState.Added, deltaData.officers[a._id], true)),
87805
- CeasedOfficers: outgoingAffiliations.filter(isOfficerAff).map((a) => buildPersonPayload(a, IRCurrentState.Ceased, deltaData.officers[a._id], true)),
87806
- EditedOfficers: editedAffiliations.filter(isOfficerAff).map((a) => buildPersonPayload(a, IRCurrentState.Changed, deltaData.officers[a._id], true))
88074
+ AddedOfficers: addedOfficers.map((a) => buildPersonPayload(a, IRCurrentState.Added, deltaData.officers?.[a._id], true)),
88075
+ CeasedOfficers: outgoingOfficers.map((a) => buildPersonPayload(a, IRCurrentState.Ceased, deltaData.officers?.[a._id], true)),
88076
+ EditedOfficers: editedOfficers.map((a) => buildPersonPayload(a, IRCurrentState.Changed, deltaData.officers?.[a._id], true))
87807
88077
  };
87808
88078
  const cert = task._ext?.certified ?? {};
87809
88079
  const certEntityAddr = cert.address;
@@ -87813,7 +88083,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87813
88083
  const isOfficerCert = cert.type !== "Director";
87814
88084
  const certDeltaAddr = deltaData.certifiedBy?.address;
87815
88085
  const certStreetOnly = getAddressComponent(certEntityAddr, "Street Only");
87816
- const { StreetType: certStreetType, StreetDirection: certStreetDir } = parseStreetAddress(certStreetOnly);
88086
+ const { StreetName: certStreetName, StreetType: certStreetType, StreetDirection: certStreetDir } = parseStreetAddress(certStreetOnly);
88087
+ const isCanadianCertifierAddress = certifierCountry === "CA";
87817
88088
  const certifier = {
87818
88089
  PersonName: {
87819
88090
  FirstName: cert.firstName,
@@ -87828,13 +88099,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87828
88099
  AddressType: "standard",
87829
88100
  StreetNumberSuffix: "",
87830
88101
  StreetNumber: certDeltaAddr?.streetNumber ?? getAddressComponent(certEntityAddr, "Street Number Only") ?? "",
87831
- StreetName: (() => {
87832
- const { StreetName } = parseStreetAddress(certStreetOnly);
87833
- return certDeltaAddr?.streetName ?? StreetName ?? "";
87834
- })(),
87835
- StreetType: certDeltaAddr?.streetType ?? certStreetType ?? null,
87836
- StreetDirection: certDeltaAddr?.streetDirection ?? (certStreetDir ? certStreetDir : null),
87837
- UnitType: mapUnitTypeToEcore((certDeltaAddr?.unitType ?? "").toString()) ?? null,
88102
+ StreetName: isCanadianCertifierAddress ? certDeltaAddr?.streetName ?? certStreetName ?? "" : certStreetOnly ?? "",
88103
+ StreetType: isCanadianCertifierAddress ? certDeltaAddr?.streetType ?? certStreetType ?? null : null,
88104
+ StreetDirection: isCanadianCertifierAddress ? certDeltaAddr?.streetDirection ?? (certStreetDir ? certStreetDir : null) : null,
88105
+ UnitType: isCanadianCertifierAddress ? mapUnitTypeToEcore((certDeltaAddr?.unitType ?? "").toString()) ?? null : null,
87838
88106
  UnitNumber: certDeltaAddr?.unitNumber ?? getAddressComponent(certEntityAddr, "Suite/Apartment") ?? null,
87839
88107
  CityTown: certEntityAddr?.city ?? null,
87840
88108
  PostCode: certEntityAddr?.postal_zip ?? null,
@@ -87848,16 +88116,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87848
88116
  const regRegion = regCountry === "CA" ? CANProvinceToCode(regProvince) : regCountry === "US" ? USStateToCode(regProvince) : regProvince;
87849
88117
  const regDelta = deltaData.registeredOfficeAddress;
87850
88118
  const initType = ["CA", "US"].includes(regCountry) ? `address${regCountry}` : "addressINTL";
88119
+ const regStreetOnly = getAddressComponent(regOfficeEntityAddr, "Street Only");
88120
+ const { StreetName: regStreetName, StreetType: regStreetType, StreetDirection: regStreetDirection } = parseStreetAddress(regStreetOnly);
88121
+ const isCanadianRegisteredOffice = regCountry === "CA";
87851
88122
  const RegisteredHeadOfficeAddress = {
87852
88123
  AddressStandardLot: "standard",
87853
88124
  CareOf: getAddressComponent(regOfficeEntityAddr, "Attention") || regOfficeEntityAddr?.attention || null,
87854
- UnitType: mapUnitTypeToEcore((regDelta?.unitType ?? "").toString()) ?? null,
87855
- UnitNumber: regDelta.unitNumber ?? null,
87856
- StreetNumber: regDelta.streetNumber,
88125
+ UnitType: isCanadianRegisteredOffice ? mapUnitTypeToEcore((regDelta?.unitType ?? "").toString()) ?? null : null,
88126
+ UnitNumber: regDelta?.unitNumber ?? null,
88127
+ StreetNumber: regDelta?.streetNumber,
87857
88128
  StreetNumberSuffix: "",
87858
- StreetName: regDelta.streetName,
87859
- StreetType: regDelta.streetType ?? null,
87860
- StreetDirection: regDelta.streetDirection ?? null,
88129
+ StreetName: isCanadianRegisteredOffice ? regDelta?.streetName ?? regStreetName ?? "" : regStreetOnly ?? "",
88130
+ StreetType: isCanadianRegisteredOffice ? regDelta?.streetType ?? regStreetType ?? null : null,
88131
+ StreetDirection: isCanadianRegisteredOffice ? regDelta?.streetDirection ?? regStreetDirection ?? null : null,
87861
88132
  StreetAddressContinued: getAddressComponent(regOfficeEntityAddr, "Suite/Apartment") ?? "",
87862
88133
  CityTown: regOfficeEntityAddr?.city ?? null,
87863
88134
  Region: regRegion,
@@ -87868,11 +88139,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87868
88139
  };
87869
88140
  const authorizationType = ["Director", "Officer"].includes(cert.type ?? "") ? AuthorizationType.DirectorOrOfficer : AuthorizationType.Other;
87870
88141
  const isOther = authorizationType === AuthorizationType.Other;
88142
+ const contactAffiliation = deltaData.contactUid ? task.entity.affiliations?.find((aff) => aff._id === deltaData.contactUid) : void 0;
88143
+ const ContactInformation = contactAffiliation ? OntarioUpdateMaintainFormHelper.generateContact(contactAffiliation) : null;
87871
88144
  const filingFormKey = getFilingFormKey(task);
87872
88145
  const filingFormType = getFilingFormType(task);
87873
88146
  const eCoreFilingFormType = getInnerECoreFilingFormType(task);
87874
88147
  const isAnnualReturn = isAnnualReturnTask(task);
87875
88148
  const annualReturnYear = isAnnualReturn ? (new Date(task._ext?._reference_date).getFullYear() || (/* @__PURE__ */ new Date()).getFullYear()).toString() : void 0;
88149
+ const officialBusinessEmail = regOfficeEntityAddr?.communications?.find((c) => c.type === "Business Email")?.value;
88150
+ const OfficialEmail = officialBusinessEmail ? { Email: officialBusinessEmail, ConfirmEmail: officialBusinessEmail } : corporationInfo?.CurrentData?.OfficialEmail ?? null;
88151
+ const naics = task.entity._profile?.naics;
88152
+ const PrimaryBusinessActivity = naics?.code ? { NAICSCode: naics.code, PrimaryActivity: naics.description } : corporationInfo?.CurrentData?.PrimaryBusinessActivity ?? null;
87876
88153
  return {
87877
88154
  Jurisdiction: "ON",
87878
88155
  FilingFormType: filingFormType,
@@ -87889,10 +88166,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87889
88166
  MiddleName: cert.middleName
87890
88167
  },
87891
88168
  CurrentData: __spreadProps(__spreadValues({
87892
- Reference: deltaData.referenceNumbers?.referenceNumber ?? null,
87893
- Docket: deltaData.referenceNumbers?.docketNumber ?? null,
88169
+ Reference: deltaData.referenceNumbers?.referenceNumber ?? corporationInfo?.CurrentData?.Reference ?? null,
88170
+ Docket: deltaData.referenceNumbers?.docketNumber ?? corporationInfo?.CurrentData?.Docket ?? null,
87894
88171
  EntityIdentifier: Number(task.entity._profile.corp_number)
87895
88172
  }, isAnnualReturn ? { AnnualReturnYear: annualReturnYear } : {}), {
88173
+ OfficialEmail,
88174
+ PrimaryBusinessActivity,
87896
88175
  ChangeCertification: {
87897
88176
  DirectorOfficerCertifier: !isOther ? __spreadProps(__spreadValues({}, certifier), {
87898
88177
  directorOrOfficer: isOfficerCert ? "officer" : "director"
@@ -87900,20 +88179,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87900
88179
  IndividualCertifier: isOther ? certifier : null,
87901
88180
  AuthorizationType: authorizationType
87902
88181
  },
87903
- ContactInformation: {
87904
- EmailAddress: "noreply@dyedurham.com",
87905
- PersonName: {
87906
- FirstName: "test",
87907
- LastName: "test",
87908
- MiddleName: "test"
87909
- },
87910
- PhoneNumber: {
87911
- AreaCode: "100",
87912
- CountryTelephoneCode: "0000000",
87913
- Extension: "",
87914
- TelephoneNumber: "0000000"
87915
- }
87916
- },
88182
+ ContactInformation,
87917
88183
  RegisteredHeadOfficeAddress,
87918
88184
  ChangeDirectors,
87919
88185
  ChangeOfficers
@@ -87932,6 +88198,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87932
88198
  init_address_utils();
87933
88199
  init_common_models();
87934
88200
  init_initial_return_enums();
88201
+ init_ontario_update_maintain_helper();
87935
88202
  init_InitialReturnMapping();
87936
88203
  }
87937
88204
  });
@@ -88220,6 +88487,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88220
88487
  isOntarioTask = isOntarioTask;
88221
88488
  ontario = viewChild(OntarioComponent);
88222
88489
  federal = viewChild(FederalComponent);
88490
+ currentData = null;
88223
88491
  _signature = computed(() => {
88224
88492
  const task = this.task();
88225
88493
  const config2 = this.config();
@@ -88308,7 +88576,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88308
88576
  this.translate.use(this.language() || "en");
88309
88577
  }
88310
88578
  });
88311
- effect(() => {
88579
+ effect(() => __async(this, null, function* () {
88312
88580
  const task = this.task();
88313
88581
  const deltaData = task?.deltaData;
88314
88582
  if (!task) {
@@ -88321,19 +88589,30 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88321
88589
  }
88322
88590
  if (serviceOrderId && !this.dataWasChanged()) {
88323
88591
  this.serviceOrderId = serviceOrderId;
88324
- } else {
88325
- this.isLoading.set(true);
88326
- this.getInitialReturnServiceId().then((id) => __async(this, null, function* () {
88327
- this.serviceOrderId = id;
88328
- const signature = this._signature();
88329
- if (signature) {
88330
- yield this.updateMaintainService.submitData(signature, id, this.validateOptions());
88331
- const data = yield this.updateMaintainService.getCurrentData(signature, id, this.validateOptions());
88332
- this.prevData.set(corporationInfoToPersonnelDeltaData(data));
88333
- this.isLoading.set(false);
88334
- }
88335
- }));
88336
88592
  }
88593
+ yield this.getCurrentData();
88594
+ }
88595
+ }));
88596
+ }
88597
+ getCurrentData() {
88598
+ return __async(this, null, function* () {
88599
+ const signature = this._signature();
88600
+ if (!signature) {
88601
+ return;
88602
+ }
88603
+ this.isLoading.set(true);
88604
+ this.errors.set([]);
88605
+ try {
88606
+ if (!this.serviceOrderId) {
88607
+ this.serviceOrderId = yield this.getInitialReturnServiceId();
88608
+ yield this.updateMaintainService.submitData(signature, this.serviceOrderId, this.validateOptions());
88609
+ this.currentData = yield this.updateMaintainService.getCurrentData(signature, this.serviceOrderId, this.validateOptions());
88610
+ this.prevData.set(corporationInfoToPersonnelDeltaData(this.currentData));
88611
+ }
88612
+ } catch (error) {
88613
+ this.handleCatchError(error);
88614
+ } finally {
88615
+ this.isLoading.set(false);
88337
88616
  }
88338
88617
  });
88339
88618
  }
@@ -88595,7 +88874,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88595
88874
  const signature = this._signature();
88596
88875
  if (signature) {
88597
88876
  try {
88598
- const requestBody = buildOntarioUpdateMaintainValidationRequest(task, deltaData, this.serviceOrderId);
88877
+ const requestBody = buildOntarioUpdateMaintainValidationRequest(task, deltaData, this.serviceOrderId, this.currentData);
88599
88878
  const response = yield this.updateMaintainService.submitInitialReturnValidationToECore(signature, requestBody, this.validateOptions());
88600
88879
  if (this.hasResponseErrors(response))
88601
88880
  return;
@@ -88631,8 +88910,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88631
88910
  }
88632
88911
  onEditClick() {
88633
88912
  if (isUpdateMaintain(this.task())) {
88634
- this.activeStep.set(Step.Validate);
88635
- return;
88913
+ this.serviceOrderId = "";
88914
+ void this.getCurrentData();
88636
88915
  }
88637
88916
  this.activeStep.set(Step.Validate);
88638
88917
  }
@@ -88656,10 +88935,23 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88656
88935
  */
88657
88936
  handleCatchError(response) {
88658
88937
  console.error(response);
88659
- const errors = JSON.parse(JSON.stringify(response))?.validateResult?.["Errors"];
88938
+ if (response instanceof Error) {
88939
+ this.errors.set([response.message]);
88940
+ return;
88941
+ }
88942
+ let parsed = response;
88943
+ try {
88944
+ parsed = JSON.parse(JSON.stringify(response));
88945
+ } catch {
88946
+ parsed = void 0;
88947
+ }
88948
+ const errors = parsed?.validateResult?.["Errors"];
88660
88949
  if (errors?.length) {
88661
88950
  this.errors.set(this.parseError(errors));
88951
+ return;
88662
88952
  }
88953
+ const fallbackMessage = parsed?.message || (typeof parsed === "string" ? parsed : "") || "An unexpected error occurred. Please try again.";
88954
+ this.errors.set([fallbackMessage]);
88663
88955
  }
88664
88956
  onClose() {
88665
88957
  const task = this.task();
@@ -88738,7 +89030,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88738
89030
  if (!serviceOrderId) {
88739
89031
  return void 0;
88740
89032
  }
88741
- return buildOntarioUpdateMaintainValidationRequest(task, deltaData, serviceOrderId);
89033
+ return buildOntarioUpdateMaintainValidationRequest(task, deltaData, serviceOrderId, this.currentData);
88742
89034
  }
88743
89035
  if (isUpdateMaintain(task)) {
88744
89036
  return buildFederalUpdateMaintainValidationRequest(deltaData, task);
@@ -88816,78 +89108,78 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88816
89108
  OntarioComponent
88817
89109
  ], encapsulation: ViewEncapsulation.ShadowDom, host: {
88818
89110
  "[style.height]": "modalHeight()"
88819
- }, template: `<div class="filing">\r
88820
- <div class="filing-title">\r
88821
- <h1 class="filing-title-text">{{title() | translate}}</h1>\r
88822
- <mat-icon (click)="onClose()" class="filing-title-action">close</mat-icon>\r
88823
- </div>\r
88824
- \r
88825
- @if (isEditButton()) {\r
88826
- <div class="filing-header">\r
88827
- <button\r
88828
- mat-stroked-button\r
88829
- [disabled]="isLoading()"\r
88830
- (click)="onEditClick()"\r
88831
- >\r
88832
- {{ 'Edit' | translate }}\r
88833
- </button>\r
88834
- </div>\r
88835
- }\r
88836
- \r
88837
- <div [class.edit]="isEditButton()" class="filing-content">\r
88838
- @let currentTask = task();\r
88839
- \r
88840
- @if (currentTask) {\r
88841
- @if (isOntarioTask(currentTask)) {\r
88842
- <ontario\r
88843
- [task]="currentTask"\r
88844
- [activeStep]="activeStep()"\r
88845
- [isNote]="dataWasChanged()"\r
88846
- [actionsDisabled]="isLoading()"\r
88847
- [errors]="errors()"\r
88848
- [prevData]="prevData()"\r
88849
- (close)="close.emit()"\r
88850
- (formationValidate)="onOntarioFormationValidate($event)"\r
88851
- (saveFormationDeltaData)="onOntarioFormationSave($event)"\r
88852
- (formationSubmit)="onOntarioFormationSubmit()"\r
88853
- (nextStep)="onNextStepClick()"\r
88854
- (prevStep)="onOntarioPrevStep()"\r
88855
- [irValidationConfig]="validationConfig()"\r
88856
- (irValidate)="validateAndFileInitialReturnTask($event)"\r
88857
- (saveIrDeltaData)="onOntarioUpdateMaintainSave($event)"\r
88858
- (irSubmit)="onInitialReturnSubmit()"\r
88859
- />\r
88860
- } @else {\r
88861
- <federal\r
88862
- [actionsDisabled]="isLoading()"\r
88863
- [isNote]="dataWasChanged()"\r
88864
- [activeStep]="activeStep()"\r
88865
- [task]="currentTask"\r
88866
- [errors]="errors()"\r
88867
- (close)="close.emit()"\r
88868
- (deltaDataChange)="onFederalFormationSave($event)"\r
88869
- (file)="onFederalFormationSubmit()"\r
88870
- (validate)="onFederalValidate($event)"\r
88871
- (umSave)="onFederalUpdateMaintainSave($event)"\r
88872
- (umValidate)="onFederalUpdateMaintainValidate($event)"\r
88873
- (umSubmit)="onFederalUpdateMaintainSubmit()"\r
88874
- (nextStep)="defineInitialStep()"\r
88875
- />\r
88876
- }\r
88877
- }\r
88878
- \r
88879
- @if (isLoading()) {\r
88880
- <div class="filing-content-loading">\r
88881
- <mat-spinner [diameter]="40" />\r
88882
- </div>\r
88883
- }\r
88884
- </div>\r
88885
- </div>\r
89111
+ }, template: `<div class="filing">
89112
+ <div class="filing-title">
89113
+ <h1 class="filing-title-text">{{title() | translate}}</h1>
89114
+ <mat-icon (click)="onClose()" class="filing-title-action">close</mat-icon>
89115
+ </div>
89116
+
89117
+ @if (isEditButton()) {
89118
+ <div class="filing-header">
89119
+ <button
89120
+ mat-stroked-button
89121
+ [disabled]="isLoading()"
89122
+ (click)="onEditClick()"
89123
+ >
89124
+ {{ 'Edit' | translate }}
89125
+ </button>
89126
+ </div>
89127
+ }
89128
+
89129
+ <div [class.edit]="isEditButton()" class="filing-content">
89130
+ @let currentTask = task();
89131
+
89132
+ @if (currentTask) {
89133
+ @if (isOntarioTask(currentTask)) {
89134
+ <ontario
89135
+ [task]="currentTask"
89136
+ [activeStep]="activeStep()"
89137
+ [isNote]="dataWasChanged()"
89138
+ [actionsDisabled]="isLoading()"
89139
+ [errors]="errors()"
89140
+ [prevData]="prevData()"
89141
+ (close)="close.emit()"
89142
+ (formationValidate)="onOntarioFormationValidate($event)"
89143
+ (saveFormationDeltaData)="onOntarioFormationSave($event)"
89144
+ (formationSubmit)="onOntarioFormationSubmit()"
89145
+ (nextStep)="onNextStepClick()"
89146
+ (prevStep)="onOntarioPrevStep()"
89147
+ [irValidationConfig]="validationConfig()"
89148
+ (irValidate)="validateAndFileInitialReturnTask($event)"
89149
+ (saveIrDeltaData)="onOntarioUpdateMaintainSave($event)"
89150
+ (irSubmit)="onInitialReturnSubmit()"
89151
+ />
89152
+ } @else {
89153
+ <federal
89154
+ [actionsDisabled]="isLoading()"
89155
+ [isNote]="dataWasChanged()"
89156
+ [activeStep]="activeStep()"
89157
+ [task]="currentTask"
89158
+ [errors]="errors()"
89159
+ (close)="close.emit()"
89160
+ (deltaDataChange)="onFederalFormationSave($event)"
89161
+ (file)="onFederalFormationSubmit()"
89162
+ (validate)="onFederalValidate($event)"
89163
+ (umSave)="onFederalUpdateMaintainSave($event)"
89164
+ (umValidate)="onFederalUpdateMaintainValidate($event)"
89165
+ (umSubmit)="onFederalUpdateMaintainSubmit()"
89166
+ (nextStep)="defineInitialStep()"
89167
+ />
89168
+ }
89169
+ }
89170
+
89171
+ @if (isLoading()) {
89172
+ <div class="filing-content-loading">
89173
+ <mat-spinner [diameter]="40" />
89174
+ </div>
89175
+ }
89176
+ </div>
89177
+ </div>
88886
89178
  `, styles: ["/* src/app/components/filing/filing.component.scss */\n:host {\n display: flex;\n}\n:host .filing {\n position: relative;\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n:host .filing-title {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n:host .filing-title-text {\n color: #666666;\n}\n:host .filing-title-action {\n cursor: pointer;\n}\n:host .filing-header {\n display: flex;\n width: 100%;\n justify-content: flex-end;\n}\n:host .filing-content {\n height: calc(100% - 44px);\n}\n:host .filing-content.edit {\n height: calc(100% - 95px);\n}\n:host .filing-content-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n background: transparent;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.pointer {\n cursor: pointer;\n}\n/*# sourceMappingURL=filing.component.css.map */\n", '/* src/app/components/filing/typography.scss */\n:host {\n --filing-modal-color-grey: #444444;\n --filing-modal-color-dark-blue: #485673;\n --filing-modal-color-grey-mid: #A0A0A0;\n --filing-modal-color-light-blue: #3778E4;\n --filing-modal-color-black: #444444;\n}\nmat-icon {\n font-family: "Material Icons" !important;\n font-size: 20px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n}\nh1 {\n font-size: 24px;\n line-height: 28px;\n font-weight: 700;\n font-family: "Open Sans";\n margin: 0;\n}\nh2 {\n font-size: 22px;\n line-height: 26px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh3 {\n font-size: 18px;\n font-weight: 600;\n font-family: "Open Sans";\n margin-top: 0;\n margin-bottom: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 22px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 20px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\n.body-1-regular {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-1-bold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-1-semibold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 600;\n font-family: "Open Sans";\n}\n.body-2-regular {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-2-bold {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-3-regular {\n line-height: 20px;\n font-size: 16px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-regular {\n line-height: 18px;\n font-size: 18px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-bold {\n line-height: 20px;\n font-size: 20px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n margin: 0;\n}\n.black {\n color: var(--filing-modal-color-black);\n}\n.grey {\n color: var(--filing-modal-color-grey);\n}\n.dark-blue {\n color: var(--filing-modal-color-dark-blue);\n}\n.grey-mid {\n color: var(--filing-modal-color-grey-mid);\n}\n.light-blue {\n color: var(--filing-modal-color-light-blue);\n}\n/*# sourceMappingURL=typography.css.map */\n', '/* src/app/components/filing/material-theme.scss */\n.filling {\n height: 100%;\n overflow: hidden;\n}\n* {\n box-sizing: border-box;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n}\n.filling {\n margin: 0;\n font-family: "Helvetica Neue", sans-serif;\n}\n.filing {\n --app-font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Helvetica Neue",\n Helvetica,\n Arial,\n sans-serif;\n --mat-sys-background: #faf9fd;\n --mat-sys-error: #ba1a1a;\n --mat-sys-error-container: #ffdad6;\n --mat-sys-inverse-on-surface: #f2f0f4;\n --mat-sys-inverse-primary: #abc7ff;\n --mat-sys-inverse-surface: #2f3033;\n --mat-sys-on-background: #1a1b1f;\n --mat-sys-on-error: #ffffff;\n --mat-sys-on-error-container: #93000a;\n --mat-sys-on-primary: #ffffff;\n --mat-sys-on-primary-container: #00458f;\n --mat-sys-on-primary-fixed: #001b3f;\n --mat-sys-on-primary-fixed-variant: #00458f;\n --mat-sys-on-secondary: #ffffff;\n --mat-sys-on-secondary-container: #3e4759;\n --mat-sys-on-secondary-fixed: #131c2b;\n --mat-sys-on-secondary-fixed-variant: #3e4759;\n --mat-sys-on-surface: #1a1b1f;\n --mat-sys-on-surface-variant: var(--filing-modal-color-grey);\n --mat-sys-on-tertiary: #ffffff;\n --mat-sys-on-tertiary-container: #0000ef;\n --mat-sys-on-tertiary-fixed: #00006e;\n --mat-sys-on-tertiary-fixed-variant: #0000ef;\n --mat-sys-outline: #74777f;\n --mat-sys-outline-variant: #c4c6d0;\n --mat-sys-primary: #3778e4;\n --mat-sys-primary-container: #d7e3ff;\n --mat-sys-primary-fixed: #d7e3ff;\n --mat-sys-primary-fixed-dim: #abc7ff;\n --mat-sys-scrim: #000000;\n --mat-sys-secondary: #565e71;\n --mat-sys-secondary-container: #dae2f9;\n --mat-sys-secondary-fixed: #dae2f9;\n --mat-sys-secondary-fixed-dim: #bec6dc;\n --mat-sys-shadow: #000000;\n --mat-sys-surface: #faf9fd;\n --mat-sys-surface-bright: #faf9fd;\n --mat-sys-surface-container: #efedf0;\n --mat-sys-surface-container-high: #e9e7eb;\n --mat-sys-surface-container-highest: #e3e2e6;\n --mat-sys-surface-container-low: #f4f3f6;\n --mat-sys-surface-container-lowest: #ffffff;\n --mat-sys-surface-dim: #dbd9dd;\n --mat-sys-surface-tint: #005cbb;\n --mat-sys-surface-variant: #e0e2ec;\n --mat-sys-tertiary: #343dff;\n --mat-sys-tertiary-container: #e0e0ff;\n --mat-sys-tertiary-fixed: #e0e0ff;\n --mat-sys-tertiary-fixed-dim: #bec2ff;\n --mat-sys-neutral-variant20: #2d3038;\n --mat-sys-neutral10: #1a1b1f;\n --mdc-filled-button-container-height: 35px;\n --mdc-outlined-button-container-height: 35px;\n --mdc-text-button-label-text-color: #808090;\n --mdc-filled-button-label-text-weight: 600;\n --mdc-text-button-label-text-weight: 600;\n --mdc-filled-button-container-shape: 4px;\n --mdc-outlined-button-outline-color: none;\n --mdc-outlined-button-container-shape: 6px;\n --mat-sys-level0:\n 0px 0px 0px 0px rgba(0, 0, 0, 0.2),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.14),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level1:\n 0px 2px 1px -1px rgba(0, 0, 0, 0.2),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level2:\n 0px 3px 3px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 4px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 8px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level3:\n 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 6px 10px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level4:\n 0px 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0px 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n --mat-sys-level5:\n 0px 7px 8px -4px rgba(0, 0, 0, 0.2),\n 0px 12px 17px 2px rgba(0, 0, 0, 0.14),\n 0px 5px 22px 4px rgba(0, 0, 0, 0.12);\n --mdc-outlined-button-label-text-size: 14px;\n --mdc-filled-button-label-text-size: 14px;\n --mdc-filled-text-field-label-text-size: 16px;\n --mat-sys-body-large: 400 1rem / 1.5rem var(--app-font-family);\n --mat-sys-body-large-font: var(--app-font-family);\n --mat-sys-body-large-line-height: 1.5rem;\n --mat-sys-body-large-size: 14px;\n --mat-sys-body-large-tracking: 0.031rem;\n --mat-sys-body-large-weight: 400;\n --mat-sys-body-medium: 400 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-body-medium-font: var(--app-font-family);\n --mat-sys-body-medium-line-height: 1.25rem;\n --mat-sys-body-medium-size: 0.875rem;\n --mat-sys-body-medium-tracking: 0.016rem;\n --mat-sys-body-medium-weight: 400;\n --mat-sys-body-small: 400 0.75rem / 1rem var(--app-font-family);\n --mat-sys-body-small-font: var(--app-font-family);\n --mat-sys-body-small-line-height: 1rem;\n --mat-sys-body-small-size: 0.75rem;\n --mat-sys-body-small-tracking: 0.025rem;\n --mat-sys-body-small-weight: 400;\n --mat-sys-display-large: 400 3.562rem / 4rem var(--app-font-family);\n --mat-sys-display-large-font: var(--app-font-family);\n --mat-sys-display-large-line-height: 4rem;\n --mat-sys-display-large-size: 3.562rem;\n --mat-sys-display-large-tracking: -0.016rem;\n --mat-sys-display-large-weight: 400;\n --mat-sys-display-medium: 400 2.812rem / 3.25rem var(--app-font-family);\n --mat-sys-display-medium-font: var(--app-font-family);\n --mat-sys-display-medium-line-height: 3.25rem;\n --mat-sys-display-medium-size: 2.812rem;\n --mat-sys-display-medium-tracking: 0;\n --mat-sys-display-medium-weight: 400;\n --mat-sys-display-small: 400 2.25rem / 2.75rem var(--app-font-family);\n --mat-sys-display-small-font: var(--app-font-family);\n --mat-sys-display-small-line-height: 2.75rem;\n --mat-sys-display-small-size: 2.25rem;\n --mat-sys-display-small-tracking: 0;\n --mat-sys-display-small-weight: 400;\n --mat-sys-headline-large: 400 2rem / 2.5rem var(--app-font-family);\n --mat-sys-headline-large-font: var(--app-font-family);\n --mat-sys-headline-large-line-height: 2.5rem;\n --mat-sys-headline-large-size: 2rem;\n --mat-sys-headline-large-tracking: 0;\n --mat-sys-headline-large-weight: 400;\n --mat-sys-headline-medium: 400 1.75rem / 2.25rem var(--app-font-family);\n --mat-sys-headline-medium-font: var(--app-font-family);\n --mat-sys-headline-medium-line-height: 2.25rem;\n --mat-sys-headline-medium-size: 1.75rem;\n --mat-sys-headline-medium-tracking: 0;\n --mat-sys-headline-medium-weight: 400;\n --mat-sys-headline-small: 400 1.5rem / 2rem var(--app-font-family);\n --mat-sys-headline-small-font: var(--app-font-family);\n --mat-sys-headline-small-line-height: 2rem;\n --mat-sys-headline-small-size: 1.5rem;\n --mat-sys-headline-small-tracking: 0;\n --mat-sys-headline-small-weight: 400;\n --mat-sys-label-large: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-label-large-font: var(--app-font-family);\n --mat-sys-label-large-line-height: 1.25rem;\n --mat-sys-label-large-size: 0.875rem;\n --mat-sys-label-large-tracking: 0.006rem;\n --mat-sys-label-large-weight: 500;\n --mat-sys-label-large-weight-prominent: 700;\n --mat-sys-label-medium: 500 0.75rem / 1rem var(--app-font-family);\n --mat-sys-label-medium-font: var(--app-font-family);\n --mat-sys-label-medium-line-height: 1rem;\n --mat-sys-label-medium-size: 0.75rem;\n --mat-sys-label-medium-tracking: 0.031rem;\n --mat-sys-label-medium-weight: 500;\n --mat-sys-label-medium-weight-prominent: 700;\n --mat-sys-label-small: 500 0.688rem / 1rem var(--app-font-family);\n --mat-sys-label-small-font: var(--app-font-family);\n --mat-sys-label-small-line-height: 1rem;\n --mat-sys-label-small-size: 0.688rem;\n --mat-sys-label-small-tracking: 0.031rem;\n --mat-sys-label-small-weight: 500;\n --mat-sys-title-large: 400 1.375rem / 1.75rem var(--app-font-family);\n --mat-sys-title-large-font: var(--app-font-family);\n --mat-sys-title-large-line-height: 1.75rem;\n --mat-sys-title-large-size: 1.375rem;\n --mat-sys-title-large-tracking: 0;\n --mat-sys-title-large-weight: 400;\n --mat-sys-title-medium: 500 1rem / 1.5rem var(--app-font-family);\n --mat-sys-title-medium-font: var(--app-font-family);\n --mat-sys-title-medium-line-height: 1.5rem;\n --mat-sys-title-medium-size: 1rem;\n --mat-sys-title-medium-tracking: 0.009rem;\n --mat-sys-title-medium-weight: 500;\n --mat-sys-title-small: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-title-small-font: var(--app-font-family);\n --mat-sys-title-small-line-height: 1.25rem;\n --mat-sys-title-small-size: 0.875rem;\n --mat-sys-title-small-tracking: 0.006rem;\n --mat-sys-title-small-weight: 500;\n --mat-sys-corner-extra-large: 28px;\n --mat-sys-corner-extra-large-top: 28px 28px 0 0;\n --mat-sys-corner-extra-small: 4px;\n --mat-sys-corner-extra-small-top: 4px 4px 0 0;\n --mat-sys-corner-full: 9999px;\n --mat-sys-corner-large: 16px;\n --mat-sys-corner-large-end: 0 16px 16px 0;\n --mat-sys-corner-large-start: 16px 0 0 16px;\n --mat-sys-corner-large-top: 16px 16px 0 0;\n --mat-sys-corner-medium: 12px;\n --mat-sys-corner-none: 0;\n --mat-sys-corner-small: 8px;\n --mat-sys-dragged-state-layer-opacity: 0.16;\n --mat-sys-focus-state-layer-opacity: 0.12;\n --mat-sys-hover-state-layer-opacity: 0.08;\n --mat-sys-pressed-state-layer-opacity: 0.12;\n}\n.filing .mat-primary .mat-pseudo-checkbox-checked,\n.filing .mat-primary .mat-pseudo-checkbox-indeterminate {\n background: transparent !important;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox {\n width: 24px;\n height: 24px;\n flex-basis: 24px;\n padding: 0;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__background {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n top: 0;\n left: 0;\n border: 3px solid var(--filing-modal-color-grey);\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__checkmark {\n height: 20px;\n width: 20px;\n font-size: 20px;\n top: 1px;\n left: 1px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__ripple,\n.filing .mat-mdc-checkbox[cardView] .mat-ripple {\n display: none;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-label {\n padding-left: 8px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-button__label {\n line-height: 10px;\n}\n/*# sourceMappingURL=material-theme.css.map */\n'] }]
88887
89179
  }], () => [], null);
88888
89180
  })();
88889
89181
  (() => {
88890
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 83 });
89182
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 70 });
88891
89183
  })();
88892
89184
  }
88893
89185
  });