@voplus/morpho-csp 11.2.8 → 11.3.0-dev.0

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 (212) hide show
  1. package/es/components/LegalContactSelect/index.d.ts +7 -0
  2. package/es/components/LegalContactSelect/index.js +127 -12
  3. package/es/components/LegalContactSelect/index.js.map +1 -1
  4. package/es/data/clda-form/conversion.d.ts +9 -6
  5. package/es/data/clda-form/conversion.js +11 -18
  6. package/es/data/clda-form/conversion.js.map +1 -1
  7. package/es/data/clda-form/identityAdapter.d.ts +60 -0
  8. package/es/data/clda-form/identityAdapter.js +196 -0
  9. package/es/data/clda-form/identityAdapter.js.map +1 -0
  10. package/es/data/clda-form/interfaces.d.ts +20 -1
  11. package/es/data/clda-form/saveFormDraft.d.ts +4 -0
  12. package/es/data/clda-form/saveFormDraft.js +21 -0
  13. package/es/data/clda-form/saveFormDraft.js.map +1 -0
  14. package/es/data/clda-form/types.d.ts +31 -2
  15. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/IdentityShapeFields.d.ts +35 -0
  16. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/IdentityShapeFields.js +53 -0
  17. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/IdentityShapeFields.js.map +1 -0
  18. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/index.js +41 -15
  19. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/index.js.map +1 -1
  20. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/state.d.ts +59 -1
  21. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/state.js +244 -15
  22. package/es/modules/corporate/background-investigation/risk-profile/components/IdentityProperties/state.js.map +1 -1
  23. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.d.ts +5 -0
  24. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js +13 -7
  25. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js.map +1 -1
  26. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step3.d.ts +2 -2
  27. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step3.js +20 -24
  28. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step3.js.map +1 -1
  29. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step4.d.ts +2 -2
  30. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step4.js +38 -11
  31. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/Step4.js.map +1 -1
  32. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.d.ts +3 -3
  33. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.js.map +1 -1
  34. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/state.d.ts +25 -4
  35. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/state.js +88 -5
  36. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/state.js.map +1 -1
  37. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/DialogShell.d.ts +13 -0
  38. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/DialogShell.js +20 -0
  39. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/DialogShell.js.map +1 -0
  40. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page1.js +28 -28
  41. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page1.js.map +1 -1
  42. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page2.js +3 -4
  43. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page2.js.map +1 -1
  44. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page3.js +16 -9
  45. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page3.js.map +1 -1
  46. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page4.d.ts +2 -2
  47. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page4.js +128 -61
  48. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page4.js.map +1 -1
  49. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page5.d.ts +2 -2
  50. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page5.js +119 -24
  51. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page5.js.map +1 -1
  52. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.d.ts +0 -1
  53. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.js +16 -8
  54. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.js.map +1 -1
  55. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.d.ts +274 -23
  56. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.js +560 -210
  57. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.js.map +1 -1
  58. package/es/modules/corporate/components/CorporateSelect/index.d.ts +12 -1
  59. package/es/modules/corporate/components/CorporateSelect/index.js +19 -5
  60. package/es/modules/corporate/components/CorporateSelect/index.js.map +1 -1
  61. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderScheduleList/index.js +9 -6
  62. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderScheduleList/index.js.map +1 -1
  63. package/es/modules/corporate/legal-generation/components/AppointOfficer/index.d.ts +6 -1
  64. package/es/modules/corporate/legal-generation/components/AppointOfficer/index.js +3 -2
  65. package/es/modules/corporate/legal-generation/components/AppointOfficer/index.js.map +1 -1
  66. package/es/modules/corporate/legal-generation/components/CorporateRepresentative/index.d.ts +6 -1
  67. package/es/modules/corporate/legal-generation/components/CorporateRepresentative/index.js +3 -2
  68. package/es/modules/corporate/legal-generation/components/CorporateRepresentative/index.js.map +1 -1
  69. package/es/modules/corporate/legal-generation/components/IssueShares/Fields.js +3 -3
  70. package/es/modules/corporate/legal-generation/components/IssueShares/Fields.js.map +1 -1
  71. package/es/modules/corporate/legal-generation/components/IssueShares/interface.d.ts +1 -1
  72. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.d.ts +16 -1
  73. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js +27 -9
  74. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js.map +1 -1
  75. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/interface.d.ts +5 -2
  76. package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.js +1 -1
  77. package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.js.map +1 -1
  78. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.d.ts +13 -1
  79. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js +24 -6
  80. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js.map +1 -1
  81. package/es/modules/corporate/legal-generation/components/ShareTransfer/interface.d.ts +5 -2
  82. package/es/modules/corporate/legal-generation/components/SubmitButton/index.d.ts +11 -3
  83. package/es/modules/corporate/legal-generation/components/SubmitButton/index.js +9 -3
  84. package/es/modules/corporate/legal-generation/components/SubmitButton/index.js.map +1 -1
  85. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.d.ts +31 -2
  86. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js +52 -37
  87. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js.map +1 -1
  88. package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.d.ts +27 -2
  89. package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.js +78 -21
  90. package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.js.map +1 -1
  91. package/es/modules/corporate/legal-generation/fields/ParentCompanyDetailsFields.d.ts +17 -0
  92. package/es/modules/corporate/legal-generation/fields/ParentCompanyDetailsFields.js +36 -0
  93. package/es/modules/corporate/legal-generation/fields/ParentCompanyDetailsFields.js.map +1 -0
  94. package/es/modules/corporate/legal-generation/fields/renderCapturedIdentityColumn.d.ts +11 -0
  95. package/es/modules/corporate/legal-generation/fields/renderCapturedIdentityColumn.js +25 -0
  96. package/es/modules/corporate/legal-generation/fields/renderCapturedIdentityColumn.js.map +1 -0
  97. package/es/modules/corporate/legal-generation/fields/state/index.d.ts +7 -0
  98. package/es/modules/corporate/legal-generation/fields/state/index.js +5 -0
  99. package/es/modules/corporate/legal-generation/fields/state/index.js.map +1 -0
  100. package/es/modules/corporate/legal-generation/fields/state/types.d.ts +37 -0
  101. package/es/modules/corporate/legal-generation/fields/state/types.js +27 -0
  102. package/es/modules/corporate/legal-generation/fields/state/types.js.map +1 -0
  103. package/es/modules/corporate/legal-generation/fields/state/useCapturedIdentityField.d.ts +28 -0
  104. package/es/modules/corporate/legal-generation/fields/state/useCapturedIdentityField.js +45 -0
  105. package/es/modules/corporate/legal-generation/fields/state/useCapturedIdentityField.js.map +1 -0
  106. package/es/modules/corporate/legal-generation/fields/state/useIdentityShapeCapture.d.ts +31 -0
  107. package/es/modules/corporate/legal-generation/fields/state/useIdentityShapeCapture.js +47 -0
  108. package/es/modules/corporate/legal-generation/fields/state/useIdentityShapeCapture.js.map +1 -0
  109. package/es/modules/corporate/legal-generation/fields/state/useLegalGenerationIdentityCapture.d.ts +35 -0
  110. package/es/modules/corporate/legal-generation/fields/state/useLegalGenerationIdentityCapture.js +36 -0
  111. package/es/modules/corporate/legal-generation/fields/state/useLegalGenerationIdentityCapture.js.map +1 -0
  112. package/es/modules/corporate/legal-generation/fields/state/useOperateField.d.ts +15 -0
  113. package/es/modules/corporate/legal-generation/fields/state/useOperateField.js +27 -0
  114. package/es/modules/corporate/legal-generation/fields/state/useOperateField.js.map +1 -0
  115. package/es/modules/corporate/legal-generation/form/AppointOfficerForm.d.ts +18 -9
  116. package/es/modules/corporate/legal-generation/form/AppointOfficerForm.js +130 -28
  117. package/es/modules/corporate/legal-generation/form/AppointOfficerForm.js.map +1 -1
  118. package/es/modules/corporate/legal-generation/form/CorporateRepresentativeForm.d.ts +27 -17
  119. package/es/modules/corporate/legal-generation/form/CorporateRepresentativeForm.js +112 -24
  120. package/es/modules/corporate/legal-generation/form/CorporateRepresentativeForm.js.map +1 -1
  121. package/es/modules/corporate/legal-generation/form/legalGenerationSubmit.d.ts +637 -0
  122. package/es/modules/corporate/legal-generation/form/legalGenerationSubmit.js +840 -0
  123. package/es/modules/corporate/legal-generation/form/legalGenerationSubmit.js.map +1 -0
  124. package/es/modules/corporate/legal-generation/form/useLegalGenerationDocument.d.ts +23 -0
  125. package/es/modules/corporate/legal-generation/form/useLegalGenerationDocument.js +55 -0
  126. package/es/modules/corporate/legal-generation/form/useLegalGenerationDocument.js.map +1 -0
  127. package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.js +38 -8
  128. package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.js.map +1 -1
  129. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js +50 -33
  130. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js.map +1 -1
  131. package/es/modules/self-registration/clda-form/components/ContactFields/index.d.ts +5 -2
  132. package/es/modules/self-registration/clda-form/components/ContactFields/index.js +6 -3
  133. package/es/modules/self-registration/clda-form/components/ContactFields/index.js.map +1 -1
  134. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/NewDPODialog/index.d.ts +1 -2
  135. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/NewDPODialog/index.js +7 -18
  136. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/NewDPODialog/index.js.map +1 -1
  137. package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.d.ts +1 -2
  138. package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.js +7 -18
  139. package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.js.map +1 -1
  140. package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.d.ts +1 -2
  141. package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js +7 -18
  142. package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js.map +1 -1
  143. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.d.ts +1 -2
  144. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.js +7 -18
  145. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.js.map +1 -1
  146. package/es/modules/self-registration/clda-form/components/useContactEditSession.d.ts +35 -0
  147. package/es/modules/self-registration/clda-form/components/useContactEditSession.js +51 -0
  148. package/es/modules/self-registration/clda-form/components/useContactEditSession.js.map +1 -0
  149. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.d.ts +2 -3
  150. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js +60 -12
  151. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js.map +1 -1
  152. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.d.ts +1 -2
  153. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.js +3 -5
  154. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.js.map +1 -1
  155. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js +7 -21
  156. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js.map +1 -1
  157. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js +6 -5
  158. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js.map +1 -1
  159. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.d.ts +1 -2
  160. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js +23 -28
  161. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js.map +1 -1
  162. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.d.ts +1 -2
  163. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js +11 -24
  164. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js.map +1 -1
  165. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.d.ts +1 -2
  166. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js +13 -8
  167. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js.map +1 -1
  168. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.d.ts +1 -2
  169. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.js +11 -24
  170. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.js.map +1 -1
  171. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRedonminationDialog/index.d.ts +1 -2
  172. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRedonminationDialog/index.js +18 -9
  173. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRedonminationDialog/index.js.map +1 -1
  174. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.d.ts +1 -2
  175. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js +11 -24
  176. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js.map +1 -1
  177. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.d.ts +1 -2
  178. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +23 -28
  179. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -1
  180. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.d.ts +2 -3
  181. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js +81 -14
  182. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js.map +1 -1
  183. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.d.ts +1 -2
  184. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js +11 -15
  185. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js.map +1 -1
  186. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.d.ts +2 -3
  187. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js +34 -5
  188. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js.map +1 -1
  189. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.d.ts +1 -2
  190. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.js +4 -5
  191. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.js.map +1 -1
  192. package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/index.d.ts +1 -2
  193. package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/index.js +5 -4
  194. package/es/modules/self-registration/clda-form/incorporation/company-general/components/CapitalReceiptSelect/index.js.map +1 -1
  195. package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.d.ts +1 -2
  196. package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js +32 -12
  197. package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js.map +1 -1
  198. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.d.ts +2 -3
  199. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +80 -13
  200. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js.map +1 -1
  201. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.d.ts +1 -2
  202. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js +7 -9
  203. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js.map +1 -1
  204. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.d.ts +3 -0
  205. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js +4 -2
  206. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js.map +1 -1
  207. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/Content.js +16 -1
  208. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/Content.js.map +1 -1
  209. package/es/routes.d.ts +1 -1
  210. package/es/routes.js +4 -2
  211. package/es/routes.js.map +1 -1
  212. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
+ import type { FormContactCapture } from "../../../../../../data/clda-form/identityAdapter";
1
2
  import "./index.css";
2
- import React from "react";
3
3
  declare const NewLegalContactDialog: (props: {
4
4
  visible: boolean;
5
5
  type?: "Person" | "Organization";
6
- updateVisible?: (option?: any) => Promise<void> | void;
7
- }) => React.JSX.Element;
6
+ updateVisible?: (option?: FormContactCapture) => Promise<boolean | void> | boolean | void;
7
+ }) => JSX.Element;
8
8
  export default NewLegalContactDialog;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/NewLegalContactDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,qBAAqB,GAAG,CAAC,KAI9B,EAAE,EAAE;IACJ,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAC/C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,oFAAoF;IACpF,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,IAAI,EAAE,CAAC;YACV,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;YACtB,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;QAChB,CAAC;IACF,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QAClC,oBAAC,KAAK,IACL,KAAK,EAAE,GAAG,EACV,KAAK,EAAC,EAAE,EACR,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,EACf,aAAa,EAAC,6BAA6B,EAC3C,QAAQ,EAAE,GAAG,EAAE,CAAC,aAAa,EAAE,EAAE,EACjC,IAAI,EAAE,OAAO,IAEZ,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,oBAAC,KAAK,OAAG,CACT,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CACtB,oBAAC,KAAK,OAAG,CACT,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CACtB,oBAAC,KAAK,OAAG,CACT,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,OAAG,CACT,CACM,CACe,CACxB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/NewLegalContactDialog/index.tsx"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,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I,KAAK,CAAC,CAAC,CAAC,CAAC,CACtB,oBAAC,KAAK,OAAG,CACT,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CACtB,oBAAC,KAAK,OAAG,CACT,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,OAAG,CACT,CACM,CACe,CACxB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { IAddress } from "@voplus/morpho-ui/es/data";
2
+ import type { IIdentity } from "../../../../../../data/identity";
3
+ import type { IFormPeopleOptions } from "../../../../../../data/clda-form";
4
+ import type { FormContactCapture } from "../../../../../../data/clda-form/identityAdapter";
5
+ import type { IdentityShapeCatalogStatus } from "@voplus/morpho-compliance/es/components/IdentityShapeSelect";
2
6
  export type LegalProps = {
3
7
  visible: boolean;
4
- updateVisible?: (option?: any) => Promise<void> | void;
8
+ /** Resolve false on a refused form write so the capture remains available for retry. */
9
+ updateVisible?: (option?: FormContactCapture) => Promise<boolean | void> | boolean | void;
5
10
  };
11
+ /** The form-only contact wizard keeps capture state without creating shared records. */
6
12
  export declare class State {
13
+ /** Host callback and visible lifetime. */
7
14
  props: LegalProps;
8
15
  /** step of Add Legal Contact */
9
16
  accessor step: number;
@@ -20,9 +27,17 @@ export declare class State {
20
27
  /** country of identity of the new officer */
21
28
  accessor country: string;
22
29
  /** type of identity of the new officer */
23
- accessor type: string;
30
+ accessor type: IIdentity["type"] | undefined;
24
31
  /** expiryDate of identity(Passport required) */
25
- accessor expiryDate: string;
32
+ accessor expiryDate: string | null | undefined;
33
+ /** Captured alias or a confirmed clear. */
34
+ accessor alias: string | null | undefined;
35
+ /** Issuing country, independent of nationality. */
36
+ accessor issuingCountry: string | null | undefined;
37
+ /** Frozen sibling semantics selected through the shared editor. */
38
+ accessor identityShape: IFormPeopleOptions["identityShape"];
39
+ /** Catalog status controls Next and final completion. */
40
+ accessor catalogStatus: IdentityShapeCatalogStatus;
26
41
  /** email of unit of the new officer */
27
42
  accessor email: string;
28
43
  /** phone of unit of the new officer */
@@ -37,7 +52,13 @@ export declare class State {
37
52
  accessor loading: boolean;
38
53
  /** loading of save identity item */
39
54
  accessor saving: boolean;
55
+ /** Name sequence remains the wizard’s established form-only callback value. */
40
56
  get fullName(): string;
57
+ /** Project current wizard values through the same adapter as persisted form people. */
58
+ get contact(): IFormPeopleOptions;
59
+ /** Adopt a shared editor update while preserving the wizard's contact/name steps. */
60
+ updateIdentity(value: IIdentity): void;
41
61
  }
42
- export declare const LegalContext: import("react").Context<State>;
62
+ export declare const LegalContext: import("react").Context<State | null>;
63
+ /** Require the owning wizard context for its steps. */
43
64
  export declare const useLegalContext: () => State;
@@ -1,6 +1,8 @@
1
1
  import { __esDecorate, __runInitializers } from "tslib";
2
- import { computed, observable } from "mobx";
2
+ import { computed, observable, action } from "mobx";
3
3
  import { createContext, useContext } from "react";
4
+ import { applyFormIdentity } from "../../../../../../data/clda-form/identityAdapter";
5
+ /** The form-only contact wizard keeps capture state without creating shared records. */
4
6
  let State = (() => {
5
7
  let _instanceExtraInitializers = [];
6
8
  let _step_decorators;
@@ -30,6 +32,18 @@ let State = (() => {
30
32
  let _expiryDate_decorators;
31
33
  let _expiryDate_initializers = [];
32
34
  let _expiryDate_extraInitializers = [];
35
+ let _alias_decorators;
36
+ let _alias_initializers = [];
37
+ let _alias_extraInitializers = [];
38
+ let _issuingCountry_decorators;
39
+ let _issuingCountry_initializers = [];
40
+ let _issuingCountry_extraInitializers = [];
41
+ let _identityShape_decorators;
42
+ let _identityShape_initializers = [];
43
+ let _identityShape_extraInitializers = [];
44
+ let _catalogStatus_decorators;
45
+ let _catalogStatus_initializers = [];
46
+ let _catalogStatus_extraInitializers = [];
33
47
  let _email_decorators;
34
48
  let _email_initializers = [];
35
49
  let _email_extraInitializers = [];
@@ -52,6 +66,8 @@ let State = (() => {
52
66
  let _saving_initializers = [];
53
67
  let _saving_extraInitializers = [];
54
68
  let _get_fullName_decorators;
69
+ let _get_contact_decorators;
70
+ let _updateIdentity_decorators;
55
71
  return class State {
56
72
  static {
57
73
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
@@ -64,6 +80,10 @@ let State = (() => {
64
80
  _country_decorators = [observable];
65
81
  _type_decorators = [observable];
66
82
  _expiryDate_decorators = [observable];
83
+ _alias_decorators = [observable];
84
+ _issuingCountry_decorators = [observable];
85
+ _identityShape_decorators = [observable];
86
+ _catalogStatus_decorators = [observable];
67
87
  _email_decorators = [observable];
68
88
  _phone_decorators = [observable];
69
89
  _address_decorators = [observable];
@@ -72,6 +92,8 @@ let State = (() => {
72
92
  _loading_decorators = [observable];
73
93
  _saving_decorators = [observable];
74
94
  _get_fullName_decorators = [computed];
95
+ _get_contact_decorators = [computed];
96
+ _updateIdentity_decorators = [action];
75
97
  __esDecorate(this, null, _step_decorators, { kind: "accessor", name: "step", static: false, private: false, access: { has: obj => "step" in obj, get: obj => obj.step, set: (obj, value) => { obj.step = value; } }, metadata: _metadata }, _step_initializers, _step_extraInitializers);
76
98
  __esDecorate(this, null, _unitType_decorators, { kind: "accessor", name: "unitType", static: false, private: false, access: { has: obj => "unitType" in obj, get: obj => obj.unitType, set: (obj, value) => { obj.unitType = value; } }, metadata: _metadata }, _unitType_initializers, _unitType_extraInitializers);
77
99
  __esDecorate(this, null, _fistName_decorators, { kind: "accessor", name: "fistName", static: false, private: false, access: { has: obj => "fistName" in obj, get: obj => obj.fistName, set: (obj, value) => { obj.fistName = value; } }, metadata: _metadata }, _fistName_initializers, _fistName_extraInitializers);
@@ -81,6 +103,10 @@ let State = (() => {
81
103
  __esDecorate(this, null, _country_decorators, { kind: "accessor", name: "country", static: false, private: false, access: { has: obj => "country" in obj, get: obj => obj.country, set: (obj, value) => { obj.country = value; } }, metadata: _metadata }, _country_initializers, _country_extraInitializers);
82
104
  __esDecorate(this, null, _type_decorators, { kind: "accessor", name: "type", static: false, private: false, access: { has: obj => "type" in obj, get: obj => obj.type, set: (obj, value) => { obj.type = value; } }, metadata: _metadata }, _type_initializers, _type_extraInitializers);
83
105
  __esDecorate(this, null, _expiryDate_decorators, { kind: "accessor", name: "expiryDate", static: false, private: false, access: { has: obj => "expiryDate" in obj, get: obj => obj.expiryDate, set: (obj, value) => { obj.expiryDate = value; } }, metadata: _metadata }, _expiryDate_initializers, _expiryDate_extraInitializers);
106
+ __esDecorate(this, null, _alias_decorators, { kind: "accessor", name: "alias", static: false, private: false, access: { has: obj => "alias" in obj, get: obj => obj.alias, set: (obj, value) => { obj.alias = value; } }, metadata: _metadata }, _alias_initializers, _alias_extraInitializers);
107
+ __esDecorate(this, null, _issuingCountry_decorators, { kind: "accessor", name: "issuingCountry", static: false, private: false, access: { has: obj => "issuingCountry" in obj, get: obj => obj.issuingCountry, set: (obj, value) => { obj.issuingCountry = value; } }, metadata: _metadata }, _issuingCountry_initializers, _issuingCountry_extraInitializers);
108
+ __esDecorate(this, null, _identityShape_decorators, { kind: "accessor", name: "identityShape", static: false, private: false, access: { has: obj => "identityShape" in obj, get: obj => obj.identityShape, set: (obj, value) => { obj.identityShape = value; } }, metadata: _metadata }, _identityShape_initializers, _identityShape_extraInitializers);
109
+ __esDecorate(this, null, _catalogStatus_decorators, { kind: "accessor", name: "catalogStatus", static: false, private: false, access: { has: obj => "catalogStatus" in obj, get: obj => obj.catalogStatus, set: (obj, value) => { obj.catalogStatus = value; } }, metadata: _metadata }, _catalogStatus_initializers, _catalogStatus_extraInitializers);
84
110
  __esDecorate(this, null, _email_decorators, { kind: "accessor", name: "email", static: false, private: false, access: { has: obj => "email" in obj, get: obj => obj.email, set: (obj, value) => { obj.email = value; } }, metadata: _metadata }, _email_initializers, _email_extraInitializers);
85
111
  __esDecorate(this, null, _phone_decorators, { kind: "accessor", name: "phone", static: false, private: false, access: { has: obj => "phone" in obj, get: obj => obj.phone, set: (obj, value) => { obj.phone = value; } }, metadata: _metadata }, _phone_initializers, _phone_extraInitializers);
86
112
  __esDecorate(this, null, _address_decorators, { kind: "accessor", name: "address", static: false, private: false, access: { has: obj => "address" in obj, get: obj => obj.address, set: (obj, value) => { obj.address = value; } }, metadata: _metadata }, _address_initializers, _address_extraInitializers);
@@ -89,8 +115,11 @@ let State = (() => {
89
115
  __esDecorate(this, null, _loading_decorators, { kind: "accessor", name: "loading", static: false, private: false, access: { has: obj => "loading" in obj, get: obj => obj.loading, set: (obj, value) => { obj.loading = value; } }, metadata: _metadata }, _loading_initializers, _loading_extraInitializers);
90
116
  __esDecorate(this, null, _saving_decorators, { kind: "accessor", name: "saving", static: false, private: false, access: { has: obj => "saving" in obj, get: obj => obj.saving, set: (obj, value) => { obj.saving = value; } }, metadata: _metadata }, _saving_initializers, _saving_extraInitializers);
91
117
  __esDecorate(this, null, _get_fullName_decorators, { kind: "getter", name: "fullName", static: false, private: false, access: { has: obj => "fullName" in obj, get: obj => obj.fullName }, metadata: _metadata }, null, _instanceExtraInitializers);
118
+ __esDecorate(this, null, _get_contact_decorators, { kind: "getter", name: "contact", static: false, private: false, access: { has: obj => "contact" in obj, get: obj => obj.contact }, metadata: _metadata }, null, _instanceExtraInitializers);
119
+ __esDecorate(this, null, _updateIdentity_decorators, { kind: "method", name: "updateIdentity", static: false, private: false, access: { has: obj => "updateIdentity" in obj, get: obj => obj.updateIdentity }, metadata: _metadata }, null, _instanceExtraInitializers);
92
120
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
93
121
  }
122
+ /** Host callback and visible lifetime. */
94
123
  props = __runInitializers(this, _instanceExtraInitializers);
95
124
  #step_accessor_storage = __runInitializers(this, _step_initializers, 1);
96
125
  /** step of Add Legal Contact */
@@ -120,15 +149,31 @@ let State = (() => {
120
149
  /** country of identity of the new officer */
121
150
  get country() { return this.#country_accessor_storage; }
122
151
  set country(value) { this.#country_accessor_storage = value; }
123
- #type_accessor_storage = (__runInitializers(this, _country_extraInitializers), __runInitializers(this, _type_initializers, "Passport"));
152
+ #type_accessor_storage = (__runInitializers(this, _country_extraInitializers), __runInitializers(this, _type_initializers, undefined));
124
153
  /** type of identity of the new officer */
125
154
  get type() { return this.#type_accessor_storage; }
126
155
  set type(value) { this.#type_accessor_storage = value; }
127
- #expiryDate_accessor_storage = (__runInitializers(this, _type_extraInitializers), __runInitializers(this, _expiryDate_initializers, void 0));
156
+ #expiryDate_accessor_storage = (__runInitializers(this, _type_extraInitializers), __runInitializers(this, _expiryDate_initializers, undefined));
128
157
  /** expiryDate of identity(Passport required) */
129
158
  get expiryDate() { return this.#expiryDate_accessor_storage; }
130
159
  set expiryDate(value) { this.#expiryDate_accessor_storage = value; }
131
- #email_accessor_storage = (__runInitializers(this, _expiryDate_extraInitializers), __runInitializers(this, _email_initializers, ""));
160
+ #alias_accessor_storage = (__runInitializers(this, _expiryDate_extraInitializers), __runInitializers(this, _alias_initializers, undefined));
161
+ /** Captured alias or a confirmed clear. */
162
+ get alias() { return this.#alias_accessor_storage; }
163
+ set alias(value) { this.#alias_accessor_storage = value; }
164
+ #issuingCountry_accessor_storage = (__runInitializers(this, _alias_extraInitializers), __runInitializers(this, _issuingCountry_initializers, undefined));
165
+ /** Issuing country, independent of nationality. */
166
+ get issuingCountry() { return this.#issuingCountry_accessor_storage; }
167
+ set issuingCountry(value) { this.#issuingCountry_accessor_storage = value; }
168
+ #identityShape_accessor_storage = (__runInitializers(this, _issuingCountry_extraInitializers), __runInitializers(this, _identityShape_initializers, undefined));
169
+ /** Frozen sibling semantics selected through the shared editor. */
170
+ get identityShape() { return this.#identityShape_accessor_storage; }
171
+ set identityShape(value) { this.#identityShape_accessor_storage = value; }
172
+ #catalogStatus_accessor_storage = (__runInitializers(this, _identityShape_extraInitializers), __runInitializers(this, _catalogStatus_initializers, "loading"));
173
+ /** Catalog status controls Next and final completion. */
174
+ get catalogStatus() { return this.#catalogStatus_accessor_storage; }
175
+ set catalogStatus(value) { this.#catalogStatus_accessor_storage = value; }
176
+ #email_accessor_storage = (__runInitializers(this, _catalogStatus_extraInitializers), __runInitializers(this, _email_initializers, ""));
132
177
  /** email of unit of the new officer */
133
178
  get email() { return this.#email_accessor_storage; }
134
179
  set email(value) { this.#email_accessor_storage = value; }
@@ -163,6 +208,7 @@ let State = (() => {
163
208
  /** loading of save identity item */
164
209
  get saving() { return this.#saving_accessor_storage; }
165
210
  set saving(value) { this.#saving_accessor_storage = value; }
211
+ /** Name sequence remains the wizard’s established form-only callback value. */
166
212
  get fullName() {
167
213
  return this.orderName === "Western"
168
214
  ? (this.fistName ? this.fistName + " " : "") +
@@ -170,6 +216,37 @@ let State = (() => {
170
216
  (this.lastName ? this.lastName + " " : "")
171
217
  : (this.lastName ? this.lastName + " " : "") + (this.fistName ? this.fistName + " " : "");
172
218
  }
219
+ /** Project current wizard values through the same adapter as persisted form people. */
220
+ get contact() {
221
+ return {
222
+ id: "wizard-draft",
223
+ name: this.fullName,
224
+ type: this.unitType,
225
+ identity: {
226
+ fullName: this.fullName,
227
+ number: String(this.number),
228
+ country: this.country,
229
+ type: this.type,
230
+ alias: this.alias,
231
+ issuingCountry: this.issuingCountry,
232
+ expiryDate: this.expiryDate,
233
+ },
234
+ identityShape: this.identityShape,
235
+ };
236
+ }
237
+ // spec:3848 — the form-only wizard records complete captured semantics and explicit clears.
238
+ /** Adopt a shared editor update while preserving the wizard's contact/name steps. */
239
+ updateIdentity(value) {
240
+ const contact = this.contact;
241
+ applyFormIdentity(contact, value);
242
+ this.number = contact.identity?.number ?? "";
243
+ this.country = contact.identity?.country ?? "";
244
+ this.type = contact.identity?.type;
245
+ this.alias = contact.identity?.alias;
246
+ this.issuingCountry = contact.identity?.issuingCountry;
247
+ this.expiryDate = contact.identity?.expiryDate;
248
+ this.identityShape = contact.identityShape;
249
+ }
173
250
  constructor() {
174
251
  __runInitializers(this, _saving_extraInitializers);
175
252
  }
@@ -177,5 +254,11 @@ let State = (() => {
177
254
  })();
178
255
  export { State };
179
256
  export const LegalContext = createContext(null);
180
- export const useLegalContext = () => useContext(LegalContext);
257
+ /** Require the owning wizard context for its steps. */
258
+ export const useLegalContext = () => {
259
+ const context = useContext(LegalContext);
260
+ if (!context)
261
+ throw new Error("NewLegalContactDialog context is required.");
262
+ return context;
263
+ };
181
264
  //# sourceMappingURL=state.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/NewLegalContactDialog/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;IAOrC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAL,KAAK;;;gCAGhB,UAAU;oCAEV,UAAU;oCAEV,UAAU;oCAEV,UAAU;sCAEV,UAAU;kCAEV,UAAU;mCAEV,UAAU;gCAEV,UAAU;sCAEV,UAAU;iCAEV,UAAU;iCAEV,UAAU;mCAEV,UAAU;qCASV,UAAU;kCAEV,UAAU;mCAEV,UAAU;kCAEV,UAAU;wCAEV,QAAQ;YAvCG,iKAAgB,IAAI,6BAAJ,IAAI,mFAAK;YAEzB,6KAAgB,QAAQ,6BAAR,QAAQ,2FAAY;YAEpC,6KAAgB,QAAQ,6BAAR,QAAQ,2FAAM;YAE9B,6KAAgB,QAAQ,6BAAR,QAAQ,2FAAM;YAE9B,mLAAgB,UAAU,6BAAV,UAAU,+FAAM;YAEhC,uKAAgB,MAAM,6BAAN,MAAM,uFAAuB;YAE7C,0KAAgB,OAAO,6BAAP,OAAO,yFAAM;YAE7B,iKAAgB,IAAI,6BAAJ,IAAI,mFAAc;YAElC,mLAAgB,UAAU,6BAAV,UAAU,+FAAU;YAEpC,oKAAgB,KAAK,6BAAL,KAAK,qFAAM;YAE3B,oKAAgB,KAAK,6BAAL,KAAK,qFAAM;YAE3B,0KAAgB,OAAO,6BAAP,OAAO,yFAOjC;YAEU,gL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AAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAC5E,OAAO,OAAO,CAAC;AAChB,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import "./index.css";
2
+ import React from "react";
3
+ /**
4
+ * The wizard's modal chrome: the 500px, footer-less, unclosable shell (and the legacy
5
+ * `.select-legal-contact-dialog` stylesheet) that every step renders inside, plus the guard that
6
+ * has to stand in front of closing it. Owned here — rather than by one step — so every step, and
7
+ * the seeded page-level stories, render the identical shell and the same leave confirmation.
8
+ */
9
+ declare const DialogShell: (props: {
10
+ visible: boolean;
11
+ children: React.ReactNode;
12
+ }) => React.JSX.Element;
13
+ export default DialogShell;
@@ -0,0 +1,20 @@
1
+ import "./index.css";
2
+ import { Alert, Modal } from "antd";
3
+ import React from "react";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import { useLegalContext } from "./state";
6
+ /**
7
+ * The wizard's modal chrome: the 500px, footer-less, unclosable shell (and the legacy
8
+ * `.select-legal-contact-dialog` stylesheet) that every step renders inside, plus the guard that
9
+ * has to stand in front of closing it. Owned here — rather than by one step — so every step, and
10
+ * the seeded page-level stories, render the identical shell and the same leave confirmation.
11
+ */
12
+ const DialogShell = (props) => {
13
+ const legal = useLegalContext();
14
+ return observe(() => (React.createElement(React.Fragment, null,
15
+ React.createElement(Modal, { width: 500, title: "", footer: null, closable: false, wrapClassName: "select-legal-contact-dialog", onCancel: legal.requestLeave, open: props.visible }, props.children),
16
+ React.createElement(Modal, { open: legal.leaveConfirmOpen, title: "Leave this contact unfinished?", okText: "Leave", cancelText: "Keep editing", onOk: legal.leave, onCancel: legal.cancelLeave },
17
+ React.createElement(Alert, { type: "warning", showIcon: true, message: legal.leaveDescription })))));
18
+ };
19
+ export default DialogShell;
20
+ //# sourceMappingURL=DialogShell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogShell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/SelectLegalContactDialog/DialogShell.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,WAAW,GAAG,CAAC,KAAsD,EAAE,EAAE;IAC9E,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,oBAAC,KAAK,IACL,KAAK,EAAE,GAAG,EACV,KAAK,EAAC,EAAE,EACR,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,EACf,aAAa,EAAC,6BAA6B,EAC3C,QAAQ,EAAE,KAAK,CAAC,YAAY,EAC5B,IAAI,EAAE,KAAK,CAAC,OAAO,IAElB,KAAK,CAAC,QAAQ,CACR;QAGR,oBAAC,KAAK,IACL,IAAI,EAAE,KAAK,CAAC,gBAAgB,EAC5B,KAAK,EAAC,gCAAgC,EACtC,MAAM,EAAC,OAAO,EACd,UAAU,EAAC,cAAc,EACzB,IAAI,EAAE,KAAK,CAAC,KAAK,EACjB,QAAQ,EAAE,KAAK,CAAC,WAAW;YAE3B,oBAAC,KAAK,IAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,QAAC,OAAO,EAAE,KAAK,CAAC,gBAAgB,GAAI,CAC3D,CACQ,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
@@ -2,7 +2,6 @@ import { Button, Divider, Radio, Select, message } from "antd";
2
2
  import { useIdentityListEffect, useIdentityStore, } from "../../../../../../data/identity";
3
3
  import React from "react";
4
4
  import { observe } from "@voplus/morpho-ui";
5
- import { runInAction } from "mobx";
6
5
  import { useLegalContext } from "./state";
7
6
  import { useUnitStore } from "@voplus/morpho-org";
8
7
  const Page1 = () => {
@@ -10,27 +9,27 @@ const Page1 = () => {
10
9
  const identityStore = useIdentityStore();
11
10
  const unitStore = useUnitStore();
12
11
  useIdentityListEffect(null, (list) => {
13
- runInAction(() => {
14
- legal.contactList = list || [];
15
- legal.loading = false;
16
- });
12
+ legal.contactList = list || [];
13
+ legal.loading = false;
17
14
  });
18
15
  return observe(() => (React.createElement(React.Fragment, null,
19
16
  React.createElement("div", { className: "select-legal-contact_title" }, "Select Legal Contact"),
20
17
  React.createElement("div", { className: "select-legal-contact_content" },
21
- React.createElement(Radio.Group, { value: legal.operate, onChange: (e) => runInAction(() => (legal.operate = e.target.value)) },
18
+ React.createElement(Radio.Group, { value: legal.operate, onChange: (e) => (legal.operate = e.target.value) },
22
19
  React.createElement(Radio, { value: "Search", className: "padding-bottom-20" }, "Search an existing contact"),
23
20
  React.createElement(Select, { value: legal.identityId, loading: legal.loading, showSearch: { filterOption: filterItems }, optionLabelProp: "title", onSelect: onSelect, style: { width: "100%" }, options: legal.contactList.map((i) => {
24
- return { value: i.id, label: i.identity, title: i.identity };
21
+ const title = [i.fullName, i.number, i.shape?.name].filter(Boolean).join(" — ") || i.id;
22
+ return { value: i.id, label: title, title };
25
23
  }) }),
26
24
  React.createElement(Divider, { plain: true }, "or"),
27
25
  React.createElement(Radio, { value: "Create" }, "Create a new contact"))),
28
26
  React.createElement("div", { className: "select-legal-contact_footer" },
29
27
  React.createElement(Button, { size: "middle", onClick: () => legal.props.updateVisible?.() }, "Cancel"),
30
- React.createElement(Button, { size: "middle", type: "primary", loading: legal.saving, onClick: () => legal.operate === "Search" ? toPage5() : runInAction(() => (legal.step += 1)) }, "Next")))));
28
+ React.createElement(Button, { size: "middle", type: "primary", loading: legal.saving, onClick: () => (legal.operate === "Search" ? toPage5() : (legal.step += 1)) }, "Next")))));
31
29
  // spec:1808 — CSP: Existing-contact dropdown supports case-insensitive substring search
30
+ /** Search the wire-derived label, including incomplete identity projections. */
32
31
  function filterItems(input, option) {
33
- return option.title.toLowerCase().includes(input.toLowerCase());
32
+ return (option?.title ?? "").toLowerCase().includes(input.toLowerCase());
34
33
  }
35
34
  /** select unit */
36
35
  function onSelect(id) {
@@ -39,28 +38,29 @@ const Page1 = () => {
39
38
  legal.unitId = contact.unitId;
40
39
  }
41
40
  // spec:1807 — CSP: Select-existing path skips creation steps and prefills review
41
+ /** Load the searched identity and contact for review. */
42
42
  async function toPage5() {
43
43
  if (!legal.identityId)
44
44
  return message.warning("Please choose an existing contact!");
45
- runInAction(async () => {
46
- legal.saving = true;
47
- if (legal.identityId) {
48
- const identity = await identityStore.load(legal.identityId, {});
49
- legal.fistName = identity.fullName;
50
- legal.number = identity.number || "";
51
- legal.country = identity.country || "";
52
- legal.expiryDate = identity.expiryDate;
53
- }
54
- if (legal.unitId) {
55
- const unit = await unitStore.load(legal.unitId, {});
56
- legal.phone = unit.phone || "";
57
- legal.email = unit.email || "";
58
- if (unit.address)
59
- legal.address = unit.address;
60
- }
61
- legal.saving = false;
62
- return (legal.step = 5);
63
- });
45
+ legal.saving = true;
46
+ if (legal.identityId) {
47
+ const identity = await identityStore.load(legal.identityId, {});
48
+ legal.fistName = identity.fullName;
49
+ legal.number = identity.number || "";
50
+ legal.country = identity.country || "";
51
+ legal.expiryDate = identity.expiryDate;
52
+ // spec:1807 — Review the selected identity under its own frozen captured definition.
53
+ legal.shape = identity.shape;
54
+ }
55
+ if (legal.unitId) {
56
+ const unit = await unitStore.load(legal.unitId, {});
57
+ legal.phone = unit.phone || "";
58
+ legal.email = unit.email || "";
59
+ if (unit.address)
60
+ legal.address = unit.address;
61
+ }
62
+ legal.saving = false;
63
+ legal.step = 5;
64
64
  return;
65
65
  }
66
66
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Page1.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/SelectLegalContactDialog/Page1.tsx"],"names":[],"mappings":"AAAA,OAAO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AO;oBAAE,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;YAChD,CAAC;YAED,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;YACrB,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;QACH,OAAO;IACR,CAAC;AACF,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Page1.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/SelectLegalContactDialog/Page1.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/D,OAAO,EAEN,qBAAqB,EACrB,gBAAgB,GAChB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,qBAAqB,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE;QACpC,KAAK,CAAC,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC;QAC/B,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,4BAA4B,2BAA2B;QACtE,6BAAK,SAAS,EAAC,8BAA8B;YAC5C,oBAAC,K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AO,IAAI,EAAE,CAAC;YACvC,KAAK,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAiB,CAAC;YAC9C,qFAAqF;YACrF,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC9B,CAAC;QACD,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YAClB,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YACpD,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;YAC/B,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;YAC/B,IAAI,IAAI,CAAC,OAAO;gBAAE,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAChD,CAAC;QAED,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;QACrB,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;QACf,OAAO;IACR,CAAC;AACF,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { Button, Radio } from "antd";
2
2
  import React from "react";
3
3
  import { observe } from "@voplus/morpho-ui";
4
- import { runInAction } from "mobx";
5
4
  import { useLegalContext } from "./state";
6
5
  const Page2 = () => {
7
6
  const legal = useLegalContext();
@@ -9,12 +8,12 @@ const Page2 = () => {
9
8
  React.createElement("div", { className: "select-legal-contact_title" }, "Create Legal Contact"),
10
9
  React.createElement("div", { className: "select-legal-contact_content" },
11
10
  React.createElement("h4", null, "Choose the type of contact are creating"),
12
- React.createElement(Radio.Group, { value: legal.unitType, onChange: (e) => runInAction(() => (legal.unitType = e.target.value)) },
11
+ React.createElement(Radio.Group, { value: legal.unitType, disabled: !!legal.createdOwner, onChange: (e) => (legal.unitType = e.target.value) },
13
12
  React.createElement(Radio, { value: "Person", style: { padding: "10px 0" } }, "Person"),
14
13
  React.createElement(Radio, { value: "Organization", style: { padding: "10px 0" } }, "Organization"))),
15
14
  React.createElement("div", { className: "select-legal-contact_footer" },
16
- React.createElement(Button, { size: "middle", onClick: () => runInAction(() => (legal.step -= 1)) }, "Back"),
17
- React.createElement(Button, { size: "middle", type: "primary", onClick: () => runInAction(() => (legal.step += 1)) }, "Next")))));
15
+ React.createElement(Button, { size: "middle", onClick: () => (legal.step -= 1) }, "Back"),
16
+ React.createElement(Button, { size: "middle", type: "primary", onClick: () => (legal.step += 1) }, "Next")))));
18
17
  };
19
18
  export default Page2;
20
19
  //# sourceMappingURL=Page2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Page2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/SelectLegalContactDialog/Page2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,4BAA4B,2BAA2B;QACtE,6BAAK,SAAS,EAAC,8BAA8B;YAC5C,0EAAgD;YAChD,oBAAC,KAAK,CAAC,KAAK,IACX,KAAK,EAAE,KAAK,CAAC,QAAQ,EACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAErE,oBAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,aAE1C;gBACR,oBAAC,KAAK,IAAC,KAAK,EAAC,cAAc,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAEhD,CACK,CACT;QACN,6BAAK,SAAS,EAAC,6BAA6B;YAC3C,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,WAEhE;YAET,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,WAE/E,CACJ,CACU,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Page2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/SelectLegalContactDialog/Page2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,4BAA4B,2BAA2B;QACtE,6BAAK,SAAS,EAAC,8BAA8B;YAC5C,0EAAgD;YAEhD,oBAAC,KAAK,CAAC,KAAK,IACX,KAAK,EAAE,KAAK,CAAC,QAAQ,EACrB,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,EAC9B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;gBAElD,oBAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,aAE1C;gBACR,oBAAC,KAAK,IAAC,KAAK,EAAC,cAAc,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAEhD,CACK,CACT;QACN,6BAAK,SAAS,EAAC,6BAA6B;YAC3C,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,WAE7C;YAET,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,WAE5D,CACJ,CACU,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
@@ -1,7 +1,6 @@
1
- import { Button, Divider, Form, Input, Radio } from "antd";
1
+ import { Button, Divider, Form, Input, Radio, message } from "antd";
2
2
  import React from "react";
3
3
  import { observe } from "@voplus/morpho-ui";
4
- import { runInAction } from "mobx";
5
4
  import { useLegalContext } from "./state";
6
5
  const Page3 = () => {
7
6
  const legal = useLegalContext();
@@ -9,11 +8,11 @@ const Page3 = () => {
9
8
  React.createElement("div", { className: "select-legal-contact_title" }, "Input Name"),
10
9
  React.createElement("div", { className: "select-legal-contact_content" }, legal.unitType === "Organization" ? (React.createElement(React.Fragment, null,
11
10
  React.createElement("h4", { style: { marginBottom: "10px" } }, "Name of the Organization"),
12
- React.createElement(Input, { value: legal.fistName, onChange: (e) => runInAction(() => (legal.fistName = e.target.value)) }))) : (React.createElement(React.Fragment, null,
11
+ React.createElement(Input, { value: legal.fistName, onChange: (e) => (legal.fistName = e.target.value) }))) : (React.createElement(React.Fragment, null,
13
12
  React.createElement("h4", null, "Please choose correct name order and input name of the contact"),
14
13
  React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
15
14
  React.createElement("div", null, "Full Name Order"),
16
- React.createElement(Radio.Group, { value: legal.orderName, onChange: (e) => runInAction(() => (legal.orderName = e.target.value)) },
15
+ React.createElement(Radio.Group, { value: legal.orderName, onChange: (e) => (legal.orderName = e.target.value) },
17
16
  React.createElement(Radio, { value: "Western", style: { padding: "10px 0" } }, "Fist Middle Last ( Western )"),
18
17
  React.createElement(Radio, { value: "Eastern", style: { padding: "10px 0" } }, "Last First ( Eastern )")),
19
18
  React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
@@ -21,16 +20,24 @@ const Page3 = () => {
21
20
  React.createElement("div", { className: "full-name-displayed" }, legal.fullName),
22
21
  React.createElement(Form, { labelCol: { span: 6 }, labelAlign: "left", colon: false, className: "padding-top-15" },
23
22
  React.createElement(Form.Item, { label: "First Name", name: "fistName", rules: [{ required: true, message: "Please input your First Name!" }] },
24
- React.createElement(Input, { value: legal.fistName, onChange: (e) => runInAction(() => (legal.fistName = e.target.value)) })),
23
+ React.createElement(Input, { value: legal.fistName, onChange: (e) => (legal.fistName = e.target.value) })),
25
24
  React.createElement(Form.Item, { label: "Last Name", name: "lastName", rules: [{ required: true, message: "Please input your Last Name!" }] },
26
- React.createElement(Input, { value: legal.lastName, onChange: (e) => runInAction(() => (legal.lastName = e.target.value)) })),
25
+ React.createElement(Input, { value: legal.lastName, onChange: (e) => (legal.lastName = e.target.value) })),
27
26
  React.createElement(Form.Item, { label: React.createElement("div", { style: { lineHeight: "15px" } },
28
27
  "Middle Name",
29
28
  React.createElement("span", { style: { display: "block" } }, "(Optional)")) },
30
- React.createElement(Input, { value: legal.middleName, onChange: (e) => runInAction(() => (legal.middleName = e.target.value)) })))))),
29
+ React.createElement(Input, { value: legal.middleName, onChange: (e) => (legal.middleName = e.target.value) })))))),
31
30
  React.createElement("div", { className: "select-legal-contact_footer" },
32
- React.createElement(Button, { size: "middle", onClick: () => runInAction(() => (legal.step -= 1)) }, "Back"),
33
- React.createElement(Button, { size: "middle", type: "primary", onClick: () => runInAction(() => (legal.step += 1)) }, "Next")))));
31
+ React.createElement(Button, { size: "middle", onClick: () => (legal.step -= 1) }, "Back"),
32
+ React.createElement(Button, { size: "middle", type: "primary", onClick: next }, "Next")))));
33
+ /** Keep a blank draft on the name step; final submission repeats this guard before every write. */
34
+ function next() {
35
+ if (!legal.fullName.trim()) {
36
+ message.warning("Name is required");
37
+ return;
38
+ }
39
+ legal.step += 1;
40
+ }
34
41
  };
35
42
  export default Page3;
36
43
  //# sourceMappingURL=Page3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Page3.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/SelectLegalContactDialog/Page3.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,4BAA4B,iBAAiB;QAE5D,6BAAK,SAAS,EAAC,8BAA8B,IAE3C,KAAK,CAAC,QAAQ,KAAK,cAAc,CAAC,CAAC,CAAC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AAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,WAEhE;YAET,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,WAE/E,CACJ,CACU,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Page3.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/SelectLegalContactDialog/Page3.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,4BAA4B,iBAAiB;QAE5D,6BAAK,SAAS,EAAC,8BAA8B,IAE3C,KAAK,CAAC,QAAQ,KAAK,cAAc,CAAC,CAAC,CAAC,CACpC,oBAAC,KAAK,CAAC,QAAQ;YACd,4BAAI,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,+BAA+B;YAClE,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,EA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CAAC,kBAAkB,CAAC,CAAC;YAAC,OAAO;QAAC,CAAC;QAC5E,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC;IACjB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
@@ -1,3 +1,3 @@
1
- import React from "react";
2
- declare const Page4: () => React.JSX.Element;
1
+ /** Capture the selected identity type and require confirmation before replacing populated fields. */
2
+ declare const Page4: () => JSX.Element;
3
3
  export default Page4;