dnd-filing-shell-test 2.2.0 → 2.2.1

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 +25 -416
  2. package/package.json +1 -1
@@ -41960,12 +41960,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
41960
41960
  \u0275\u0275advance(5);
41961
41961
  \u0275\u0275textInterpolate(ctx.activeStep());
41962
41962
  }
41963
- }, styles: ["\n\n[_nghost-%COMP%] .stepper[_ngcontent-%COMP%] {\n display: flex;\n height: 100%;\n width: 100%;\n}\n[_nghost-%COMP%] .stepper-body[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n}\n[_nghost-%COMP%] .stepper-body-header[_ngcontent-%COMP%] {\n height: 46px;\n box-sizing: border-box;\n padding: 24px 24px 0 24px;\n}\n[_nghost-%COMP%] .stepper-body-header-title[_ngcontent-%COMP%] {\n color: #064563;\n margin: 0;\n font-size: 20px;\n line-height: 20px;\n}\n[_nghost-%COMP%] .stepper-navigation[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n padding: 16px 0;\n height: 100%;\n width: 25%;\n background: #f4f4f4;\n}\n[_nghost-%COMP%] .stepper-navigation-header[_ngcontent-%COMP%] {\n height: 46px;\n box-sizing: border-box;\n padding: 8px 16px 16px 16px;\n}\n[_nghost-%COMP%] .stepper-navigation-header-title[_ngcontent-%COMP%] {\n color: #66698d;\n margin: 0;\n font-weight: 400;\n font-size: 18px;\n line-height: 18px;\n}\n[_nghost-%COMP%] .stepper-navigation-item[_ngcontent-%COMP%] {\n padding: 12px 16px;\n color: #6a6a6a;\n cursor: pointer;\n transition: color 0.125s ease-in-out, font-weight 0.125s ease-in-out;\n -webkit-user-select: none;\n user-select: none;\n}\n[_nghost-%COMP%] .stepper-navigation-item.selected[_ngcontent-%COMP%] {\n cursor: unset;\n color: black;\n background: white;\n font-weight: 500;\n}\n/*# sourceMappingURL=stepper.component.css.map */"], changeDetection: 0 });
41963
+ }, styles: ["\n\n[_nghost-%COMP%] .stepper[_ngcontent-%COMP%] {\n display: flex;\n height: 100%;\n width: 100%;\n}\n[_nghost-%COMP%] .stepper-body[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n}\n[_nghost-%COMP%] .stepper-body-header[_ngcontent-%COMP%] {\n height: 46px;\n box-sizing: border-box;\n padding: 24px 24px 38px 24px;\n}\n[_nghost-%COMP%] .stepper-body-header-title[_ngcontent-%COMP%] {\n color: #064563;\n margin: 0;\n font-size: 20px;\n line-height: 20px;\n}\n[_nghost-%COMP%] .stepper-navigation[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n padding: 16px 0;\n height: 100%;\n width: 25%;\n background: #f4f4f4;\n}\n[_nghost-%COMP%] .stepper-navigation-header[_ngcontent-%COMP%] {\n height: 46px;\n box-sizing: border-box;\n padding: 8px 16px 16px 16px;\n}\n[_nghost-%COMP%] .stepper-navigation-header-title[_ngcontent-%COMP%] {\n color: #66698d;\n margin: 0;\n font-weight: 400;\n font-size: 18px;\n line-height: 18px;\n}\n[_nghost-%COMP%] .stepper-navigation-item[_ngcontent-%COMP%] {\n padding: 12px 16px;\n color: #6a6a6a;\n cursor: pointer;\n transition: color 0.125s ease-in-out, font-weight 0.125s ease-in-out;\n -webkit-user-select: none;\n user-select: none;\n}\n[_nghost-%COMP%] .stepper-navigation-item.selected[_ngcontent-%COMP%] {\n cursor: unset;\n color: black;\n background: white;\n font-weight: 500;\n}\n/*# sourceMappingURL=stepper.component.css.map */"], changeDetection: 0 });
41964
41964
  };
41965
41965
  (() => {
41966
41966
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Stepper, [{
41967
41967
  type: Component,
41968
- args: [{ standalone: true, selector: "stepper", changeDetection: ChangeDetectionStrategy.OnPush, template: '<div class="stepper">\r\n <div class="stepper-navigation">\r\n <div class="stepper-navigation-header">\r\n <h2 class="stepper-navigation-header-title">EDIT TASK</h2>\r\n </div>\r\n\r\n @for (item of steps; track item; let index = $index) {\r\n <div [class.selected]="activeStep() === item" class="stepper-navigation-item">\r\n {{index + 1}}. {{item}}\r\n </div>\r\n }\r\n </div>\r\n\r\n <div class="stepper-body">\r\n <div class="stepper-body-header">\r\n <h1 class="stepper-body-header-title">{{activeStep()}}</h1>\r\n </div>\r\n\r\n <ng-content/>\r\n </div>\r\n</div>\r\n', styles: ["/* src/app/components/stepper/stepper.component.scss */\n:host .stepper {\n display: flex;\n height: 100%;\n width: 100%;\n}\n:host .stepper-body {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n}\n:host .stepper-body-header {\n height: 46px;\n box-sizing: border-box;\n padding: 24px 24px 0 24px;\n}\n:host .stepper-body-header-title {\n color: #064563;\n margin: 0;\n font-size: 20px;\n line-height: 20px;\n}\n:host .stepper-navigation {\n display: flex;\n flex-direction: column;\n padding: 16px 0;\n height: 100%;\n width: 25%;\n background: #f4f4f4;\n}\n:host .stepper-navigation-header {\n height: 46px;\n box-sizing: border-box;\n padding: 8px 16px 16px 16px;\n}\n:host .stepper-navigation-header-title {\n color: #66698d;\n margin: 0;\n font-weight: 400;\n font-size: 18px;\n line-height: 18px;\n}\n:host .stepper-navigation-item {\n padding: 12px 16px;\n color: #6a6a6a;\n cursor: pointer;\n transition: color 0.125s ease-in-out, font-weight 0.125s ease-in-out;\n -webkit-user-select: none;\n user-select: none;\n}\n:host .stepper-navigation-item.selected {\n cursor: unset;\n color: black;\n background: white;\n font-weight: 500;\n}\n/*# sourceMappingURL=stepper.component.css.map */\n"] }]
41968
+ args: [{ standalone: true, selector: "stepper", changeDetection: ChangeDetectionStrategy.OnPush, template: '<div class="stepper">\r\n <div class="stepper-navigation">\r\n <div class="stepper-navigation-header">\r\n <h2 class="stepper-navigation-header-title">EDIT TASK</h2>\r\n </div>\r\n\r\n @for (item of steps; track item; let index = $index) {\r\n <div [class.selected]="activeStep() === item" class="stepper-navigation-item">\r\n {{index + 1}}. {{item}}\r\n </div>\r\n }\r\n </div>\r\n\r\n <div class="stepper-body">\r\n <div class="stepper-body-header">\r\n <h1 class="stepper-body-header-title">{{activeStep()}}</h1>\r\n </div>\r\n\r\n <ng-content/>\r\n </div>\r\n</div>\r\n', styles: ["/* src/app/components/stepper/stepper.component.scss */\n:host .stepper {\n display: flex;\n height: 100%;\n width: 100%;\n}\n:host .stepper-body {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n}\n:host .stepper-body-header {\n height: 46px;\n box-sizing: border-box;\n padding: 24px 24px 38px 24px;\n}\n:host .stepper-body-header-title {\n color: #064563;\n margin: 0;\n font-size: 20px;\n line-height: 20px;\n}\n:host .stepper-navigation {\n display: flex;\n flex-direction: column;\n padding: 16px 0;\n height: 100%;\n width: 25%;\n background: #f4f4f4;\n}\n:host .stepper-navigation-header {\n height: 46px;\n box-sizing: border-box;\n padding: 8px 16px 16px 16px;\n}\n:host .stepper-navigation-header-title {\n color: #66698d;\n margin: 0;\n font-weight: 400;\n font-size: 18px;\n line-height: 18px;\n}\n:host .stepper-navigation-item {\n padding: 12px 16px;\n color: #6a6a6a;\n cursor: pointer;\n transition: color 0.125s ease-in-out, font-weight 0.125s ease-in-out;\n -webkit-user-select: none;\n user-select: none;\n}\n:host .stepper-navigation-item.selected {\n cursor: unset;\n color: black;\n background: white;\n font-weight: 500;\n}\n/*# sourceMappingURL=stepper.component.css.map */\n"] }]
41969
41969
  }], null, null);
41970
41970
  })();
41971
41971
  (() => {
@@ -66695,7 +66695,7 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
66695
66695
  \u0275\u0275property("diameter", 40);
66696
66696
  }
66697
66697
  }
66698
- var _c014, initialTaskMock, FilingComponent;
66698
+ var _c014, FilingComponent;
66699
66699
  var init_filing_component = __esm({
66700
66700
  "src/app/components/filing/filing.component.ts"() {
66701
66701
  init_core();
@@ -66715,403 +66715,8 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
66715
66715
  init_formation_preview_form_helper();
66716
66716
  init_core();
66717
66717
  _c014 = ["scrollContainer"];
66718
- initialTaskMock = {
66719
- _taskType: "Formation",
66720
- entity: {
66721
- "_id": "691b764d7c6f80f5f227c891",
66722
- "_profile": {
66723
- "name": "ECore Demo Entity",
66724
- "email": "michel.lavoie@athennian.com",
66725
- "directorNumberType": "2",
66726
- "secondary_name": "",
66727
- "entity_type": "",
66728
- "entity_subtype": "",
66729
- "entity_status": "Active",
66730
- "entity_language": "en-CA",
66731
- "address_type": "Registered Office",
66732
- "member_corp": "",
66733
- "stock_corp": "",
66734
- "default_currency": "",
66735
- "taxID_number": "",
66736
- "corp_number": "",
66737
- "file_number": "",
66738
- "creation": "",
66739
- "residency": "",
66740
- "inactive_date": "",
66741
- "contact_numbers": {
66742
- "primary": "",
66743
- "secondary": "",
66744
- "other": ""
66745
- },
66746
- "emails": {
66747
- "primary": "",
66748
- "secondary": "",
66749
- "other": ""
66750
- },
66751
- "description": "",
66752
- "attention": "",
66753
- "lawyer": {
66754
- "personID": "",
66755
- "name": ""
66756
- },
66757
- "paralegal": {
66758
- "personID": "",
66759
- "name": ""
66760
- },
66761
- "sign_auth": "",
66762
- "tags": [],
66763
- "naics_code": "11112",
66764
- "legal_entity_identifier": "1",
66765
- "unique_id_name": "",
66766
- "unique_id": "",
66767
- "cancellation_date": "",
66768
- "created_date": 1763407347351,
66769
- "cancellation_memo": "",
66770
- "registry_id": "",
66771
- "client_matter_number": "",
66772
- "partnership_expiry_date": "",
66773
- "partnership_no_expiry_date": false,
66774
- "partnership_registration_date": "",
66775
- "partnership_cancellation_date": "",
66776
- "partnership_do_not_renew": false,
66777
- "ext": {
66778
- "preference": "",
66779
- "corp_seal": "",
66780
- "minutebook_local": "",
66781
- "electronic_filing": false,
66782
- "notes": ""
66783
- },
66784
- "modified_date": 1763407582300
66785
- },
66786
- "_compliance": {
66787
- "home_jurisdiction": "ON",
66788
- "jurisdiction_country": "Canada",
66789
- "country": "CA",
66790
- "region": "CA-ON",
66791
- "jurisdiction_county": "",
66792
- "incorporation_date": "",
66793
- "professional": false,
66794
- "profession_type": "",
66795
- "profession_other": "",
66796
- "exchanges": [],
66797
- "isFloating_fiscal_year_end": false,
66798
- "floating_fiscal_year_end": ""
66799
- },
66800
- "_administration": {
66801
- "fractional_shares": true,
66802
- "fractional_shares_decimals": 12,
66803
- "currency_decimals": 2,
66804
- "_id": "691b764d7c6f80f5f227c892"
66805
- },
66806
- "_exclude_from_AI": false,
66807
- "_contacts": [],
66808
- "_notes": [],
66809
- "_status": "pending",
66810
- "_admins": [],
66811
- "_affiliations": [],
66812
- "_teamIDs": [
66813
- "6425fd397e05ba0e117c5414"
66814
- ],
66815
- "_companyGroups": [],
66816
- "_responsibleOffices": [],
66817
- "_governingActs": [],
66818
- "_customEntitySubtype": [],
66819
- "_instructions": [],
66820
- "communications": [],
66821
- "__v": 11,
66822
- "_addressesID": "691b764db16dda10098c9f1e",
66823
- "_historyID": "691b764d8fb026fb464f62f4",
66824
- "_articles": {
66825
- "min_directors": 1,
66826
- "max_directors": 3,
66827
- "unlimited_directors": false,
66828
- "share_terms": "Authorized Share Capital (Articles section)",
66829
- "share_restrictions_text": "Restrictions on Share Capital (Articles section)",
66830
- "transfer_restrictions_text": "Transfer Restrictions (Articles section)",
66831
- "other_provisions": "Other Provisions (Articles section)",
66832
- "restrictions": "Business Restrictions (Articles section)"
66833
- },
66834
- "governing_acts": [],
66835
- "company_groups": [],
66836
- "responsible_offices": []
66837
- },
66838
- incomingAffiliations: [
66839
- {
66840
- kind: "PrincipalAffiliationV3",
66841
- participant: {
66842
- _id: 22,
66843
- _profile: {
66844
- firstName: "Mikita",
66845
- lastName: "Simpson",
66846
- middleName: "Test"
66847
- }
66848
- },
66849
- target: {
66850
- _profile: {
66851
- firstName: "Mikita",
66852
- lastName: "Simpson",
66853
- middleName: "Test"
66854
- }
66855
- },
66856
- role: {
66857
- role_name: "Director"
66858
- },
66859
- addresses: [
66860
- {
66861
- city: "Woodbridge",
66862
- postal_zip: "L4L 4Y7",
66863
- province_state: "ON",
66864
- components: [
66865
- {
66866
- name: "Street Only",
66867
- value: "Main St NW"
66868
- },
66869
- {
66870
- name: "Attention",
66871
- value: "President"
66872
- },
66873
- {
66874
- name: "Street Number Only",
66875
- value: "4550"
66876
- }
66877
- ]
66878
- }
66879
- ]
66880
- },
66881
- {
66882
- kind: "PrincipalAffiliationV3",
66883
- participant: {
66884
- _id: 21,
66885
- _profile: {
66886
- firstName: "Mark",
66887
- lastName: "Simpson",
66888
- middleName: "Test"
66889
- }
66890
- },
66891
- target: {
66892
- _profile: {
66893
- firstName: "Mikita",
66894
- lastName: "Simpson",
66895
- middleName: "Test"
66896
- }
66897
- },
66898
- role: {
66899
- role_name: "Director"
66900
- },
66901
- addresses: [],
66902
- parent_affiliation: {
66903
- addresses: [
66904
- {
66905
- city: "Woodbridge",
66906
- postal_zip: "L4L 4Y7",
66907
- province_state: "ON",
66908
- components: [
66909
- {
66910
- name: "Street Only",
66911
- value: "Queen Ave SE"
66912
- },
66913
- {
66914
- name: "Attention",
66915
- value: "President"
66916
- },
66917
- {
66918
- name: "Street Number Only",
66919
- value: "4550"
66920
- }
66921
- ]
66922
- }
66923
- ]
66924
- }
66925
- },
66926
- {
66927
- kind: "EntityAffiliationV3",
66928
- role: {
66929
- role_name: "Shared Address",
66930
- static_title: "Registered Office",
66931
- description: "Main registered office address for the entity",
66932
- id: 12345
66933
- },
66934
- entity_id: "ENT-67890",
66935
- created_at: "2026-01-09T00:00:00Z",
66936
- addresses: [
66937
- {
66938
- city: "Woodbridge",
66939
- postal_zip: "L4L 4Y7",
66940
- province_state: "ON",
66941
- components: [
66942
- {
66943
- name: "Street Only",
66944
- value: "123 Maple Avenue NW"
66945
- },
66946
- {
66947
- name: "Attention",
66948
- value: "President"
66949
- },
66950
- {
66951
- name: "Street Number Only",
66952
- value: "4550"
66953
- }
66954
- ]
66955
- }
66956
- ]
66957
- },
66958
- {
66959
- kind: "OtherAffiliation",
66960
- role: {
66961
- role_name: "Director"
66962
- },
66963
- addresses: [
66964
- {
66965
- components: [
66966
- {
66967
- name: "Street Only",
66968
- value: "Fake St N"
66969
- }
66970
- ]
66971
- }
66972
- ]
66973
- },
66974
- {
66975
- kind: "PrincipalAffiliationV3",
66976
- participant: {
66977
- _id: 21,
66978
- _profile: {
66979
- firstName: "Mikita",
66980
- lastName: "Simpson",
66981
- middleName: "Test"
66982
- }
66983
- },
66984
- target: {
66985
- _profile: {
66986
- firstName: "Mikita",
66987
- lastName: "Simpson",
66988
- middleName: "Test"
66989
- }
66990
- },
66991
- role: {
66992
- role_name: "Shareholder"
66993
- },
66994
- addresses: [
66995
- {
66996
- city: "Woodbridge",
66997
- postal_zip: "L4L 4Y7",
66998
- province_state: "ON",
66999
- components: [
67000
- {
67001
- name: "Street Only",
67002
- value: "Market Blvd W"
67003
- }
67004
- ]
67005
- }
67006
- ]
67007
- }
67008
- ],
67009
- _ext: {
67010
- "officialEmail": "michel.lavoie@athennian.com",
67011
- _consent_to_use_name: "Company",
67012
- _name_reservation_date: "2026-01-13",
67013
- _numbered_company: true,
67014
- _incorporators: [
67015
- {
67016
- profileID: "1a",
67017
- type: "person",
67018
- firstName: "Anna",
67019
- middleName: "Maria",
67020
- lastName: "Kowalski",
67021
- incorporator_name: "Anna M. Kowalski",
67022
- incorporator_reg_number: "2370534",
67023
- city: "New York",
67024
- province_state: "NY",
67025
- country: "USA",
67026
- postal_zip: "10001",
67027
- location_type: "residential",
67028
- components: [
67029
- {
67030
- name: "Street Only",
67031
- value: "Main St NW"
67032
- },
67033
- {
67034
- name: "Attention",
67035
- value: "President"
67036
- },
67037
- {
67038
- name: "Street Number Only",
67039
- value: "4550"
67040
- }
67041
- ]
67042
- },
67043
- {
67044
- profileID: "2s",
67045
- type: "person",
67046
- firstName: "John",
67047
- lastName: "Doe",
67048
- incorporator_name: "John Doe",
67049
- incorporator_reg_number: "2370534",
67050
- city: "New York",
67051
- province_state: "NY",
67052
- country: "USA",
67053
- postal_zip: "10001",
67054
- location_type: "business",
67055
- components: [
67056
- {
67057
- name: "Street Only",
67058
- value: "Main St NW"
67059
- },
67060
- {
67061
- name: "Attention",
67062
- value: "President"
67063
- },
67064
- {
67065
- name: "Street Number Only",
67066
- value: "4550"
67067
- }
67068
- ]
67069
- },
67070
- {
67071
- type: "entity",
67072
- incorporator_name: "Tech Innovations Ltd.",
67073
- incorporator_reg_number: "2370534",
67074
- city: "London",
67075
- province_state: "Greater London",
67076
- country: "United Kingdom",
67077
- postal_zip: "SW1A 1AA",
67078
- location_type: "business",
67079
- signatory_first_name: "Alice",
67080
- signatory_last_name: "Smith",
67081
- signatory_title: "CEO",
67082
- components: [
67083
- {
67084
- name: "Street Only",
67085
- value: "Main St NW"
67086
- },
67087
- {
67088
- name: "Attention",
67089
- value: "President"
67090
- },
67091
- {
67092
- name: "Street Number Only",
67093
- value: "4550"
67094
- }
67095
- ]
67096
- },
67097
- {
67098
- type: "entity",
67099
- incorporator_name: "Tech Innovations Ltd.",
67100
- incorporator_reg_number: "2370534",
67101
- city: "Toronto",
67102
- province_state: "ON",
67103
- country: "Canada",
67104
- postal_zip: "M5H 2N2",
67105
- location_type: "business",
67106
- signatory_first_name: "Bob",
67107
- signatory_last_name: "Johnson",
67108
- signatory_title: "Managing Director"
67109
- }
67110
- ]
67111
- }
67112
- };
67113
66718
  FilingComponent = class _FilingComponent {
67114
- signature = input(initialTaskMock);
66719
+ signature = input();
67115
66720
  deltaData = input();
67116
66721
  validateOptions = input();
67117
66722
  isLoading = signal(false);
@@ -67129,12 +66734,18 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
67129
66734
  isSignatureChanged = () => {
67130
66735
  const signature = this.signature();
67131
66736
  const signatureFromDeltaData = this.deltaData()?.deltaData?.task;
67132
- if (this.signature() && signatureFromDeltaData) {
66737
+ if (signature && signatureFromDeltaData) {
67133
66738
  return !deepEqual(signature.task, signatureFromDeltaData);
67134
66739
  }
67135
66740
  return false;
67136
66741
  };
67137
66742
  constructor() {
66743
+ effect(() => {
66744
+ const task = this.signature()?.task;
66745
+ if (task) {
66746
+ this.deltaForm = new FormGroup(__spreadValues({}, this.generateDeltaFormFieldsConfig(task)));
66747
+ }
66748
+ });
67138
66749
  effect(() => {
67139
66750
  const deltaData = this.deltaData();
67140
66751
  if (deltaData) {
@@ -67147,11 +66758,7 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
67147
66758
  }
67148
66759
  });
67149
66760
  }
67150
- ngOnInit() {
67151
- this.deltaForm = new FormGroup(__spreadValues({}, this.generateDeltaFormFieldsConfig()));
67152
- }
67153
- generateDeltaFormFieldsConfig() {
67154
- const task = this.signature().task;
66761
+ generateDeltaFormFieldsConfig(task) {
67155
66762
  if (task?._taskType === "Formation") {
67156
66763
  return FormationDeltaFormHelper.generateConfig(task);
67157
66764
  }
@@ -67173,8 +66780,8 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
67173
66780
  termsAndConditions,
67174
66781
  officialEmail: generalInfo[FillingFormControls.OfficialEmail]
67175
66782
  };
67176
- if (this.signature().deltaDataChange) {
67177
- this.signature().deltaDataChange({
66783
+ if (this.signature()?.deltaDataChange) {
66784
+ this.signature()?.deltaDataChange({
67178
66785
  deltaData: __spreadProps(__spreadValues({}, deltaData), { signature: this.signature() })
67179
66786
  });
67180
66787
  }
@@ -67182,11 +66789,11 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
67182
66789
  if (signature) {
67183
66790
  const response = yield this.formationService.submitFormationValidateRequest(signature, deltaData, this.validateOptions());
67184
66791
  this.changeDeltaData.emit({
67185
- deltaData: __spreadProps(__spreadValues({}, deltaData), { task: this.signature().task })
66792
+ deltaData: __spreadProps(__spreadValues({}, deltaData), { task: this.signature()?.task })
67186
66793
  });
67187
- if (this.signature().draftReady) {
66794
+ if (this.signature()?.draftReady) {
67188
66795
  const isoTimestamp = (/* @__PURE__ */ new Date()).toISOString();
67189
- this.signature().draftReady({
66796
+ this.signature()?.draftReady({
67190
66797
  draftPdf: response.Draft ?? "",
67191
66798
  documentName: this.validateOptions()?.documentName ? `${this.validateOptions()?.documentName} ${isoTimestamp}` : `Incorporation Draft ${isoTimestamp}`,
67192
66799
  documentType: "pdf"
@@ -67238,8 +66845,9 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
67238
66845
  this.errorData.set(null);
67239
66846
  const result = yield this.validateAndFile(this.previewForm, termsAndConditions);
67240
66847
  const serviceId = result?.ServiceOrderId;
67241
- if (serviceId) {
67242
- const result2 = yield this.formationService.submitFormationRequest(this.signature(), serviceId, this.validateOptions());
66848
+ const signature = this.signature();
66849
+ if (serviceId && signature) {
66850
+ const result2 = yield this.formationService.submitFormationRequest(signature, serviceId, this.validateOptions());
67243
66851
  if (!result2?.ReceiptPdf) {
67244
66852
  yield this.getStatus(serviceId);
67245
66853
  }
@@ -67258,7 +66866,7 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
67258
66866
  });
67259
66867
  }
67260
66868
  generatePreviewFormFieldsConfig() {
67261
- const task = this.signature().task;
66869
+ const task = this.signature()?.task;
67262
66870
  if (task?._taskType === "Formation") {
67263
66871
  return FormationPreviewFormHelper.generateFieldConfig(task, this.deltaData()?.deltaData);
67264
66872
  }
@@ -67285,8 +66893,9 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
67285
66893
  getStatus(serviceId) {
67286
66894
  return __async(this, null, function* () {
67287
66895
  this.isPolling = true;
67288
- while (this.isPolling) {
67289
- const result = yield this.formationService.getStatusFormationRequest(this.signature(), serviceId, this.validateOptions());
66896
+ const signature = yield this.signature();
66897
+ while (this.isPolling && signature) {
66898
+ const result = yield this.formationService.getStatusFormationRequest(signature, serviceId, this.validateOptions());
67290
66899
  const status = result.Status;
67291
66900
  if (!status || this.isFormationTerminated(status)) {
67292
66901
  this.isPolling = false;
@@ -67353,7 +66962,7 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
67353
66962
  }] });
67354
66963
  })();
67355
66964
  (() => {
67356
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 437 });
66965
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 47 });
67357
66966
  })();
67358
66967
  }
67359
66968
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dnd-filing-shell-test",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {