@dyedurham/search-and-file-widget 2.0.21 → 2.0.23

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 +88 -91
  2. package/package.json +1 -1
@@ -58124,6 +58124,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58124
58124
  return isPerson && isSignificantControl;
58125
58125
  });
58126
58126
  }
58127
+ function normalizeSupportingDocuments(value) {
58128
+ if (!Array.isArray(value)) {
58129
+ return [];
58130
+ }
58131
+ return value.flatMap((d) => {
58132
+ if (typeof d === "string" && d) {
58133
+ return [{ documentId: d, name: d, extension: "pdf" }];
58134
+ }
58135
+ if (d && (typeof d.documentId === "string" || typeof d.documentId === "number")) {
58136
+ const documentId = String(d.documentId);
58137
+ return [{ documentId, name: typeof d.name === "string" && d.name ? d.name : documentId, extension: d.extension }];
58138
+ }
58139
+ return [];
58140
+ });
58141
+ }
58142
+ function normalizeDocumentIds(value) {
58143
+ return Array.isArray(value) ? value.filter((id) => typeof id === "string" && !!id) : [];
58144
+ }
58127
58145
  function getPersonName(person) {
58128
58146
  const firstName = person._profile.firstName || "";
58129
58147
  const lastName = person._profile.lastName || "";
@@ -83622,7 +83640,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
83622
83640
  return [
83623
83641
  {
83624
83642
  type: FormType.Text,
83625
- dynamicLabel: (form) => getAddressPreview(form.getRawValue()),
83643
+ dynamicLabel: (form) => getAddressPreview(form),
83626
83644
  formControlName: "",
83627
83645
  required: false,
83628
83646
  class: "span-12"
@@ -83677,7 +83695,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
83677
83695
  },
83678
83696
  {
83679
83697
  type: FormType.Text,
83680
- dynamicLabel: (form, t) => `${t("Residential Address")}: ${getAddressPreview(form.getRawValue())}`,
83698
+ dynamicLabel: (form, t) => `${t("Residential Address")}: ${getAddressPreview(form)}`,
83681
83699
  formControlName: FederalFormationFormControl.DateOfBirth,
83682
83700
  class: "span-12"
83683
83701
  },
@@ -86789,7 +86807,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86789
86807
  umSubmit = output();
86790
86808
  dialog = inject(MatDialog);
86791
86809
  deltaState = inject(DeltaStateService);
86792
- documents = computed(() => this.task()?.supportingDocuments ?? []);
86810
+ documents = computed(() => normalizeSupportingDocuments(this.task()?.supportingDocuments));
86793
86811
  // Holds ECoreSupportingDocument.documentId values
86794
86812
  selectedDocuments = signal([]);
86795
86813
  deltaForm = signal(new FormGroup({}));
@@ -86821,8 +86839,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86821
86839
  form.disable();
86822
86840
  form.addControl(FederalFormationFormGroups.Signatory, new FormGroup({ [FederalFormationFormControl.Signatory]: new FormControl("", Validators.required) }));
86823
86841
  this.previewForm.set(form);
86824
- const availableIds = new Set((task.supportingDocuments ?? []).map((d) => d.documentId));
86825
- this.selectedDocuments.set((deltaData.corporateName?.supportingDocuments ?? []).filter((id) => availableIds.has(id)));
86842
+ const availableIds = new Set(normalizeSupportingDocuments(task.supportingDocuments).map((d) => d.documentId));
86843
+ this.selectedDocuments.set(normalizeDocumentIds(deltaData.corporateName?.supportingDocuments).filter((id) => availableIds.has(id)));
86826
86844
  if (untracked2(this.activeStep) === Step.Validate) {
86827
86845
  this.nextStep.emit();
86828
86846
  }
@@ -87033,7 +87051,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87033
87051
  }], () => [], null);
87034
87052
  })();
87035
87053
  (() => {
87036
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FederalComponent, { className: "FederalComponent", filePath: "src/app/components/federal/federal.component.ts", lineNumber: 42 });
87054
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FederalComponent, { className: "FederalComponent", filePath: "src/app/components/federal/federal.component.ts", lineNumber: 48 });
87037
87055
  })();
87038
87056
  }
87039
87057
  });
@@ -87113,8 +87131,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87113
87131
  if (!serviceOrderId) {
87114
87132
  throw new Error("Missing serviceOrderId.");
87115
87133
  }
87116
- const available = new Map((signature.task.supportingDocuments ?? []).map((d) => [d.documentId, d]));
87117
- const documents = documentIds.map((id) => available.get(id)).filter((d) => !!d);
87134
+ const available = new Map(normalizeSupportingDocuments(signature.task.supportingDocuments).map((d) => [d.documentId, d]));
87135
+ const documents = normalizeDocumentIds(documentIds).map((id) => available.get(id)).filter((d) => !!d);
87118
87136
  if (!documents.length) {
87119
87137
  return;
87120
87138
  }
@@ -87738,20 +87756,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87738
87756
  function federalFormationTaskToECore(task, deltaData) {
87739
87757
  const corporateNameDelta = deltaData.corporateName;
87740
87758
  const significantControl = deltaData.individualsWithSignificantControl;
87741
- const minDirectors = task.entity._articles?.min_directors;
87742
- const maxDirectors = task.entity._articles?.max_directors;
87743
- const isFixedDirectors = !!minDirectors && minDirectors === maxDirectors;
87744
87759
  const isNumbered = task._ext._numbered_company === true;
87745
87760
  const englishName = !isNumbered ? {
87746
87761
  CorporationName: task.entity._profile.name || "",
87747
87762
  ReservationDate: corporateNameDelta?.primaryNameReservationDate || "",
87748
87763
  ReservationNumber: corporateNameDelta?.primaryNameReservationNumber || ""
87749
- } : { CorporationName: "", ReservationDate: "", ReservationNumber: "" };
87764
+ } : void 0;
87750
87765
  const frenchName = !isNumbered && task.entity._profile.secondary_name ? {
87751
87766
  CorporationName: task.entity._profile.secondary_name || "",
87752
87767
  ReservationDate: corporateNameDelta?.secondaryNameReservationDate || "",
87753
87768
  ReservationNumber: corporateNameDelta?.secondaryNameReservationNumber || ""
87754
- } : { CorporationName: "", ReservationDate: "", ReservationNumber: "" };
87769
+ } : void 0;
87755
87770
  const legalEnding = corporateNameDelta?.legalElement;
87756
87771
  const useDifferentMailingAddress = deltaData.registeredOfficeAddress?.useDifferentAddressForCorrespondence;
87757
87772
  const mailingAddressUid = deltaData.registeredOfficeAddress?.mailingAddressForCorrespondenceUid;
@@ -87767,74 +87782,66 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87767
87782
  const directorsDelta = deltaData.directors;
87768
87783
  const individualsWithSignificantControlDelta = deltaData.individualsWithSignificantControl;
87769
87784
  const consentToProvideEmails = deltaData.consentToProvideDirectorEmailAddressesForFullAccessManager;
87770
- const isListIsc = Number(significantControl?.type) === ISCOptions.ListISC;
87785
+ const isListIsc = Number(significantControl.type) === ISCOptions.ListISC;
87771
87786
  const isNonPreapproved = corporateNameDelta?.nameType === NameType2.NonPreapproved;
87772
87787
  const payload = __spreadProps(__spreadValues({
87773
87788
  IncorporationType: corporateNameDelta?.nameType,
87774
87789
  LegalEnding: isNumbered ? legalEnding : "",
87775
87790
  EnglishName: englishName,
87776
87791
  FrenchName: frenchName,
87777
- PreappClientNumber: corporateNameDelta?.preapprovalConfirmationNumber || void 0,
87778
- PreappRequestNumber: corporateNameDelta?.preapprovalRequestId || void 0,
87779
- RegisteredOffice: registeredOfficeAddress ? mapAddress(registeredOfficeAddress) : void 0,
87792
+ PreappClientNumber: corporateNameDelta?.preapprovalConfirmationNumber,
87793
+ PreappRequestNumber: corporateNameDelta?.preapprovalRequestId,
87794
+ RegisteredOffice: registeredOfficeAddress ? __spreadProps(__spreadValues({}, mapAddress(registeredOfficeAddress)), {
87795
+ MailingAddressSameAsOffice: !useDifferentMailingAddress
87796
+ }) : void 0,
87780
87797
  MailingAddress: mailingAddress ? __spreadProps(__spreadValues({}, mapAddress(mailingAddress)), {
87781
- MailingAddressSameAsOffice: 0
87798
+ MailingAddressSameAsOffice: false
87782
87799
  }) : registeredOfficeAddress ? __spreadProps(__spreadValues({}, mapAddress(registeredOfficeAddress)), {
87783
- MailingAddressSameAsOffice: 1
87800
+ MailingAddressSameAsOffice: true
87784
87801
  }) : void 0,
87785
87802
  Directors: directors.map((d) => transformDirector(d, directorsDelta[d.participant._id], consentToProvideEmails)),
87786
87803
  Incorporators: incorporators.map((i) => transformIncorporator(i)),
87787
87804
  CoverLetter: createCoverLetter2(officialBusinessEmail, contact?.participant),
87788
- DirectorNumberType: isFixedDirectors ? ECoreDirectorNumberType.Fixed : ECoreDirectorNumberType.Range
87789
- }, isFixedDirectors ? { FixedNumberOfDirectors: minDirectors } : {
87790
- MinimumNumberOfDirectors: minDirectors || 1,
87791
- MaximumNumberOfDirectors: maxDirectors || 10
87805
+ DirectorNumberType: task.entity._articles?.min_directors === task.entity._articles?.max_directors ? ECoreDirectorNumberType.Fixed : ECoreDirectorNumberType.Range
87806
+ }, task.entity._articles?.min_directors === task.entity._articles?.max_directors ? { FixedNumberOfDirectors: task.entity._articles?.min_directors } : {
87807
+ MinimumNumberOfDirectors: task.entity._articles?.min_directors,
87808
+ MaximumNumberOfDirectors: task.entity._articles?.max_directors
87792
87809
  }), {
87793
87810
  SignificantControlType: significantControl?.type,
87794
87811
  ExclusionReason: significantControl?.exclusionReason ?? 0,
87795
87812
  RestrictionsOnBusiness: task.entity._articles?.restrictions || "None",
87796
- RestrictionsOnShareClasses: task.entity._articles?.share_terms || "",
87813
+ RestrictionsOnShareClasses: task.entity._articles?.share_restrictions_text || "",
87797
87814
  RestrictionsOnShareTransfers: task.entity._articles?.transfer_restrictions_text || "None",
87798
87815
  OtherProvisions: task.entity._articles?.other_provisions || "None",
87799
87816
  EffectiveType: determineEffectiveType(requestedDate),
87800
87817
  EffectiveDate: requestedDate,
87801
- SignatureFirstName: contact?.participant?._profile?.firstName || incorporators[0]?.firstName || incorporators[0]?.signatory_first_name || "",
87802
- SignatureLastName: contact?.participant?._profile?.lastName || incorporators[0]?.lastName || incorporators[0]?.signatory_last_name || "",
87803
- OfficerPhoneNumber: formatPhone(contact?.participant?.communicationPhone),
87818
+ SignatureFirstName: "",
87819
+ SignatureLastName: "",
87820
+ OfficerPhoneNumber: "",
87804
87821
  HasEPL: epl.length > 0 ? 1 : 0,
87805
- ExtraProvincialLicences: epl.length ? epl.map((reg) => transformEPL(reg, eplDelta[reg.uid], requestedDate, task.entity._profile.entity_language, contact?.participant)) : void 0,
87822
+ ExtraProvincialLicences: epl.length ? epl.map((reg) => transformEPL(reg, eplDelta[reg.uid])) : void 0,
87806
87823
  IndividualsWithSignificantControl: isListIsc ? (() => {
87807
- const deltaMap = new Map((individualsWithSignificantControlDelta?.individuals ?? []).map((d) => [
87824
+ const deltaMap = new Map((individualsWithSignificantControlDelta.individuals ?? []).map((d) => [
87808
87825
  d.affiliationId,
87809
87826
  d
87810
87827
  ]));
87811
87828
  return task.entity.affiliations.filter((aff) => deltaMap.has(aff._id)).map((aff) => transformIndividualWithSignificantControl(aff, deltaMap.get(aff._id)));
87812
87829
  })() : void 0,
87813
- // Shape and field names follow the spec's AdditionalInformation sample.
87814
87830
  AdditionalInformation: isNonPreapproved ? [
87815
- {
87816
- FieldSection: "Proposed business name",
87817
- Sections: [
87818
- {
87819
- FieldName: "Business Name",
87820
- FieldValue: task.entity._profile.name || ""
87821
- }
87822
- ]
87823
- },
87824
87831
  {
87825
87832
  FieldSection: "Additional information on business activities",
87826
87833
  Sections: [
87827
87834
  {
87828
- FieldName: "What does you business do? Provide a brief description.",
87835
+ FieldName: "Describe the type of business/activities that the corporation intends to carry on",
87829
87836
  FieldValue: corporateNameDelta?.businessActivity ?? ""
87830
87837
  },
87831
87838
  {
87832
- FieldName: "Who are your clients? Provide a brief description.",
87833
- FieldValue: corporateNameDelta?.typeOfClientele ?? ""
87839
+ FieldName: "Specify the geographic area in which the corporation is likely to operate (e.g., province, territory, state or other)",
87840
+ FieldValue: corporateNameDelta?.locationOfOperations ?? ""
87834
87841
  },
87835
87842
  {
87836
- FieldName: "Where will your business operate? (City, town, province etc.) Be specific.",
87837
- FieldValue: corporateNameDelta?.locationOfOperations ?? ""
87843
+ FieldName: "Describe the type of clientele the corporation intends to have",
87844
+ FieldValue: corporateNameDelta?.typeOfClientele ?? ""
87838
87845
  },
87839
87846
  {
87840
87847
  FieldName: "If the proposed name contains a family name belonging to someone other than the incorporator, state the person's relationship to the corporation.",
@@ -87844,7 +87851,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87844
87851
  FieldName: "Similar names or trademarks you've registered or searches you conducted.",
87845
87852
  FieldValue: corporateNameDelta?.similarNamesSearchedOrRegistered ?? ""
87846
87853
  }
87847
- ].filter((section) => section.FieldValue)
87854
+ ]
87848
87855
  }
87849
87856
  ] : void 0
87850
87857
  // NOTE: Spec does not include these; kept commented for reference.
@@ -87863,17 +87870,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87863
87870
  }
87864
87871
  function transformDirector(affiliation, deltaData, consentToProvideEmails) {
87865
87872
  const address = affiliation.addresses[0] || affiliation.parent_affiliation?.addresses?.[0];
87866
- return __spreadValues({
87873
+ return {
87867
87874
  FirstName: affiliation.participant._profile.firstName,
87868
87875
  MiddleName: affiliation.participant._profile.middleName,
87869
87876
  LastName: affiliation.participant._profile.lastName,
87870
87877
  IsResident: deltaData.residentCanadian ? 1 : 2,
87871
87878
  Address: address ? mapAddress(address) : void 0,
87872
- RequiresFullAccessManagerInvitation: !!deltaData.inviteForFullAccessManager
87873
- }, deltaData.inviteForFullAccessManager ? {
87879
+ RequiresFullAccessManagerInvitation: deltaData.inviteForFullAccessManager,
87874
87880
  FullAccessManagerInvitationEmail: affiliation.participant.communicationEmail,
87875
87881
  FullAccessManagerEmailConsent: consentToProvideEmails
87876
- } : {});
87882
+ };
87877
87883
  }
87878
87884
  function transformIndividualWithSignificantControl(affiliation, deltaData) {
87879
87885
  const address = affiliation.addresses[0] || affiliation.parent_affiliation?.addresses?.[0];
@@ -87888,9 +87894,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87888
87894
  LastName: affiliation.participant._profile.lastName,
87889
87895
  DateOfBirth: affiliation.participant._profile.date_of_birth,
87890
87896
  CountriesOfCitizenship: (affiliation.participant?._profile?.["citizenships"] ?? []).map((c) => normalizeCountryCode(c)),
87891
- CountriesOfResidence: [
87892
- normalizeCountryCode(affiliation.participant?._profile?.tax_residency?.country)
87893
- ],
87897
+ CountriesOfResidence: normalizeCountryCode(affiliation.participant?._profile?.tax_residency?.country),
87894
87898
  Address: address ? mapAddress(address) : void 0,
87895
87899
  ServiceAddress: serviceAddress ? mapAddress(serviceAddress) : void 0,
87896
87900
  TypeOfInterest: deltaData.typeOfInterest,
@@ -87907,12 +87911,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87907
87911
  FirstName: isIndividual ? incorporator.firstName : void 0,
87908
87912
  MiddleName: isIndividual ? incorporator.middleName : void 0,
87909
87913
  LastName: isIndividual ? incorporator.lastName : void 0,
87910
- // Spec: BodyCorporate and Signature apply only to body-corporate incorporators.
87911
- BodyCorporate: !isIndividual ? incorporator.incorporator_name : void 0,
87912
- Signature: !isIndividual && (incorporator.signatory_first_name || incorporator.signatory_last_name) ? [
87913
- `${incorporator.signatory_first_name ?? ""} ${incorporator.signatory_last_name ?? ""}`.trim(),
87914
- incorporator.signatory_title
87915
- ].filter(Boolean).join(", ") : void 0,
87914
+ CompanyName: !isIndividual ? incorporator.incorporator_name : void 0,
87915
+ Signature: `${incorporator.signatory_first_name ?? ""} ${incorporator.signatory_last_name ?? ""}, ${incorporator.signatory_title ?? ""}`,
87916
87916
  Address: mapAddress(incorporator)
87917
87917
  };
87918
87918
  }
@@ -87921,19 +87921,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87921
87921
  const provinceState = country === "CA" ? CANCodeToProvince(address?.province_state) : country === "US" ? USCodeToState(address?.province_state) : address?.province_state ?? "";
87922
87922
  const addressRegion = country === "CA" ? CANProvinceToCode(provinceState) : country === "US" ? USStateToCode(provinceState) : provinceState;
87923
87923
  return {
87924
- // Spec: CareOf min length 4 and UnitNumber/AddressLine2 min length 3 when present, so omit blanks.
87925
- CareOf: address?.components?.find((c) => c.name === "Attention")?.value || void 0,
87924
+ CareOf: address?.components?.find((c) => c.name === "Attention")?.value || "",
87926
87925
  StreetNumber: address?.components?.find((c) => c.name === "Street Number Only")?.value || "",
87927
87926
  StreetName: address?.components?.find((c) => c.name === "Street Only")?.value || "",
87928
- UnitNumber: address?.components?.find((c) => c.name === "Suite/Apartment")?.value || void 0,
87929
- DeliveryCode: "None",
87927
+ UnitNumber: address?.components?.find((c) => c.name === "Suite/Apartment")?.value || "",
87928
+ AddressLine2: "",
87929
+ DeliveryCode: "",
87930
87930
  City: address?.city ?? "",
87931
87931
  ProvinceState: addressRegion,
87932
87932
  Code: address?.postal_zip ?? "",
87933
87933
  Country: normalizeCountryCode(address?.country)
87934
87934
  };
87935
87935
  }
87936
- function transformEPL(registration, deltaData, incorporationEffectiveDate, entityLanguage, filingContact) {
87936
+ function transformEPL(registration, deltaData) {
87937
87937
  const registeredOffice = [...registration.affiliations ?? []].find((aff) => aff.role.role_name === "Shared Address" && aff.role.static_title === "Registered Office");
87938
87938
  const registeredOfficeAddress = registeredOffice?.addresses?.[0] || registeredOffice?.parent_affiliation?.addresses?.[0];
87939
87939
  let operatingAddress;
@@ -87963,43 +87963,43 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87963
87963
  }
87964
87964
  }
87965
87965
  return {
87966
- Jurisdiction: CANProvinceToCode(registration._compliance.home_jurisdiction),
87966
+ Jurisdiction: registration._compliance.home_jurisdiction,
87967
87967
  epFiling: {
87968
- EffectiveDate: incorporationEffectiveDate,
87969
- // Spec: "English" or "French".
87970
- Language: entityLanguage?.toLowerCase().startsWith("fr") ? "French" : "English",
87968
+ EffectiveDate: registration.registration_date,
87969
+ Language: '""',
87971
87970
  RegOffice: {
87972
- Jurisdiction: CANProvinceToCode(registration._compliance.home_jurisdiction),
87973
87971
  Address: registeredOfficeAddress ? mapAddress(registeredOfficeAddress) : {}
87974
87972
  },
87975
- OperatingAddress: operatingAddress ? { Address: mapAddress(operatingAddress) } : void 0,
87973
+ OperatingAddress: {
87974
+ Address: operatingAddress ? mapAddress(operatingAddress) : {}
87975
+ },
87976
87976
  DeliveryAddress: contactAffiliation ? {
87977
87977
  FirstName: contactAffiliation.participant._profile.firstName,
87978
87978
  LastName: contactAffiliation.participant._profile.lastName,
87979
- PhoneNumber: formatPhone(contactAffiliation.participant.communicationPhone),
87979
+ PhoneNumber: contactAffiliation.participant.communicationPhone,
87980
87980
  Email: contactAffiliation.participant.communicationEmail,
87981
- Office: serviceAddress ? mapAddress(serviceAddress) : void 0
87981
+ Office: serviceAddress ? __spreadProps(__spreadValues({}, mapAddress(serviceAddress)), {
87982
+ MailingAddressSameAsOffice: registeredOfficeAddress?.uid === deltaData.serviceAddressUid
87983
+ }) : {},
87984
+ PickupNumber: ""
87982
87985
  } : void 0,
87983
- ChiefManager: chiefManager ? {
87984
- FirstName: chiefManager.participant._profile.firstName,
87985
- MiddleName: chiefManager.participant._profile.middleName,
87986
- LastName: chiefManager.participant._profile.lastName,
87987
- Office: chiefManagerAddress ? mapAddress(chiefManagerAddress) : void 0,
87986
+ ChiefManager: {
87987
+ FirstName: chiefManager?.participant._profile.firstName,
87988
+ MiddleName: chiefManager?.participant._profile.middleName,
87989
+ LastName: chiefManager?.participant._profile.lastName,
87990
+ Office: chiefManagerAddress ? mapAddress(chiefManagerAddress) : {},
87988
87991
  AddressEffectiveDate: chiefManagerAddress?.effective_date,
87989
- // Spec: must equal Incorporation.EffectiveDate.
87990
- EffectiveDate: incorporationEffectiveDate,
87991
- Email: chiefManager.participant.communicationEmail,
87992
- PhoneNumber: formatPhone(chiefManager.participant.communicationPhone)
87993
- } : void 0,
87992
+ EffectiveDate: chiefManager?.start_date,
87993
+ PhoneNumber: chiefManager?.participant.communicationPhone
87994
+ },
87994
87995
  Signatory: {
87995
87996
  FirstName: signatoryManager?.participant._profile.firstName,
87996
87997
  MiddleName: signatoryManager?.participant._profile.middleName,
87997
87998
  LastName: signatoryManager?.participant._profile.lastName,
87998
87999
  SigningTitle: deltaData.signatoryRole
87999
88000
  },
88000
- // Spec: required. Fall back to the filing contact's email when the office has no Business Email.
88001
- OfficialEmail: registeredOfficeAddress?.communications?.find((c) => c.type === "Business Email")?.value || filingContact?.communicationEmail,
88002
- NAICSCode: deltaData.businessActivity?.toString(),
88001
+ OfficialEmail: registeredOfficeAddress?.communications?.find((c) => c.type === "Business Email")?.value,
88002
+ NAICSCode: deltaData.businessActivity,
88003
88003
  PrimaryActivity: NAICS_CODE_DESCRIPTIONS[deltaData.businessActivity?.toString()]
88004
88004
  }
88005
88005
  };
@@ -88010,13 +88010,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88010
88010
  LastName: contact?._profile?.lastName || "",
88011
88011
  MiddleName: contact?._profile?.middleName || "",
88012
88012
  Email: contact?.communicationEmail || officialBusinessEmail || "",
88013
- Phone: formatPhone(contact?.communicationPhone)
88013
+ Phone: contact?.communicationPhone || "",
88014
+ Fax: '""'
88014
88015
  };
88015
88016
  }
88016
- function formatPhone(phone) {
88017
- const digits = (phone ?? "").replace(/\D/g, "").slice(-10);
88018
- return digits.length === 10 ? `${digits.slice(0, 3)}-${digits.slice(3, 6)}-${digits.slice(6)}` : phone ?? "";
88019
- }
88020
88017
  var init_federal_formation_mapper = __esm({
88021
88018
  "src/app/helpers/mappers/federal-formation.mapper.ts"() {
88022
88019
  init_ECoreInterfaces();
@@ -89184,7 +89181,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
89184
89181
  if (signature) {
89185
89182
  const serviceOrderId = this.task()?.deltaData.serviceOrderId;
89186
89183
  if (serviceOrderId) {
89187
- const documentIds = this.task()?.deltaData?.corporateName?.supportingDocuments ?? [];
89184
+ const documentIds = normalizeDocumentIds(this.task()?.deltaData?.corporateName?.supportingDocuments);
89188
89185
  if (documentIds.length && !this.getDocumentBytes()) {
89189
89186
  throw new Error("Missing getDocumentBytes (required input from Athennian to upload supporting documents).");
89190
89187
  }
@@ -89580,7 +89577,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
89580
89577
  }], () => [], null);
89581
89578
  })();
89582
89579
  (() => {
89583
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 73 });
89580
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 74 });
89584
89581
  })();
89585
89582
  }
89586
89583
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {